123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726 |
- (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-vendors"],{
- /***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
- \*********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayLikeToArray; });
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length) len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
- arr2[i] = arr[i];
- }
- return arr2;
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
- \**********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithoutHoles; });
- /* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/arrayLikeToArray */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
- function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
- \*******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
- \********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
- /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js");
- /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description */ "./node_modules/core-js/modules/es.symbol.description.js");
- /* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator */ "./node_modules/core-js/modules/es.symbol.iterator.js");
- /* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.from */ "./node_modules/core-js/modules/es.array.from.js");
- /* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
- /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6__);
- function _iterableToArray(iter) {
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
- \**********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableSpread; });
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
- \**********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
- /* harmony import */ var _babel_runtime_helpers_esm_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
- /* harmony import */ var _babel_runtime_helpers_esm_iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
- /* harmony import */ var _babel_runtime_helpers_esm_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/unsupportedIterableToArray */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
- /* harmony import */ var _babel_runtime_helpers_esm_nonIterableSpread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
- function _toConsumableArray(arr) {
- return Object(_babel_runtime_helpers_esm_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_babel_runtime_helpers_esm_iterableToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_babel_runtime_helpers_esm_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || Object(_babel_runtime_helpers_esm_nonIterableSpread__WEBPACK_IMPORTED_MODULE_3__["default"])();
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
- /*!***********************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _typeof; });
- /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js");
- /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description */ "./node_modules/core-js/modules/es.symbol.description.js");
- /* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator */ "./node_modules/core-js/modules/es.symbol.iterator.js");
- /* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
- /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5__);
- function _typeof(obj) {
- "@babel/helpers - typeof";
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- _typeof = function _typeof(obj) {
- return typeof obj;
- };
- } else {
- _typeof = function _typeof(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- }
- return _typeof(obj);
- }
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
- /*!*******************************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
- \*******************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _unsupportedIterableToArray; });
- /* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.from */ "./node_modules/core-js/modules/es.array.from.js");
- /* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.slice */ "./node_modules/core-js/modules/es.array.slice.js");
- /* harmony import */ var core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.function.name */ "./node_modules/core-js/modules/es.function.name.js");
- /* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
- /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string */ "./node_modules/core-js/modules/es.regexp.to-string.js");
- /* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
- /* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/arrayLikeToArray */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
- function _unsupportedIterableToArray(o, minLen) {
- if (!o) return;
- if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_6__["default"])(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor) n = o.constructor.name;
- if (n === "Map" || n === "Set") return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_6__["default"])(o, minLen);
- }
- /***/ }),
- /***/ "./node_modules/async-validator/es/index.js":
- /*!**************************************************!*\
- !*** ./node_modules/async-validator/es/index.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./node_modules/async-validator/es/util.js");
- /* harmony import */ var _validator___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./validator/ */ "./node_modules/async-validator/es/validator/index.js");
- /* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./messages */ "./node_modules/async-validator/es/messages.js");
- /**
- * Encapsulates a validation schema.
- *
- * @param descriptor An object declaring validation rules
- * for this schema.
- */
- function Schema(descriptor) {
- this.rules = null;
- this._messages = _messages__WEBPACK_IMPORTED_MODULE_4__["messages"];
- this.define(descriptor);
- }
- Schema.prototype = {
- messages: function messages(_messages) {
- if (_messages) {
- this._messages = Object(_util__WEBPACK_IMPORTED_MODULE_2__["deepMerge"])(Object(_messages__WEBPACK_IMPORTED_MODULE_4__["newMessages"])(), _messages);
- }
- return this._messages;
- },
- define: function define(rules) {
- if (!rules) {
- throw new Error('Cannot configure a schema with no rules');
- }
- if ((typeof rules === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rules)) !== 'object' || Array.isArray(rules)) {
- throw new Error('Rules must be an object');
- }
- this.rules = {};
- var z = void 0;
- var item = void 0;
- for (z in rules) {
- if (rules.hasOwnProperty(z)) {
- item = rules[z];
- this.rules[z] = Array.isArray(item) ? item : [item];
- }
- }
- },
- validate: function validate(source_) {
- var _this = this;
- var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var oc = arguments[2];
- var source = source_;
- var options = o;
- var callback = oc;
- if (typeof options === 'function') {
- callback = options;
- options = {};
- }
- if (!this.rules || Object.keys(this.rules).length === 0) {
- if (callback) {
- callback();
- }
- return;
- }
- function complete(results) {
- var i = void 0;
- var field = void 0;
- var errors = [];
- var fields = {};
- function add(e) {
- if (Array.isArray(e)) {
- errors = errors.concat.apply(errors, e);
- } else {
- errors.push(e);
- }
- }
- for (i = 0; i < results.length; i++) {
- add(results[i]);
- }
- if (!errors.length) {
- errors = null;
- fields = null;
- } else {
- for (i = 0; i < errors.length; i++) {
- field = errors[i].field;
- fields[field] = fields[field] || [];
- fields[field].push(errors[i]);
- }
- }
- callback(errors, fields);
- }
- if (options.messages) {
- var messages = this.messages();
- if (messages === _messages__WEBPACK_IMPORTED_MODULE_4__["messages"]) {
- messages = Object(_messages__WEBPACK_IMPORTED_MODULE_4__["newMessages"])();
- }
- Object(_util__WEBPACK_IMPORTED_MODULE_2__["deepMerge"])(messages, options.messages);
- options.messages = messages;
- } else {
- options.messages = this.messages();
- }
- var arr = void 0;
- var value = void 0;
- var series = {};
- var keys = options.keys || Object.keys(this.rules);
- keys.forEach(function (z) {
- arr = _this.rules[z];
- value = source[z];
- arr.forEach(function (r) {
- var rule = r;
- if (typeof rule.transform === 'function') {
- if (source === source_) {
- source = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, source);
- }
- value = source[z] = rule.transform(value);
- }
- if (typeof rule === 'function') {
- rule = {
- validator: rule
- };
- } else {
- rule = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule);
- }
- rule.validator = _this.getValidationMethod(rule);
- rule.field = z;
- rule.fullField = rule.fullField || z;
- rule.type = _this.getType(rule);
- if (!rule.validator) {
- return;
- }
- series[z] = series[z] || [];
- series[z].push({
- rule: rule,
- value: value,
- source: source,
- field: z
- });
- });
- });
- var errorFields = {};
- Object(_util__WEBPACK_IMPORTED_MODULE_2__["asyncMap"])(series, options, function (data, doIt) {
- var rule = data.rule;
- var deep = (rule.type === 'object' || rule.type === 'array') && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.fields) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.defaultField) === 'object');
- deep = deep && (rule.required || !rule.required && data.value);
- rule.field = data.field;
- function addFullfield(key, schema) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, schema, {
- fullField: rule.fullField + '.' + key
- });
- }
- function cb() {
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var errors = e;
- if (!Array.isArray(errors)) {
- errors = [errors];
- }
- if (errors.length) {
- Object(_util__WEBPACK_IMPORTED_MODULE_2__["warning"])('async-validator:', errors);
- }
- if (errors.length && rule.message) {
- errors = [].concat(rule.message);
- }
- errors = errors.map(Object(_util__WEBPACK_IMPORTED_MODULE_2__["complementError"])(rule));
- if (options.first && errors.length) {
- errorFields[rule.field] = 1;
- return doIt(errors);
- }
- if (!deep) {
- doIt(errors);
- } else {
- // if rule is required but the target object
- // does not exist fail at the rule level and don't
- // go deeper
- if (rule.required && !data.value) {
- if (rule.message) {
- errors = [].concat(rule.message).map(Object(_util__WEBPACK_IMPORTED_MODULE_2__["complementError"])(rule));
- } else if (options.error) {
- errors = [options.error(rule, Object(_util__WEBPACK_IMPORTED_MODULE_2__["format"])(options.messages.required, rule.field))];
- } else {
- errors = [];
- }
- return doIt(errors);
- }
- var fieldsSchema = {};
- if (rule.defaultField) {
- for (var k in data.value) {
- if (data.value.hasOwnProperty(k)) {
- fieldsSchema[k] = rule.defaultField;
- }
- }
- }
- fieldsSchema = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, fieldsSchema, data.rule.fields);
- for (var f in fieldsSchema) {
- if (fieldsSchema.hasOwnProperty(f)) {
- var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
- fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
- }
- }
- var schema = new Schema(fieldsSchema);
- schema.messages(options.messages);
- if (data.rule.options) {
- data.rule.options.messages = options.messages;
- data.rule.options.error = options.error;
- }
- schema.validate(data.value, data.rule.options || options, function (errs) {
- doIt(errs && errs.length ? errors.concat(errs) : errs);
- });
- }
- }
- var res = rule.validator(rule, data.value, cb, data.source, options);
- if (res && res.then) {
- res.then(function () {
- return cb();
- }, function (e) {
- return cb(e);
- });
- }
- }, function (results) {
- complete(results);
- });
- },
- getType: function getType(rule) {
- if (rule.type === undefined && rule.pattern instanceof RegExp) {
- rule.type = 'pattern';
- }
- if (typeof rule.validator !== 'function' && rule.type && !_validator___WEBPACK_IMPORTED_MODULE_3__["default"].hasOwnProperty(rule.type)) {
- throw new Error(Object(_util__WEBPACK_IMPORTED_MODULE_2__["format"])('Unknown rule type %s', rule.type));
- }
- return rule.type || 'string';
- },
- getValidationMethod: function getValidationMethod(rule) {
- if (typeof rule.validator === 'function') {
- return rule.validator;
- }
- var keys = Object.keys(rule);
- var messageIndex = keys.indexOf('message');
- if (messageIndex !== -1) {
- keys.splice(messageIndex, 1);
- }
- if (keys.length === 1 && keys[0] === 'required') {
- return _validator___WEBPACK_IMPORTED_MODULE_3__["default"].required;
- }
- return _validator___WEBPACK_IMPORTED_MODULE_3__["default"][this.getType(rule)] || false;
- }
- };
- Schema.register = function register(type, validator) {
- if (typeof validator !== 'function') {
- throw new Error('Cannot register a validator by type, validator is not a function');
- }
- _validator___WEBPACK_IMPORTED_MODULE_3__["default"][type] = validator;
- };
- Schema.messages = _messages__WEBPACK_IMPORTED_MODULE_4__["messages"];
- /* harmony default export */ __webpack_exports__["default"] = (Schema);
- /***/ }),
- /***/ "./node_modules/async-validator/es/messages.js":
- /*!*****************************************************!*\
- !*** ./node_modules/async-validator/es/messages.js ***!
- \*****************************************************/
- /*! exports provided: newMessages, messages */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newMessages", function() { return newMessages; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "messages", function() { return messages; });
- function newMessages() {
- return {
- 'default': 'Validation error on field %s',
- required: '%s is required',
- 'enum': '%s must be one of %s',
- whitespace: '%s cannot be empty',
- date: {
- format: '%s date %s is invalid for format %s',
- parse: '%s date could not be parsed, %s is invalid ',
- invalid: '%s date %s is invalid'
- },
- types: {
- string: '%s is not a %s',
- method: '%s is not a %s (function)',
- array: '%s is not an %s',
- object: '%s is not an %s',
- number: '%s is not a %s',
- date: '%s is not a %s',
- boolean: '%s is not a %s',
- integer: '%s is not an %s',
- float: '%s is not a %s',
- regexp: '%s is not a valid %s',
- email: '%s is not a valid %s',
- url: '%s is not a valid %s',
- hex: '%s is not a valid %s'
- },
- string: {
- len: '%s must be exactly %s characters',
- min: '%s must be at least %s characters',
- max: '%s cannot be longer than %s characters',
- range: '%s must be between %s and %s characters'
- },
- number: {
- len: '%s must equal %s',
- min: '%s cannot be less than %s',
- max: '%s cannot be greater than %s',
- range: '%s must be between %s and %s'
- },
- array: {
- len: '%s must be exactly %s in length',
- min: '%s cannot be less than %s in length',
- max: '%s cannot be greater than %s in length',
- range: '%s must be between %s and %s in length'
- },
- pattern: {
- mismatch: '%s value %s does not match pattern %s'
- },
- clone: function clone() {
- var cloned = JSON.parse(JSON.stringify(this));
- cloned.clone = this.clone;
- return cloned;
- }
- };
- }
- var messages = newMessages();
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/enum.js":
- /*!******************************************************!*\
- !*** ./node_modules/async-validator/es/rule/enum.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- var ENUM = 'enum';
- /**
- * Rule for validating a value exists in an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable(rule, value, source, errors, options) {
- rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
- if (rule[ENUM].indexOf(value) === -1) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (enumerable);
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/index.js":
- /*!*******************************************************!*\
- !*** ./node_modules/async-validator/es/rule/index.js ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js");
- /* harmony import */ var _whitespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whitespace */ "./node_modules/async-validator/es/rule/whitespace.js");
- /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/rule/type.js");
- /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./range */ "./node_modules/async-validator/es/rule/range.js");
- /* harmony import */ var _enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/rule/enum.js");
- /* harmony import */ var _pattern__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/rule/pattern.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- required: _required__WEBPACK_IMPORTED_MODULE_0__["default"],
- whitespace: _whitespace__WEBPACK_IMPORTED_MODULE_1__["default"],
- type: _type__WEBPACK_IMPORTED_MODULE_2__["default"],
- range: _range__WEBPACK_IMPORTED_MODULE_3__["default"],
- 'enum': _enum__WEBPACK_IMPORTED_MODULE_4__["default"],
- pattern: _pattern__WEBPACK_IMPORTED_MODULE_5__["default"]
- });
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/pattern.js":
- /*!*********************************************************!*\
- !*** ./node_modules/async-validator/es/rule/pattern.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Rule for validating a regular expression pattern.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern(rule, value, source, errors, options) {
- if (rule.pattern) {
- if (rule.pattern instanceof RegExp) {
- // if a RegExp instance is passed, reset `lastIndex` in case its `global`
- // flag is accidentally set to `true`, which in a validation scenario
- // is not necessary and the result might be misleading
- rule.pattern.lastIndex = 0;
- if (!rule.pattern.test(value)) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- } else if (typeof rule.pattern === 'string') {
- var _pattern = new RegExp(rule.pattern);
- if (!_pattern.test(value)) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- }
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (pattern);
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/range.js":
- /*!*******************************************************!*\
- !*** ./node_modules/async-validator/es/rule/range.js ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Rule for validating minimum and maximum allowed values.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function range(rule, value, source, errors, options) {
- var len = typeof rule.len === 'number';
- var min = typeof rule.min === 'number';
- var max = typeof rule.max === 'number';
- // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
- var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
- var val = value;
- var key = null;
- var num = typeof value === 'number';
- var str = typeof value === 'string';
- var arr = Array.isArray(value);
- if (num) {
- key = 'number';
- } else if (str) {
- key = 'string';
- } else if (arr) {
- key = 'array';
- }
- // if the value is not of a supported type for range validation
- // the validation rule rule should use the
- // type property to also test for a particular type
- if (!key) {
- return false;
- }
- if (arr) {
- val = value.length;
- }
- if (str) {
- // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
- val = value.replace(spRegexp, '_').length;
- }
- if (len) {
- if (val !== rule.len) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].len, rule.fullField, rule.len));
- }
- } else if (min && !max && val < rule.min) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].min, rule.fullField, rule.min));
- } else if (max && !min && val > rule.max) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].max, rule.fullField, rule.max));
- } else if (min && max && (val < rule.min || val > rule.max)) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].range, rule.fullField, rule.min, rule.max));
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (range);
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/required.js":
- /*!**********************************************************!*\
- !*** ./node_modules/async-validator/es/rule/required.js ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Rule for validating required fields.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function required(rule, value, source, errors, options, type) {
- if (rule.required && (!source.hasOwnProperty(rule.field) || _util__WEBPACK_IMPORTED_MODULE_0__["isEmptyValue"](value, type || rule.type))) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.required, rule.fullField));
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (required);
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/type.js":
- /*!******************************************************!*\
- !*** ./node_modules/async-validator/es/rule/type.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js");
- /* eslint max-len:0 */
- var pattern = {
- // http://emailregex.com/
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
- url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'),
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- };
- var types = {
- integer: function integer(value) {
- return types.number(value) && parseInt(value, 10) === value;
- },
- float: function float(value) {
- return types.number(value) && !types.integer(value);
- },
- array: function array(value) {
- return Array.isArray(value);
- },
- regexp: function regexp(value) {
- if (value instanceof RegExp) {
- return true;
- }
- try {
- return !!new RegExp(value);
- } catch (e) {
- return false;
- }
- },
- date: function date(value) {
- return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
- },
- number: function number(value) {
- if (isNaN(value)) {
- return false;
- }
- return typeof value === 'number';
- },
- object: function object(value) {
- return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) === 'object' && !types.array(value);
- },
- method: function method(value) {
- return typeof value === 'function';
- },
- email: function email(value) {
- return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
- },
- url: function url(value) {
- return typeof value === 'string' && !!value.match(pattern.url);
- },
- hex: function hex(value) {
- return typeof value === 'string' && !!value.match(pattern.hex);
- }
- };
- /**
- * Rule for validating the type of a value.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function type(rule, value, source, errors, options) {
- if (rule.required && value === undefined) {
- Object(_required__WEBPACK_IMPORTED_MODULE_2__["default"])(rule, value, source, errors, options);
- return;
- }
- var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
- var ruleType = rule.type;
- if (custom.indexOf(ruleType) > -1) {
- if (!types[ruleType](value)) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_1__["format"](options.messages.types[ruleType], rule.fullField, rule.type));
- }
- // straight typeof check
- } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) !== rule.type) {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_1__["format"](options.messages.types[ruleType], rule.fullField, rule.type));
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (type);
- /***/ }),
- /***/ "./node_modules/async-validator/es/rule/whitespace.js":
- /*!************************************************************!*\
- !*** ./node_modules/async-validator/es/rule/whitespace.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Rule for validating whitespace.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function whitespace(rule, value, source, errors, options) {
- if (/^\s+$/.test(value) || value === '') {
- errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.whitespace, rule.fullField));
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (whitespace);
- /***/ }),
- /***/ "./node_modules/async-validator/es/util.js":
- /*!*************************************************!*\
- !*** ./node_modules/async-validator/es/util.js ***!
- \*************************************************/
- /*! exports provided: warning, format, isEmptyValue, isEmptyObject, asyncMap, complementError, deepMerge */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyValue", function() { return isEmptyValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyObject", function() { return isEmptyObject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asyncMap", function() { return asyncMap; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "complementError", function() { return complementError; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepMerge", function() { return deepMerge; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- var formatRegExp = /%[sdj%]/g;
- var warning = function warning() {};
- // don't print warning message when in production env or node runtime
- if ( true && typeof window !== 'undefined' && typeof document !== 'undefined') {
- warning = function warning(type, errors) {
- if (typeof console !== 'undefined' && console.warn) {
- if (errors.every(function (e) {
- return typeof e === 'string';
- })) {
- console.warn(type, errors);
- }
- }
- };
- }
- function format() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var i = 1;
- var f = args[0];
- var len = args.length;
- if (typeof f === 'function') {
- return f.apply(null, args.slice(1));
- }
- if (typeof f === 'string') {
- var str = String(f).replace(formatRegExp, function (x) {
- if (x === '%%') {
- return '%';
- }
- if (i >= len) {
- return x;
- }
- switch (x) {
- case '%s':
- return String(args[i++]);
- case '%d':
- return Number(args[i++]);
- case '%j':
- try {
- return JSON.stringify(args[i++]);
- } catch (_) {
- return '[Circular]';
- }
- break;
- default:
- return x;
- }
- });
- for (var arg = args[i]; i < len; arg = args[++i]) {
- str += ' ' + arg;
- }
- return str;
- }
- return f;
- }
- function isNativeStringType(type) {
- return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
- }
- function isEmptyValue(value, type) {
- if (value === undefined || value === null) {
- return true;
- }
- if (type === 'array' && Array.isArray(value) && !value.length) {
- return true;
- }
- if (isNativeStringType(type) && typeof value === 'string' && !value) {
- return true;
- }
- return false;
- }
- function isEmptyObject(obj) {
- return Object.keys(obj).length === 0;
- }
- function asyncParallelArray(arr, func, callback) {
- var results = [];
- var total = 0;
- var arrLength = arr.length;
- function count(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === arrLength) {
- callback(results);
- }
- }
- arr.forEach(function (a) {
- func(a, count);
- });
- }
- function asyncSerialArray(arr, func, callback) {
- var index = 0;
- var arrLength = arr.length;
- function next(errors) {
- if (errors && errors.length) {
- callback(errors);
- return;
- }
- var original = index;
- index = index + 1;
- if (original < arrLength) {
- func(arr[original], next);
- } else {
- callback([]);
- }
- }
- next([]);
- }
- function flattenObjArr(objArr) {
- var ret = [];
- Object.keys(objArr).forEach(function (k) {
- ret.push.apply(ret, objArr[k]);
- });
- return ret;
- }
- function asyncMap(objArr, option, func, callback) {
- if (option.first) {
- var flattenArr = flattenObjArr(objArr);
- return asyncSerialArray(flattenArr, func, callback);
- }
- var firstFields = option.firstFields || [];
- if (firstFields === true) {
- firstFields = Object.keys(objArr);
- }
- var objArrKeys = Object.keys(objArr);
- var objArrLength = objArrKeys.length;
- var total = 0;
- var results = [];
- var next = function next(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === objArrLength) {
- callback(results);
- }
- };
- objArrKeys.forEach(function (key) {
- var arr = objArr[key];
- if (firstFields.indexOf(key) !== -1) {
- asyncSerialArray(arr, func, next);
- } else {
- asyncParallelArray(arr, func, next);
- }
- });
- }
- function complementError(rule) {
- return function (oe) {
- if (oe && oe.message) {
- oe.field = oe.field || rule.fullField;
- return oe;
- }
- return {
- message: oe,
- field: oe.field || rule.fullField
- };
- };
- }
- function deepMerge(target, source) {
- if (source) {
- for (var s in source) {
- if (source.hasOwnProperty(s)) {
- var value = source[s];
- if ((typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(value)) === 'object' && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(target[s]) === 'object') {
- target[s] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target[s], value);
- } else {
- target[s] = value;
- }
- }
- }
- }
- return target;
- }
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/array.js":
- /*!************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/array.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates an array.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function array(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'array') && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, 'array');
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'array')) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (array);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/boolean.js":
- /*!**************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/boolean.js ***!
- \**************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /**
- * Validates a boolean.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function boolean(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_0__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_1__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_1__["default"].type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (boolean);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/date.js":
- /*!***********************************************************!*\
- !*** ./node_modules/async-validator/es/validator/date.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- function date(rule, value, callback, source, options) {
- // console.log('integer rule called %j', rule);
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- // console.log('validate on %s value', value);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value)) {
- var dateObject = void 0;
- if (typeof value === 'number') {
- dateObject = new Date(value);
- } else {
- dateObject = value;
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, dateObject, source, errors, options);
- if (dateObject) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, dateObject.getTime(), source, errors, options);
- }
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (date);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/enum.js":
- /*!***********************************************************!*\
- !*** ./node_modules/async-validator/es/validator/enum.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- var ENUM = 'enum';
- /**
- * Validates an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"][ENUM](rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (enumerable);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/float.js":
- /*!************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/float.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates a number is a floating point number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function floatFn(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (floatFn);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/index.js":
- /*!************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/index.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./string */ "./node_modules/async-validator/es/validator/string.js");
- /* harmony import */ var _method__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./method */ "./node_modules/async-validator/es/validator/method.js");
- /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "./node_modules/async-validator/es/validator/number.js");
- /* harmony import */ var _boolean__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./boolean */ "./node_modules/async-validator/es/validator/boolean.js");
- /* harmony import */ var _regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./regexp */ "./node_modules/async-validator/es/validator/regexp.js");
- /* harmony import */ var _integer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./integer */ "./node_modules/async-validator/es/validator/integer.js");
- /* harmony import */ var _float__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./float */ "./node_modules/async-validator/es/validator/float.js");
- /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./array */ "./node_modules/async-validator/es/validator/array.js");
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object */ "./node_modules/async-validator/es/validator/object.js");
- /* harmony import */ var _enum__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/validator/enum.js");
- /* harmony import */ var _pattern__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/validator/pattern.js");
- /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./date */ "./node_modules/async-validator/es/validator/date.js");
- /* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/validator/required.js");
- /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/validator/type.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- string: _string__WEBPACK_IMPORTED_MODULE_0__["default"],
- method: _method__WEBPACK_IMPORTED_MODULE_1__["default"],
- number: _number__WEBPACK_IMPORTED_MODULE_2__["default"],
- boolean: _boolean__WEBPACK_IMPORTED_MODULE_3__["default"],
- regexp: _regexp__WEBPACK_IMPORTED_MODULE_4__["default"],
- integer: _integer__WEBPACK_IMPORTED_MODULE_5__["default"],
- float: _float__WEBPACK_IMPORTED_MODULE_6__["default"],
- array: _array__WEBPACK_IMPORTED_MODULE_7__["default"],
- object: _object__WEBPACK_IMPORTED_MODULE_8__["default"],
- 'enum': _enum__WEBPACK_IMPORTED_MODULE_9__["default"],
- pattern: _pattern__WEBPACK_IMPORTED_MODULE_10__["default"],
- date: _date__WEBPACK_IMPORTED_MODULE_11__["default"],
- url: _type__WEBPACK_IMPORTED_MODULE_13__["default"],
- hex: _type__WEBPACK_IMPORTED_MODULE_13__["default"],
- email: _type__WEBPACK_IMPORTED_MODULE_13__["default"],
- required: _required__WEBPACK_IMPORTED_MODULE_12__["default"]
- });
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/integer.js":
- /*!**************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/integer.js ***!
- \**************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates a number is an integer.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function integer(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (integer);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/method.js":
- /*!*************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/method.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates a function.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function method(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (method);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/number.js":
- /*!*************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/number.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates a number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function number(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (number);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/object.js":
- /*!*************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/object.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates an object.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function object(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (value !== undefined) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (object);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/pattern.js":
- /*!**************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/pattern.js ***!
- \**************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates a regular expression pattern.
- *
- * Performs validation when a rule only contains
- * a pattern property but is not declared as a string type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string') && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string')) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].pattern(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (pattern);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/regexp.js":
- /*!*************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/regexp.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Validates the regular expression type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function regexp(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options);
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value)) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (regexp);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/required.js":
- /*!***************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/required.js ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- function required(rule, value, callback, source, options) {
- var errors = [];
- var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value);
- _rule___WEBPACK_IMPORTED_MODULE_1__["default"].required(rule, value, source, errors, options, type);
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (required);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/string.js":
- /*!*************************************************************!*\
- !*** ./node_modules/async-validator/es/validator/string.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- /**
- * Performs validation for string types.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function string(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string') && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, 'string');
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string')) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options);
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].pattern(rule, value, source, errors, options);
- if (rule.whitespace === true) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].whitespace(rule, value, source, errors, options);
- }
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (string);
- /***/ }),
- /***/ "./node_modules/async-validator/es/validator/type.js":
- /*!***********************************************************!*\
- !*** ./node_modules/async-validator/es/validator/type.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js");
- function type(rule, value, callback, source, options) {
- var ruleType = rule.type;
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, ruleType) && !rule.required) {
- return callback();
- }
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, ruleType);
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, ruleType)) {
- _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /* harmony default export */ __webpack_exports__["default"] = (type);
- /***/ }),
- /***/ "./node_modules/axios/index.js":
- /*!*************************************!*\
- !*** ./node_modules/axios/index.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
- /***/ }),
- /***/ "./node_modules/axios/lib/adapters/xhr.js":
- /*!************************************************!*\
- !*** ./node_modules/axios/lib/adapters/xhr.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
- var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
- var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
- var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
- var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
- var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
- var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
- module.exports = function xhrAdapter(config) {
- return new Promise(function dispatchXhrRequest(resolve, reject) {
- var requestData = config.data;
- var requestHeaders = config.headers;
- if (utils.isFormData(requestData)) {
- delete requestHeaders['Content-Type']; // Let the browser set it
- }
- if (
- (utils.isBlob(requestData) || utils.isFile(requestData)) &&
- requestData.type
- ) {
- delete requestHeaders['Content-Type']; // Let the browser set it
- }
- var request = new XMLHttpRequest();
- // HTTP basic authentication
- if (config.auth) {
- var username = config.auth.username || '';
- var password = unescape(encodeURIComponent(config.auth.password)) || '';
- requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
- }
- var fullPath = buildFullPath(config.baseURL, config.url);
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
- // Set the request timeout in MS
- request.timeout = config.timeout;
- // Listen for ready state
- request.onreadystatechange = function handleLoad() {
- if (!request || request.readyState !== 4) {
- return;
- }
- // The request errored out and we didn't get a response, this will be
- // handled by onerror instead
- // With one exception: request that using file: protocol, most browsers
- // will return status as 0 even though it's a successful request
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
- return;
- }
- // Prepare the response
- var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
- var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
- var response = {
- data: responseData,
- status: request.status,
- statusText: request.statusText,
- headers: responseHeaders,
- config: config,
- request: request
- };
- settle(resolve, reject, response);
- // Clean up request
- request = null;
- };
- // Handle browser request cancellation (as opposed to a manual cancellation)
- request.onabort = function handleAbort() {
- if (!request) {
- return;
- }
- reject(createError('Request aborted', config, 'ECONNABORTED', request));
- // Clean up request
- request = null;
- };
- // Handle low level network errors
- request.onerror = function handleError() {
- // Real errors are hidden from us by the browser
- // onerror should only fire if it's a network error
- reject(createError('Network Error', config, null, request));
- // Clean up request
- request = null;
- };
- // Handle timeout
- request.ontimeout = function handleTimeout() {
- var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
- if (config.timeoutErrorMessage) {
- timeoutErrorMessage = config.timeoutErrorMessage;
- }
- reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
- request));
- // Clean up request
- request = null;
- };
- // Add xsrf header
- // This is only done if running in a standard browser environment.
- // Specifically not if we're in a web worker, or react-native.
- if (utils.isStandardBrowserEnv()) {
- // Add xsrf header
- var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
- cookies.read(config.xsrfCookieName) :
- undefined;
- if (xsrfValue) {
- requestHeaders[config.xsrfHeaderName] = xsrfValue;
- }
- }
- // Add headers to the request
- if ('setRequestHeader' in request) {
- utils.forEach(requestHeaders, function setRequestHeader(val, key) {
- if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
- // Remove Content-Type if data is undefined
- delete requestHeaders[key];
- } else {
- // Otherwise add header to the request
- request.setRequestHeader(key, val);
- }
- });
- }
- // Add withCredentials to request if needed
- if (!utils.isUndefined(config.withCredentials)) {
- request.withCredentials = !!config.withCredentials;
- }
- // Add responseType to request if needed
- if (config.responseType) {
- try {
- request.responseType = config.responseType;
- } catch (e) {
- // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
- // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
- if (config.responseType !== 'json') {
- throw e;
- }
- }
- }
- // Handle progress if needed
- if (typeof config.onDownloadProgress === 'function') {
- request.addEventListener('progress', config.onDownloadProgress);
- }
- // Not all browsers support upload events
- if (typeof config.onUploadProgress === 'function' && request.upload) {
- request.upload.addEventListener('progress', config.onUploadProgress);
- }
- if (config.cancelToken) {
- // Handle cancellation
- config.cancelToken.promise.then(function onCanceled(cancel) {
- if (!request) {
- return;
- }
- request.abort();
- reject(cancel);
- // Clean up request
- request = null;
- });
- }
- if (!requestData) {
- requestData = null;
- }
- // Send the request
- request.send(requestData);
- });
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/axios.js":
- /*!*****************************************!*\
- !*** ./node_modules/axios/lib/axios.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
- var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
- var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
- var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
- var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
- /**
- * Create an instance of Axios
- *
- * @param {Object} defaultConfig The default config for the instance
- * @return {Axios} A new instance of Axios
- */
- function createInstance(defaultConfig) {
- var context = new Axios(defaultConfig);
- var instance = bind(Axios.prototype.request, context);
- // Copy axios.prototype to instance
- utils.extend(instance, Axios.prototype, context);
- // Copy context to instance
- utils.extend(instance, context);
- return instance;
- }
- // Create the default instance to be exported
- var axios = createInstance(defaults);
- // Expose Axios class to allow class inheritance
- axios.Axios = Axios;
- // Factory for creating new instances
- axios.create = function create(instanceConfig) {
- return createInstance(mergeConfig(axios.defaults, instanceConfig));
- };
- // Expose Cancel & CancelToken
- axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
- axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
- axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
- // Expose all/spread
- axios.all = function all(promises) {
- return Promise.all(promises);
- };
- axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
- module.exports = axios;
- // Allow use of default import syntax in TypeScript
- module.exports.default = axios;
- /***/ }),
- /***/ "./node_modules/axios/lib/cancel/Cancel.js":
- /*!*************************************************!*\
- !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * A `Cancel` is an object that is thrown when an operation is canceled.
- *
- * @class
- * @param {string=} message The message.
- */
- function Cancel(message) {
- this.message = message;
- }
- Cancel.prototype.toString = function toString() {
- return 'Cancel' + (this.message ? ': ' + this.message : '');
- };
- Cancel.prototype.__CANCEL__ = true;
- module.exports = Cancel;
- /***/ }),
- /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
- /*!******************************************************!*\
- !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
- /**
- * A `CancelToken` is an object that can be used to request cancellation of an operation.
- *
- * @class
- * @param {Function} executor The executor function.
- */
- function CancelToken(executor) {
- if (typeof executor !== 'function') {
- throw new TypeError('executor must be a function.');
- }
- var resolvePromise;
- this.promise = new Promise(function promiseExecutor(resolve) {
- resolvePromise = resolve;
- });
- var token = this;
- executor(function cancel(message) {
- if (token.reason) {
- // Cancellation has already been requested
- return;
- }
- token.reason = new Cancel(message);
- resolvePromise(token.reason);
- });
- }
- /**
- * Throws a `Cancel` if cancellation has been requested.
- */
- CancelToken.prototype.throwIfRequested = function throwIfRequested() {
- if (this.reason) {
- throw this.reason;
- }
- };
- /**
- * Returns an object that contains a new `CancelToken` and a function that, when called,
- * cancels the `CancelToken`.
- */
- CancelToken.source = function source() {
- var cancel;
- var token = new CancelToken(function executor(c) {
- cancel = c;
- });
- return {
- token: token,
- cancel: cancel
- };
- };
- module.exports = CancelToken;
- /***/ }),
- /***/ "./node_modules/axios/lib/cancel/isCancel.js":
- /*!***************************************************!*\
- !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- module.exports = function isCancel(value) {
- return !!(value && value.__CANCEL__);
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/Axios.js":
- /*!**********************************************!*\
- !*** ./node_modules/axios/lib/core/Axios.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
- var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
- var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
- var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
- /**
- * Create a new instance of Axios
- *
- * @param {Object} instanceConfig The default config for the instance
- */
- function Axios(instanceConfig) {
- this.defaults = instanceConfig;
- this.interceptors = {
- request: new InterceptorManager(),
- response: new InterceptorManager()
- };
- }
- /**
- * Dispatch a request
- *
- * @param {Object} config The config specific for this request (merged with this.defaults)
- */
- Axios.prototype.request = function request(config) {
- /*eslint no-param-reassign:0*/
- // Allow for axios('example/url'[, config]) a la fetch API
- if (typeof config === 'string') {
- config = arguments[1] || {};
- config.url = arguments[0];
- } else {
- config = config || {};
- }
- config = mergeConfig(this.defaults, config);
- // Set config.method
- if (config.method) {
- config.method = config.method.toLowerCase();
- } else if (this.defaults.method) {
- config.method = this.defaults.method.toLowerCase();
- } else {
- config.method = 'get';
- }
- // Hook up interceptors middleware
- var chain = [dispatchRequest, undefined];
- var promise = Promise.resolve(config);
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
- chain.unshift(interceptor.fulfilled, interceptor.rejected);
- });
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
- chain.push(interceptor.fulfilled, interceptor.rejected);
- });
- while (chain.length) {
- promise = promise.then(chain.shift(), chain.shift());
- }
- return promise;
- };
- Axios.prototype.getUri = function getUri(config) {
- config = mergeConfig(this.defaults, config);
- return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
- };
- // Provide aliases for supported request methods
- utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
- /*eslint func-names:0*/
- Axios.prototype[method] = function(url, config) {
- return this.request(mergeConfig(config || {}, {
- method: method,
- url: url
- }));
- };
- });
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
- /*eslint func-names:0*/
- Axios.prototype[method] = function(url, data, config) {
- return this.request(mergeConfig(config || {}, {
- method: method,
- url: url,
- data: data
- }));
- };
- });
- module.exports = Axios;
- /***/ }),
- /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
- /*!***********************************************************!*\
- !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- function InterceptorManager() {
- this.handlers = [];
- }
- /**
- * Add a new interceptor to the stack
- *
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
- * @param {Function} rejected The function to handle `reject` for a `Promise`
- *
- * @return {Number} An ID used to remove interceptor later
- */
- InterceptorManager.prototype.use = function use(fulfilled, rejected) {
- this.handlers.push({
- fulfilled: fulfilled,
- rejected: rejected
- });
- return this.handlers.length - 1;
- };
- /**
- * Remove an interceptor from the stack
- *
- * @param {Number} id The ID that was returned by `use`
- */
- InterceptorManager.prototype.eject = function eject(id) {
- if (this.handlers[id]) {
- this.handlers[id] = null;
- }
- };
- /**
- * Iterate over all the registered interceptors
- *
- * This method is particularly useful for skipping over any
- * interceptors that may have become `null` calling `eject`.
- *
- * @param {Function} fn The function to call for each interceptor
- */
- InterceptorManager.prototype.forEach = function forEach(fn) {
- utils.forEach(this.handlers, function forEachHandler(h) {
- if (h !== null) {
- fn(h);
- }
- });
- };
- module.exports = InterceptorManager;
- /***/ }),
- /***/ "./node_modules/axios/lib/core/buildFullPath.js":
- /*!******************************************************!*\
- !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
- var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
- /**
- * Creates a new URL by combining the baseURL with the requestedURL,
- * only when the requestedURL is not already an absolute URL.
- * If the requestURL is absolute, this function returns the requestedURL untouched.
- *
- * @param {string} baseURL The base URL
- * @param {string} requestedURL Absolute or relative URL to combine
- * @returns {string} The combined full path
- */
- module.exports = function buildFullPath(baseURL, requestedURL) {
- if (baseURL && !isAbsoluteURL(requestedURL)) {
- return combineURLs(baseURL, requestedURL);
- }
- return requestedURL;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/createError.js":
- /*!****************************************************!*\
- !*** ./node_modules/axios/lib/core/createError.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
- /**
- * Create an Error with the specified message, config, error code, request and response.
- *
- * @param {string} message The error message.
- * @param {Object} config The config.
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
- * @param {Object} [request] The request.
- * @param {Object} [response] The response.
- * @returns {Error} The created error.
- */
- module.exports = function createError(message, config, code, request, response) {
- var error = new Error(message);
- return enhanceError(error, config, code, request, response);
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
- /*!********************************************************!*\
- !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
- var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
- var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
- /**
- * Throws a `Cancel` if cancellation has been requested.
- */
- function throwIfCancellationRequested(config) {
- if (config.cancelToken) {
- config.cancelToken.throwIfRequested();
- }
- }
- /**
- * Dispatch a request to the server using the configured adapter.
- *
- * @param {object} config The config that is to be used for the request
- * @returns {Promise} The Promise to be fulfilled
- */
- module.exports = function dispatchRequest(config) {
- throwIfCancellationRequested(config);
- // Ensure headers exist
- config.headers = config.headers || {};
- // Transform request data
- config.data = transformData(
- config.data,
- config.headers,
- config.transformRequest
- );
- // Flatten headers
- config.headers = utils.merge(
- config.headers.common || {},
- config.headers[config.method] || {},
- config.headers
- );
- utils.forEach(
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
- function cleanHeaderConfig(method) {
- delete config.headers[method];
- }
- );
- var adapter = config.adapter || defaults.adapter;
- return adapter(config).then(function onAdapterResolution(response) {
- throwIfCancellationRequested(config);
- // Transform response data
- response.data = transformData(
- response.data,
- response.headers,
- config.transformResponse
- );
- return response;
- }, function onAdapterRejection(reason) {
- if (!isCancel(reason)) {
- throwIfCancellationRequested(config);
- // Transform response data
- if (reason && reason.response) {
- reason.response.data = transformData(
- reason.response.data,
- reason.response.headers,
- config.transformResponse
- );
- }
- }
- return Promise.reject(reason);
- });
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/enhanceError.js":
- /*!*****************************************************!*\
- !*** ./node_modules/axios/lib/core/enhanceError.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Update an Error with the specified config, error code, and response.
- *
- * @param {Error} error The error to update.
- * @param {Object} config The config.
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
- * @param {Object} [request] The request.
- * @param {Object} [response] The response.
- * @returns {Error} The error.
- */
- module.exports = function enhanceError(error, config, code, request, response) {
- error.config = config;
- if (code) {
- error.code = code;
- }
- error.request = request;
- error.response = response;
- error.isAxiosError = true;
- error.toJSON = function toJSON() {
- return {
- // Standard
- message: this.message,
- name: this.name,
- // Microsoft
- description: this.description,
- number: this.number,
- // Mozilla
- fileName: this.fileName,
- lineNumber: this.lineNumber,
- columnNumber: this.columnNumber,
- stack: this.stack,
- // Axios
- config: this.config,
- code: this.code
- };
- };
- return error;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/mergeConfig.js":
- /*!****************************************************!*\
- !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
- /**
- * Config-specific merge-function which creates a new config-object
- * by merging two configuration objects together.
- *
- * @param {Object} config1
- * @param {Object} config2
- * @returns {Object} New object resulting from merging config2 to config1
- */
- module.exports = function mergeConfig(config1, config2) {
- // eslint-disable-next-line no-param-reassign
- config2 = config2 || {};
- var config = {};
- var valueFromConfig2Keys = ['url', 'method', 'data'];
- var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
- var defaultToConfig2Keys = [
- 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
- 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
- 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
- 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
- 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
- ];
- var directMergeKeys = ['validateStatus'];
- function getMergedValue(target, source) {
- if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
- return utils.merge(target, source);
- } else if (utils.isPlainObject(source)) {
- return utils.merge({}, source);
- } else if (utils.isArray(source)) {
- return source.slice();
- }
- return source;
- }
- function mergeDeepProperties(prop) {
- if (!utils.isUndefined(config2[prop])) {
- config[prop] = getMergedValue(config1[prop], config2[prop]);
- } else if (!utils.isUndefined(config1[prop])) {
- config[prop] = getMergedValue(undefined, config1[prop]);
- }
- }
- utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
- if (!utils.isUndefined(config2[prop])) {
- config[prop] = getMergedValue(undefined, config2[prop]);
- }
- });
- utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
- utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
- if (!utils.isUndefined(config2[prop])) {
- config[prop] = getMergedValue(undefined, config2[prop]);
- } else if (!utils.isUndefined(config1[prop])) {
- config[prop] = getMergedValue(undefined, config1[prop]);
- }
- });
- utils.forEach(directMergeKeys, function merge(prop) {
- if (prop in config2) {
- config[prop] = getMergedValue(config1[prop], config2[prop]);
- } else if (prop in config1) {
- config[prop] = getMergedValue(undefined, config1[prop]);
- }
- });
- var axiosKeys = valueFromConfig2Keys
- .concat(mergeDeepPropertiesKeys)
- .concat(defaultToConfig2Keys)
- .concat(directMergeKeys);
- var otherKeys = Object
- .keys(config1)
- .concat(Object.keys(config2))
- .filter(function filterAxiosKeys(key) {
- return axiosKeys.indexOf(key) === -1;
- });
- utils.forEach(otherKeys, mergeDeepProperties);
- return config;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/settle.js":
- /*!***********************************************!*\
- !*** ./node_modules/axios/lib/core/settle.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
- /**
- * Resolve or reject a Promise based on response status.
- *
- * @param {Function} resolve A function that resolves the promise.
- * @param {Function} reject A function that rejects the promise.
- * @param {object} response The response.
- */
- module.exports = function settle(resolve, reject, response) {
- var validateStatus = response.config.validateStatus;
- if (!response.status || !validateStatus || validateStatus(response.status)) {
- resolve(response);
- } else {
- reject(createError(
- 'Request failed with status code ' + response.status,
- response.config,
- null,
- response.request,
- response
- ));
- }
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/core/transformData.js":
- /*!******************************************************!*\
- !*** ./node_modules/axios/lib/core/transformData.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- /**
- * Transform the data for a request or a response
- *
- * @param {Object|String} data The data to be transformed
- * @param {Array} headers The headers for the request or response
- * @param {Array|Function} fns A single function or Array of functions
- * @returns {*} The resulting transformed data
- */
- module.exports = function transformData(data, headers, fns) {
- /*eslint no-param-reassign:0*/
- utils.forEach(fns, function transform(fn) {
- data = fn(data, headers);
- });
- return data;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/defaults.js":
- /*!********************************************!*\
- !*** ./node_modules/axios/lib/defaults.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(process) {
- var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
- var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
- var DEFAULT_CONTENT_TYPE = {
- 'Content-Type': 'application/x-www-form-urlencoded'
- };
- function setContentTypeIfUnset(headers, value) {
- if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
- headers['Content-Type'] = value;
- }
- }
- function getDefaultAdapter() {
- var adapter;
- if (typeof XMLHttpRequest !== 'undefined') {
- // For browsers use XHR adapter
- adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
- } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
- // For node use HTTP adapter
- adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
- }
- return adapter;
- }
- var defaults = {
- adapter: getDefaultAdapter(),
- transformRequest: [function transformRequest(data, headers) {
- normalizeHeaderName(headers, 'Accept');
- normalizeHeaderName(headers, 'Content-Type');
- if (utils.isFormData(data) ||
- utils.isArrayBuffer(data) ||
- utils.isBuffer(data) ||
- utils.isStream(data) ||
- utils.isFile(data) ||
- utils.isBlob(data)
- ) {
- return data;
- }
- if (utils.isArrayBufferView(data)) {
- return data.buffer;
- }
- if (utils.isURLSearchParams(data)) {
- setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
- return data.toString();
- }
- if (utils.isObject(data)) {
- setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
- return JSON.stringify(data);
- }
- return data;
- }],
- transformResponse: [function transformResponse(data) {
- /*eslint no-param-reassign:0*/
- if (typeof data === 'string') {
- try {
- data = JSON.parse(data);
- } catch (e) { /* Ignore */ }
- }
- return data;
- }],
- /**
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
- * timeout is not created.
- */
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- maxBodyLength: -1,
- validateStatus: function validateStatus(status) {
- return status >= 200 && status < 300;
- }
- };
- defaults.headers = {
- common: {
- 'Accept': 'application/json, text/plain, */*'
- }
- };
- utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
- defaults.headers[method] = {};
- });
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
- defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
- });
- module.exports = defaults;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js")))
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/bind.js":
- /*!************************************************!*\
- !*** ./node_modules/axios/lib/helpers/bind.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- module.exports = function bind(fn, thisArg) {
- return function wrap() {
- var args = new Array(arguments.length);
- for (var i = 0; i < args.length; i++) {
- args[i] = arguments[i];
- }
- return fn.apply(thisArg, args);
- };
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/buildURL.js":
- /*!****************************************************!*\
- !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- function encode(val) {
- return encodeURIComponent(val).
- replace(/%3A/gi, ':').
- replace(/%24/g, '$').
- replace(/%2C/gi, ',').
- replace(/%20/g, '+').
- replace(/%5B/gi, '[').
- replace(/%5D/gi, ']');
- }
- /**
- * Build a URL by appending params to the end
- *
- * @param {string} url The base of the url (e.g., http://www.google.com)
- * @param {object} [params] The params to be appended
- * @returns {string} The formatted url
- */
- module.exports = function buildURL(url, params, paramsSerializer) {
- /*eslint no-param-reassign:0*/
- if (!params) {
- return url;
- }
- var serializedParams;
- if (paramsSerializer) {
- serializedParams = paramsSerializer(params);
- } else if (utils.isURLSearchParams(params)) {
- serializedParams = params.toString();
- } else {
- var parts = [];
- utils.forEach(params, function serialize(val, key) {
- if (val === null || typeof val === 'undefined') {
- return;
- }
- if (utils.isArray(val)) {
- key = key + '[]';
- } else {
- val = [val];
- }
- utils.forEach(val, function parseValue(v) {
- if (utils.isDate(v)) {
- v = v.toISOString();
- } else if (utils.isObject(v)) {
- v = JSON.stringify(v);
- }
- parts.push(encode(key) + '=' + encode(v));
- });
- });
- serializedParams = parts.join('&');
- }
- if (serializedParams) {
- var hashmarkIndex = url.indexOf('#');
- if (hashmarkIndex !== -1) {
- url = url.slice(0, hashmarkIndex);
- }
- url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
- }
- return url;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
- /*!*******************************************************!*\
- !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Creates a new URL by combining the specified URLs
- *
- * @param {string} baseURL The base URL
- * @param {string} relativeURL The relative URL
- * @returns {string} The combined URL
- */
- module.exports = function combineURLs(baseURL, relativeURL) {
- return relativeURL
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
- : baseURL;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/cookies.js":
- /*!***************************************************!*\
- !*** ./node_modules/axios/lib/helpers/cookies.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- module.exports = (
- utils.isStandardBrowserEnv() ?
- // Standard browser envs support document.cookie
- (function standardBrowserEnv() {
- return {
- write: function write(name, value, expires, path, domain, secure) {
- var cookie = [];
- cookie.push(name + '=' + encodeURIComponent(value));
- if (utils.isNumber(expires)) {
- cookie.push('expires=' + new Date(expires).toGMTString());
- }
- if (utils.isString(path)) {
- cookie.push('path=' + path);
- }
- if (utils.isString(domain)) {
- cookie.push('domain=' + domain);
- }
- if (secure === true) {
- cookie.push('secure');
- }
- document.cookie = cookie.join('; ');
- },
- read: function read(name) {
- var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
- return (match ? decodeURIComponent(match[3]) : null);
- },
- remove: function remove(name) {
- this.write(name, '', Date.now() - 86400000);
- }
- };
- })() :
- // Non standard browser env (web workers, react-native) lack needed support.
- (function nonStandardBrowserEnv() {
- return {
- write: function write() {},
- read: function read() { return null; },
- remove: function remove() {}
- };
- })()
- );
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
- /*!*********************************************************!*\
- !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Determines whether the specified URL is absolute
- *
- * @param {string} url The URL to test
- * @returns {boolean} True if the specified URL is absolute, otherwise false
- */
- module.exports = function isAbsoluteURL(url) {
- // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
- // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
- // by any combination of letters, digits, plus, period, or hyphen.
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
- /*!***********************************************************!*\
- !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- module.exports = (
- utils.isStandardBrowserEnv() ?
- // Standard browser envs have full support of the APIs needed to test
- // whether the request URL is of the same origin as current location.
- (function standardBrowserEnv() {
- var msie = /(msie|trident)/i.test(navigator.userAgent);
- var urlParsingNode = document.createElement('a');
- var originURL;
- /**
- * Parse a URL to discover it's components
- *
- * @param {String} url The URL to be parsed
- * @returns {Object}
- */
- function resolveURL(url) {
- var href = url;
- if (msie) {
- // IE needs attribute set twice to normalize properties
- urlParsingNode.setAttribute('href', href);
- href = urlParsingNode.href;
- }
- urlParsingNode.setAttribute('href', href);
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
- return {
- href: urlParsingNode.href,
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
- host: urlParsingNode.host,
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
- hostname: urlParsingNode.hostname,
- port: urlParsingNode.port,
- pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
- urlParsingNode.pathname :
- '/' + urlParsingNode.pathname
- };
- }
- originURL = resolveURL(window.location.href);
- /**
- * Determine if a URL shares the same origin as the current location
- *
- * @param {String} requestURL The URL to test
- * @returns {boolean} True if URL shares the same origin, otherwise false
- */
- return function isURLSameOrigin(requestURL) {
- var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
- return (parsed.protocol === originURL.protocol &&
- parsed.host === originURL.host);
- };
- })() :
- // Non standard browser envs (web workers, react-native) lack needed support.
- (function nonStandardBrowserEnv() {
- return function isURLSameOrigin() {
- return true;
- };
- })()
- );
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
- /*!***************************************************************!*\
- !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
- module.exports = function normalizeHeaderName(headers, normalizedName) {
- utils.forEach(headers, function processHeader(value, name) {
- if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
- headers[normalizedName] = value;
- delete headers[name];
- }
- });
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
- /*!********************************************************!*\
- !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
- // Headers whose duplicates are ignored by node
- // c.f. https://nodejs.org/api/http.html#http_message_headers
- var ignoreDuplicateOf = [
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
- 'referer', 'retry-after', 'user-agent'
- ];
- /**
- * Parse headers into an object
- *
- * ```
- * Date: Wed, 27 Aug 2014 08:58:49 GMT
- * Content-Type: application/json
- * Connection: keep-alive
- * Transfer-Encoding: chunked
- * ```
- *
- * @param {String} headers Headers needing to be parsed
- * @returns {Object} Headers parsed into an object
- */
- module.exports = function parseHeaders(headers) {
- var parsed = {};
- var key;
- var val;
- var i;
- if (!headers) { return parsed; }
- utils.forEach(headers.split('\n'), function parser(line) {
- i = line.indexOf(':');
- key = utils.trim(line.substr(0, i)).toLowerCase();
- val = utils.trim(line.substr(i + 1));
- if (key) {
- if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
- return;
- }
- if (key === 'set-cookie') {
- parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
- } else {
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
- }
- }
- });
- return parsed;
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/helpers/spread.js":
- /*!**************************************************!*\
- !*** ./node_modules/axios/lib/helpers/spread.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Syntactic sugar for invoking a function and expanding an array for arguments.
- *
- * Common use case would be to use `Function.prototype.apply`.
- *
- * ```js
- * function f(x, y, z) {}
- * var args = [1, 2, 3];
- * f.apply(null, args);
- * ```
- *
- * With `spread` this example can be re-written.
- *
- * ```js
- * spread(function(x, y, z) {})([1, 2, 3]);
- * ```
- *
- * @param {Function} callback
- * @returns {Function}
- */
- module.exports = function spread(callback) {
- return function wrap(arr) {
- return callback.apply(null, arr);
- };
- };
- /***/ }),
- /***/ "./node_modules/axios/lib/utils.js":
- /*!*****************************************!*\
- !*** ./node_modules/axios/lib/utils.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
- /*global toString:true*/
- // utils is a library of generic helper functions non-specific to axios
- var toString = Object.prototype.toString;
- /**
- * Determine if a value is an Array
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an Array, otherwise false
- */
- function isArray(val) {
- return toString.call(val) === '[object Array]';
- }
- /**
- * Determine if a value is undefined
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if the value is undefined, otherwise false
- */
- function isUndefined(val) {
- return typeof val === 'undefined';
- }
- /**
- * Determine if a value is a Buffer
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Buffer, otherwise false
- */
- function isBuffer(val) {
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
- && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
- }
- /**
- * Determine if a value is an ArrayBuffer
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an ArrayBuffer, otherwise false
- */
- function isArrayBuffer(val) {
- return toString.call(val) === '[object ArrayBuffer]';
- }
- /**
- * Determine if a value is a FormData
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an FormData, otherwise false
- */
- function isFormData(val) {
- return (typeof FormData !== 'undefined') && (val instanceof FormData);
- }
- /**
- * Determine if a value is a view on an ArrayBuffer
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
- */
- function isArrayBufferView(val) {
- var result;
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
- result = ArrayBuffer.isView(val);
- } else {
- result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
- }
- return result;
- }
- /**
- * Determine if a value is a String
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a String, otherwise false
- */
- function isString(val) {
- return typeof val === 'string';
- }
- /**
- * Determine if a value is a Number
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Number, otherwise false
- */
- function isNumber(val) {
- return typeof val === 'number';
- }
- /**
- * Determine if a value is an Object
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an Object, otherwise false
- */
- function isObject(val) {
- return val !== null && typeof val === 'object';
- }
- /**
- * Determine if a value is a plain Object
- *
- * @param {Object} val The value to test
- * @return {boolean} True if value is a plain Object, otherwise false
- */
- function isPlainObject(val) {
- if (toString.call(val) !== '[object Object]') {
- return false;
- }
- var prototype = Object.getPrototypeOf(val);
- return prototype === null || prototype === Object.prototype;
- }
- /**
- * Determine if a value is a Date
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Date, otherwise false
- */
- function isDate(val) {
- return toString.call(val) === '[object Date]';
- }
- /**
- * Determine if a value is a File
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a File, otherwise false
- */
- function isFile(val) {
- return toString.call(val) === '[object File]';
- }
- /**
- * Determine if a value is a Blob
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Blob, otherwise false
- */
- function isBlob(val) {
- return toString.call(val) === '[object Blob]';
- }
- /**
- * Determine if a value is a Function
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Function, otherwise false
- */
- function isFunction(val) {
- return toString.call(val) === '[object Function]';
- }
- /**
- * Determine if a value is a Stream
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Stream, otherwise false
- */
- function isStream(val) {
- return isObject(val) && isFunction(val.pipe);
- }
- /**
- * Determine if a value is a URLSearchParams object
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
- */
- function isURLSearchParams(val) {
- return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
- }
- /**
- * Trim excess whitespace off the beginning and end of a string
- *
- * @param {String} str The String to trim
- * @returns {String} The String freed of excess whitespace
- */
- function trim(str) {
- return str.replace(/^\s*/, '').replace(/\s*$/, '');
- }
- /**
- * Determine if we're running in a standard browser environment
- *
- * This allows axios to run in a web worker, and react-native.
- * Both environments support XMLHttpRequest, but not fully standard globals.
- *
- * web workers:
- * typeof window -> undefined
- * typeof document -> undefined
- *
- * react-native:
- * navigator.product -> 'ReactNative'
- * nativescript
- * navigator.product -> 'NativeScript' or 'NS'
- */
- function isStandardBrowserEnv() {
- if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
- navigator.product === 'NativeScript' ||
- navigator.product === 'NS')) {
- return false;
- }
- return (
- typeof window !== 'undefined' &&
- typeof document !== 'undefined'
- );
- }
- /**
- * Iterate over an Array or an Object invoking a function for each item.
- *
- * If `obj` is an Array callback will be called passing
- * the value, index, and complete array for each item.
- *
- * If 'obj' is an Object callback will be called passing
- * the value, key, and complete object for each property.
- *
- * @param {Object|Array} obj The object to iterate
- * @param {Function} fn The callback to invoke for each item
- */
- function forEach(obj, fn) {
- // Don't bother if no value provided
- if (obj === null || typeof obj === 'undefined') {
- return;
- }
- // Force an array if not already something iterable
- if (typeof obj !== 'object') {
- /*eslint no-param-reassign:0*/
- obj = [obj];
- }
- if (isArray(obj)) {
- // Iterate over array values
- for (var i = 0, l = obj.length; i < l; i++) {
- fn.call(null, obj[i], i, obj);
- }
- } else {
- // Iterate over object keys
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- fn.call(null, obj[key], key, obj);
- }
- }
- }
- }
- /**
- * Accepts varargs expecting each argument to be an object, then
- * immutably merges the properties of each object and returns result.
- *
- * When multiple objects contain the same key the later object in
- * the arguments list will take precedence.
- *
- * Example:
- *
- * ```js
- * var result = merge({foo: 123}, {foo: 456});
- * console.log(result.foo); // outputs 456
- * ```
- *
- * @param {Object} obj1 Object to merge
- * @returns {Object} Result of all merge properties
- */
- function merge(/* obj1, obj2, obj3, ... */) {
- var result = {};
- function assignValue(val, key) {
- if (isPlainObject(result[key]) && isPlainObject(val)) {
- result[key] = merge(result[key], val);
- } else if (isPlainObject(val)) {
- result[key] = merge({}, val);
- } else if (isArray(val)) {
- result[key] = val.slice();
- } else {
- result[key] = val;
- }
- }
- for (var i = 0, l = arguments.length; i < l; i++) {
- forEach(arguments[i], assignValue);
- }
- return result;
- }
- /**
- * Extends object a by mutably adding to it the properties of object b.
- *
- * @param {Object} a The object to be extended
- * @param {Object} b The object to copy properties from
- * @param {Object} thisArg The object to bind function to
- * @return {Object} The resulting value of object a
- */
- function extend(a, b, thisArg) {
- forEach(b, function assignValue(val, key) {
- if (thisArg && typeof val === 'function') {
- a[key] = bind(val, thisArg);
- } else {
- a[key] = val;
- }
- });
- return a;
- }
- /**
- * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
- *
- * @param {string} content with BOM
- * @return {string} content value without BOM
- */
- function stripBOM(content) {
- if (content.charCodeAt(0) === 0xFEFF) {
- content = content.slice(1);
- }
- return content;
- }
- module.exports = {
- isArray: isArray,
- isArrayBuffer: isArrayBuffer,
- isBuffer: isBuffer,
- isFormData: isFormData,
- isArrayBufferView: isArrayBufferView,
- isString: isString,
- isNumber: isNumber,
- isObject: isObject,
- isPlainObject: isPlainObject,
- isUndefined: isUndefined,
- isDate: isDate,
- isFile: isFile,
- isBlob: isBlob,
- isFunction: isFunction,
- isStream: isStream,
- isURLSearchParams: isURLSearchParams,
- isStandardBrowserEnv: isStandardBrowserEnv,
- forEach: forEach,
- merge: merge,
- extend: extend,
- trim: trim,
- stripBOM: stripBOM
- };
- /***/ }),
- /***/ "./node_modules/babel-helper-vue-jsx-merge-props/index.js":
- /*!****************************************************************!*\
- !*** ./node_modules/babel-helper-vue-jsx-merge-props/index.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
- module.exports = function mergeJSXProps (objs) {
- return objs.reduce(function (a, b) {
- var aa, bb, key, nestedKey, temp
- for (key in b) {
- aa = a[key]
- bb = b[key]
- if (aa && nestRE.test(key)) {
- // normalize class
- if (key === 'class') {
- if (typeof aa === 'string') {
- temp = aa
- a[key] = aa = {}
- aa[temp] = true
- }
- if (typeof bb === 'string') {
- temp = bb
- b[key] = bb = {}
- bb[temp] = true
- }
- }
- if (key === 'on' || key === 'nativeOn' || key === 'hook') {
- // merge functions
- for (nestedKey in bb) {
- aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
- }
- } else if (Array.isArray(aa)) {
- a[key] = aa.concat(bb)
- } else if (Array.isArray(bb)) {
- a[key] = [aa].concat(bb)
- } else {
- for (nestedKey in bb) {
- aa[nestedKey] = bb[nestedKey]
- }
- }
- } else {
- a[key] = b[key]
- }
- }
- return a
- }, {})
- }
- function mergeFn (a, b) {
- return function () {
- a && a.apply(this, arguments)
- b && b.apply(this, arguments)
- }
- }
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/object/assign.js":
- /*!*************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/babel-runtime/node_modules/core-js/library/fn/object/assign.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/symbol.js":
- /*!******************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/symbol.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
- /*!***************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/extends.js":
- /*!*******************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/extends.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");
- var _assign2 = _interopRequireDefault(_assign);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- exports.default = _assign2.default || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/typeof.js":
- /*!******************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");
- var _iterator2 = _interopRequireDefault(_iterator);
- var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");
- var _symbol2 = _interopRequireDefault(_symbol);
- var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
- return typeof obj === "undefined" ? "undefined" : _typeof(obj);
- } : function (obj) {
- return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/fn/object/assign.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/fn/object/assign.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.assign.js");
- module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js").Object.assign;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/index.js":
- /*!************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/index.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.symbol.js");
- __webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.to-string.js");
- __webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
- __webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.observable.js");
- module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js").Symbol;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/iterator.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/fn/symbol/iterator.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.string.iterator.js");
- __webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/web.dom.iterable.js");
- module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-ext.js").f('iterator');
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_a-function.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_a-function.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_add-to-unscopables.js":
- /*!************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_add-to-unscopables.js ***!
- \************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function () { /* empty */ };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_array-includes.js":
- /*!********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_array-includes.js ***!
- \********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-length.js");
- var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_cof.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_cof.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js":
- /*!**********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.11' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_ctx.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_ctx.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_a-function.js");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_defined.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_defined.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_dom-create.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_dom-create.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js");
- var document = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-bug-keys.js":
- /*!*******************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-bug-keys.js ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-keys.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-keys.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js");
- var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gops.js");
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js");
- module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js":
- /*!************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js");
- var core = __webpack_require__(/*! ./_core */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js");
- var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_ctx.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
- };
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js":
- /*!***********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js ***!
- \***********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js":
- /*!************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js":
- /*!**********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js");
- module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_html.js":
- /*!**********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_html.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_ie8-dom-define.js":
- /*!********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_ie8-dom-define.js ***!
- \********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js")(function () {
- return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iobject.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_iobject.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(/*! ./_cof */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_cof.js");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-array.js":
- /*!**************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-array.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__(/*! ./_cof */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_cof.js");
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-create.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-create.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var create = __webpack_require__(/*! ./_object-create */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-create.js");
- var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js");
- var IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-define.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-define.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js");
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js");
- var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_redefine.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js");
- var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-create.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js");
- var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gpo.js");
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js")('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
- var returnThis = function () { return this; };
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-step.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-step.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = true;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_meta.js":
- /*!**********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_meta.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var META = __webpack_require__(/*! ./_uid */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js")('meta');
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js").f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js")(function () {
- return isExtensible(Object.preventExtensions({}));
- });
- var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
- };
- var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
- };
- var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
- };
- // add metadata on freeze-family methods calling
- var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
- };
- var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-assign.js":
- /*!*******************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-assign.js ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 19.1.2.1 Object.assign(target, source, ...)
- var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js");
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js");
- var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gops.js");
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-object.js");
- var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iobject.js");
- var $assign = Object.assign;
- // should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js")(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) {
- key = keys[j++];
- if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
- }
- } return T;
- } : $assign;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-create.js":
- /*!*******************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-create.js ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js");
- var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dps.js");
- var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-bug-keys.js");
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_dom-create.js")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__(/*! ./_html */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_html.js").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_ie8-dom-define.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-primitive.js");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dps.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dps.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js");
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js");
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js");
- module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopd.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopd.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-primitive.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_ie8-dom-define.js");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn-ext.js":
- /*!*********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn-ext.js ***!
- \*********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn.js").f;
- var toString = {}.toString;
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
- var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
- };
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys-internal.js");
- var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gops.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gops.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gpo.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gpo.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-object.js");
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
- var ObjectProto = Object.prototype;
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys-internal.js":
- /*!**************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys-internal.js ***!
- \**************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_array-includes.js")(false);
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js":
- /*!*****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys-internal.js");
- var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-bug-keys.js");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js":
- /*!*******************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_redefine.js":
- /*!**************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_redefine.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js");
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js":
- /*!***********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js ***!
- \***********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js").f;
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared-key.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared-key.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__(/*! ./_shared */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared.js")('keys');
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared.js":
- /*!************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__(/*! ./_core */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js");
- var global = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__(/*! ./_library */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_string-at.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_string-at.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-integer.js");
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_defined.js");
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js":
- /*!***********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js ***!
- \***********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-integer.js");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-integer.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-integer.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iobject.js");
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_defined.js");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-length.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-length.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-integer.js");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-object.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-object.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_defined.js");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-primitive.js":
- /*!******************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-primitive.js ***!
- \******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-define.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-define.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js");
- var core = __webpack_require__(/*! ./_core */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_core.js");
- var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js");
- var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-ext.js");
- var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js").f;
- module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-ext.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-ext.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js");
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__(/*! ./_shared */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared.js")('wks');
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js");
- var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.array.iterator.js":
- /*!***********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.array.iterator.js ***!
- \***********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_add-to-unscopables.js");
- var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-step.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.assign.js":
- /*!**********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.assign.js ***!
- \**********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js");
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-assign.js") });
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.to-string.js":
- /*!*************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.object.to-string.js ***!
- \*************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.string.iterator.js":
- /*!************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.string.iterator.js ***!
- \************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_string-at.js")(true);
- // 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(/*! ./_iter-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
- // 21.1.5.2.1 %StringIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) return { value: undefined, done: true };
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
- });
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.symbol.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.symbol.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // ECMAScript 6 symbols shim
- var global = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_has.js");
- var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_descriptors.js");
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js");
- var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_redefine.js");
- var META = __webpack_require__(/*! ./_meta */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_meta.js").KEY;
- var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_fails.js");
- var shared = __webpack_require__(/*! ./_shared */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_shared.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js");
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_uid.js");
- var wks = __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js");
- var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-ext.js");
- var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-define.js");
- var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_enum-keys.js");
- var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-array.js");
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_an-object.js");
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_is-object.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-object.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-iobject.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_to-primitive.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_property-desc.js");
- var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-create.js");
- var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn-ext.js");
- var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopd.js");
- var $GOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gops.js");
- var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-dp.js");
- var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-keys.js");
- var gOPD = $GOPD.f;
- var dP = $DP.f;
- var gOPN = gOPNExt.f;
- var $Symbol = global.Symbol;
- var $JSON = global.JSON;
- var _stringify = $JSON && $JSON.stringify;
- var PROTOTYPE = 'prototype';
- var HIDDEN = wks('_hidden');
- var TO_PRIMITIVE = wks('toPrimitive');
- var isEnum = {}.propertyIsEnumerable;
- var SymbolRegistry = shared('symbol-registry');
- var AllSymbols = shared('symbols');
- var OPSymbols = shared('op-symbols');
- var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
- } : dP;
- var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
- };
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return it instanceof $Symbol;
- };
- var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
- };
- var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
- };
- var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
- };
- // 19.4.1.1 Symbol([description])
- if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- __webpack_require__(/*! ./_object-gopn */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__(/*! ./_object-pie */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
- $GOPS.f = $getOwnPropertySymbols;
- if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js")) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
- }
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
- for (var es6Symbols = (
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
- });
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
- var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
- $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
- return $GOPS.f(toObject(it));
- }
- });
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
- })), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
- });
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
- setToStringTag($Symbol, 'Symbol');
- // 20.2.1.9 Math[@@toStringTag]
- setToStringTag(Math, 'Math', true);
- // 24.3.3 JSON[@@toStringTag]
- setToStringTag(global.JSON, 'JSON', true);
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
- /*!******************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
- \******************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./_wks-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.observable.js":
- /*!**************************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/es7.symbol.observable.js ***!
- \**************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./_wks-define */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks-define.js")('observable');
- /***/ }),
- /***/ "./node_modules/babel-runtime/node_modules/core-js/library/modules/web.dom.iterable.js":
- /*!*********************************************************************************************!*\
- !*** ./node_modules/babel-runtime/node_modules/core-js/library/modules/web.dom.iterable.js ***!
- \*********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./es6.array.iterator */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/es6.array.iterator.js");
- var global = __webpack_require__(/*! ./_global */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_global.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_hide.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js");
- var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/babel-runtime/node_modules/core-js/library/modules/_wks.js")('toStringTag');
- var DOMIterables = ('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').split(',');
- for (var i = 0; i < DOMIterables.length; i++) {
- var NAME = DOMIterables[i];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = Iterators.Array;
- }
- /***/ }),
- /***/ "./node_modules/core-js/internals/a-function.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/a-function.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') {
- throw TypeError(String(it) + ' is not a function');
- } return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/a-possible-prototype.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- module.exports = function (it) {
- if (!isObject(it) && it !== null) {
- throw TypeError("Can't set " + String(it) + ' as a prototype');
- } return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/add-to-unscopables.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/internals/add-to-unscopables.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var UNSCOPABLES = wellKnownSymbol('unscopables');
- var ArrayPrototype = Array.prototype;
- // Array.prototype[@@unscopables]
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
- configurable: true,
- value: create(null)
- });
- }
- // add a key to Array.prototype[@@unscopables]
- module.exports = function (key) {
- ArrayPrototype[UNSCOPABLES][key] = true;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/advance-string-index.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/internals/advance-string-index.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var charAt = __webpack_require__(/*! ../internals/string-multibyte */ "./node_modules/core-js/internals/string-multibyte.js").charAt;
- // `AdvanceStringIndex` abstract operation
- // https://tc39.github.io/ecma262/#sec-advancestringindex
- module.exports = function (S, index, unicode) {
- return index + (unicode ? charAt(S, index).length : 1);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/an-instance.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/an-instance.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it, Constructor, name) {
- if (!(it instanceof Constructor)) {
- throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
- } return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/an-object.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/an-object.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- module.exports = function (it) {
- if (!isObject(it)) {
- throw TypeError(String(it) + ' is not an object');
- } return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-buffer-native.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/array-buffer-native.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-buffer-view-core.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/internals/array-buffer-view-core.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var NATIVE_ARRAY_BUFFER = __webpack_require__(/*! ../internals/array-buffer-native */ "./node_modules/core-js/internals/array-buffer-native.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "./node_modules/core-js/internals/object-get-prototype-of.js");
- var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
- var Int8Array = global.Int8Array;
- var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
- var Uint8ClampedArray = global.Uint8ClampedArray;
- var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
- var TypedArray = Int8Array && getPrototypeOf(Int8Array);
- var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
- var ObjectPrototype = Object.prototype;
- var isPrototypeOf = ObjectPrototype.isPrototypeOf;
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
- var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
- // Fixing native typed arrays in Opera Presto crashes the browser, see #595
- var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
- var TYPED_ARRAY_TAG_REQIRED = false;
- var NAME;
- var TypedArrayConstructorsList = {
- Int8Array: 1,
- Uint8Array: 1,
- Uint8ClampedArray: 1,
- Int16Array: 2,
- Uint16Array: 2,
- Int32Array: 4,
- Uint32Array: 4,
- Float32Array: 4,
- Float64Array: 8
- };
- var isView = function isView(it) {
- var klass = classof(it);
- return klass === 'DataView' || has(TypedArrayConstructorsList, klass);
- };
- var isTypedArray = function (it) {
- return isObject(it) && has(TypedArrayConstructorsList, classof(it));
- };
- var aTypedArray = function (it) {
- if (isTypedArray(it)) return it;
- throw TypeError('Target is not a typed array');
- };
- var aTypedArrayConstructor = function (C) {
- if (setPrototypeOf) {
- if (isPrototypeOf.call(TypedArray, C)) return C;
- } else for (var ARRAY in TypedArrayConstructorsList) if (has(TypedArrayConstructorsList, NAME)) {
- var TypedArrayConstructor = global[ARRAY];
- if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) {
- return C;
- }
- } throw TypeError('Target is not a typed array constructor');
- };
- var exportTypedArrayMethod = function (KEY, property, forced) {
- if (!DESCRIPTORS) return;
- if (forced) for (var ARRAY in TypedArrayConstructorsList) {
- var TypedArrayConstructor = global[ARRAY];
- if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) {
- delete TypedArrayConstructor.prototype[KEY];
- }
- }
- if (!TypedArrayPrototype[KEY] || forced) {
- redefine(TypedArrayPrototype, KEY, forced ? property
- : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);
- }
- };
- var exportTypedArrayStaticMethod = function (KEY, property, forced) {
- var ARRAY, TypedArrayConstructor;
- if (!DESCRIPTORS) return;
- if (setPrototypeOf) {
- if (forced) for (ARRAY in TypedArrayConstructorsList) {
- TypedArrayConstructor = global[ARRAY];
- if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) {
- delete TypedArrayConstructor[KEY];
- }
- }
- if (!TypedArray[KEY] || forced) {
- // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
- try {
- return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property);
- } catch (error) { /* empty */ }
- } else return;
- }
- for (ARRAY in TypedArrayConstructorsList) {
- TypedArrayConstructor = global[ARRAY];
- if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
- redefine(TypedArrayConstructor, KEY, property);
- }
- }
- };
- for (NAME in TypedArrayConstructorsList) {
- if (!global[NAME]) NATIVE_ARRAY_BUFFER_VIEWS = false;
- }
- // WebKit bug - typed arrays constructors prototype is Object.prototype
- if (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) {
- // eslint-disable-next-line no-shadow
- TypedArray = function TypedArray() {
- throw TypeError('Incorrect invocation');
- };
- if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
- if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);
- }
- }
- if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
- TypedArrayPrototype = TypedArray.prototype;
- if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
- if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
- }
- }
- // WebKit bug - one more object in Uint8ClampedArray prototype chain
- if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
- setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
- }
- if (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) {
- TYPED_ARRAY_TAG_REQIRED = true;
- defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () {
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
- } });
- for (NAME in TypedArrayConstructorsList) if (global[NAME]) {
- createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
- }
- }
- module.exports = {
- NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
- TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
- aTypedArray: aTypedArray,
- aTypedArrayConstructor: aTypedArrayConstructor,
- exportTypedArrayMethod: exportTypedArrayMethod,
- exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
- isView: isView,
- isTypedArray: isTypedArray,
- TypedArray: TypedArray,
- TypedArrayPrototype: TypedArrayPrototype
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-buffer.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/array-buffer.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var NATIVE_ARRAY_BUFFER = __webpack_require__(/*! ../internals/array-buffer-native */ "./node_modules/core-js/internals/array-buffer-native.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var redefineAll = __webpack_require__(/*! ../internals/redefine-all */ "./node_modules/core-js/internals/redefine-all.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toIndex = __webpack_require__(/*! ../internals/to-index */ "./node_modules/core-js/internals/to-index.js");
- var IEEE754 = __webpack_require__(/*! ../internals/ieee754 */ "./node_modules/core-js/internals/ieee754.js");
- var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "./node_modules/core-js/internals/object-get-prototype-of.js");
- var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
- var getOwnPropertyNames = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js").f;
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var arrayFill = __webpack_require__(/*! ../internals/array-fill */ "./node_modules/core-js/internals/array-fill.js");
- var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var getInternalState = InternalStateModule.get;
- var setInternalState = InternalStateModule.set;
- var ARRAY_BUFFER = 'ArrayBuffer';
- var DATA_VIEW = 'DataView';
- var PROTOTYPE = 'prototype';
- var WRONG_LENGTH = 'Wrong length';
- var WRONG_INDEX = 'Wrong index';
- var NativeArrayBuffer = global[ARRAY_BUFFER];
- var $ArrayBuffer = NativeArrayBuffer;
- var $DataView = global[DATA_VIEW];
- var $DataViewPrototype = $DataView && $DataView[PROTOTYPE];
- var ObjectPrototype = Object.prototype;
- var RangeError = global.RangeError;
- var packIEEE754 = IEEE754.pack;
- var unpackIEEE754 = IEEE754.unpack;
- var packInt8 = function (number) {
- return [number & 0xFF];
- };
- var packInt16 = function (number) {
- return [number & 0xFF, number >> 8 & 0xFF];
- };
- var packInt32 = function (number) {
- return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];
- };
- var unpackInt32 = function (buffer) {
- return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
- };
- var packFloat32 = function (number) {
- return packIEEE754(number, 23, 4);
- };
- var packFloat64 = function (number) {
- return packIEEE754(number, 52, 8);
- };
- var addGetter = function (Constructor, key) {
- defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState(this)[key]; } });
- };
- var get = function (view, count, index, isLittleEndian) {
- var intIndex = toIndex(index);
- var store = getInternalState(view);
- if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
- var bytes = getInternalState(store.buffer).bytes;
- var start = intIndex + store.byteOffset;
- var pack = bytes.slice(start, start + count);
- return isLittleEndian ? pack : pack.reverse();
- };
- var set = function (view, count, index, conversion, value, isLittleEndian) {
- var intIndex = toIndex(index);
- var store = getInternalState(view);
- if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
- var bytes = getInternalState(store.buffer).bytes;
- var start = intIndex + store.byteOffset;
- var pack = conversion(+value);
- for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1];
- };
- if (!NATIVE_ARRAY_BUFFER) {
- $ArrayBuffer = function ArrayBuffer(length) {
- anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
- var byteLength = toIndex(length);
- setInternalState(this, {
- bytes: arrayFill.call(new Array(byteLength), 0),
- byteLength: byteLength
- });
- if (!DESCRIPTORS) this.byteLength = byteLength;
- };
- $DataView = function DataView(buffer, byteOffset, byteLength) {
- anInstance(this, $DataView, DATA_VIEW);
- anInstance(buffer, $ArrayBuffer, DATA_VIEW);
- var bufferLength = getInternalState(buffer).byteLength;
- var offset = toInteger(byteOffset);
- if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset');
- byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
- if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
- setInternalState(this, {
- buffer: buffer,
- byteLength: byteLength,
- byteOffset: offset
- });
- if (!DESCRIPTORS) {
- this.buffer = buffer;
- this.byteLength = byteLength;
- this.byteOffset = offset;
- }
- };
- if (DESCRIPTORS) {
- addGetter($ArrayBuffer, 'byteLength');
- addGetter($DataView, 'buffer');
- addGetter($DataView, 'byteLength');
- addGetter($DataView, 'byteOffset');
- }
- redefineAll($DataView[PROTOTYPE], {
- getInt8: function getInt8(byteOffset) {
- return get(this, 1, byteOffset)[0] << 24 >> 24;
- },
- getUint8: function getUint8(byteOffset) {
- return get(this, 1, byteOffset)[0];
- },
- getInt16: function getInt16(byteOffset /* , littleEndian */) {
- var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
- return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
- },
- getUint16: function getUint16(byteOffset /* , littleEndian */) {
- var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
- return bytes[1] << 8 | bytes[0];
- },
- getInt32: function getInt32(byteOffset /* , littleEndian */) {
- return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined));
- },
- getUint32: function getUint32(byteOffset /* , littleEndian */) {
- return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0;
- },
- getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
- return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23);
- },
- getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
- return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52);
- },
- setInt8: function setInt8(byteOffset, value) {
- set(this, 1, byteOffset, packInt8, value);
- },
- setUint8: function setUint8(byteOffset, value) {
- set(this, 1, byteOffset, packInt8, value);
- },
- setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
- set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
- },
- setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
- set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
- },
- setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
- },
- setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
- },
- setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
- set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined);
- },
- setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
- set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined);
- }
- });
- } else {
- if (!fails(function () {
- NativeArrayBuffer(1);
- }) || !fails(function () {
- new NativeArrayBuffer(-1); // eslint-disable-line no-new
- }) || fails(function () {
- new NativeArrayBuffer(); // eslint-disable-line no-new
- new NativeArrayBuffer(1.5); // eslint-disable-line no-new
- new NativeArrayBuffer(NaN); // eslint-disable-line no-new
- return NativeArrayBuffer.name != ARRAY_BUFFER;
- })) {
- $ArrayBuffer = function ArrayBuffer(length) {
- anInstance(this, $ArrayBuffer);
- return new NativeArrayBuffer(toIndex(length));
- };
- var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer[PROTOTYPE];
- for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {
- if (!((key = keys[j++]) in $ArrayBuffer)) {
- createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
- }
- }
- ArrayBufferPrototype.constructor = $ArrayBuffer;
- }
- // WebKit bug - the same parent prototype for typed arrays and data view
- if (setPrototypeOf && getPrototypeOf($DataViewPrototype) !== ObjectPrototype) {
- setPrototypeOf($DataViewPrototype, ObjectPrototype);
- }
- // iOS Safari 7.x bug
- var testView = new $DataView(new $ArrayBuffer(2));
- var nativeSetInt8 = $DataViewPrototype.setInt8;
- testView.setInt8(0, 2147483648);
- testView.setInt8(1, 2147483649);
- if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll($DataViewPrototype, {
- setInt8: function setInt8(byteOffset, value) {
- nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
- },
- setUint8: function setUint8(byteOffset, value) {
- nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
- }
- }, { unsafe: true });
- }
- setToStringTag($ArrayBuffer, ARRAY_BUFFER);
- setToStringTag($DataView, DATA_VIEW);
- module.exports = {
- ArrayBuffer: $ArrayBuffer,
- DataView: $DataView
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-copy-within.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/array-copy-within.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var min = Math.min;
- // `Array.prototype.copyWithin` method implementation
- // https://tc39.github.io/ecma262/#sec-array.prototype.copywithin
- module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
- var O = toObject(this);
- var len = toLength(O.length);
- var to = toAbsoluteIndex(target, len);
- var from = toAbsoluteIndex(start, len);
- var end = arguments.length > 2 ? arguments[2] : undefined;
- var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
- var inc = 1;
- if (from < to && to < from + count) {
- inc = -1;
- from += count - 1;
- to += count - 1;
- }
- while (count-- > 0) {
- if (from in O) O[to] = O[from];
- else delete O[to];
- to += inc;
- from += inc;
- } return O;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-fill.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/array-fill.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- // `Array.prototype.fill` method implementation
- // https://tc39.github.io/ecma262/#sec-array.prototype.fill
- module.exports = function fill(value /* , start = 0, end = @length */) {
- var O = toObject(this);
- var length = toLength(O.length);
- var argumentsLength = arguments.length;
- var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
- var end = argumentsLength > 2 ? arguments[2] : undefined;
- var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
- while (endPos > index) O[index++] = value;
- return O;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-for-each.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/array-for-each.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $forEach = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").forEach;
- var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var STRICT_METHOD = arrayMethodIsStrict('forEach');
- var USES_TO_LENGTH = arrayMethodUsesToLength('forEach');
- // `Array.prototype.forEach` method implementation
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
- module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- } : [].forEach;
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-from.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/array-from.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "./node_modules/core-js/internals/call-with-safe-iteration-closing.js");
- var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "./node_modules/core-js/internals/is-array-iterator-method.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var createProperty = __webpack_require__(/*! ../internals/create-property */ "./node_modules/core-js/internals/create-property.js");
- var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "./node_modules/core-js/internals/get-iterator-method.js");
- // `Array.from` method implementation
- // https://tc39.github.io/ecma262/#sec-array.from
- module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
- var O = toObject(arrayLike);
- var C = typeof this == 'function' ? this : Array;
- var argumentsLength = arguments.length;
- var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var iteratorMethod = getIteratorMethod(O);
- var index = 0;
- var length, result, step, iterator, next, value;
- if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
- // if the target is not iterable or it's an array with the default iterator - use a simple case
- if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
- iterator = iteratorMethod.call(O);
- next = iterator.next;
- result = new C();
- for (;!(step = next.call(iterator)).done; index++) {
- value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
- createProperty(result, index, value);
- }
- } else {
- length = toLength(O.length);
- result = new C(length);
- for (;length > index; index++) {
- value = mapping ? mapfn(O[index], index) : O[index];
- createProperty(result, index, value);
- }
- }
- result.length = index;
- return result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-includes.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/array-includes.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js");
- // `Array.prototype.{ indexOf, includes }` methods implementation
- var createMethod = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIndexedObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) {
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- module.exports = {
- // `Array.prototype.includes` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
- includes: createMethod(true),
- // `Array.prototype.indexOf` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
- indexOf: createMethod(false)
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-iteration.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/internals/array-iteration.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
- var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var arraySpeciesCreate = __webpack_require__(/*! ../internals/array-species-create */ "./node_modules/core-js/internals/array-species-create.js");
- var push = [].push;
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
- var createMethod = function (TYPE) {
- var IS_MAP = TYPE == 1;
- var IS_FILTER = TYPE == 2;
- var IS_SOME = TYPE == 3;
- var IS_EVERY = TYPE == 4;
- var IS_FIND_INDEX = TYPE == 6;
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- return function ($this, callbackfn, that, specificCreate) {
- var O = toObject($this);
- var self = IndexedObject(O);
- var boundFunction = bind(callbackfn, that, 3);
- var length = toLength(self.length);
- var index = 0;
- var create = specificCreate || arraySpeciesCreate;
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
- var value, result;
- for (;length > index; index++) if (NO_HOLES || index in self) {
- value = self[index];
- result = boundFunction(value, index, O);
- if (TYPE) {
- if (IS_MAP) target[index] = result; // map
- else if (result) switch (TYPE) {
- case 3: return true; // some
- case 5: return value; // find
- case 6: return index; // findIndex
- case 2: push.call(target, value); // filter
- } else if (IS_EVERY) return false; // every
- }
- }
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
- };
- };
- module.exports = {
- // `Array.prototype.forEach` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
- forEach: createMethod(0),
- // `Array.prototype.map` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
- map: createMethod(1),
- // `Array.prototype.filter` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
- filter: createMethod(2),
- // `Array.prototype.some` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
- some: createMethod(3),
- // `Array.prototype.every` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
- every: createMethod(4),
- // `Array.prototype.find` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
- find: createMethod(5),
- // `Array.prototype.findIndex` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
- findIndex: createMethod(6)
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-last-index-of.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/array-last-index-of.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var min = Math.min;
- var nativeLastIndexOf = [].lastIndexOf;
- var NEGATIVE_ZERO = !!nativeLastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
- var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');
- // For preventing possible almost infinite loop in non-standard implementations, test the forward version of the method
- var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
- var FORCED = NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH;
- // `Array.prototype.lastIndexOf` method implementation
- // https://tc39.github.io/ecma262/#sec-array.prototype.lastindexof
- module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
- // convert -0 to +0
- if (NEGATIVE_ZERO) return nativeLastIndexOf.apply(this, arguments) || 0;
- var O = toIndexedObject(this);
- var length = toLength(O.length);
- var index = length - 1;
- if (arguments.length > 1) index = min(index, toInteger(arguments[1]));
- if (index < 0) index = length + index;
- for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0;
- return -1;
- } : nativeLastIndexOf;
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-method-has-species-support.js":
- /*!****************************************************************************!*\
- !*** ./node_modules/core-js/internals/array-method-has-species-support.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js");
- var SPECIES = wellKnownSymbol('species');
- module.exports = function (METHOD_NAME) {
- // We can't use this feature detection in V8 since it causes
- // deoptimization and serious performance degradation
- // https://github.com/zloirock/core-js/issues/677
- return V8_VERSION >= 51 || !fails(function () {
- var array = [];
- var constructor = array.constructor = {};
- constructor[SPECIES] = function () {
- return { foo: 1 };
- };
- return array[METHOD_NAME](Boolean).foo !== 1;
- });
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-method-is-strict.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- module.exports = function (METHOD_NAME, argument) {
- var method = [][METHOD_NAME];
- return !!method && fails(function () {
- // eslint-disable-next-line no-useless-call,no-throw-literal
- method.call(null, argument || function () { throw 1; }, 1);
- });
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-method-uses-to-length.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/core-js/internals/array-method-uses-to-length.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var defineProperty = Object.defineProperty;
- var cache = {};
- var thrower = function (it) { throw it; };
- module.exports = function (METHOD_NAME, options) {
- if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
- if (!options) options = {};
- var method = [][METHOD_NAME];
- var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
- var argument0 = has(options, 0) ? options[0] : thrower;
- var argument1 = has(options, 1) ? options[1] : undefined;
- return cache[METHOD_NAME] = !!method && !fails(function () {
- if (ACCESSORS && !DESCRIPTORS) return true;
- var O = { length: -1 };
- if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
- else O[1] = 1;
- method.call(O, argument0, argument1);
- });
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-reduce.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/array-reduce.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
- var createMethod = function (IS_RIGHT) {
- return function (that, callbackfn, argumentsLength, memo) {
- aFunction(callbackfn);
- var O = toObject(that);
- var self = IndexedObject(O);
- var length = toLength(O.length);
- var index = IS_RIGHT ? length - 1 : 0;
- var i = IS_RIGHT ? -1 : 1;
- if (argumentsLength < 2) while (true) {
- if (index in self) {
- memo = self[index];
- index += i;
- break;
- }
- index += i;
- if (IS_RIGHT ? index < 0 : length <= index) {
- throw TypeError('Reduce of empty array with no initial value');
- }
- }
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
- memo = callbackfn(memo, self[index], index, O);
- }
- return memo;
- };
- };
- module.exports = {
- // `Array.prototype.reduce` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.reduce
- left: createMethod(false),
- // `Array.prototype.reduceRight` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
- right: createMethod(true)
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/array-species-create.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/internals/array-species-create.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var isArray = __webpack_require__(/*! ../internals/is-array */ "./node_modules/core-js/internals/is-array.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var SPECIES = wellKnownSymbol('species');
- // `ArraySpeciesCreate` abstract operation
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
- module.exports = function (originalArray, length) {
- var C;
- if (isArray(originalArray)) {
- C = originalArray.constructor;
- // cross-realm fallback
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
- else if (isObject(C)) {
- C = C[SPECIES];
- if (C === null) C = undefined;
- }
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/call-with-safe-iteration-closing.js":
- /*!****************************************************************************!*\
- !*** ./node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- // call something on iterator step with safe closing on error
- module.exports = function (iterator, fn, value, ENTRIES) {
- try {
- return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (error) {
- var returnMethod = iterator['return'];
- if (returnMethod !== undefined) anObject(returnMethod.call(iterator));
- throw error;
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/check-correctness-of-iteration.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/core-js/internals/check-correctness-of-iteration.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var ITERATOR = wellKnownSymbol('iterator');
- var SAFE_CLOSING = false;
- try {
- var called = 0;
- var iteratorWithReturn = {
- next: function () {
- return { done: !!called++ };
- },
- 'return': function () {
- SAFE_CLOSING = true;
- }
- };
- iteratorWithReturn[ITERATOR] = function () {
- return this;
- };
- // eslint-disable-next-line no-throw-literal
- Array.from(iteratorWithReturn, function () { throw 2; });
- } catch (error) { /* empty */ }
- module.exports = function (exec, SKIP_CLOSING) {
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
- var ITERATION_SUPPORT = false;
- try {
- var object = {};
- object[ITERATOR] = function () {
- return {
- next: function () {
- return { done: ITERATION_SUPPORT = true };
- }
- };
- };
- exec(object);
- } catch (error) { /* empty */ }
- return ITERATION_SUPPORT;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/classof-raw.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/classof-raw.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/classof.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/internals/classof.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
- var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
- // ES3 wrong here
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (error) { /* empty */ }
- };
- // getting tag from ES6+ `Object.prototype.toString`
- module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
- var O, tag, result;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
- // builtinTag case
- : CORRECT_ARGUMENTS ? classofRaw(O)
- // ES3 arguments fallback
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/copy-constructor-properties.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var ownKeys = __webpack_require__(/*! ../internals/own-keys */ "./node_modules/core-js/internals/own-keys.js");
- var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- module.exports = function (target, source) {
- var keys = ownKeys(source);
- var defineProperty = definePropertyModule.f;
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/correct-prototype-getter.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- module.exports = !fails(function () {
- function F() { /* empty */ }
- F.prototype.constructor = null;
- return Object.getPrototypeOf(new F()) !== F.prototype;
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/create-iterator-constructor.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var IteratorPrototype = __webpack_require__(/*! ../internals/iterators-core */ "./node_modules/core-js/internals/iterators-core.js").IteratorPrototype;
- var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
- var Iterators = __webpack_require__(/*! ../internals/iterators */ "./node_modules/core-js/internals/iterators.js");
- var returnThis = function () { return this; };
- module.exports = function (IteratorConstructor, NAME, next) {
- var TO_STRING_TAG = NAME + ' Iterator';
- IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
- Iterators[TO_STRING_TAG] = returnThis;
- return IteratorConstructor;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/create-non-enumerable-property.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- module.exports = DESCRIPTORS ? function (object, key, value) {
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/create-property-descriptor.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/create-property.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/internals/create-property.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- module.exports = function (object, key, value) {
- var propertyKey = toPrimitive(key);
- if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
- else object[propertyKey] = value;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/define-iterator.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/internals/define-iterator.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var createIteratorConstructor = __webpack_require__(/*! ../internals/create-iterator-constructor */ "./node_modules/core-js/internals/create-iterator-constructor.js");
- var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "./node_modules/core-js/internals/object-get-prototype-of.js");
- var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
- var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var Iterators = __webpack_require__(/*! ../internals/iterators */ "./node_modules/core-js/internals/iterators.js");
- var IteratorsCore = __webpack_require__(/*! ../internals/iterators-core */ "./node_modules/core-js/internals/iterators-core.js");
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
- var ITERATOR = wellKnownSymbol('iterator');
- var KEYS = 'keys';
- var VALUES = 'values';
- var ENTRIES = 'entries';
- var returnThis = function () { return this; };
- module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
- createIteratorConstructor(IteratorConstructor, NAME, next);
- var getIterationMethod = function (KIND) {
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
- switch (KIND) {
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
- } return function () { return new IteratorConstructor(this); };
- };
- var TO_STRING_TAG = NAME + ' Iterator';
- var INCORRECT_VALUES_NAME = false;
- var IterablePrototype = Iterable.prototype;
- var nativeIterator = IterablePrototype[ITERATOR]
- || IterablePrototype['@@iterator']
- || DEFAULT && IterablePrototype[DEFAULT];
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
- var CurrentIteratorPrototype, methods, KEY;
- // fix native
- if (anyNativeIterator) {
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
- if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
- if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
- if (setPrototypeOf) {
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
- } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
- }
- }
- // Set @@toStringTag to native iterators
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
- if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
- INCORRECT_VALUES_NAME = true;
- defaultIterator = function values() { return nativeIterator.call(this); };
- }
- // define iterator
- if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
- createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
- }
- Iterators[NAME] = defaultIterator;
- // export additional methods
- if (DEFAULT) {
- methods = {
- values: getIterationMethod(VALUES),
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
- entries: getIterationMethod(ENTRIES)
- };
- if (FORCED) for (KEY in methods) {
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
- redefine(IterablePrototype, KEY, methods[KEY]);
- }
- } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
- }
- return methods;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/define-well-known-symbol.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/internals/define-well-known-symbol.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var path = __webpack_require__(/*! ../internals/path */ "./node_modules/core-js/internals/path.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var wrappedWellKnownSymbolModule = __webpack_require__(/*! ../internals/well-known-symbol-wrapped */ "./node_modules/core-js/internals/well-known-symbol-wrapped.js");
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- module.exports = function (NAME) {
- var Symbol = path.Symbol || (path.Symbol = {});
- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
- value: wrappedWellKnownSymbolModule.f(NAME)
- });
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/descriptors.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/descriptors.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- // Thank's IE8 for his funny defineProperty
- module.exports = !fails(function () {
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/document-create-element.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/internals/document-create-element.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var document = global.document;
- // typeof document.createElement is 'object' in old IE
- var EXISTS = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return EXISTS ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/dom-iterables.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/dom-iterables.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // iterable DOM collections
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
- module.exports = {
- CSSRuleList: 0,
- CSSStyleDeclaration: 0,
- CSSValueList: 0,
- ClientRectList: 0,
- DOMRectList: 0,
- DOMStringList: 0,
- DOMTokenList: 1,
- DataTransferItemList: 0,
- FileList: 0,
- HTMLAllCollection: 0,
- HTMLCollection: 0,
- HTMLFormElement: 0,
- HTMLSelectElement: 0,
- MediaList: 0,
- MimeTypeArray: 0,
- NamedNodeMap: 0,
- NodeList: 1,
- PaintRequestList: 0,
- Plugin: 0,
- PluginArray: 0,
- SVGLengthList: 0,
- SVGNumberList: 0,
- SVGPathSegList: 0,
- SVGPointList: 0,
- SVGStringList: 0,
- SVGTransformList: 0,
- SourceBufferList: 0,
- StyleSheetList: 0,
- TextTrackCueList: 0,
- TextTrackList: 0,
- TouchList: 0
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/engine-is-ios.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/engine-is-ios.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
- module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
- /***/ }),
- /***/ "./node_modules/core-js/internals/engine-user-agent.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/engine-user-agent.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- module.exports = getBuiltIn('navigator', 'userAgent') || '';
- /***/ }),
- /***/ "./node_modules/core-js/internals/engine-v8-version.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/engine-v8-version.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
- var process = global.process;
- var versions = process && process.versions;
- var v8 = versions && versions.v8;
- var match, version;
- if (v8) {
- match = v8.split('.');
- version = match[0] + match[1];
- } else if (userAgent) {
- match = userAgent.match(/Edge\/(\d+)/);
- if (!match || match[1] >= 74) {
- match = userAgent.match(/Chrome\/(\d+)/);
- if (match) version = match[1];
- }
- }
- module.exports = version && +version;
- /***/ }),
- /***/ "./node_modules/core-js/internals/enum-bug-keys.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // IE8- don't enum bug keys
- module.exports = [
- 'constructor',
- 'hasOwnProperty',
- 'isPrototypeOf',
- 'propertyIsEnumerable',
- 'toLocaleString',
- 'toString',
- 'valueOf'
- ];
- /***/ }),
- /***/ "./node_modules/core-js/internals/export.js":
- /*!**************************************************!*\
- !*** ./node_modules/core-js/internals/export.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var getOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f;
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var setGlobal = __webpack_require__(/*! ../internals/set-global */ "./node_modules/core-js/internals/set-global.js");
- var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "./node_modules/core-js/internals/copy-constructor-properties.js");
- var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
- /*
- options.target - name of the target object
- options.global - target is the global object
- options.stat - export as static methods of target
- options.proto - export as prototype methods of target
- options.real - real prototype method for the `pure` version
- options.forced - export even if the native feature is available
- options.bind - bind methods to the target, required for the `pure` version
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
- options.sham - add a flag to not completely full polyfills
- options.enumerable - export as enumerable property
- options.noTargetGet - prevent calling a getter on target
- */
- module.exports = function (options, source) {
- var TARGET = options.target;
- var GLOBAL = options.global;
- var STATIC = options.stat;
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
- if (GLOBAL) {
- target = global;
- } else if (STATIC) {
- target = global[TARGET] || setGlobal(TARGET, {});
- } else {
- target = (global[TARGET] || {}).prototype;
- }
- if (target) for (key in source) {
- sourceProperty = source[key];
- if (options.noTargetGet) {
- descriptor = getOwnPropertyDescriptor(target, key);
- targetProperty = descriptor && descriptor.value;
- } else targetProperty = target[key];
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
- // contained in target
- if (!FORCED && targetProperty !== undefined) {
- if (typeof sourceProperty === typeof targetProperty) continue;
- copyConstructorProperties(sourceProperty, targetProperty);
- }
- // add a flag to not completely full polyfills
- if (options.sham || (targetProperty && targetProperty.sham)) {
- createNonEnumerableProperty(sourceProperty, 'sham', true);
- }
- // extend global
- redefine(target, key, sourceProperty, options);
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/fails.js":
- /*!*************************************************!*\
- !*** ./node_modules/core-js/internals/fails.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (error) {
- return true;
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":
- /*!******************************************************************************!*\
- !*** ./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // TODO: Remove from `core-js@4` since it's moved to entry points
- __webpack_require__(/*! ../modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var regexpExec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var SPECIES = wellKnownSymbol('species');
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
- // #replace needs built-in support for named groups.
- // #match works fine because it just return the exec results, even if it has
- // a "grops" property.
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- return ''.replace(re, '$<a>') !== '7';
- });
- // IE <= 11 replaces $0 with the whole match, as if it was $&
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
- var REPLACE_KEEPS_$0 = (function () {
- return 'a'.replace(/./, '$0') === '$0';
- })();
- var REPLACE = wellKnownSymbol('replace');
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
- if (/./[REPLACE]) {
- return /./[REPLACE]('a', '$0') === '';
- }
- return false;
- })();
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
- });
- module.exports = function (KEY, length, exec, sham) {
- var SYMBOL = wellKnownSymbol(KEY);
- var DELEGATES_TO_SYMBOL = !fails(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- if (KEY === 'split') {
- // We can't use real regex here since it causes deoptimization
- // and serious performance degradation in V8
- // https://github.com/zloirock/core-js/issues/306
- re = {};
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES] = function () { return re; };
- re.flags = '';
- re[SYMBOL] = /./[SYMBOL];
- }
- re.exec = function () { execCalled = true; return null; };
- re[SYMBOL]('');
- return !execCalled;
- });
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- (KEY === 'replace' && !(
- REPLACE_SUPPORTS_NAMED_GROUPS &&
- REPLACE_KEEPS_$0 &&
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
- )) ||
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
- ) {
- var nativeRegExpMethod = /./[SYMBOL];
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }, {
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
- });
- var stringMethod = methods[0];
- var regexMethod = methods[1];
- redefine(String.prototype, KEY, stringMethod);
- redefine(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return regexMethod.call(string, this); }
- );
- }
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/function-bind-context.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/internals/function-bind-context.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- // optional / simple context binding
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 0: return function () {
- return fn.call(that);
- };
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/get-built-in.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/get-built-in.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var path = __webpack_require__(/*! ../internals/path */ "./node_modules/core-js/internals/path.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var aFunction = function (variable) {
- return typeof variable == 'function' ? variable : undefined;
- };
- module.exports = function (namespace, method) {
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
- : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/get-iterator-method.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/get-iterator-method.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
- var Iterators = __webpack_require__(/*! ../internals/iterators */ "./node_modules/core-js/internals/iterators.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var ITERATOR = wellKnownSymbol('iterator');
- module.exports = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/global.js":
- /*!**************************************************!*\
- !*** ./node_modules/core-js/internals/global.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
- return it && it.Math == Math && it;
- };
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- module.exports =
- // eslint-disable-next-line no-undef
- check(typeof globalThis == 'object' && globalThis) ||
- check(typeof window == 'object' && window) ||
- check(typeof self == 'object' && self) ||
- check(typeof global == 'object' && global) ||
- // eslint-disable-next-line no-new-func
- Function('return this')();
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/core-js/internals/has.js":
- /*!***********************************************!*\
- !*** ./node_modules/core-js/internals/has.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/hidden-keys.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/hidden-keys.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "./node_modules/core-js/internals/host-report-errors.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/internals/host-report-errors.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- module.exports = function (a, b) {
- var console = global.console;
- if (console && console.error) {
- arguments.length === 1 ? console.error(a) : console.error(a, b);
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/html.js":
- /*!************************************************!*\
- !*** ./node_modules/core-js/internals/html.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- module.exports = getBuiltIn('document', 'documentElement');
- /***/ }),
- /***/ "./node_modules/core-js/internals/ie8-dom-define.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
- // Thank's IE8 for his funny defineProperty
- module.exports = !DESCRIPTORS && !fails(function () {
- return Object.defineProperty(createElement('div'), 'a', {
- get: function () { return 7; }
- }).a != 7;
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/ieee754.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/internals/ieee754.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // IEEE754 conversions based on https://github.com/feross/ieee754
- // eslint-disable-next-line no-shadow-restricted-names
- var Infinity = 1 / 0;
- var abs = Math.abs;
- var pow = Math.pow;
- var floor = Math.floor;
- var log = Math.log;
- var LN2 = Math.LN2;
- var pack = function (number, mantissaLength, bytes) {
- var buffer = new Array(bytes);
- var exponentLength = bytes * 8 - mantissaLength - 1;
- var eMax = (1 << exponentLength) - 1;
- var eBias = eMax >> 1;
- var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
- var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
- var index = 0;
- var exponent, mantissa, c;
- number = abs(number);
- // eslint-disable-next-line no-self-compare
- if (number != number || number === Infinity) {
- // eslint-disable-next-line no-self-compare
- mantissa = number != number ? 1 : 0;
- exponent = eMax;
- } else {
- exponent = floor(log(number) / LN2);
- if (number * (c = pow(2, -exponent)) < 1) {
- exponent--;
- c *= 2;
- }
- if (exponent + eBias >= 1) {
- number += rt / c;
- } else {
- number += rt * pow(2, 1 - eBias);
- }
- if (number * c >= 2) {
- exponent++;
- c /= 2;
- }
- if (exponent + eBias >= eMax) {
- mantissa = 0;
- exponent = eMax;
- } else if (exponent + eBias >= 1) {
- mantissa = (number * c - 1) * pow(2, mantissaLength);
- exponent = exponent + eBias;
- } else {
- mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
- exponent = 0;
- }
- }
- for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
- exponent = exponent << mantissaLength | mantissa;
- exponentLength += mantissaLength;
- for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
- buffer[--index] |= sign * 128;
- return buffer;
- };
- var unpack = function (buffer, mantissaLength) {
- var bytes = buffer.length;
- var exponentLength = bytes * 8 - mantissaLength - 1;
- var eMax = (1 << exponentLength) - 1;
- var eBias = eMax >> 1;
- var nBits = exponentLength - 7;
- var index = bytes - 1;
- var sign = buffer[index--];
- var exponent = sign & 127;
- var mantissa;
- sign >>= 7;
- for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
- mantissa = exponent & (1 << -nBits) - 1;
- exponent >>= -nBits;
- nBits += mantissaLength;
- for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
- if (exponent === 0) {
- exponent = 1 - eBias;
- } else if (exponent === eMax) {
- return mantissa ? NaN : sign ? -Infinity : Infinity;
- } else {
- mantissa = mantissa + pow(2, mantissaLength);
- exponent = exponent - eBias;
- } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
- };
- module.exports = {
- pack: pack,
- unpack: unpack
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/indexed-object.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/indexed-object.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var split = ''.split;
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- module.exports = fails(function () {
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
- // eslint-disable-next-line no-prototype-builtins
- return !Object('z').propertyIsEnumerable(0);
- }) ? function (it) {
- return classof(it) == 'String' ? split.call(it, '') : Object(it);
- } : Object;
- /***/ }),
- /***/ "./node_modules/core-js/internals/inherit-if-required.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/inherit-if-required.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
- // makes subclassing work correct for wrapped built-ins
- module.exports = function ($this, dummy, Wrapper) {
- var NewTarget, NewTargetPrototype;
- if (
- // it can work only with native `setPrototypeOf`
- setPrototypeOf &&
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
- typeof (NewTarget = dummy.constructor) == 'function' &&
- NewTarget !== Wrapper &&
- isObject(NewTargetPrototype = NewTarget.prototype) &&
- NewTargetPrototype !== Wrapper.prototype
- ) setPrototypeOf($this, NewTargetPrototype);
- return $this;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/inspect-source.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/inspect-source.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js");
- var functionToString = Function.toString;
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
- if (typeof store.inspectSource != 'function') {
- store.inspectSource = function (it) {
- return functionToString.call(it);
- };
- }
- module.exports = store.inspectSource;
- /***/ }),
- /***/ "./node_modules/core-js/internals/internal-state.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/internal-state.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/native-weak-map */ "./node_modules/core-js/internals/native-weak-map.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var objectHas = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js");
- var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
- var WeakMap = global.WeakMap;
- var set, get, has;
- var enforce = function (it) {
- return has(it) ? get(it) : set(it, {});
- };
- var getterFor = function (TYPE) {
- return function (it) {
- var state;
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
- } return state;
- };
- };
- if (NATIVE_WEAK_MAP) {
- var store = new WeakMap();
- var wmget = store.get;
- var wmhas = store.has;
- var wmset = store.set;
- set = function (it, metadata) {
- wmset.call(store, it, metadata);
- return metadata;
- };
- get = function (it) {
- return wmget.call(store, it) || {};
- };
- has = function (it) {
- return wmhas.call(store, it);
- };
- } else {
- var STATE = sharedKey('state');
- hiddenKeys[STATE] = true;
- set = function (it, metadata) {
- createNonEnumerableProperty(it, STATE, metadata);
- return metadata;
- };
- get = function (it) {
- return objectHas(it, STATE) ? it[STATE] : {};
- };
- has = function (it) {
- return objectHas(it, STATE);
- };
- }
- module.exports = {
- set: set,
- get: get,
- has: has,
- enforce: enforce,
- getterFor: getterFor
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-array-iterator-method.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/internals/is-array-iterator-method.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var Iterators = __webpack_require__(/*! ../internals/iterators */ "./node_modules/core-js/internals/iterators.js");
- var ITERATOR = wellKnownSymbol('iterator');
- var ArrayPrototype = Array.prototype;
- // check on default Array iterator
- module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-array.js":
- /*!****************************************************!*\
- !*** ./node_modules/core-js/internals/is-array.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- // `IsArray` abstract operation
- // https://tc39.github.io/ecma262/#sec-isarray
- module.exports = Array.isArray || function isArray(arg) {
- return classof(arg) == 'Array';
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-forced.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/is-forced.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var replacement = /#|\.prototype\./;
- var isForced = function (feature, detection) {
- var value = data[normalize(feature)];
- return value == POLYFILL ? true
- : value == NATIVE ? false
- : typeof detection == 'function' ? fails(detection)
- : !!detection;
- };
- var normalize = isForced.normalize = function (string) {
- return String(string).replace(replacement, '.').toLowerCase();
- };
- var data = isForced.data = {};
- var NATIVE = isForced.NATIVE = 'N';
- var POLYFILL = isForced.POLYFILL = 'P';
- module.exports = isForced;
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-object.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/is-object.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-pure.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/internals/is-pure.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = false;
- /***/ }),
- /***/ "./node_modules/core-js/internals/is-regexp.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/is-regexp.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var MATCH = wellKnownSymbol('match');
- // `IsRegExp` abstract operation
- // https://tc39.github.io/ecma262/#sec-isregexp
- module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/iterate.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/internals/iterate.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "./node_modules/core-js/internals/is-array-iterator-method.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
- var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "./node_modules/core-js/internals/get-iterator-method.js");
- var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "./node_modules/core-js/internals/call-with-safe-iteration-closing.js");
- var Result = function (stopped, result) {
- this.stopped = stopped;
- this.result = result;
- };
- var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
- var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);
- var iterator, iterFn, index, length, result, next, step;
- if (IS_ITERATOR) {
- iterator = iterable;
- } else {
- iterFn = getIteratorMethod(iterable);
- if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
- // optimisation for array iterators
- if (isArrayIteratorMethod(iterFn)) {
- for (index = 0, length = toLength(iterable.length); length > index; index++) {
- result = AS_ENTRIES
- ? boundFunction(anObject(step = iterable[index])[0], step[1])
- : boundFunction(iterable[index]);
- if (result && result instanceof Result) return result;
- } return new Result(false);
- }
- iterator = iterFn.call(iterable);
- }
- next = iterator.next;
- while (!(step = next.call(iterator)).done) {
- result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
- if (typeof result == 'object' && result && result instanceof Result) return result;
- } return new Result(false);
- };
- iterate.stop = function (result) {
- return new Result(true, result);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/iterators-core.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/iterators-core.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "./node_modules/core-js/internals/object-get-prototype-of.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var ITERATOR = wellKnownSymbol('iterator');
- var BUGGY_SAFARI_ITERATORS = false;
- var returnThis = function () { return this; };
- // `%IteratorPrototype%` object
- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
- if ([].keys) {
- arrayIterator = [].keys();
- // Safari 8 has buggy iterators w/o `next`
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
- else {
- PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
- }
- }
- if (IteratorPrototype == undefined) IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
- }
- module.exports = {
- IteratorPrototype: IteratorPrototype,
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/iterators.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/iterators.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "./node_modules/core-js/internals/microtask.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/microtask.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var getOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f;
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var macrotask = __webpack_require__(/*! ../internals/task */ "./node_modules/core-js/internals/task.js").set;
- var IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ "./node_modules/core-js/internals/engine-is-ios.js");
- var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
- var process = global.process;
- var Promise = global.Promise;
- var IS_NODE = classof(process) == 'process';
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
- var flush, head, last, notify, toggle, node, promise, then;
- // modern engines have queueMicrotask method
- if (!queueMicrotask) {
- flush = function () {
- var parent, fn;
- if (IS_NODE && (parent = process.domain)) parent.exit();
- while (head) {
- fn = head.fn;
- head = head.next;
- try {
- fn();
- } catch (error) {
- if (head) notify();
- else last = undefined;
- throw error;
- }
- } last = undefined;
- if (parent) parent.enter();
- };
- // Node.js
- if (IS_NODE) {
- notify = function () {
- process.nextTick(flush);
- };
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
- } else if (MutationObserver && !IS_IOS) {
- toggle = true;
- node = document.createTextNode('');
- new MutationObserver(flush).observe(node, { characterData: true });
- notify = function () {
- node.data = toggle = !toggle;
- };
- // environments with maybe non-completely correct, but existent Promise
- } else if (Promise && Promise.resolve) {
- // Promise.resolve without an argument throws an error in LG WebOS 2
- promise = Promise.resolve(undefined);
- then = promise.then;
- notify = function () {
- then.call(promise, flush);
- };
- // for other environments - macrotask based on:
- // - setImmediate
- // - MessageChannel
- // - window.postMessag
- // - onreadystatechange
- // - setTimeout
- } else {
- notify = function () {
- // strange IE + webpack dev server bug - use .call(global)
- macrotask.call(global, flush);
- };
- }
- }
- module.exports = queueMicrotask || function (fn) {
- var task = { fn: fn, next: undefined };
- if (last) last.next = task;
- if (!head) {
- head = task;
- notify();
- } last = task;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/native-promise-constructor.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/internals/native-promise-constructor.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- module.exports = global.Promise;
- /***/ }),
- /***/ "./node_modules/core-js/internals/native-symbol.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/native-symbol.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
- // Chrome 38 Symbol has incorrect toString conversion
- // eslint-disable-next-line no-undef
- return !String(Symbol());
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/native-weak-map.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/internals/native-weak-map.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js");
- var WeakMap = global.WeakMap;
- module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
- /***/ }),
- /***/ "./node_modules/core-js/internals/new-promise-capability.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/internals/new-promise-capability.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- var PromiseCapability = function (C) {
- var resolve, reject;
- this.promise = new C(function ($$resolve, $$reject) {
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
- resolve = $$resolve;
- reject = $$reject;
- });
- this.resolve = aFunction(resolve);
- this.reject = aFunction(reject);
- };
- // 25.4.1.5 NewPromiseCapability(C)
- module.exports.f = function (C) {
- return new PromiseCapability(C);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-assign.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/object-assign.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js");
- var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./node_modules/core-js/internals/object-get-own-property-symbols.js");
- var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./node_modules/core-js/internals/object-property-is-enumerable.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js");
- var nativeAssign = Object.assign;
- var defineProperty = Object.defineProperty;
- // `Object.assign` method
- // https://tc39.github.io/ecma262/#sec-object.assign
- module.exports = !nativeAssign || fails(function () {
- // should have correct order of operations (Edge bug)
- if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
- enumerable: true,
- get: function () {
- defineProperty(this, 'b', {
- value: 3,
- enumerable: false
- });
- }
- }), { b: 2 })).b !== 1) return true;
- // should work with symbols and should have deterministic property order (V8 bug)
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var symbol = Symbol();
- var alphabet = 'abcdefghijklmnopqrst';
- A[symbol] = 7;
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var argumentsLength = arguments.length;
- var index = 1;
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
- while (argumentsLength > index) {
- var S = IndexedObject(arguments[index++]);
- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) {
- key = keys[j++];
- if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
- }
- } return T;
- } : nativeAssign;
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-create.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/object-create.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var defineProperties = __webpack_require__(/*! ../internals/object-define-properties */ "./node_modules/core-js/internals/object-define-properties.js");
- var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js");
- var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
- var html = __webpack_require__(/*! ../internals/html */ "./node_modules/core-js/internals/html.js");
- var documentCreateElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
- var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js");
- var GT = '>';
- var LT = '<';
- var PROTOTYPE = 'prototype';
- var SCRIPT = 'script';
- var IE_PROTO = sharedKey('IE_PROTO');
- var EmptyConstructor = function () { /* empty */ };
- var scriptTag = function (content) {
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
- };
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
- var NullProtoObjectViaActiveX = function (activeXDocument) {
- activeXDocument.write(scriptTag(''));
- activeXDocument.close();
- var temp = activeXDocument.parentWindow.Object;
- activeXDocument = null; // avoid memory leak
- return temp;
- };
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var NullProtoObjectViaIFrame = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = documentCreateElement('iframe');
- var JS = 'java' + SCRIPT + ':';
- var iframeDocument;
- iframe.style.display = 'none';
- html.appendChild(iframe);
- // https://github.com/zloirock/core-js/issues/475
- iframe.src = String(JS);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(scriptTag('document.F=Object'));
- iframeDocument.close();
- return iframeDocument.F;
- };
- // Check for document.domain and active x support
- // No need to use active x approach when document.domain is not set
- // see https://github.com/es-shims/es5-shim/issues/150
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
- // avoid IE GC bug
- var activeXDocument;
- var NullProtoObject = function () {
- try {
- /* global ActiveXObject */
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
- } catch (error) { /* ignore */ }
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
- var length = enumBugKeys.length;
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
- return NullProtoObject();
- };
- hiddenKeys[IE_PROTO] = true;
- // `Object.create` method
- // https://tc39.github.io/ecma262/#sec-object.create
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- EmptyConstructor[PROTOTYPE] = anObject(O);
- result = new EmptyConstructor();
- EmptyConstructor[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = NullProtoObject();
- return Properties === undefined ? result : defineProperties(result, Properties);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-define-properties.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/internals/object-define-properties.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js");
- // `Object.defineProperties` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
- module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = objectKeys(Properties);
- var length = keys.length;
- var index = 0;
- var key;
- while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
- return O;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-define-property.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/internals/object-define-property.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var nativeDefineProperty = Object.defineProperty;
- // `Object.defineProperty` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
- exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return nativeDefineProperty(O, P, Attributes);
- } catch (error) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-get-own-property-descriptor.js":
- /*!******************************************************************************!*\
- !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./node_modules/core-js/internals/object-property-is-enumerable.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js");
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
- // `Object.getOwnPropertyDescriptor` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
- exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
- O = toIndexedObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return nativeGetOwnPropertyDescriptor(O, P);
- } catch (error) { /* empty */ }
- if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-get-own-property-names-external.js":
- /*!**********************************************************************************!*\
- !*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var nativeGetOwnPropertyNames = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js").f;
- var toString = {}.toString;
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
- var getWindowNames = function (it) {
- try {
- return nativeGetOwnPropertyNames(it);
- } catch (error) {
- return windowNames.slice();
- }
- };
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]'
- ? getWindowNames(it)
- : nativeGetOwnPropertyNames(toIndexedObject(it));
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-get-own-property-names.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./node_modules/core-js/internals/object-keys-internal.js");
- var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js");
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
- // `Object.getOwnPropertyNames` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return internalObjectKeys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-get-own-property-symbols.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-get-prototype-of.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js");
- var CORRECT_PROTOTYPE_GETTER = __webpack_require__(/*! ../internals/correct-prototype-getter */ "./node_modules/core-js/internals/correct-prototype-getter.js");
- var IE_PROTO = sharedKey('IE_PROTO');
- var ObjectPrototype = Object.prototype;
- // `Object.getPrototypeOf` method
- // https://tc39.github.io/ecma262/#sec-object.getprototypeof
- module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectPrototype : null;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-keys-internal.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var indexOf = __webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").indexOf;
- var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
- module.exports = function (object, names) {
- var O = toIndexedObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~indexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-keys.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/object-keys.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./node_modules/core-js/internals/object-keys-internal.js");
- var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js");
- // `Object.keys` method
- // https://tc39.github.io/ecma262/#sec-object.keys
- module.exports = Object.keys || function keys(O) {
- return internalObjectKeys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-property-is-enumerable.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
- // Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
- // `Object.prototype.propertyIsEnumerable` method implementation
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
- exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
- var descriptor = getOwnPropertyDescriptor(this, V);
- return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-set-prototype-of.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var aPossiblePrototype = __webpack_require__(/*! ../internals/a-possible-prototype */ "./node_modules/core-js/internals/a-possible-prototype.js");
- // `Object.setPrototypeOf` method
- // https://tc39.github.io/ecma262/#sec-object.setprototypeof
- // Works with __proto__ only. Old v8 can't work with null proto objects.
- /* eslint-disable no-proto */
- module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
- var CORRECT_SETTER = false;
- var test = {};
- var setter;
- try {
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
- setter.call(test, []);
- CORRECT_SETTER = test instanceof Array;
- } catch (error) { /* empty */ }
- return function setPrototypeOf(O, proto) {
- anObject(O);
- aPossiblePrototype(proto);
- if (CORRECT_SETTER) setter.call(O, proto);
- else O.__proto__ = proto;
- return O;
- };
- }() : undefined);
- /***/ }),
- /***/ "./node_modules/core-js/internals/object-to-string.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/internals/object-to-string.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
- var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
- // `Object.prototype.toString` method implementation
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
- module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
- return '[object ' + classof(this) + ']';
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/own-keys.js":
- /*!****************************************************!*\
- !*** ./node_modules/core-js/internals/own-keys.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- var getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js");
- var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./node_modules/core-js/internals/object-get-own-property-symbols.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- // all object keys, includes non-enumerable and symbols
- module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
- var keys = getOwnPropertyNamesModule.f(anObject(it));
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/path.js":
- /*!************************************************!*\
- !*** ./node_modules/core-js/internals/path.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- module.exports = global;
- /***/ }),
- /***/ "./node_modules/core-js/internals/perform.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/internals/perform.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return { error: false, value: exec() };
- } catch (error) {
- return { error: true, value: error };
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/promise-resolve.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/internals/promise-resolve.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var newPromiseCapability = __webpack_require__(/*! ../internals/new-promise-capability */ "./node_modules/core-js/internals/new-promise-capability.js");
- module.exports = function (C, x) {
- anObject(C);
- if (isObject(x) && x.constructor === C) return x;
- var promiseCapability = newPromiseCapability.f(C);
- var resolve = promiseCapability.resolve;
- resolve(x);
- return promiseCapability.promise;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/redefine-all.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/redefine-all.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- module.exports = function (target, src, options) {
- for (var key in src) redefine(target, key, src[key], options);
- return target;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/redefine.js":
- /*!****************************************************!*\
- !*** ./node_modules/core-js/internals/redefine.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var setGlobal = __webpack_require__(/*! ../internals/set-global */ "./node_modules/core-js/internals/set-global.js");
- var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var getInternalState = InternalStateModule.get;
- var enforceInternalState = InternalStateModule.enforce;
- var TEMPLATE = String(String).split('String');
- (module.exports = function (O, key, value, options) {
- var unsafe = options ? !!options.unsafe : false;
- var simple = options ? !!options.enumerable : false;
- var noTargetGet = options ? !!options.noTargetGet : false;
- if (typeof value == 'function') {
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
- }
- if (O === global) {
- if (simple) O[key] = value;
- else setGlobal(key, value);
- return;
- } else if (!unsafe) {
- delete O[key];
- } else if (!noTargetGet && O[key]) {
- simple = true;
- }
- if (simple) O[key] = value;
- else createNonEnumerableProperty(O, key, value);
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- })(Function.prototype, 'toString', function toString() {
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/regexp-exec-abstract.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/internals/regexp-exec-abstract.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var classof = __webpack_require__(/*! ./classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var regexpExec = __webpack_require__(/*! ./regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js");
- // `RegExpExec` abstract operation
- // https://tc39.github.io/ecma262/#sec-regexpexec
- module.exports = function (R, S) {
- var exec = R.exec;
- if (typeof exec === 'function') {
- var result = exec.call(R, S);
- if (typeof result !== 'object') {
- throw TypeError('RegExp exec method returned something other than an Object or null');
- }
- return result;
- }
- if (classof(R) !== 'RegExp') {
- throw TypeError('RegExp#exec called on incompatible receiver');
- }
- return regexpExec.call(R, S);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/regexp-exec.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/regexp-exec.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpFlags = __webpack_require__(/*! ./regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
- var stickyHelpers = __webpack_require__(/*! ./regexp-sticky-helpers */ "./node_modules/core-js/internals/regexp-sticky-helpers.js");
- var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
- var patchedExec = nativeExec;
- var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/;
- var re2 = /b*/g;
- nativeExec.call(re1, 'a');
- nativeExec.call(re2, 'a');
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
- })();
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
- if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
- var sticky = UNSUPPORTED_Y && re.sticky;
- var flags = regexpFlags.call(re);
- var source = re.source;
- var charsAdded = 0;
- var strCopy = str;
- if (sticky) {
- flags = flags.replace('y', '');
- if (flags.indexOf('g') === -1) {
- flags += 'g';
- }
- strCopy = String(str).slice(re.lastIndex);
- // Support anchored sticky behavior.
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
- source = '(?: ' + source + ')';
- strCopy = ' ' + strCopy;
- charsAdded++;
- }
- // ^(? + rx + ) is needed, in combination with some str slicing, to
- // simulate the 'y' flag.
- reCopy = new RegExp('^(?:' + source + ')', flags);
- }
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
- if (sticky) {
- if (match) {
- match.input = match.input.slice(charsAdded);
- match[0] = match[0].slice(charsAdded);
- match.index = re.lastIndex;
- re.lastIndex += match[0].length;
- } else re.lastIndex = 0;
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- nativeReplace.call(match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
- return match;
- };
- }
- module.exports = patchedExec;
- /***/ }),
- /***/ "./node_modules/core-js/internals/regexp-flags.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/regexp-flags.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- // `RegExp.prototype.flags` getter implementation
- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
- module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.dotAll) result += 's';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/regexp-sticky-helpers.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/internals/regexp-sticky-helpers.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fails = __webpack_require__(/*! ./fails */ "./node_modules/core-js/internals/fails.js");
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
- // so we use an intermediate function.
- function RE(s, f) {
- return RegExp(s, f);
- }
- exports.UNSUPPORTED_Y = fails(function () {
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
- var re = RE('a', 'y');
- re.lastIndex = 2;
- return re.exec('abcd') != null;
- });
- exports.BROKEN_CARET = fails(function () {
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
- var re = RE('^r', 'gy');
- re.lastIndex = 2;
- return re.exec('str') != null;
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/require-object-coercible.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // `RequireObjectCoercible` abstract operation
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/set-global.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/set-global.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- module.exports = function (key, value) {
- try {
- createNonEnumerableProperty(global, key, value);
- } catch (error) {
- global[key] = value;
- } return value;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/set-species.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/set-species.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var SPECIES = wellKnownSymbol('species');
- module.exports = function (CONSTRUCTOR_NAME) {
- var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
- var defineProperty = definePropertyModule.f;
- if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
- defineProperty(Constructor, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/set-to-string-tag.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
- module.exports = function (it, TAG, STATIC) {
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
- defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/shared-key.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/shared-key.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js");
- var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
- var keys = shared('keys');
- module.exports = function (key) {
- return keys[key] || (keys[key] = uid(key));
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/shared-store.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/shared-store.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var setGlobal = __webpack_require__(/*! ../internals/set-global */ "./node_modules/core-js/internals/set-global.js");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || setGlobal(SHARED, {});
- module.exports = store;
- /***/ }),
- /***/ "./node_modules/core-js/internals/shared.js":
- /*!**************************************************!*\
- !*** ./node_modules/core-js/internals/shared.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js");
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: '3.6.5',
- mode: IS_PURE ? 'pure' : 'global',
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/species-constructor.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/species-constructor.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var SPECIES = wellKnownSymbol('species');
- // `SpeciesConstructor` abstract operation
- // https://tc39.github.io/ecma262/#sec-speciesconstructor
- module.exports = function (O, defaultConstructor) {
- var C = anObject(O).constructor;
- var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/string-multibyte.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/internals/string-multibyte.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- // `String.prototype.{ codePointAt, at }` methods implementation
- var createMethod = function (CONVERT_TO_STRING) {
- return function ($this, pos) {
- var S = String(requireObjectCoercible($this));
- var position = toInteger(pos);
- var size = S.length;
- var first, second;
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
- first = S.charCodeAt(position);
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
- ? CONVERT_TO_STRING ? S.charAt(position) : first
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
- };
- };
- module.exports = {
- // `String.prototype.codePointAt` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
- codeAt: createMethod(false),
- // `String.prototype.at` method
- // https://github.com/mathiasbynens/String.prototype.at
- charAt: createMethod(true)
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/string-trim.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/string-trim.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- var whitespaces = __webpack_require__(/*! ../internals/whitespaces */ "./node_modules/core-js/internals/whitespaces.js");
- var whitespace = '[' + whitespaces + ']';
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
- var rtrim = RegExp(whitespace + whitespace + '*$');
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
- var createMethod = function (TYPE) {
- return function ($this) {
- var string = String(requireObjectCoercible($this));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
- };
- };
- module.exports = {
- // `String.prototype.{ trimLeft, trimStart }` methods
- // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
- start: createMethod(1),
- // `String.prototype.{ trimRight, trimEnd }` methods
- // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
- end: createMethod(2),
- // `String.prototype.trim` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.trim
- trim: createMethod(3)
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/task.js":
- /*!************************************************!*\
- !*** ./node_modules/core-js/internals/task.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
- var html = __webpack_require__(/*! ../internals/html */ "./node_modules/core-js/internals/html.js");
- var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
- var IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ "./node_modules/core-js/internals/engine-is-ios.js");
- var location = global.location;
- var set = global.setImmediate;
- var clear = global.clearImmediate;
- var process = global.process;
- var MessageChannel = global.MessageChannel;
- var Dispatch = global.Dispatch;
- var counter = 0;
- var queue = {};
- var ONREADYSTATECHANGE = 'onreadystatechange';
- var defer, channel, port;
- var run = function (id) {
- // eslint-disable-next-line no-prototype-builtins
- if (queue.hasOwnProperty(id)) {
- var fn = queue[id];
- delete queue[id];
- fn();
- }
- };
- var runner = function (id) {
- return function () {
- run(id);
- };
- };
- var listener = function (event) {
- run(event.data);
- };
- var post = function (id) {
- // old engines have not location.origin
- global.postMessage(id + '', location.protocol + '//' + location.host);
- };
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
- if (!set || !clear) {
- set = function setImmediate(fn) {
- var args = [];
- var i = 1;
- while (arguments.length > i) args.push(arguments[i++]);
- queue[++counter] = function () {
- // eslint-disable-next-line no-new-func
- (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
- };
- defer(counter);
- return counter;
- };
- clear = function clearImmediate(id) {
- delete queue[id];
- };
- // Node.js 0.8-
- if (classof(process) == 'process') {
- defer = function (id) {
- process.nextTick(runner(id));
- };
- // Sphere (JS game engine) Dispatch API
- } else if (Dispatch && Dispatch.now) {
- defer = function (id) {
- Dispatch.now(runner(id));
- };
- // Browsers with MessageChannel, includes WebWorkers
- // except iOS - https://github.com/zloirock/core-js/issues/624
- } else if (MessageChannel && !IS_IOS) {
- channel = new MessageChannel();
- port = channel.port2;
- channel.port1.onmessage = listener;
- defer = bind(port.postMessage, port, 1);
- // Browsers with postMessage, skip WebWorkers
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
- } else if (
- global.addEventListener &&
- typeof postMessage == 'function' &&
- !global.importScripts &&
- !fails(post) &&
- location.protocol !== 'file:'
- ) {
- defer = post;
- global.addEventListener('message', listener, false);
- // IE8-
- } else if (ONREADYSTATECHANGE in createElement('script')) {
- defer = function (id) {
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
- html.removeChild(this);
- run(id);
- };
- };
- // Rest old browsers
- } else {
- defer = function (id) {
- setTimeout(runner(id), 0);
- };
- }
- }
- module.exports = {
- set: set,
- clear: clear
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-absolute-index.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var max = Math.max;
- var min = Math.min;
- // Helper for a popular repeating case of the spec:
- // Let integer be ? ToInteger(index).
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
- module.exports = function (index, length) {
- var integer = toInteger(index);
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-index.js":
- /*!****************************************************!*\
- !*** ./node_modules/core-js/internals/to-index.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- // `ToIndex` abstract operation
- // https://tc39.github.io/ecma262/#sec-toindex
- module.exports = function (it) {
- if (it === undefined) return 0;
- var number = toInteger(it);
- var length = toLength(number);
- if (number !== length) throw RangeError('Wrong length or index');
- return length;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-indexed-object.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // toObject with fallback for non-array-like ES3 strings
- var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js");
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- module.exports = function (it) {
- return IndexedObject(requireObjectCoercible(it));
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-integer.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/to-integer.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var ceil = Math.ceil;
- var floor = Math.floor;
- // `ToInteger` abstract operation
- // https://tc39.github.io/ecma262/#sec-tointeger
- module.exports = function (argument) {
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-length.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/to-length.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var min = Math.min;
- // `ToLength` abstract operation
- // https://tc39.github.io/ecma262/#sec-tolength
- module.exports = function (argument) {
- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-object.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/to-object.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- // `ToObject` abstract operation
- // https://tc39.github.io/ecma262/#sec-toobject
- module.exports = function (argument) {
- return Object(requireObjectCoercible(argument));
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-offset.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/to-offset.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toPositiveInteger = __webpack_require__(/*! ../internals/to-positive-integer */ "./node_modules/core-js/internals/to-positive-integer.js");
- module.exports = function (it, BYTES) {
- var offset = toPositiveInteger(it);
- if (offset % BYTES) throw RangeError('Wrong offset');
- return offset;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-positive-integer.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/internals/to-positive-integer.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- module.exports = function (it) {
- var result = toInteger(it);
- if (result < 0) throw RangeError("The argument can't be less than 0");
- return result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-primitive.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/to-primitive.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- // `ToPrimitive` abstract operation
- // https://tc39.github.io/ecma262/#sec-toprimitive
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (input, PREFERRED_STRING) {
- if (!isObject(input)) return input;
- var fn, val;
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/to-string-tag-support.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
- var test = {};
- test[TO_STRING_TAG] = 'z';
- module.exports = String(test) === '[object z]';
- /***/ }),
- /***/ "./node_modules/core-js/internals/typed-array-constructor.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/internals/typed-array-constructor.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(/*! ../internals/typed-array-constructors-require-wrappers */ "./node_modules/core-js/internals/typed-array-constructors-require-wrappers.js");
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var ArrayBufferModule = __webpack_require__(/*! ../internals/array-buffer */ "./node_modules/core-js/internals/array-buffer.js");
- var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toIndex = __webpack_require__(/*! ../internals/to-index */ "./node_modules/core-js/internals/to-index.js");
- var toOffset = __webpack_require__(/*! ../internals/to-offset */ "./node_modules/core-js/internals/to-offset.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
- var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
- var getOwnPropertyNames = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js").f;
- var typedArrayFrom = __webpack_require__(/*! ../internals/typed-array-from */ "./node_modules/core-js/internals/typed-array-from.js");
- var forEach = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").forEach;
- var setSpecies = __webpack_require__(/*! ../internals/set-species */ "./node_modules/core-js/internals/set-species.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ "./node_modules/core-js/internals/inherit-if-required.js");
- var getInternalState = InternalStateModule.get;
- var setInternalState = InternalStateModule.set;
- var nativeDefineProperty = definePropertyModule.f;
- var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- var round = Math.round;
- var RangeError = global.RangeError;
- var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
- var DataView = ArrayBufferModule.DataView;
- var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
- var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
- var TypedArray = ArrayBufferViewCore.TypedArray;
- var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
- var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
- var isTypedArray = ArrayBufferViewCore.isTypedArray;
- var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
- var WRONG_LENGTH = 'Wrong length';
- var fromList = function (C, list) {
- var index = 0;
- var length = list.length;
- var result = new (aTypedArrayConstructor(C))(length);
- while (length > index) result[index] = list[index++];
- return result;
- };
- var addGetter = function (it, key) {
- nativeDefineProperty(it, key, { get: function () {
- return getInternalState(this)[key];
- } });
- };
- var isArrayBuffer = function (it) {
- var klass;
- return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
- };
- var isTypedArrayIndex = function (target, key) {
- return isTypedArray(target)
- && typeof key != 'symbol'
- && key in target
- && String(+key) == String(key);
- };
- var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
- return isTypedArrayIndex(target, key = toPrimitive(key, true))
- ? createPropertyDescriptor(2, target[key])
- : nativeGetOwnPropertyDescriptor(target, key);
- };
- var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
- if (isTypedArrayIndex(target, key = toPrimitive(key, true))
- && isObject(descriptor)
- && has(descriptor, 'value')
- && !has(descriptor, 'get')
- && !has(descriptor, 'set')
- // TODO: add validation descriptor w/o calling accessors
- && !descriptor.configurable
- && (!has(descriptor, 'writable') || descriptor.writable)
- && (!has(descriptor, 'enumerable') || descriptor.enumerable)
- ) {
- target[key] = descriptor.value;
- return target;
- } return nativeDefineProperty(target, key, descriptor);
- };
- if (DESCRIPTORS) {
- if (!NATIVE_ARRAY_BUFFER_VIEWS) {
- getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
- definePropertyModule.f = wrappedDefineProperty;
- addGetter(TypedArrayPrototype, 'buffer');
- addGetter(TypedArrayPrototype, 'byteOffset');
- addGetter(TypedArrayPrototype, 'byteLength');
- addGetter(TypedArrayPrototype, 'length');
- }
- $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
- getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
- defineProperty: wrappedDefineProperty
- });
- module.exports = function (TYPE, wrapper, CLAMPED) {
- var BYTES = TYPE.match(/\d+$/)[0] / 8;
- var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
- var GETTER = 'get' + TYPE;
- var SETTER = 'set' + TYPE;
- var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];
- var TypedArrayConstructor = NativeTypedArrayConstructor;
- var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
- var exported = {};
- var getter = function (that, index) {
- var data = getInternalState(that);
- return data.view[GETTER](index * BYTES + data.byteOffset, true);
- };
- var setter = function (that, index, value) {
- var data = getInternalState(that);
- if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
- data.view[SETTER](index * BYTES + data.byteOffset, value, true);
- };
- var addElement = function (that, index) {
- nativeDefineProperty(that, index, {
- get: function () {
- return getter(this, index);
- },
- set: function (value) {
- return setter(this, index, value);
- },
- enumerable: true
- });
- };
- if (!NATIVE_ARRAY_BUFFER_VIEWS) {
- TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
- anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
- var index = 0;
- var byteOffset = 0;
- var buffer, byteLength, length;
- if (!isObject(data)) {
- length = toIndex(data);
- byteLength = length * BYTES;
- buffer = new ArrayBuffer(byteLength);
- } else if (isArrayBuffer(data)) {
- buffer = data;
- byteOffset = toOffset(offset, BYTES);
- var $len = data.byteLength;
- if ($length === undefined) {
- if ($len % BYTES) throw RangeError(WRONG_LENGTH);
- byteLength = $len - byteOffset;
- if (byteLength < 0) throw RangeError(WRONG_LENGTH);
- } else {
- byteLength = toLength($length) * BYTES;
- if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);
- }
- length = byteLength / BYTES;
- } else if (isTypedArray(data)) {
- return fromList(TypedArrayConstructor, data);
- } else {
- return typedArrayFrom.call(TypedArrayConstructor, data);
- }
- setInternalState(that, {
- buffer: buffer,
- byteOffset: byteOffset,
- byteLength: byteLength,
- length: length,
- view: new DataView(buffer)
- });
- while (index < length) addElement(that, index++);
- });
- if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
- TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
- } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
- TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
- anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
- return inheritIfRequired(function () {
- if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
- if (isArrayBuffer(data)) return $length !== undefined
- ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)
- : typedArrayOffset !== undefined
- ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
- : new NativeTypedArrayConstructor(data);
- if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
- return typedArrayFrom.call(TypedArrayConstructor, data);
- }(), dummy, TypedArrayConstructor);
- });
- if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
- forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {
- if (!(key in TypedArrayConstructor)) {
- createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
- }
- });
- TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
- }
- if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
- createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
- }
- if (TYPED_ARRAY_TAG) {
- createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
- }
- exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
- $({
- global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
- }, exported);
- if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
- createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
- }
- if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
- createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
- }
- setSpecies(CONSTRUCTOR_NAME);
- };
- } else module.exports = function () { /* empty */ };
- /***/ }),
- /***/ "./node_modules/core-js/internals/typed-array-constructors-require-wrappers.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/core-js/internals/typed-array-constructors-require-wrappers.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* eslint-disable no-new */
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ "./node_modules/core-js/internals/check-correctness-of-iteration.js");
- var NATIVE_ARRAY_BUFFER_VIEWS = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js").NATIVE_ARRAY_BUFFER_VIEWS;
- var ArrayBuffer = global.ArrayBuffer;
- var Int8Array = global.Int8Array;
- module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
- Int8Array(1);
- }) || !fails(function () {
- new Int8Array(-1);
- }) || !checkCorrectnessOfIteration(function (iterable) {
- new Int8Array();
- new Int8Array(null);
- new Int8Array(1.5);
- new Int8Array(iterable);
- }, true) || fails(function () {
- // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
- return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
- });
- /***/ }),
- /***/ "./node_modules/core-js/internals/typed-array-from.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/internals/typed-array-from.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "./node_modules/core-js/internals/get-iterator-method.js");
- var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "./node_modules/core-js/internals/is-array-iterator-method.js");
- var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
- var aTypedArrayConstructor = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js").aTypedArrayConstructor;
- module.exports = function from(source /* , mapfn, thisArg */) {
- var O = toObject(source);
- var argumentsLength = arguments.length;
- var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var iteratorMethod = getIteratorMethod(O);
- var i, length, result, step, iterator, next;
- if (iteratorMethod != undefined && !isArrayIteratorMethod(iteratorMethod)) {
- iterator = iteratorMethod.call(O);
- next = iterator.next;
- O = [];
- while (!(step = next.call(iterator)).done) {
- O.push(step.value);
- }
- }
- if (mapping && argumentsLength > 2) {
- mapfn = bind(mapfn, arguments[2], 2);
- }
- length = toLength(O.length);
- result = new (aTypedArrayConstructor(this))(length);
- for (i = 0; length > i; i++) {
- result[i] = mapping ? mapfn(O[i], i) : O[i];
- }
- return result;
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/uid.js":
- /*!***********************************************!*\
- !*** ./node_modules/core-js/internals/uid.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var id = 0;
- var postfix = Math.random();
- module.exports = function (key) {
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/use-symbol-as-uid.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/native-symbol */ "./node_modules/core-js/internals/native-symbol.js");
- module.exports = NATIVE_SYMBOL
- // eslint-disable-next-line no-undef
- && !Symbol.sham
- // eslint-disable-next-line no-undef
- && typeof Symbol.iterator == 'symbol';
- /***/ }),
- /***/ "./node_modules/core-js/internals/well-known-symbol-wrapped.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- exports.f = wellKnownSymbol;
- /***/ }),
- /***/ "./node_modules/core-js/internals/well-known-symbol.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
- var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/native-symbol */ "./node_modules/core-js/internals/native-symbol.js");
- var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js");
- var WellKnownSymbolsStore = shared('wks');
- var Symbol = global.Symbol;
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
- module.exports = function (name) {
- if (!has(WellKnownSymbolsStore, name)) {
- if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
- } return WellKnownSymbolsStore[name];
- };
- /***/ }),
- /***/ "./node_modules/core-js/internals/whitespaces.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/whitespaces.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // a string of all valid unicode whitespaces
- // eslint-disable-next-line max-len
- module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.concat.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.concat.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var isArray = __webpack_require__(/*! ../internals/is-array */ "./node_modules/core-js/internals/is-array.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var createProperty = __webpack_require__(/*! ../internals/create-property */ "./node_modules/core-js/internals/create-property.js");
- var arraySpeciesCreate = __webpack_require__(/*! ../internals/array-species-create */ "./node_modules/core-js/internals/array-species-create.js");
- var arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ "./node_modules/core-js/internals/array-method-has-species-support.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js");
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
- // We can't use this feature detection in V8 since it causes
- // deoptimization and serious performance degradation
- // https://github.com/zloirock/core-js/issues/679
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
- var array = [];
- array[IS_CONCAT_SPREADABLE] = false;
- return array.concat()[0] !== array;
- });
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
- var isConcatSpreadable = function (O) {
- if (!isObject(O)) return false;
- var spreadable = O[IS_CONCAT_SPREADABLE];
- return spreadable !== undefined ? !!spreadable : isArray(O);
- };
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
- // `Array.prototype.concat` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.concat
- // with adding support of @@isConcatSpreadable and @@species
- $({ target: 'Array', proto: true, forced: FORCED }, {
- concat: function concat(arg) { // eslint-disable-line no-unused-vars
- var O = toObject(this);
- var A = arraySpeciesCreate(O, 0);
- var n = 0;
- var i, k, length, len, E;
- for (i = -1, length = arguments.length; i < length; i++) {
- E = i === -1 ? O : arguments[i];
- if (isConcatSpreadable(E)) {
- len = toLength(E.length);
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
- } else {
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- createProperty(A, n++, E);
- }
- }
- A.length = n;
- return A;
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.filter.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.filter.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var $filter = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").filter;
- var arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ "./node_modules/core-js/internals/array-method-has-species-support.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
- // Edge 14- issue
- var USES_TO_LENGTH = arrayMethodUsesToLength('filter');
- // `Array.prototype.filter` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
- // with adding support of @@species
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- filter: function filter(callbackfn /* , thisArg */) {
- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.find.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.find.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var $find = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").find;
- var addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ "./node_modules/core-js/internals/add-to-unscopables.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var FIND = 'find';
- var SKIPS_HOLES = true;
- var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
- // Shouldn't skip holes
- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
- // `Array.prototype.find` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
- $({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
- find: function find(callbackfn /* , that = undefined */) {
- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
- addToUnscopables(FIND);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.for-each.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.for-each.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var forEach = __webpack_require__(/*! ../internals/array-for-each */ "./node_modules/core-js/internals/array-for-each.js");
- // `Array.prototype.forEach` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
- $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
- forEach: forEach
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.from.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.from.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var from = __webpack_require__(/*! ../internals/array-from */ "./node_modules/core-js/internals/array-from.js");
- var checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ "./node_modules/core-js/internals/check-correctness-of-iteration.js");
- var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
- Array.from(iterable);
- });
- // `Array.from` method
- // https://tc39.github.io/ecma262/#sec-array.from
- $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
- from: from
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.includes.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.includes.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var $includes = __webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").includes;
- var addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ "./node_modules/core-js/internals/add-to-unscopables.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
- // `Array.prototype.includes` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
- $({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
- includes: function includes(el /* , fromIndex = 0 */) {
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
- addToUnscopables('includes');
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.index-of.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.index-of.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var $indexOf = __webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").indexOf;
- var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var nativeIndexOf = [].indexOf;
- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
- var STRICT_METHOD = arrayMethodIsStrict('indexOf');
- var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
- // `Array.prototype.indexOf` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
- $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {
- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
- return NEGATIVE_ZERO
- // convert -0 to +0
- ? nativeIndexOf.apply(this, arguments) || 0
- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.iterator.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.iterator.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ "./node_modules/core-js/internals/add-to-unscopables.js");
- var Iterators = __webpack_require__(/*! ../internals/iterators */ "./node_modules/core-js/internals/iterators.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var defineIterator = __webpack_require__(/*! ../internals/define-iterator */ "./node_modules/core-js/internals/define-iterator.js");
- var ARRAY_ITERATOR = 'Array Iterator';
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
- // `Array.prototype.entries` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.entries
- // `Array.prototype.keys` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.keys
- // `Array.prototype.values` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.values
- // `Array.prototype[@@iterator]` method
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
- // `CreateArrayIterator` internal method
- // https://tc39.github.io/ecma262/#sec-createarrayiterator
- module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
- setInternalState(this, {
- type: ARRAY_ITERATOR,
- target: toIndexedObject(iterated), // target
- index: 0, // next index
- kind: kind // kind
- });
- // `%ArrayIteratorPrototype%.next` method
- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
- }, function () {
- var state = getInternalState(this);
- var target = state.target;
- var kind = state.kind;
- var index = state.index++;
- if (!target || index >= target.length) {
- state.target = undefined;
- return { value: undefined, done: true };
- }
- if (kind == 'keys') return { value: index, done: false };
- if (kind == 'values') return { value: target[index], done: false };
- return { value: [index, target[index]], done: false };
- }, 'values');
- // argumentsList[@@iterator] is %ArrayProto_values%
- // https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject
- // https://tc39.github.io/ecma262/#sec-createmappedargumentsobject
- Iterators.Arguments = Iterators.Array;
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.array.slice.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/modules/es.array.slice.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var isArray = __webpack_require__(/*! ../internals/is-array */ "./node_modules/core-js/internals/is-array.js");
- var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var createProperty = __webpack_require__(/*! ../internals/create-property */ "./node_modules/core-js/internals/create-property.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ "./node_modules/core-js/internals/array-method-has-species-support.js");
- var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
- var USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
- var SPECIES = wellKnownSymbol('species');
- var nativeSlice = [].slice;
- var max = Math.max;
- // `Array.prototype.slice` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.slice
- // fallback for not array-like ES3 strings and DOM objects
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- slice: function slice(start, end) {
- var O = toIndexedObject(this);
- var length = toLength(O.length);
- var k = toAbsoluteIndex(start, length);
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
- var Constructor, result, n;
- if (isArray(O)) {
- Constructor = O.constructor;
- // cross-realm fallback
- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
- Constructor = undefined;
- } else if (isObject(Constructor)) {
- Constructor = Constructor[SPECIES];
- if (Constructor === null) Constructor = undefined;
- }
- if (Constructor === Array || Constructor === undefined) {
- return nativeSlice.call(O, k, fin);
- }
- }
- result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
- result.length = n;
- return result;
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.function.name.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/modules/es.function.name.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var FunctionPrototype = Function.prototype;
- var FunctionPrototypeToString = FunctionPrototype.toString;
- var nameRE = /^\s*function ([^ (]*)/;
- var NAME = 'name';
- // Function instances `.name` property
- // https://tc39.github.io/ecma262/#sec-function-instances-name
- if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
- defineProperty(FunctionPrototype, NAME, {
- configurable: true,
- get: function () {
- try {
- return FunctionPrototypeToString.call(this).match(nameRE)[1];
- } catch (error) {
- return '';
- }
- }
- });
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.number.constructor.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/modules/es.number.constructor.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ "./node_modules/core-js/internals/inherit-if-required.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
- var getOwnPropertyNames = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js").f;
- var getOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f;
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var trim = __webpack_require__(/*! ../internals/string-trim */ "./node_modules/core-js/internals/string-trim.js").trim;
- var NUMBER = 'Number';
- var NativeNumber = global[NUMBER];
- var NumberPrototype = NativeNumber.prototype;
- // Opera ~12 has broken Object#toString
- var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
- // `ToNumber` abstract operation
- // https://tc39.github.io/ecma262/#sec-tonumber
- var toNumber = function (argument) {
- var it = toPrimitive(argument, false);
- var first, third, radix, maxCode, digits, length, index, code;
- if (typeof it == 'string' && it.length > 2) {
- it = trim(it);
- first = it.charCodeAt(0);
- if (first === 43 || first === 45) {
- third = it.charCodeAt(2);
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
- } else if (first === 48) {
- switch (it.charCodeAt(1)) {
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
- default: return +it;
- }
- digits = it.slice(2);
- length = digits.length;
- for (index = 0; index < length; index++) {
- code = digits.charCodeAt(index);
- // parseInt parses a string to a first unavailable symbol
- // but ToNumber should return NaN if a string contains unavailable symbols
- if (code < 48 || code > maxCode) return NaN;
- } return parseInt(digits, radix);
- }
- } return +it;
- };
- // `Number` constructor
- // https://tc39.github.io/ecma262/#sec-number-constructor
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
- var NumberWrapper = function Number(value) {
- var it = arguments.length < 1 ? 0 : value;
- var dummy = this;
- return dummy instanceof NumberWrapper
- // check on 1..constructor(foo) case
- && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
- ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
- };
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
- // ES3:
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
- // ES2015 (in case, if modules with ES2015 Number statics required before):
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
- ).split(','), j = 0, key; keys.length > j; j++) {
- if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
- }
- }
- NumberWrapper.prototype = NumberPrototype;
- NumberPrototype.constructor = NumberWrapper;
- redefine(global, NUMBER, NumberWrapper);
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.object.assign.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/modules/es.object.assign.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var assign = __webpack_require__(/*! ../internals/object-assign */ "./node_modules/core-js/internals/object-assign.js");
- // `Object.assign` method
- // https://tc39.github.io/ecma262/#sec-object.assign
- $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
- assign: assign
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.object.keys.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/modules/es.object.keys.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var nativeKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
- // `Object.keys` method
- // https://tc39.github.io/ecma262/#sec-object.keys
- $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
- keys: function keys(it) {
- return nativeKeys(toObject(it));
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.object.to-string.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.object.to-string.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var toString = __webpack_require__(/*! ../internals/object-to-string */ "./node_modules/core-js/internals/object-to-string.js");
- // `Object.prototype.toString` method
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
- if (!TO_STRING_TAG_SUPPORT) {
- redefine(Object.prototype, 'toString', toString, { unsafe: true });
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.promise.finally.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/modules/es.promise.finally.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var NativePromise = __webpack_require__(/*! ../internals/native-promise-constructor */ "./node_modules/core-js/internals/native-promise-constructor.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var promiseResolve = __webpack_require__(/*! ../internals/promise-resolve */ "./node_modules/core-js/internals/promise-resolve.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
- var NON_GENERIC = !!NativePromise && fails(function () {
- NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
- });
- // `Promise.prototype.finally` method
- // https://tc39.github.io/ecma262/#sec-promise.prototype.finally
- $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
- 'finally': function (onFinally) {
- var C = speciesConstructor(this, getBuiltIn('Promise'));
- var isFunction = typeof onFinally == 'function';
- return this.then(
- isFunction ? function (x) {
- return promiseResolve(C, onFinally()).then(function () { return x; });
- } : onFinally,
- isFunction ? function (e) {
- return promiseResolve(C, onFinally()).then(function () { throw e; });
- } : onFinally
- );
- }
- });
- // patch native Promise.prototype for native async functions
- if (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {
- redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.promise.js":
- /*!****************************************************!*\
- !*** ./node_modules/core-js/modules/es.promise.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- var NativePromise = __webpack_require__(/*! ../internals/native-promise-constructor */ "./node_modules/core-js/internals/native-promise-constructor.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var redefineAll = __webpack_require__(/*! ../internals/redefine-all */ "./node_modules/core-js/internals/redefine-all.js");
- var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
- var setSpecies = __webpack_require__(/*! ../internals/set-species */ "./node_modules/core-js/internals/set-species.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
- var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
- var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js");
- var iterate = __webpack_require__(/*! ../internals/iterate */ "./node_modules/core-js/internals/iterate.js");
- var checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ "./node_modules/core-js/internals/check-correctness-of-iteration.js");
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var task = __webpack_require__(/*! ../internals/task */ "./node_modules/core-js/internals/task.js").set;
- var microtask = __webpack_require__(/*! ../internals/microtask */ "./node_modules/core-js/internals/microtask.js");
- var promiseResolve = __webpack_require__(/*! ../internals/promise-resolve */ "./node_modules/core-js/internals/promise-resolve.js");
- var hostReportErrors = __webpack_require__(/*! ../internals/host-report-errors */ "./node_modules/core-js/internals/host-report-errors.js");
- var newPromiseCapabilityModule = __webpack_require__(/*! ../internals/new-promise-capability */ "./node_modules/core-js/internals/new-promise-capability.js");
- var perform = __webpack_require__(/*! ../internals/perform */ "./node_modules/core-js/internals/perform.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js");
- var SPECIES = wellKnownSymbol('species');
- var PROMISE = 'Promise';
- var getInternalState = InternalStateModule.get;
- var setInternalState = InternalStateModule.set;
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
- var PromiseConstructor = NativePromise;
- var TypeError = global.TypeError;
- var document = global.document;
- var process = global.process;
- var $fetch = getBuiltIn('fetch');
- var newPromiseCapability = newPromiseCapabilityModule.f;
- var newGenericPromiseCapability = newPromiseCapability;
- var IS_NODE = classof(process) == 'process';
- var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
- var UNHANDLED_REJECTION = 'unhandledrejection';
- var REJECTION_HANDLED = 'rejectionhandled';
- var PENDING = 0;
- var FULFILLED = 1;
- var REJECTED = 2;
- var HANDLED = 1;
- var UNHANDLED = 2;
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
- var FORCED = isForced(PROMISE, function () {
- var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
- if (!GLOBAL_CORE_JS_PROMISE) {
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
- // We can't detect it synchronously, so just check versions
- if (V8_VERSION === 66) return true;
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
- if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
- }
- // We need Promise#finally in the pure version for preventing prototype pollution
- if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
- // We can't use @@species feature detection in V8 since it causes
- // deoptimization and performance degradation
- // https://github.com/zloirock/core-js/issues/679
- if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
- // Detect correctness of subclassing with @@species support
- var promise = PromiseConstructor.resolve(1);
- var FakePromise = function (exec) {
- exec(function () { /* empty */ }, function () { /* empty */ });
- };
- var constructor = promise.constructor = {};
- constructor[SPECIES] = FakePromise;
- return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
- });
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
- });
- // helpers
- var isThenable = function (it) {
- var then;
- return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
- };
- var notify = function (promise, state, isReject) {
- if (state.notified) return;
- state.notified = true;
- var chain = state.reactions;
- microtask(function () {
- var value = state.value;
- var ok = state.state == FULFILLED;
- var index = 0;
- // variable length - can't use forEach
- while (chain.length > index) {
- var reaction = chain[index++];
- var handler = ok ? reaction.ok : reaction.fail;
- var resolve = reaction.resolve;
- var reject = reaction.reject;
- var domain = reaction.domain;
- var result, then, exited;
- try {
- if (handler) {
- if (!ok) {
- if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);
- state.rejection = HANDLED;
- }
- if (handler === true) result = value;
- else {
- if (domain) domain.enter();
- result = handler(value); // can throw
- if (domain) {
- domain.exit();
- exited = true;
- }
- }
- if (result === reaction.promise) {
- reject(TypeError('Promise-chain cycle'));
- } else if (then = isThenable(result)) {
- then.call(result, resolve, reject);
- } else resolve(result);
- } else reject(value);
- } catch (error) {
- if (domain && !exited) domain.exit();
- reject(error);
- }
- }
- state.reactions = [];
- state.notified = false;
- if (isReject && !state.rejection) onUnhandled(promise, state);
- });
- };
- var dispatchEvent = function (name, promise, reason) {
- var event, handler;
- if (DISPATCH_EVENT) {
- event = document.createEvent('Event');
- event.promise = promise;
- event.reason = reason;
- event.initEvent(name, false, true);
- global.dispatchEvent(event);
- } else event = { promise: promise, reason: reason };
- if (handler = global['on' + name]) handler(event);
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
- };
- var onUnhandled = function (promise, state) {
- task.call(global, function () {
- var value = state.value;
- var IS_UNHANDLED = isUnhandled(state);
- var result;
- if (IS_UNHANDLED) {
- result = perform(function () {
- if (IS_NODE) {
- process.emit('unhandledRejection', value, promise);
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
- });
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
- if (result.error) throw result.value;
- }
- });
- };
- var isUnhandled = function (state) {
- return state.rejection !== HANDLED && !state.parent;
- };
- var onHandleUnhandled = function (promise, state) {
- task.call(global, function () {
- if (IS_NODE) {
- process.emit('rejectionHandled', promise);
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
- });
- };
- var bind = function (fn, promise, state, unwrap) {
- return function (value) {
- fn(promise, state, value, unwrap);
- };
- };
- var internalReject = function (promise, state, value, unwrap) {
- if (state.done) return;
- state.done = true;
- if (unwrap) state = unwrap;
- state.value = value;
- state.state = REJECTED;
- notify(promise, state, true);
- };
- var internalResolve = function (promise, state, value, unwrap) {
- if (state.done) return;
- state.done = true;
- if (unwrap) state = unwrap;
- try {
- if (promise === value) throw TypeError("Promise can't be resolved itself");
- var then = isThenable(value);
- if (then) {
- microtask(function () {
- var wrapper = { done: false };
- try {
- then.call(value,
- bind(internalResolve, promise, wrapper, state),
- bind(internalReject, promise, wrapper, state)
- );
- } catch (error) {
- internalReject(promise, wrapper, error, state);
- }
- });
- } else {
- state.value = value;
- state.state = FULFILLED;
- notify(promise, state, false);
- }
- } catch (error) {
- internalReject(promise, { done: false }, error, state);
- }
- };
- // constructor polyfill
- if (FORCED) {
- // 25.4.3.1 Promise(executor)
- PromiseConstructor = function Promise(executor) {
- anInstance(this, PromiseConstructor, PROMISE);
- aFunction(executor);
- Internal.call(this);
- var state = getInternalState(this);
- try {
- executor(bind(internalResolve, this, state), bind(internalReject, this, state));
- } catch (error) {
- internalReject(this, state, error);
- }
- };
- // eslint-disable-next-line no-unused-vars
- Internal = function Promise(executor) {
- setInternalState(this, {
- type: PROMISE,
- done: false,
- notified: false,
- parent: false,
- reactions: [],
- rejection: false,
- state: PENDING,
- value: undefined
- });
- };
- Internal.prototype = redefineAll(PromiseConstructor.prototype, {
- // `Promise.prototype.then` method
- // https://tc39.github.io/ecma262/#sec-promise.prototype.then
- then: function then(onFulfilled, onRejected) {
- var state = getInternalPromiseState(this);
- var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
- reaction.fail = typeof onRejected == 'function' && onRejected;
- reaction.domain = IS_NODE ? process.domain : undefined;
- state.parent = true;
- state.reactions.push(reaction);
- if (state.state != PENDING) notify(this, state, false);
- return reaction.promise;
- },
- // `Promise.prototype.catch` method
- // https://tc39.github.io/ecma262/#sec-promise.prototype.catch
- 'catch': function (onRejected) {
- return this.then(undefined, onRejected);
- }
- });
- OwnPromiseCapability = function () {
- var promise = new Internal();
- var state = getInternalState(promise);
- this.promise = promise;
- this.resolve = bind(internalResolve, promise, state);
- this.reject = bind(internalReject, promise, state);
- };
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
- return C === PromiseConstructor || C === PromiseWrapper
- ? new OwnPromiseCapability(C)
- : newGenericPromiseCapability(C);
- };
- if (!IS_PURE && typeof NativePromise == 'function') {
- nativeThen = NativePromise.prototype.then;
- // wrap native Promise#then for native async functions
- redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
- var that = this;
- return new PromiseConstructor(function (resolve, reject) {
- nativeThen.call(that, resolve, reject);
- }).then(onFulfilled, onRejected);
- // https://github.com/zloirock/core-js/issues/640
- }, { unsafe: true });
- // wrap fetch result
- if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
- // eslint-disable-next-line no-unused-vars
- fetch: function fetch(input /* , init */) {
- return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
- }
- });
- }
- }
- $({ global: true, wrap: true, forced: FORCED }, {
- Promise: PromiseConstructor
- });
- setToStringTag(PromiseConstructor, PROMISE, false, true);
- setSpecies(PROMISE);
- PromiseWrapper = getBuiltIn(PROMISE);
- // statics
- $({ target: PROMISE, stat: true, forced: FORCED }, {
- // `Promise.reject` method
- // https://tc39.github.io/ecma262/#sec-promise.reject
- reject: function reject(r) {
- var capability = newPromiseCapability(this);
- capability.reject.call(undefined, r);
- return capability.promise;
- }
- });
- $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
- // `Promise.resolve` method
- // https://tc39.github.io/ecma262/#sec-promise.resolve
- resolve: function resolve(x) {
- return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
- }
- });
- $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
- // `Promise.all` method
- // https://tc39.github.io/ecma262/#sec-promise.all
- all: function all(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var resolve = capability.resolve;
- var reject = capability.reject;
- var result = perform(function () {
- var $promiseResolve = aFunction(C.resolve);
- var values = [];
- var counter = 0;
- var remaining = 1;
- iterate(iterable, function (promise) {
- var index = counter++;
- var alreadyCalled = false;
- values.push(undefined);
- remaining++;
- $promiseResolve.call(C, promise).then(function (value) {
- if (alreadyCalled) return;
- alreadyCalled = true;
- values[index] = value;
- --remaining || resolve(values);
- }, reject);
- });
- --remaining || resolve(values);
- });
- if (result.error) reject(result.value);
- return capability.promise;
- },
- // `Promise.race` method
- // https://tc39.github.io/ecma262/#sec-promise.race
- race: function race(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var reject = capability.reject;
- var result = perform(function () {
- var $promiseResolve = aFunction(C.resolve);
- iterate(iterable, function (promise) {
- $promiseResolve.call(C, promise).then(capability.resolve, reject);
- });
- });
- if (result.error) reject(result.value);
- return capability.promise;
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.regexp.constructor.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/modules/es.regexp.constructor.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
- var inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ "./node_modules/core-js/internals/inherit-if-required.js");
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var getOwnPropertyNames = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js").f;
- var isRegExp = __webpack_require__(/*! ../internals/is-regexp */ "./node_modules/core-js/internals/is-regexp.js");
- var getFlags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
- var stickyHelpers = __webpack_require__(/*! ../internals/regexp-sticky-helpers */ "./node_modules/core-js/internals/regexp-sticky-helpers.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var setInternalState = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js").set;
- var setSpecies = __webpack_require__(/*! ../internals/set-species */ "./node_modules/core-js/internals/set-species.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var MATCH = wellKnownSymbol('match');
- var NativeRegExp = global.RegExp;
- var RegExpPrototype = NativeRegExp.prototype;
- var re1 = /a/g;
- var re2 = /a/g;
- // "new" should create a new object, old webkit bug
- var CORRECT_NEW = new NativeRegExp(re1) !== re1;
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
- var FORCED = DESCRIPTORS && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
- re2[MATCH] = false;
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
- })));
- // `RegExp` constructor
- // https://tc39.github.io/ecma262/#sec-regexp-constructor
- if (FORCED) {
- var RegExpWrapper = function RegExp(pattern, flags) {
- var thisIsRegExp = this instanceof RegExpWrapper;
- var patternIsRegExp = isRegExp(pattern);
- var flagsAreUndefined = flags === undefined;
- var sticky;
- if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
- return pattern;
- }
- if (CORRECT_NEW) {
- if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
- } else if (pattern instanceof RegExpWrapper) {
- if (flagsAreUndefined) flags = getFlags.call(pattern);
- pattern = pattern.source;
- }
- if (UNSUPPORTED_Y) {
- sticky = !!flags && flags.indexOf('y') > -1;
- if (sticky) flags = flags.replace(/y/g, '');
- }
- var result = inheritIfRequired(
- CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
- thisIsRegExp ? this : RegExpPrototype,
- RegExpWrapper
- );
- if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
- return result;
- };
- var proxy = function (key) {
- key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
- configurable: true,
- get: function () { return NativeRegExp[key]; },
- set: function (it) { NativeRegExp[key] = it; }
- });
- };
- var keys = getOwnPropertyNames(NativeRegExp);
- var index = 0;
- while (keys.length > index) proxy(keys[index++]);
- RegExpPrototype.constructor = RegExpWrapper;
- RegExpWrapper.prototype = RegExpPrototype;
- redefine(global, 'RegExp', RegExpWrapper);
- }
- // https://tc39.github.io/ecma262/#sec-get-regexp-@@species
- setSpecies('RegExp');
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.regexp.exec.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/modules/es.regexp.exec.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var exec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js");
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
- exec: exec
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.regexp.to-string.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var flags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
- var TO_STRING = 'toString';
- var RegExpPrototype = RegExp.prototype;
- var nativeToString = RegExpPrototype[TO_STRING];
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
- // FF44- RegExp#toString has a wrong name
- var INCORRECT_NAME = nativeToString.name != TO_STRING;
- // `RegExp.prototype.toString` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
- if (NOT_GENERIC || INCORRECT_NAME) {
- redefine(RegExp.prototype, TO_STRING, function toString() {
- var R = anObject(this);
- var p = String(R.source);
- var rf = R.flags;
- var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
- return '/' + p + '/' + f;
- }, { unsafe: true });
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.string.iterator.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/modules/es.string.iterator.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var charAt = __webpack_require__(/*! ../internals/string-multibyte */ "./node_modules/core-js/internals/string-multibyte.js").charAt;
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var defineIterator = __webpack_require__(/*! ../internals/define-iterator */ "./node_modules/core-js/internals/define-iterator.js");
- var STRING_ITERATOR = 'String Iterator';
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
- // `String.prototype[@@iterator]` method
- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
- defineIterator(String, 'String', function (iterated) {
- setInternalState(this, {
- type: STRING_ITERATOR,
- string: String(iterated),
- index: 0
- });
- // `%StringIteratorPrototype%.next` method
- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
- }, function next() {
- var state = getInternalState(this);
- var string = state.string;
- var index = state.index;
- var point;
- if (index >= string.length) return { value: undefined, done: true };
- point = charAt(string, index);
- state.index += point.length;
- return { value: point, done: false };
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.string.match.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/modules/es.string.match.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fixRegExpWellKnownSymbolLogic = __webpack_require__(/*! ../internals/fix-regexp-well-known-symbol-logic */ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- var advanceStringIndex = __webpack_require__(/*! ../internals/advance-string-index */ "./node_modules/core-js/internals/advance-string-index.js");
- var regExpExec = __webpack_require__(/*! ../internals/regexp-exec-abstract */ "./node_modules/core-js/internals/regexp-exec-abstract.js");
- // @@match logic
- fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
- return [
- // `String.prototype.match` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.match
- function match(regexp) {
- var O = requireObjectCoercible(this);
- var matcher = regexp == undefined ? undefined : regexp[MATCH];
- return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
- },
- // `RegExp.prototype[@@match]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
- function (regexp) {
- var res = maybeCallNative(nativeMatch, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- if (!rx.global) return regExpExec(rx, S);
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- var A = [];
- var n = 0;
- var result;
- while ((result = regExpExec(rx, S)) !== null) {
- var matchStr = String(result[0]);
- A[n] = matchStr;
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- n++;
- }
- return n === 0 ? null : A;
- }
- ];
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.string.replace.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/modules/es.string.replace.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fixRegExpWellKnownSymbolLogic = __webpack_require__(/*! ../internals/fix-regexp-well-known-symbol-logic */ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- var advanceStringIndex = __webpack_require__(/*! ../internals/advance-string-index */ "./node_modules/core-js/internals/advance-string-index.js");
- var regExpExec = __webpack_require__(/*! ../internals/regexp-exec-abstract */ "./node_modules/core-js/internals/regexp-exec-abstract.js");
- var max = Math.max;
- var min = Math.min;
- var floor = Math.floor;
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
- var maybeToString = function (it) {
- return it === undefined ? it : String(it);
- };
- // @@replace logic
- fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = requireObjectCoercible(this);
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
- return replacer !== undefined
- ? replacer.call(searchValue, O, replaceValue)
- : nativeReplace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function (regexp, replaceValue) {
- if (
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
- ) {
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
- if (res.done) return res.value;
- }
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === 'function';
- if (!functionalReplace) replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- results.push(result);
- if (!global) break;
- var matchStr = String(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
- // https://tc39.github.io/ecma262/#sec-getsubstitution
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return nativeReplace.call(replacement, symbols, function (match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return str.slice(0, position);
- case "'": return str.slice(tailPos);
- case '<':
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.string.split.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/modules/es.string.split.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var fixRegExpWellKnownSymbolLogic = __webpack_require__(/*! ../internals/fix-regexp-well-known-symbol-logic */ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js");
- var isRegExp = __webpack_require__(/*! ../internals/is-regexp */ "./node_modules/core-js/internals/is-regexp.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var advanceStringIndex = __webpack_require__(/*! ../internals/advance-string-index */ "./node_modules/core-js/internals/advance-string-index.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var callRegExpExec = __webpack_require__(/*! ../internals/regexp-exec-abstract */ "./node_modules/core-js/internals/regexp-exec-abstract.js");
- var regexpExec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var arrayPush = [].push;
- var min = Math.min;
- var MAX_UINT32 = 0xFFFFFFFF;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
- // @@split logic
- fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
- var internalSplit;
- if (
- 'abbc'.split(/(b)*/)[1] == 'c' ||
- 'test'.split(/(?:)/, -1).length != 4 ||
- 'ab'.split(/(?:ab)*/).length != 2 ||
- '.'.split(/(.?)(.?)/).length != 4 ||
- '.'.split(/()()/).length > 1 ||
- ''.split(/.?/).length
- ) {
- // based on es5-shim implementation, need to rework it
- internalSplit = function (separator, limit) {
- var string = String(requireObjectCoercible(this));
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (separator === undefined) return [string];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) {
- return nativeSplit.call(string, separator, lim);
- }
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var match, lastIndex, lastLength;
- while (match = regexpExec.call(separatorCopy, string)) {
- lastIndex = separatorCopy.lastIndex;
- if (lastIndex > lastLastIndex) {
- output.push(string.slice(lastLastIndex, match.index));
- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
- lastLength = match[0].length;
- lastLastIndex = lastIndex;
- if (output.length >= lim) break;
- }
- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
- }
- if (lastLastIndex === string.length) {
- if (lastLength || !separatorCopy.test('')) output.push('');
- } else output.push(string.slice(lastLastIndex));
- return output.length > lim ? output.slice(0, lim) : output;
- };
- // Chakra, V8
- } else if ('0'.split(undefined, 0).length) {
- internalSplit = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
- };
- } else internalSplit = nativeSplit;
- return [
- // `String.prototype.split` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.split
- function split(separator, limit) {
- var O = requireObjectCoercible(this);
- var splitter = separator == undefined ? undefined : separator[SPLIT];
- return splitter !== undefined
- ? splitter.call(separator, O, limit)
- : internalSplit.call(String(O), separator, limit);
- },
- // `RegExp.prototype[@@split]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
- //
- // NOTE: This cannot be properly polyfilled in engines that don't support
- // the 'y' flag.
- function (regexp, limit) {
- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var C = speciesConstructor(rx, RegExp);
- var unicodeMatching = rx.unicode;
- var flags = (rx.ignoreCase ? 'i' : '') +
- (rx.multiline ? 'm' : '') +
- (rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
- // ^(? + rx + ) is needed, in combination with some S slicing, to
- // simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
- var p = 0;
- var q = 0;
- var A = [];
- while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
- var e;
- if (
- z === null ||
- (e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
- ) {
- q = advanceStringIndex(S, q, unicodeMatching);
- } else {
- A.push(S.slice(p, q));
- if (A.length === lim) return A;
- for (var i = 1; i <= z.length - 1; i++) {
- A.push(z[i]);
- if (A.length === lim) return A;
- }
- q = p = e;
- }
- }
- A.push(S.slice(p));
- return A;
- }
- ];
- }, !SUPPORTS_Y);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.symbol.description.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/modules/es.symbol.description.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // `Symbol.prototype.description` getter
- // https://tc39.github.io/ecma262/#sec-symbol.prototype.description
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
- var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "./node_modules/core-js/internals/copy-constructor-properties.js");
- var NativeSymbol = global.Symbol;
- if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
- // Safari 12 bug
- NativeSymbol().description !== undefined
- )) {
- var EmptyStringDescriptionStore = {};
- // wrap Symbol constructor for correct work with undefined description
- var SymbolWrapper = function Symbol() {
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
- var result = this instanceof SymbolWrapper
- ? new NativeSymbol(description)
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
- if (description === '') EmptyStringDescriptionStore[result] = true;
- return result;
- };
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
- symbolPrototype.constructor = SymbolWrapper;
- var symbolToString = symbolPrototype.toString;
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
- var regexp = /^Symbol\((.*)\)[^)]+$/;
- defineProperty(symbolPrototype, 'description', {
- configurable: true,
- get: function description() {
- var symbol = isObject(this) ? this.valueOf() : this;
- var string = symbolToString.call(symbol);
- if (has(EmptyStringDescriptionStore, symbol)) return '';
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
- return desc === '' ? undefined : desc;
- }
- });
- $({ global: true, forced: true }, {
- Symbol: SymbolWrapper
- });
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.symbol.iterator.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/modules/es.symbol.iterator.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var defineWellKnownSymbol = __webpack_require__(/*! ../internals/define-well-known-symbol */ "./node_modules/core-js/internals/define-well-known-symbol.js");
- // `Symbol.iterator` well-known symbol
- // https://tc39.github.io/ecma262/#sec-symbol.iterator
- defineWellKnownSymbol('iterator');
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.symbol.js":
- /*!***************************************************!*\
- !*** ./node_modules/core-js/modules/es.symbol.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
- var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/native-symbol */ "./node_modules/core-js/internals/native-symbol.js");
- var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
- var isArray = __webpack_require__(/*! ../internals/is-array */ "./node_modules/core-js/internals/is-array.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
- var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
- var nativeObjectCreate = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
- var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js");
- var getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js");
- var getOwnPropertyNamesExternal = __webpack_require__(/*! ../internals/object-get-own-property-names-external */ "./node_modules/core-js/internals/object-get-own-property-names-external.js");
- var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./node_modules/core-js/internals/object-get-own-property-symbols.js");
- var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js");
- var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
- var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./node_modules/core-js/internals/object-property-is-enumerable.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
- var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js");
- var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js");
- var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
- var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var wrappedWellKnownSymbolModule = __webpack_require__(/*! ../internals/well-known-symbol-wrapped */ "./node_modules/core-js/internals/well-known-symbol-wrapped.js");
- var defineWellKnownSymbol = __webpack_require__(/*! ../internals/define-well-known-symbol */ "./node_modules/core-js/internals/define-well-known-symbol.js");
- var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
- var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
- var $forEach = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").forEach;
- var HIDDEN = sharedKey('hidden');
- var SYMBOL = 'Symbol';
- var PROTOTYPE = 'prototype';
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(SYMBOL);
- var ObjectPrototype = Object[PROTOTYPE];
- var $Symbol = global.Symbol;
- var $stringify = getBuiltIn('JSON', 'stringify');
- var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- var nativeDefineProperty = definePropertyModule.f;
- var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
- var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
- var AllSymbols = shared('symbols');
- var ObjectPrototypeSymbols = shared('op-symbols');
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
- var WellKnownSymbolsStore = shared('wks');
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDescriptor = DESCRIPTORS && fails(function () {
- return nativeObjectCreate(nativeDefineProperty({}, 'a', {
- get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (O, P, Attributes) {
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
- nativeDefineProperty(O, P, Attributes);
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
- nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
- }
- } : nativeDefineProperty;
- var wrap = function (tag, description) {
- var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
- setInternalState(symbol, {
- type: SYMBOL,
- tag: tag,
- description: description
- });
- if (!DESCRIPTORS) symbol.description = description;
- return symbol;
- };
- var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return Object(it) instanceof $Symbol;
- };
- var $defineProperty = function defineProperty(O, P, Attributes) {
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
- anObject(O);
- var key = toPrimitive(P, true);
- anObject(Attributes);
- if (has(AllSymbols, key)) {
- if (!Attributes.enumerable) {
- if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
- O[HIDDEN][key] = true;
- } else {
- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
- Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
- } return setSymbolDescriptor(O, key, Attributes);
- } return nativeDefineProperty(O, key, Attributes);
- };
- var $defineProperties = function defineProperties(O, Properties) {
- anObject(O);
- var properties = toIndexedObject(Properties);
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
- $forEach(keys, function (key) {
- if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
- });
- return O;
- };
- var $create = function create(O, Properties) {
- return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
- var P = toPrimitive(V, true);
- var enumerable = nativePropertyIsEnumerable.call(this, P);
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
- var it = toIndexedObject(O);
- var key = toPrimitive(P, true);
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
- var descriptor = nativeGetOwnPropertyDescriptor(it, key);
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
- descriptor.enumerable = true;
- }
- return descriptor;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
- var names = nativeGetOwnPropertyNames(toIndexedObject(O));
- var result = [];
- $forEach(names, function (key) {
- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
- });
- return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
- var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
- var result = [];
- $forEach(names, function (key) {
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
- result.push(AllSymbols[key]);
- }
- });
- return result;
- };
- // `Symbol` constructor
- // https://tc39.github.io/ecma262/#sec-symbol-constructor
- if (!NATIVE_SYMBOL) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
- var tag = uid(description);
- var setter = function (value) {
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
- };
- if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
- return wrap(tag, description);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return getInternalState(this).tag;
- });
- redefine($Symbol, 'withoutSetter', function (description) {
- return wrap(uid(description), description);
- });
- propertyIsEnumerableModule.f = $propertyIsEnumerable;
- definePropertyModule.f = $defineProperty;
- getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
- getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
- getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
- wrappedWellKnownSymbolModule.f = function (name) {
- return wrap(wellKnownSymbol(name), name);
- };
- if (DESCRIPTORS) {
- // https://github.com/tc39/proposal-Symbol-description
- nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
- configurable: true,
- get: function description() {
- return getInternalState(this).description;
- }
- });
- if (!IS_PURE) {
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
- }
- }
- }
- $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
- Symbol: $Symbol
- });
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
- defineWellKnownSymbol(name);
- });
- $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
- // `Symbol.for` method
- // https://tc39.github.io/ecma262/#sec-symbol.for
- 'for': function (key) {
- var string = String(key);
- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
- var symbol = $Symbol(string);
- StringToSymbolRegistry[string] = symbol;
- SymbolToStringRegistry[symbol] = string;
- return symbol;
- },
- // `Symbol.keyFor` method
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
- },
- useSetter: function () { USE_SETTER = true; },
- useSimple: function () { USE_SETTER = false; }
- });
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
- // `Object.create` method
- // https://tc39.github.io/ecma262/#sec-object.create
- create: $create,
- // `Object.defineProperty` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
- defineProperty: $defineProperty,
- // `Object.defineProperties` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
- defineProperties: $defineProperties,
- // `Object.getOwnPropertyDescriptor` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
- });
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
- // `Object.getOwnPropertyNames` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
- getOwnPropertyNames: $getOwnPropertyNames,
- // `Object.getOwnPropertySymbols` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
- $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
- return getOwnPropertySymbolsModule.f(toObject(it));
- }
- });
- // `JSON.stringify` method behavior with symbols
- // https://tc39.github.io/ecma262/#sec-json.stringify
- if ($stringify) {
- var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
- var symbol = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- return $stringify([symbol]) != '[null]'
- // WebKit converts symbol values to JSON as null
- || $stringify({ a: symbol }) != '{}'
- // V8 throws on boxed symbols
- || $stringify(Object(symbol)) != '{}';
- });
- $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
- // eslint-disable-next-line no-unused-vars
- stringify: function stringify(it, replacer, space) {
- var args = [it];
- var index = 1;
- var $replacer;
- while (arguments.length > index) args.push(arguments[index++]);
- $replacer = replacer;
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return $stringify.apply(null, args);
- }
- });
- }
- // `Symbol.prototype[@@toPrimitive]` method
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
- if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
- createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- }
- // `Symbol.prototype[@@toStringTag]` property
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
- setToStringTag($Symbol, SYMBOL);
- hiddenKeys[HIDDEN] = true;
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.copy-within.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.copy-within.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $copyWithin = __webpack_require__(/*! ../internals/array-copy-within */ "./node_modules/core-js/internals/array-copy-within.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.copyWithin` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.copywithin
- exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {
- return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.every.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.every.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $every = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").every;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.every` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.every
- exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {
- return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.fill.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.fill.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $fill = __webpack_require__(/*! ../internals/array-fill */ "./node_modules/core-js/internals/array-fill.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.fill` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
- // eslint-disable-next-line no-unused-vars
- exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
- return $fill.apply(aTypedArray(this), arguments);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.filter.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.filter.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $filter = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").filter;
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.filter` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.filter
- exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {
- var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- var C = speciesConstructor(this, this.constructor);
- var index = 0;
- var length = list.length;
- var result = new (aTypedArrayConstructor(C))(length);
- while (length > index) result[index] = list[index++];
- return result;
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.find-index.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.find-index.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $findIndex = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").findIndex;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.findIndex` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.findindex
- exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) {
- return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.find.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.find.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $find = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").find;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.find` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.find
- exportTypedArrayMethod('find', function find(predicate /* , thisArg */) {
- return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.for-each.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.for-each.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $forEach = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").forEach;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.forEach` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.foreach
- exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {
- $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.includes.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.includes.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $includes = __webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").includes;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.includes` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.includes
- exportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) {
- return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.index-of.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.index-of.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $indexOf = __webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").indexOf;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.indexOf` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.indexof
- exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) {
- return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.iterator.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.iterator.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var ArrayIterators = __webpack_require__(/*! ../modules/es.array.iterator */ "./node_modules/core-js/modules/es.array.iterator.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var ITERATOR = wellKnownSymbol('iterator');
- var Uint8Array = global.Uint8Array;
- var arrayValues = ArrayIterators.values;
- var arrayKeys = ArrayIterators.keys;
- var arrayEntries = ArrayIterators.entries;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];
- var CORRECT_ITER_NAME = !!nativeTypedArrayIterator
- && (nativeTypedArrayIterator.name == 'values' || nativeTypedArrayIterator.name == undefined);
- var typedArrayValues = function values() {
- return arrayValues.call(aTypedArray(this));
- };
- // `%TypedArray%.prototype.entries` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.entries
- exportTypedArrayMethod('entries', function entries() {
- return arrayEntries.call(aTypedArray(this));
- });
- // `%TypedArray%.prototype.keys` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.keys
- exportTypedArrayMethod('keys', function keys() {
- return arrayKeys.call(aTypedArray(this));
- });
- // `%TypedArray%.prototype.values` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.values
- exportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);
- // `%TypedArray%.prototype[@@iterator]` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype-@@iterator
- exportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.join.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.join.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var $join = [].join;
- // `%TypedArray%.prototype.join` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.join
- // eslint-disable-next-line no-unused-vars
- exportTypedArrayMethod('join', function join(separator) {
- return $join.apply(aTypedArray(this), arguments);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.last-index-of.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.last-index-of.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $lastIndexOf = __webpack_require__(/*! ../internals/array-last-index-of */ "./node_modules/core-js/internals/array-last-index-of.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.lastIndexOf` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.lastindexof
- // eslint-disable-next-line no-unused-vars
- exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
- return $lastIndexOf.apply(aTypedArray(this), arguments);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.map.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.map.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $map = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").map;
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.map` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.map
- exportTypedArrayMethod('map', function map(mapfn /* , thisArg */) {
- return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
- return new (aTypedArrayConstructor(speciesConstructor(O, O.constructor)))(length);
- });
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.reduce-right.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.reduce-right.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $reduceRight = __webpack_require__(/*! ../internals/array-reduce */ "./node_modules/core-js/internals/array-reduce.js").right;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.reduceRicht` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.reduceright
- exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn /* , initialValue */) {
- return $reduceRight(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.reduce.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.reduce.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $reduce = __webpack_require__(/*! ../internals/array-reduce */ "./node_modules/core-js/internals/array-reduce.js").left;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.reduce` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.reduce
- exportTypedArrayMethod('reduce', function reduce(callbackfn /* , initialValue */) {
- return $reduce(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.reverse.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.reverse.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var floor = Math.floor;
- // `%TypedArray%.prototype.reverse` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.reverse
- exportTypedArrayMethod('reverse', function reverse() {
- var that = this;
- var length = aTypedArray(that).length;
- var middle = floor(length / 2);
- var index = 0;
- var value;
- while (index < middle) {
- value = that[index];
- that[index++] = that[--length];
- that[length] = value;
- } return that;
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.set.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.set.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toOffset = __webpack_require__(/*! ../internals/to-offset */ "./node_modules/core-js/internals/to-offset.js");
- var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var FORCED = fails(function () {
- // eslint-disable-next-line no-undef
- new Int8Array(1).set({});
- });
- // `%TypedArray%.prototype.set` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.set
- exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
- aTypedArray(this);
- var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
- var length = this.length;
- var src = toObject(arrayLike);
- var len = toLength(src.length);
- var index = 0;
- if (len + offset > length) throw RangeError('Wrong length');
- while (index < len) this[offset + index] = src[index++];
- }, FORCED);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.slice.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.slice.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var $slice = [].slice;
- var FORCED = fails(function () {
- // eslint-disable-next-line no-undef
- new Int8Array(1).slice();
- });
- // `%TypedArray%.prototype.slice` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.slice
- exportTypedArrayMethod('slice', function slice(start, end) {
- var list = $slice.call(aTypedArray(this), start, end);
- var C = speciesConstructor(this, this.constructor);
- var index = 0;
- var length = list.length;
- var result = new (aTypedArrayConstructor(C))(length);
- while (length > index) result[index] = list[index++];
- return result;
- }, FORCED);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.some.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.some.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var $some = __webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").some;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.some` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.some
- exportTypedArrayMethod('some', function some(callbackfn /* , thisArg */) {
- return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.sort.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.sort.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var $sort = [].sort;
- // `%TypedArray%.prototype.sort` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.sort
- exportTypedArrayMethod('sort', function sort(comparefn) {
- return $sort.call(aTypedArray(this), comparefn);
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.subarray.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.subarray.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
- var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js");
- var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- // `%TypedArray%.prototype.subarray` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.subarray
- exportTypedArrayMethod('subarray', function subarray(begin, end) {
- var O = aTypedArray(this);
- var length = O.length;
- var beginIndex = toAbsoluteIndex(begin, length);
- return new (speciesConstructor(O, O.constructor))(
- O.buffer,
- O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,
- toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex)
- );
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.to-locale-string.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.to-locale-string.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var ArrayBufferViewCore = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var Int8Array = global.Int8Array;
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
- var $toLocaleString = [].toLocaleString;
- var $slice = [].slice;
- // iOS Safari 6.x fails here
- var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
- $toLocaleString.call(new Int8Array(1));
- });
- var FORCED = fails(function () {
- return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
- }) || !fails(function () {
- Int8Array.prototype.toLocaleString.call([1, 2]);
- });
- // `%TypedArray%.prototype.toLocaleString` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.tolocalestring
- exportTypedArrayMethod('toLocaleString', function toLocaleString() {
- return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
- }, FORCED);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.to-string.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.to-string.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var exportTypedArrayMethod = __webpack_require__(/*! ../internals/array-buffer-view-core */ "./node_modules/core-js/internals/array-buffer-view-core.js").exportTypedArrayMethod;
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var Uint8Array = global.Uint8Array;
- var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};
- var arrayToString = [].toString;
- var arrayJoin = [].join;
- if (fails(function () { arrayToString.call({}); })) {
- arrayToString = function toString() {
- return arrayJoin.call(this);
- };
- }
- var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
- // `%TypedArray%.prototype.toString` method
- // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.tostring
- exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);
- /***/ }),
- /***/ "./node_modules/core-js/modules/es.typed-array.uint8-array.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/modules/es.typed-array.uint8-array.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ "./node_modules/core-js/internals/typed-array-constructor.js");
- // `Uint8Array` constructor
- // https://tc39.github.io/ecma262/#sec-typedarray-objects
- createTypedArrayConstructor('Uint8', function (init) {
- return function Uint8Array(data, byteOffset, length) {
- return init(this, data, byteOffset, length);
- };
- });
- /***/ }),
- /***/ "./node_modules/core-js/modules/web.dom-collections.for-each.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var DOMIterables = __webpack_require__(/*! ../internals/dom-iterables */ "./node_modules/core-js/internals/dom-iterables.js");
- var forEach = __webpack_require__(/*! ../internals/array-for-each */ "./node_modules/core-js/internals/array-for-each.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- for (var COLLECTION_NAME in DOMIterables) {
- var Collection = global[COLLECTION_NAME];
- var CollectionPrototype = Collection && Collection.prototype;
- // some Chrome versions have non-configurable methods on DOMTokenList
- if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
- createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
- } catch (error) {
- CollectionPrototype.forEach = forEach;
- }
- }
- /***/ }),
- /***/ "./node_modules/core-js/modules/web.dom-collections.iterator.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var DOMIterables = __webpack_require__(/*! ../internals/dom-iterables */ "./node_modules/core-js/internals/dom-iterables.js");
- var ArrayIteratorMethods = __webpack_require__(/*! ../modules/es.array.iterator */ "./node_modules/core-js/modules/es.array.iterator.js");
- var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
- var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
- var ITERATOR = wellKnownSymbol('iterator');
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
- var ArrayValues = ArrayIteratorMethods.values;
- for (var COLLECTION_NAME in DOMIterables) {
- var Collection = global[COLLECTION_NAME];
- var CollectionPrototype = Collection && Collection.prototype;
- if (CollectionPrototype) {
- // some Chrome versions have non-configurable methods on DOMTokenList
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
- } catch (error) {
- CollectionPrototype[ITERATOR] = ArrayValues;
- }
- if (!CollectionPrototype[TO_STRING_TAG]) {
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
- }
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
- // some Chrome versions have non-configurable methods on DOMTokenList
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
- } catch (error) {
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
- }
- }
- }
- }
- /***/ }),
- /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/element-ui/lib/theme-chalk/index.css":
- /*!***********************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2!./node_modules/element-ui/lib/theme-chalk/index.css ***!
- \***********************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
- var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
- var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./fonts/element-icons.woff */ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.woff");
- var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! ./fonts/element-icons.ttf */ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf");
- exports = ___CSS_LOADER_API_IMPORT___(false);
- var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
- var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";.el-pagination--small .arrow.disabled,.el-table .hidden-columns,.el-table td.is-hidden>*,.el-table th.is-hidden>*,.el-table--hidden{visibility:hidden}.el-input__suffix,.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing),.el-message__closeBtn:focus,.el-message__content:focus,.el-popover:focus,.el-popover:focus:active,.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing),.el-rate:active,.el-rate:focus,.el-tooltip:focus:hover,.el-tooltip:focus:not(.focusing),.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}@font-face{font-family:element-icons;src:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"woff\"),url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format(\"truetype\");font-weight:400;font-display:\"auto\";font-style:normal}[class*=\" el-icon-\"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:\"\\e6a0\"}.el-icon-ice-cream-square:before{content:\"\\e6a3\"}.el-icon-lollipop:before{content:\"\\e6a4\"}.el-icon-potato-strips:before{content:\"\\e6a5\"}.el-icon-milk-tea:before{content:\"\\e6a6\"}.el-icon-ice-drink:before{content:\"\\e6a7\"}.el-icon-ice-tea:before{content:\"\\e6a9\"}.el-icon-coffee:before{content:\"\\e6aa\"}.el-icon-orange:before{content:\"\\e6ab\"}.el-icon-pear:before{content:\"\\e6ac\"}.el-icon-apple:before{content:\"\\e6ad\"}.el-icon-cherry:before{content:\"\\e6ae\"}.el-icon-watermelon:before{content:\"\\e6af\"}.el-icon-grape:before{content:\"\\e6b0\"}.el-icon-refrigerator:before{content:\"\\e6b1\"}.el-icon-goblet-square-full:before{content:\"\\e6b2\"}.el-icon-goblet-square:before{content:\"\\e6b3\"}.el-icon-goblet-full:before{content:\"\\e6b4\"}.el-icon-goblet:before{content:\"\\e6b5\"}.el-icon-cold-drink:before{content:\"\\e6b6\"}.el-icon-coffee-cup:before{content:\"\\e6b8\"}.el-icon-water-cup:before{content:\"\\e6b9\"}.el-icon-hot-water:before{content:\"\\e6ba\"}.el-icon-ice-cream:before{content:\"\\e6bb\"}.el-icon-dessert:before{content:\"\\e6bc\"}.el-icon-sugar:before{content:\"\\e6bd\"}.el-icon-tableware:before{content:\"\\e6be\"}.el-icon-burger:before{content:\"\\e6bf\"}.el-icon-knife-fork:before{content:\"\\e6c1\"}.el-icon-fork-spoon:before{content:\"\\e6c2\"}.el-icon-chicken:before{content:\"\\e6c3\"}.el-icon-food:before{content:\"\\e6c4\"}.el-icon-dish-1:before{content:\"\\e6c5\"}.el-icon-dish:before{content:\"\\e6c6\"}.el-icon-moon-night:before{content:\"\\e6ee\"}.el-icon-moon:before{content:\"\\e6f0\"}.el-icon-cloudy-and-sunny:before{content:\"\\e6f1\"}.el-icon-partly-cloudy:before{content:\"\\e6f2\"}.el-icon-cloudy:before{content:\"\\e6f3\"}.el-icon-sunny:before{content:\"\\e6f6\"}.el-icon-sunset:before{content:\"\\e6f7\"}.el-icon-sunrise-1:before{content:\"\\e6f8\"}.el-icon-sunrise:before{content:\"\\e6f9\"}.el-icon-heavy-rain:before{content:\"\\e6fa\"}.el-icon-lightning:before{content:\"\\e6fb\"}.el-icon-light-rain:before{content:\"\\e6fc\"}.el-icon-wind-power:before{content:\"\\e6fd\"}.el-icon-baseball:before{content:\"\\e712\"}.el-icon-soccer:before{content:\"\\e713\"}.el-icon-football:before{content:\"\\e715\"}.el-icon-basketball:before{content:\"\\e716\"}.el-icon-ship:before{content:\"\\e73f\"}.el-icon-truck:before{content:\"\\e740\"}.el-icon-bicycle:before{content:\"\\e741\"}.el-icon-mobile-phone:before{content:\"\\e6d3\"}.el-icon-service:before{content:\"\\e6d4\"}.el-icon-key:before{content:\"\\e6e2\"}.el-icon-unlock:before{content:\"\\e6e4\"}.el-icon-lock:before{content:\"\\e6e5\"}.el-icon-watch:before{content:\"\\e6fe\"}.el-icon-watch-1:before{content:\"\\e6ff\"}.el-icon-timer:before{content:\"\\e702\"}.el-icon-alarm-clock:before{content:\"\\e703\"}.el-icon-map-location:before{content:\"\\e704\"}.el-icon-delete-location:before{content:\"\\e705\"}.el-icon-add-location:before{content:\"\\e706\"}.el-icon-location-information:before{content:\"\\e707\"}.el-icon-location-outline:before{content:\"\\e708\"}.el-icon-location:before{content:\"\\e79e\"}.el-icon-place:before{content:\"\\e709\"}.el-icon-discover:before{content:\"\\e70a\"}.el-icon-first-aid-kit:before{content:\"\\e70b\"}.el-icon-trophy-1:before{content:\"\\e70c\"}.el-icon-trophy:before{content:\"\\e70d\"}.el-icon-medal:before{content:\"\\e70e\"}.el-icon-medal-1:before{content:\"\\e70f\"}.el-icon-stopwatch:before{content:\"\\e710\"}.el-icon-mic:before{content:\"\\e711\"}.el-icon-copy-document:before{content:\"\\e718\"}.el-icon-full-screen:before{content:\"\\e719\"}.el-icon-switch-button:before{content:\"\\e71b\"}.el-icon-aim:before{content:\"\\e71c\"}.el-icon-crop:before{content:\"\\e71d\"}.el-icon-odometer:before{content:\"\\e71e\"}.el-icon-time:before{content:\"\\e71f\"}.el-icon-bangzhu:before{content:\"\\e724\"}.el-icon-close-notification:before{content:\"\\e726\"}.el-icon-microphone:before{content:\"\\e727\"}.el-icon-turn-off-microphone:before{content:\"\\e728\"}.el-icon-position:before{content:\"\\e729\"}.el-icon-postcard:before{content:\"\\e72a\"}.el-icon-message:before{content:\"\\e72b\"}.el-icon-chat-line-square:before{content:\"\\e72d\"}.el-icon-chat-dot-square:before{content:\"\\e72e\"}.el-icon-chat-dot-round:before{content:\"\\e72f\"}.el-icon-chat-square:before{content:\"\\e730\"}.el-icon-chat-line-round:before{content:\"\\e731\"}.el-icon-chat-round:before{content:\"\\e732\"}.el-icon-set-up:before{content:\"\\e733\"}.el-icon-turn-off:before{content:\"\\e734\"}.el-icon-open:before{content:\"\\e735\"}.el-icon-connection:before{content:\"\\e736\"}.el-icon-link:before{content:\"\\e737\"}.el-icon-cpu:before{content:\"\\e738\"}.el-icon-thumb:before{content:\"\\e739\"}.el-icon-female:before{content:\"\\e73a\"}.el-icon-male:before{content:\"\\e73b\"}.el-icon-guide:before{content:\"\\e73c\"}.el-icon-news:before{content:\"\\e73e\"}.el-icon-price-tag:before{content:\"\\e744\"}.el-icon-discount:before{content:\"\\e745\"}.el-icon-wallet:before{content:\"\\e747\"}.el-icon-coin:before{content:\"\\e748\"}.el-icon-money:before{content:\"\\e749\"}.el-icon-bank-card:before{content:\"\\e74a\"}.el-icon-box:before{content:\"\\e74b\"}.el-icon-present:before{content:\"\\e74c\"}.el-icon-sell:before{content:\"\\e6d5\"}.el-icon-sold-out:before{content:\"\\e6d6\"}.el-icon-shopping-bag-2:before{content:\"\\e74d\"}.el-icon-shopping-bag-1:before{content:\"\\e74e\"}.el-icon-shopping-cart-2:before{content:\"\\e74f\"}.el-icon-shopping-cart-1:before{content:\"\\e750\"}.el-icon-shopping-cart-full:before{content:\"\\e751\"}.el-icon-smoking:before{content:\"\\e752\"}.el-icon-no-smoking:before{content:\"\\e753\"}.el-icon-house:before{content:\"\\e754\"}.el-icon-table-lamp:before{content:\"\\e755\"}.el-icon-school:before{content:\"\\e756\"}.el-icon-office-building:before{content:\"\\e757\"}.el-icon-toilet-paper:before{content:\"\\e758\"}.el-icon-notebook-2:before{content:\"\\e759\"}.el-icon-notebook-1:before{content:\"\\e75a\"}.el-icon-files:before{content:\"\\e75b\"}.el-icon-collection:before{content:\"\\e75c\"}.el-icon-receiving:before{content:\"\\e75d\"}.el-icon-suitcase-1:before{content:\"\\e760\"}.el-icon-suitcase:before{content:\"\\e761\"}.el-icon-film:before{content:\"\\e763\"}.el-icon-collection-tag:before{content:\"\\e765\"}.el-icon-data-analysis:before{content:\"\\e766\"}.el-icon-pie-chart:before{content:\"\\e767\"}.el-icon-data-board:before{content:\"\\e768\"}.el-icon-data-line:before{content:\"\\e76d\"}.el-icon-reading:before{content:\"\\e769\"}.el-icon-magic-stick:before{content:\"\\e76a\"}.el-icon-coordinate:before{content:\"\\e76b\"}.el-icon-mouse:before{content:\"\\e76c\"}.el-icon-brush:before{content:\"\\e76e\"}.el-icon-headset:before{content:\"\\e76f\"}.el-icon-umbrella:before{content:\"\\e770\"}.el-icon-scissors:before{content:\"\\e771\"}.el-icon-mobile:before{content:\"\\e773\"}.el-icon-attract:before{content:\"\\e774\"}.el-icon-monitor:before{content:\"\\e775\"}.el-icon-search:before{content:\"\\e778\"}.el-icon-takeaway-box:before{content:\"\\e77a\"}.el-icon-paperclip:before{content:\"\\e77d\"}.el-icon-printer:before{content:\"\\e77e\"}.el-icon-document-add:before{content:\"\\e782\"}.el-icon-document:before{content:\"\\e785\"}.el-icon-document-checked:before{content:\"\\e786\"}.el-icon-document-copy:before{content:\"\\e787\"}.el-icon-document-delete:before{content:\"\\e788\"}.el-icon-document-remove:before{content:\"\\e789\"}.el-icon-tickets:before{content:\"\\e78b\"}.el-icon-folder-checked:before{content:\"\\e77f\"}.el-icon-folder-delete:before{content:\"\\e780\"}.el-icon-folder-remove:before{content:\"\\e781\"}.el-icon-folder-add:before{content:\"\\e783\"}.el-icon-folder-opened:before{content:\"\\e784\"}.el-icon-folder:before{content:\"\\e78a\"}.el-icon-edit-outline:before{content:\"\\e764\"}.el-icon-edit:before{content:\"\\e78c\"}.el-icon-date:before{content:\"\\e78e\"}.el-icon-c-scale-to-original:before{content:\"\\e7c6\"}.el-icon-view:before{content:\"\\e6ce\"}.el-icon-loading:before{content:\"\\e6cf\"}.el-icon-rank:before{content:\"\\e6d1\"}.el-icon-sort-down:before{content:\"\\e7c4\"}.el-icon-sort-up:before{content:\"\\e7c5\"}.el-icon-sort:before{content:\"\\e6d2\"}.el-icon-finished:before{content:\"\\e6cd\"}.el-icon-refresh-left:before{content:\"\\e6c7\"}.el-icon-refresh-right:before{content:\"\\e6c8\"}.el-icon-refresh:before{content:\"\\e6d0\"}.el-icon-video-play:before{content:\"\\e7c0\"}.el-icon-video-pause:before{content:\"\\e7c1\"}.el-icon-d-arrow-right:before{content:\"\\e6dc\"}.el-icon-d-arrow-left:before{content:\"\\e6dd\"}.el-icon-arrow-up:before{content:\"\\e6e1\"}.el-icon-arrow-down:before{content:\"\\e6df\"}.el-icon-arrow-right:before{content:\"\\e6e0\"}.el-icon-arrow-left:before{content:\"\\e6de\"}.el-icon-top-right:before{content:\"\\e6e7\"}.el-icon-top-left:before{content:\"\\e6e8\"}.el-icon-top:before{content:\"\\e6e6\"}.el-icon-bottom:before{content:\"\\e6eb\"}.el-icon-right:before{content:\"\\e6e9\"}.el-icon-back:before{content:\"\\e6ea\"}.el-icon-bottom-right:before{content:\"\\e6ec\"}.el-icon-bottom-left:before{content:\"\\e6ed\"}.el-icon-caret-top:before{content:\"\\e78f\"}.el-icon-caret-bottom:before{content:\"\\e790\"}.el-icon-caret-right:before{content:\"\\e791\"}.el-icon-caret-left:before{content:\"\\e792\"}.el-icon-d-caret:before{content:\"\\e79a\"}.el-icon-share:before{content:\"\\e793\"}.el-icon-menu:before{content:\"\\e798\"}.el-icon-s-grid:before{content:\"\\e7a6\"}.el-icon-s-check:before{content:\"\\e7a7\"}.el-icon-s-data:before{content:\"\\e7a8\"}.el-icon-s-opportunity:before{content:\"\\e7aa\"}.el-icon-s-custom:before{content:\"\\e7ab\"}.el-icon-s-claim:before{content:\"\\e7ad\"}.el-icon-s-finance:before{content:\"\\e7ae\"}.el-icon-s-comment:before{content:\"\\e7af\"}.el-icon-s-flag:before{content:\"\\e7b0\"}.el-icon-s-marketing:before{content:\"\\e7b1\"}.el-icon-s-shop:before{content:\"\\e7b4\"}.el-icon-s-open:before{content:\"\\e7b5\"}.el-icon-s-management:before{content:\"\\e7b6\"}.el-icon-s-ticket:before{content:\"\\e7b7\"}.el-icon-s-release:before{content:\"\\e7b8\"}.el-icon-s-home:before{content:\"\\e7b9\"}.el-icon-s-promotion:before{content:\"\\e7ba\"}.el-icon-s-operation:before{content:\"\\e7bb\"}.el-icon-s-unfold:before{content:\"\\e7bc\"}.el-icon-s-fold:before{content:\"\\e7a9\"}.el-icon-s-platform:before{content:\"\\e7bd\"}.el-icon-s-order:before{content:\"\\e7be\"}.el-icon-s-cooperation:before{content:\"\\e7bf\"}.el-icon-bell:before{content:\"\\e725\"}.el-icon-message-solid:before{content:\"\\e799\"}.el-icon-video-camera:before{content:\"\\e772\"}.el-icon-video-camera-solid:before{content:\"\\e796\"}.el-icon-camera:before{content:\"\\e779\"}.el-icon-camera-solid:before{content:\"\\e79b\"}.el-icon-download:before{content:\"\\e77c\"}.el-icon-upload2:before{content:\"\\e77b\"}.el-icon-upload:before{content:\"\\e7c3\"}.el-icon-picture-outline-round:before{content:\"\\e75f\"}.el-icon-picture-outline:before{content:\"\\e75e\"}.el-icon-picture:before{content:\"\\e79f\"}.el-icon-close:before{content:\"\\e6db\"}.el-icon-check:before{content:\"\\e6da\"}.el-icon-plus:before{content:\"\\e6d9\"}.el-icon-minus:before{content:\"\\e6d8\"}.el-icon-help:before{content:\"\\e73d\"}.el-icon-s-help:before{content:\"\\e7b3\"}.el-icon-circle-close:before{content:\"\\e78d\"}.el-icon-circle-check:before{content:\"\\e720\"}.el-icon-circle-plus-outline:before{content:\"\\e723\"}.el-icon-remove-outline:before{content:\"\\e722\"}.el-icon-zoom-out:before{content:\"\\e776\"}.el-icon-zoom-in:before{content:\"\\e777\"}.el-icon-error:before{content:\"\\e79d\"}.el-icon-success:before{content:\"\\e79c\"}.el-icon-circle-plus:before{content:\"\\e7a0\"}.el-icon-remove:before{content:\"\\e7a2\"}.el-icon-info:before{content:\"\\e7a1\"}.el-icon-question:before{content:\"\\e7a4\"}.el-icon-warning-outline:before{content:\"\\e6c9\"}.el-icon-warning:before{content:\"\\e7a3\"}.el-icon-goods:before{content:\"\\e7c2\"}.el-icon-s-goods:before{content:\"\\e7b2\"}.el-icon-star-off:before{content:\"\\e717\"}.el-icon-star-on:before{content:\"\\e797\"}.el-icon-more-outline:before{content:\"\\e6cc\"}.el-icon-more:before{content:\"\\e794\"}.el-icon-phone-outline:before{content:\"\\e6cb\"}.el-icon-phone:before{content:\"\\e795\"}.el-icon-user:before{content:\"\\e6e3\"}.el-icon-user-solid:before{content:\"\\e7a5\"}.el-icon-setting:before{content:\"\\e6ca\"}.el-icon-s-tools:before{content:\"\\e7ac\"}.el-icon-delete:before{content:\"\\e6d7\"}.el-icon-delete-solid:before{content:\"\\e7c9\"}.el-icon-eleme:before{content:\"\\e7c7\"}.el-icon-platform-eleme:before{content:\"\\e7ca\"}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotateZ(0)}100%{transform:rotateZ(360deg)}}@keyframes rotating{0%{transform:rotateZ(0)}100%{transform:rotateZ(360deg)}}.el-pagination{white-space:nowrap;padding:2px 5px;color:#303133;font-weight:700}.el-pagination::after,.el-pagination::before{display:table;content:\"\"}.el-pagination::after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:inline-block;font-size:13px;min-width:35.5px;height:28px;line-height:28px;vertical-align:top;box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-input__suffix{right:0;transform:scale(.8)}.el-pagination .el-select .el-input{width:100px;margin:0 5px}.el-pagination .el-select .el-input .el-input__inner{padding-right:25px;border-radius:3px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:#409EFF}.el-pagination button:disabled{color:#C0C4CC;background-color:#FFF;cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat #FFF;background-size:16px;cursor:pointer;margin:0;color:#303133}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700}.el-pagination .btn-prev{padding-right:12px}.el-pagination .btn-next{padding-left:12px}.el-pagination .el-pager li.disabled{color:#C0C4CC;cursor:not-allowed}.el-pager li,.el-pager li.btn-quicknext:hover,.el-pager li.btn-quickprev:hover{cursor:pointer}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:12px;line-height:22px;height:22px;min-width:22px}.el-pagination--small .more::before,.el-pagination--small li.more::before{line-height:24px}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:22px;line-height:22px}.el-pagination--small .el-pagination__editor,.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:22px}.el-pagination__sizes{margin:0 10px 0 0;font-weight:400;color:#606266}.el-pagination__sizes .el-input .el-input__inner{font-size:13px;padding-left:8px}.el-pagination__sizes .el-input .el-input__inner:hover{border-color:#409EFF}.el-pagination__total{margin-right:10px;font-weight:400;color:#606266}.el-pagination__jump{margin-left:24px;font-weight:400;color:#606266}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__rightwrapper{float:right}.el-pagination__editor{line-height:18px;padding:0 2px;height:28px;text-align:center;margin:0 2px;box-sizing:border-box;border-radius:3px}.el-pager,.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:28px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 5px;background-color:#f4f4f5;color:#606266;min-width:30px;border-radius:2px}.el-pagination.is-background .btn-next.disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.disabled{color:#C0C4CC}.el-pagination.is-background .el-pager li:not(.disabled):hover{color:#409EFF}.el-pagination.is-background .el-pager li:not(.disabled).active{background-color:#409EFF;color:#FFF}.el-dialog,.el-pager li{background:#FFF;-webkit-box-sizing:border-box}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{margin:0 3px;min-width:22px}.el-pager,.el-pager li{vertical-align:top;margin:0;display:inline-block}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0}.el-date-table,.el-table th{-webkit-user-select:none;-moz-user-select:none}.el-pager .more::before{line-height:30px}.el-pager li{padding:0 4px;font-size:13px;min-width:35.5px;height:28px;line-height:28px;box-sizing:border-box;text-align:center}.el-menu--collapse .el-menu .el-submenu,.el-menu--popup{min-width:200px}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:28px;color:#303133}.el-pager li.btn-quicknext.disabled,.el-pager li.btn-quickprev.disabled{color:#C0C4CC}.el-pager li.active+li{border-left:0}.el-pager li:hover{color:#409EFF}.el-pager li.active{color:#409EFF;cursor:default}@-webkit-keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}.el-dialog{position:relative;margin:0 auto 50px;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.3);box-sizing:border-box;width:50%}.el-dialog.is-fullscreen{width:100%;margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog__header{padding:20px 20px 10px}.el-dialog__headerbtn{position:absolute;top:20px;right:20px;padding:0;background:0 0;border:none;outline:0;cursor:pointer;font-size:16px}.el-dialog__headerbtn .el-dialog__close{color:#909399}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:#409EFF}.el-dialog__title{line-height:24px;font-size:18px;color:#303133}.el-dialog__body{padding:30px 20px;color:#606266;font-size:14px;word-break:break-all}.el-dialog__footer{padding:10px 20px 20px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px 25px 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.dialog-fade-enter-active{-webkit-animation:dialog-fade-in .3s;animation:dialog-fade-in .3s}.dialog-fade-leave-active{-webkit-animation:dialog-fade-out .3s;animation:dialog-fade-out .3s}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete-suggestion{margin:5px 0;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px;border:1px solid #E4E7ED;box-sizing:border-box;background-color:#FFF}.el-dropdown-menu,.el-menu--collapse .el-submenu .el-menu{z-index:10;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:#606266;font-size:14px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li.highlighted,.el-autocomplete-suggestion li:hover{background-color:#F5F7FA}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid #000}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:#999}.el-autocomplete-suggestion.is-loading li::after{display:inline-block;content:\"\";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:#FFF}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button::before{content:'';position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default::before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover::before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown-menu{position:absolute;top:0;left:0;padding:10px 0;margin:5px 0;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:0}.el-dropdown-menu__item:focus,.el-dropdown-menu__item:not(.is-disabled):hover{background-color:#ecf5ff;color:#66b1ff}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:'';height:6px;display:block;margin:0 -20px;background-color:#FFF}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-menu{border-right:solid 1px #e6e6e6;list-style:none;position:relative;margin:0;padding-left:0;background-color:#FFF}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,.el-menu--horizontal>.el-submenu .el-submenu__title:hover{background-color:#fff}.el-menu::after,.el-menu::before{display:table;content:\"\"}.el-menu::after{clear:both}.el-menu.el-menu--horizontal{border-bottom:solid 1px #e6e6e6}.el-menu--horizontal{border-right:none}.el-menu--horizontal>.el-menu-item{float:left;height:60px;line-height:60px;margin:0;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-submenu{float:left}.el-menu--horizontal>.el-submenu:focus,.el-menu--horizontal>.el-submenu:hover{outline:0}.el-menu--horizontal>.el-submenu:focus .el-submenu__title,.el-menu--horizontal>.el-submenu:hover .el-submenu__title{color:#303133}.el-menu--horizontal>.el-submenu.is-active .el-submenu__title{border-bottom:2px solid #409EFF;color:#303133}.el-menu--horizontal>.el-submenu .el-submenu__title{height:60px;line-height:60px;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-submenu .el-submenu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-submenu__title{background-color:#FFF;float:none;height:36px;line-height:36px;padding:0 10px;color:#909399}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title{color:#303133}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:#303133}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid #409EFF;color:#303133}.el-menu--collapse{width:64px}.el-menu--collapse>.el-menu-item [class^=el-icon-],.el-menu--collapse>.el-submenu>.el-submenu__title [class^=el-icon-]{margin:0;vertical-align:middle;width:24px;text-align:center}.el-menu--collapse>.el-menu-item .el-submenu__icon-arrow,.el-menu--collapse>.el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item span,.el-menu--collapse>.el-submenu>.el-submenu__title span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-submenu{position:relative}.el-menu--collapse .el-submenu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;border:1px solid #E4E7ED;border-radius:2px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu-item,.el-submenu__title{height:56px;line-height:56px;position:relative;-webkit-box-sizing:border-box;white-space:nowrap;list-style:none}.el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{transform:none}.el-menu--popup{z-index:100;border:none;padding:5px 0;border-radius:2px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu--popup-bottom-start{margin-top:5px}.el-menu--popup-right-start{margin-left:5px;margin-right:5px}.el-menu-item{font-size:14px;color:#303133;padding:0 20px;cursor:pointer;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box}.el-menu-item *{vertical-align:middle}.el-menu-item i{color:#909399}.el-menu-item:focus,.el-menu-item:hover{outline:0;background-color:#ecf5ff}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon-]{margin-right:5px;width:24px;text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:#409EFF}.el-menu-item.is-active i{color:inherit}.el-submenu{list-style:none;margin:0;padding-left:0}.el-submenu__title{font-size:14px;color:#303133;padding:0 20px;cursor:pointer;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box}.el-submenu__title *{vertical-align:middle}.el-submenu__title i{color:#909399}.el-submenu__title:focus,.el-submenu__title:hover{outline:0;background-color:#ecf5ff}.el-submenu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu__title:hover{background-color:#ecf5ff}.el-submenu .el-menu{border:none}.el-submenu .el-menu-item{height:50px;line-height:50px;padding:0 45px;min-width:200px}.el-submenu__icon-arrow{position:absolute;top:50%;right:20px;margin-top:-7px;transition:transform .3s;font-size:12px}.el-submenu.is-active .el-submenu__title{border-bottom-color:#409EFF}.el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{transform:rotateZ(180deg)}.el-submenu.is-disabled .el-menu-item,.el-submenu.is-disabled .el-submenu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu [class^=el-icon-]{vertical-align:middle;margin-right:5px;width:24px;text-align:center;font-size:18px}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px 20px;line-height:normal;font-size:12px;color:#909399}.el-radio-button__inner,.el-radio-group{display:inline-block;line-height:1;vertical-align:middle}.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow{transition:.2s;opacity:0}.el-radio-group{font-size:0}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{white-space:nowrap;background:#FFF;border:1px solid #DCDFE6;font-weight:500;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-radio-button__inner.is-round{padding:12px 20px}.el-radio-button__inner:hover{color:#409EFF}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;box-shadow:none!important}.el-radio-button__orig-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;box-shadow:-1px 0 0 0 #409EFF}.el-radio-button__orig-radio:disabled+.el-radio-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;box-shadow:none}.el-radio-button__orig-radio:disabled:checked+.el-radio-button__inner{background-color:#F2F6FC}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 4px 4px 0}.el-popover,.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:4px}.el-radio-button--medium .el-radio-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-radio-button--medium .el-radio-button__inner.is-round{padding:10px 20px}.el-radio-button--small .el-radio-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:9px 15px}.el-radio-button--mini .el-radio-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-radio-button--mini .el-radio-button__inner.is-round{padding:7px 15px}.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled){box-shadow:0 0 2px 2px #409EFF}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:20px;vertical-align:middle}.el-switch__core,.el-switch__label{display:inline-block;cursor:pointer}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:.2s;height:20px;font-size:14px;font-weight:500;vertical-align:middle;color:#303133}.el-switch__label.is-active{color:#409EFF}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__core{margin:0;position:relative;width:40px;height:20px;border:1px solid #DCDFE6;outline:0;border-radius:10px;box-sizing:border-box;background:#DCDFE6;transition:border-color .3s,background-color .3s;vertical-align:middle}.el-switch__core:after{content:\"\";position:absolute;top:1px;left:1px;border-radius:100%;transition:all .3s;width:16px;height:16px;background-color:#FFF}.el-switch.is-checked .el-switch__core{border-color:#409EFF;background-color:#409EFF}.el-switch.is-checked .el-switch__core::after{left:100%;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}.el-select-dropdown{position:absolute;z-index:1001;border:1px solid #E4E7ED;border-radius:4px;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-sizing:border-box;margin:5px 0}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:#409EFF;background-color:#FFF}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:#F5F7FA}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{position:absolute;right:20px;font-family:element-icons;content:\"\\e6da\";font-size:12px;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:#999;font-size:14px}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select-dropdown__item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-select-dropdown__item.is-disabled:hover{background-color:#FFF}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:#F5F7FA}.el-select-dropdown__item.selected{color:#409EFF;font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type)::after{content:'';position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:#E4E7ED}.el-select-group__title{padding-left:20px;font-size:12px;color:#909399;line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{display:inline-block;position:relative}.el-select .el-select__tags>span{display:contents}.el-select:hover .el-input__inner{border-color:#C0C4CC}.el-select .el-input__inner{cursor:pointer;padding-right:35px}.el-select .el-input__inner:focus{border-color:#409EFF}.el-select .el-input .el-select__caret{color:#C0C4CC;font-size:14px;transition:transform .3s;transform:rotateZ(180deg);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotateZ(0)}.el-select .el-input .el-select__caret.is-show-close{font-size:14px;text-align:center;transform:rotateZ(180deg);border-radius:100%;color:#C0C4CC;transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-select .el-input .el-select__caret.is-show-close:hover{color:#909399}.el-select .el-input.is-disabled .el-input__inner{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__inner:hover{border-color:#E4E7ED}.el-select .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-select>.el-input{display:block}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:#666;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-mini{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:1000;right:25px;color:#C0C4CC;line-height:18px;font-size:14px}.el-select__close:hover{color:#909399}.el-select__tags{position:absolute;line-height:normal;white-space:normal;z-index:1;top:50%;transform:translateY(-50%);display:flex;align-items:center;flex-wrap:wrap}.el-select .el-tag__close{margin-top:-2px}.el-select .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:#f0f2f5}.el-select .el-tag__close.el-icon-close{background-color:#C0C4CC;right:-7px;top:0;color:#FFF}.el-select .el-tag__close.el-icon-close:hover{background-color:#909399}.el-table,.el-table__expanded-cell{background-color:#FFF}.el-select .el-tag__close.el-icon-close::before{display:block;transform:translate(0,.5px)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;flex:1;width:100%;max-width:100%;font-size:14px;color:#606266}.el-table--mini,.el-table--small,.el-table__expand-icon{font-size:12px}.el-table__empty-block{min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:#909399}.el-table__expand-column .cell{padding:0;text-align:center}.el-table__expand-icon{position:relative;cursor:pointer;color:#666;transition:transform .2s ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{position:absolute;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit td.gutter,.el-table--fit th.gutter{border-right-width:1px}.el-table--scrollable-x .el-table__body-wrapper{overflow-x:auto}.el-table--scrollable-y .el-table__body-wrapper{overflow-y:auto}.el-table thead{color:#909399;font-weight:500}.el-table thead.is-group th{background:#F5F7FA}.el-table th,.el-table tr{background-color:#FFF}.el-table td,.el-table th{padding:12px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left}.el-table td.is-center,.el-table th.is-center{text-align:center}.el-table td.is-right,.el-table th.is-right{text-align:right}.el-table td.gutter,.el-table th.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table--medium td,.el-table--medium th{padding:10px 0}.el-table--small td,.el-table--small th{padding:8px 0}.el-table--mini td,.el-table--mini th{padding:6px 0}.el-table .cell,.el-table--border td:first-child .cell,.el-table--border th:first-child .cell{padding-left:10px}.el-table tr input[type=checkbox]{margin:0}.el-table td,.el-table th.is-leaf{border-bottom:1px solid #EBEEF5}.el-table th.is-sortable{cursor:pointer}.el-table th{overflow:hidden;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table th>.cell{display:inline-block;box-sizing:border-box;position:relative;vertical-align:middle;padding-left:10px;padding-right:10px;width:100%}.el-table th>.cell.highlight{color:#409EFF}.el-table th.required>div::before{display:inline-block;content:\"\";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td div{box-sizing:border-box}.el-table td.gutter{width:0}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding-right:10px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--border,.el-table--group{border:1px solid #EBEEF5}.el-table--border::after,.el-table--group::after,.el-table::before{content:'';position:absolute;background-color:#EBEEF5;z-index:1}.el-table--border::after,.el-table--group::after{top:0;right:0;width:1px;height:100%}.el-table::before{left:0;bottom:0;width:100%;height:1px}.el-table--border{border-right:none;border-bottom:none}.el-table--border.el-loading-parent--relative{border-color:transparent}.el-table--border td,.el-table--border th,.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{border-right:1px solid #EBEEF5}.el-table--border th.gutter:last-of-type{border-bottom:1px solid #EBEEF5;border-bottom-width:1px}.el-table--border th,.el-table__fixed-right-patch{border-bottom:1px solid #EBEEF5}.el-table__fixed,.el-table__fixed-right{position:absolute;top:0;left:0;overflow-x:hidden;overflow-y:hidden;box-shadow:0 0 10px rgba(0,0,0,.12)}.el-table__fixed-right::before,.el-table__fixed::before{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#EBEEF5;z-index:4}.el-table__fixed-right-patch{position:absolute;top:-1px;right:0;background-color:#FFF}.el-table__fixed-right{top:0;left:auto;right:0}.el-table__fixed-right .el-table__fixed-body-wrapper,.el-table__fixed-right .el-table__fixed-footer-wrapper,.el-table__fixed-right .el-table__fixed-header-wrapper{left:auto;right:0}.el-table__fixed-header-wrapper{position:absolute;left:0;top:0;z-index:3}.el-table__fixed-footer-wrapper{position:absolute;left:0;bottom:0;z-index:3}.el-table__fixed-footer-wrapper tbody td{border-top:1px solid #EBEEF5;background-color:#F5F7FA;color:#606266}.el-table__fixed-body-wrapper{position:absolute;left:0;top:37px;overflow:hidden;z-index:3}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__footer-wrapper{margin-top:-1px}.el-table__footer-wrapper td{border-top:1px solid #EBEEF5}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td,.el-table__header-wrapper tbody td{background-color:#F5F7FA;color:#606266}.el-table__body-wrapper{overflow:hidden;position:relative}.el-table__body-wrapper.is-scrolling-left~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed-right,.el-table__body-wrapper.is-scrolling-right~.el-table__fixed-right{box-shadow:none}.el-picker-panel,.el-table-filter{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-table__body-wrapper .el-table--border.is-scrolling-right~.el-table__fixed-right{border-left:1px solid #EBEEF5}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:34px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:5px solid transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:#C0C4CC;top:5px}.el-table .sort-caret.descending{border-top-color:#C0C4CC;bottom:7px}.el-table .ascending .sort-caret.ascending{border-bottom-color:#409EFF}.el-table .descending .sort-caret.descending{border-top-color:#409EFF}.el-table .hidden-columns{position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td{background:#FAFAFA}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td{background-color:#ecf5ff}.el-table__body tr.hover-row.current-row>td,.el-table__body tr.hover-row.el-table__row--striped.current-row>td,.el-table__body tr.hover-row.el-table__row--striped>td,.el-table__body tr.hover-row>td{background-color:#F5F7FA}.el-table__body tr.current-row>td{background-color:#ecf5ff}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:1px solid #EBEEF5;z-index:10}.el-table__column-filter-trigger{display:inline-block;line-height:34px;cursor:pointer}.el-table__column-filter-trigger i{color:#909399;font-size:12px;transform:scale(.75)}.el-table--enable-row-transition .el-table__body td{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td{background-color:#F5F7FA}.el-table--fluid-height .el-table__fixed,.el-table--fluid-height .el-table__fixed-right{bottom:0;overflow:hidden}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:20px;line-height:20px;height:20px;text-align:center;margin-right:3px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:1px solid #EBEEF5;border-radius:2px;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-sizing:border-box;margin:2px 0}.el-date-table td,.el-date-table td div{height:30px;-webkit-box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:14px}.el-table-filter__list-item:hover{background-color:#ecf5ff;color:#66b1ff}.el-table-filter__list-item.is-active{background-color:#409EFF;color:#FFF}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid #EBEEF5;padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:#606266;cursor:pointer;font-size:13px;padding:0 3px}.el-date-table td.in-range div,.el-date-table td.in-range div:hover,.el-date-table.is-week-mode .el-date-table__row.current div,.el-date-table.is-week-mode .el-date-table__row:hover div{background-color:#F2F6FC}.el-table-filter__bottom button:hover{color:#409EFF}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:block;margin-right:5px;margin-bottom:8px;margin-left:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-date-table{font-size:12px;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:#606266}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td{width:32px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td div{padding:3px 0;box-sizing:border-box}.el-date-table td span{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translateX(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:#C0C4CC}.el-date-table td.today{position:relative}.el-date-table td.today span{color:#409EFF;font-weight:700}.el-date-table td.today.end-date span,.el-date-table td.today.start-date span{color:#FFF}.el-date-table td.available:hover{color:#409EFF}.el-date-table td.current:not(.disabled) span{color:#FFF;background-color:#409EFF}.el-date-table td.end-date div,.el-date-table td.start-date div{color:#FFF}.el-date-table td.end-date span,.el-date-table td.start-date span{background-color:#409EFF}.el-date-table td.start-date div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled div{background-color:#F5F7FA;opacity:1;cursor:not-allowed;color:#C0C4CC}.el-date-table td.selected div{margin-left:5px;margin-right:5px;background-color:#F2F6FC;border-radius:15px}.el-date-table td.selected div:hover{background-color:#F2F6FC}.el-date-table td.selected span{background-color:#409EFF;color:#FFF;border-radius:15px}.el-date-table td.week{font-size:80%;color:#606266}.el-month-table,.el-year-table{font-size:12px;border-collapse:collapse}.el-date-table th{padding:5px;color:#606266;font-weight:400;border-bottom:solid 1px #EBEEF5}.el-month-table{margin:-1px}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:#409EFF;font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#FFF}.el-month-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-month-table td.disabled .cell:hover{color:#C0C4CC}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:#606266;margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:#409EFF}.el-month-table td.in-range div,.el-month-table td.in-range div:hover{background-color:#F2F6FC}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#FFF}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#FFF;background-color:#409EFF}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:#409EFF}.el-year-table{margin:-1px}.el-year-table .el-icon{color:#303133}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:#409EFF;font-weight:700}.el-year-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-year-table td.disabled .cell:hover{color:#C0C4CC}.el-year-table td .cell{width:48px;height:32px;display:block;line-height:32px;color:#606266;margin:0 auto}.el-year-table td .cell:hover,.el-year-table td.current:not(.disabled) .cell{color:#409EFF}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid #e4e4e4}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:#303133}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#FFF}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px #EBEEF5}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:#606266}.el-date-picker__header-label.active,.el-date-picker__header-label:hover{color:#409EFF}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.selected:not(.disabled){color:#409EFF;font-weight:700}.time-select-item.disabled{color:#E4E7ED;cursor:not-allowed}.time-select-item:hover{background-color:#F5F7FA;font-weight:700;cursor:pointer}.el-date-editor{position:relative;display:inline-block;text-align:left}.el-date-editor.el-input,.el-date-editor.el-input__inner{width:220px}.el-date-editor--monthrange.el-input,.el-date-editor--monthrange.el-input__inner{width:300px}.el-date-editor--daterange.el-input,.el-date-editor--daterange.el-input__inner,.el-date-editor--timerange.el-input,.el-date-editor--timerange.el-input__inner{width:350px}.el-date-editor--datetimerange.el-input,.el-date-editor--datetimerange.el-input__inner{width:400px}.el-date-editor--dates .el-input__inner{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .el-icon-circle-close{cursor:pointer}.el-date-editor .el-range__icon{font-size:14px;margin-left:-5px;color:#C0C4CC;float:left;line-height:32px}.el-date-editor .el-range-input,.el-date-editor .el-range-separator{height:100%;margin:0;text-align:center;display:inline-block;font-size:14px}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;padding:0;width:39%;color:#606266}.el-date-editor .el-range-input:-ms-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::-moz-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::placeholder{color:#C0C4CC}.el-date-editor .el-range-separator{padding:0 5px;line-height:32px;width:5%;color:#303133}.el-date-editor .el-range__close-icon{font-size:14px;color:#C0C4CC;width:25px;display:inline-block;float:right;line-height:32px}.el-range-editor.el-input__inner{display:inline-flex;align-items:center;padding:3px 10px}.el-range-editor .el-range-input{line-height:1}.el-range-editor.is-active,.el-range-editor.is-active:hover{border-color:#409EFF}.el-range-editor--medium.el-input__inner{height:36px}.el-range-editor--medium .el-range-separator{line-height:28px;font-size:14px}.el-range-editor--medium .el-range-input{font-size:14px}.el-range-editor--medium .el-range__close-icon,.el-range-editor--medium .el-range__icon{line-height:28px}.el-range-editor--small.el-input__inner{height:32px}.el-range-editor--small .el-range-separator{line-height:24px;font-size:13px}.el-range-editor--small .el-range-input{font-size:13px}.el-range-editor--small .el-range__close-icon,.el-range-editor--small .el-range__icon{line-height:24px}.el-range-editor--mini.el-input__inner{height:28px}.el-range-editor--mini .el-range-separator{line-height:20px;font-size:12px}.el-range-editor--mini .el-range-input{font-size:12px}.el-range-editor--mini .el-range__close-icon,.el-range-editor--mini .el-range__icon{line-height:20px}.el-range-editor.is-disabled{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:#E4E7ED}.el-range-editor.is-disabled input{background-color:#F5F7FA;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled input:-ms-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::-moz-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::placeholder{color:#C0C4CC}.el-range-editor.is-disabled .el-range-separator{color:#C0C4CC}.el-picker-panel{color:#606266;border:1px solid #E4E7ED;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);background:#FFF;border-radius:4px;line-height:30px;margin:5px 0}.el-popover,.el-time-panel{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:\"\";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#FFF;position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#606266;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:#409EFF}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#409EFF}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#303133;border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:#409EFF}.el-picker-panel__icon-btn.is-disabled{color:#bbb}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;box-sizing:border-box;padding-top:6px;background-color:#FFF;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:190px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__input.el-input .el-input__inner,.el-time-spinner__list{padding:0;text-align:center}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.disabled):not(.active){background:#FFF;cursor:default}.el-time-spinner__arrow{font-size:12px;color:#909399;position:absolute;left:0;width:100%;z-index:1;text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:#409EFF}.el-time-spinner__arrow.el-icon-arrow-up{top:10px}.el-time-spinner__arrow.el-icon-arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__list{margin:0;list-style:none}.el-time-spinner__list::after,.el-time-spinner__list::before{content:'';display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:#606266}.el-time-spinner__item:hover:not(.disabled):not(.active){background:#F5F7FA;cursor:pointer}.el-time-spinner__item.active:not(.disabled){color:#303133;font-weight:700}.el-time-spinner__item.disabled{color:#C0C4CC;cursor:not-allowed}.el-time-panel{margin:5px 0;border:1px solid #E4E7ED;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;width:180px;left:0;z-index:1000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-slider__button,.el-slider__button-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content::after,.el-time-panel__content::before{content:\"\";top:50%;position:absolute;margin-top:-15px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left;border-top:1px solid #E4E7ED;border-bottom:1px solid #E4E7ED}.el-time-panel__content::after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content::before{padding-left:50%;margin-right:12%;margin-left:12%}.el-time-panel__content.has-seconds::after{left:calc(100% / 3 * 2)}.el-time-panel__content.has-seconds::before{padding-left:calc(100% / 3)}.el-time-panel__footer{border-top:1px solid #e4e4e4;padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:#303133}.el-time-panel__btn.confirm{font-weight:800;color:#409EFF}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid #E4E7ED}.el-popover{position:absolute;background:#FFF;min-width:150px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-popup-parent--hidden{overflow:hidden}.el-message-box{display:inline-block;width:420px;padding-bottom:10px;vertical-align:middle;background-color:#FFF;border-radius:4px;border:1px solid #EBEEF5;font-size:18px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box__wrapper{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center}.el-message-box__wrapper::after{content:\"\";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box__header{position:relative;padding:15px 15px 10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:18px;line-height:1;color:#303133}.el-message-box__headerbtn{position:absolute;top:15px;right:15px;padding:0;border:none;outline:0;background:0 0;font-size:16px;cursor:pointer}.el-form-item.is-error .el-input__inner,.el-form-item.is-error .el-input__inner:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus,.el-message-box__input input.invalid,.el-message-box__input input.invalid:focus{border-color:#F56C6C}.el-message-box__headerbtn .el-message-box__close{color:#909399}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:#409EFF}.el-message-box__content{padding:10px 15px;color:#606266;font-size:14px}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status::before{padding-left:1px}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px}.el-message-box__status.el-icon-success{color:#67C23A}.el-message-box__status.el-icon-info{color:#909399}.el-message-box__status.el-icon-warning{color:#E6A23C}.el-message-box__status.el-icon-error{color:#F56C6C}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:#F56C6C;font-size:12px;min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;text-align:right}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center{padding-bottom:30px}.el-message-box--center .el-message-box__header{padding-top:30px}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__content{text-align:center}.el-message-box--center .el-message-box__content{padding-left:27px;padding-right:27px}.msgbox-fade-enter-active{-webkit-animation:msgbox-fade-in .3s;animation:msgbox-fade-in .3s}.msgbox-fade-leave-active{-webkit-animation:msgbox-fade-out .3s;animation:msgbox-fade-out .3s}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb::after,.el-breadcrumb::before{display:table;content:\"\"}.el-breadcrumb::after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:#C0C4CC}.el-breadcrumb__separator[class*=icon]{margin:0 6px;font-weight:400}.el-breadcrumb__item{float:left}.el-breadcrumb__inner{color:#606266}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:color .2s cubic-bezier(.645,.045,.355,1);color:#303133}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:#409EFF;cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:#606266;cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-form--label-left .el-form-item__label{text-align:left}.el-form--label-top .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0 0 10px}.el-form--inline .el-form-item{display:inline-block;margin-right:10px;vertical-align:top}.el-form--inline .el-form-item__label{float:none;display:inline-block}.el-form--inline .el-form-item__content{display:inline-block;vertical-align:top}.el-form--inline.el-form--label-top .el-form-item__content{display:block}.el-form-item{margin-bottom:22px}.el-form-item::after,.el-form-item::before{display:table;content:\"\"}.el-form-item::after{clear:both}.el-form-item .el-form-item{margin-bottom:0}.el-form-item--mini.el-form-item,.el-form-item--small.el-form-item{margin-bottom:18px}.el-form-item .el-input__validateIcon{display:none}.el-form-item--medium .el-form-item__content,.el-form-item--medium .el-form-item__label{line-height:36px}.el-form-item--small .el-form-item__content,.el-form-item--small .el-form-item__label{line-height:32px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--mini .el-form-item__content,.el-form-item--mini .el-form-item__label{line-height:28px}.el-form-item--mini .el-form-item__error{padding-top:1px}.el-form-item__label-wrap{float:left}.el-form-item__label-wrap .el-form-item__label{display:inline-block;float:none}.el-form-item__label{text-align:right;vertical-align:middle;float:left;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{line-height:40px;position:relative;font-size:14px}.el-form-item__content::after,.el-form-item__content::before{display:table;content:\"\"}.el-form-item__content::after{clear:both}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:#F56C6C;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before{content:'*';color:#F56C6C;margin-right:4px}.el-form-item.is-error .el-input-group__append .el-input__inner,.el-form-item.is-error .el-input-group__prepend .el-input__inner{border-color:transparent}.el-form-item.is-error .el-input__validateIcon{color:#F56C6C}.el-form-item--feedback .el-input__validateIcon{display:inline-block}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:#409EFF;z-index:1;transition:transform .3s cubic-bezier(.645,.045,.355,1);list-style:none}.el-tabs__new-tab{float:right;border:1px solid #d3dce6;height:18px;width:18px;line-height:18px;margin:12px 0 9px 10px;border-radius:3px;text-align:center;font-size:12px;color:#d3dce6;cursor:pointer;transition:all .15s}.el-collapse-item__arrow,.el-tabs__nav{-webkit-transition:-webkit-transform .3s}.el-tabs__new-tab .el-icon-plus{transform:scale(.8,.8)}.el-tabs__new-tab:hover{color:#409EFF}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap::after{content:\"\";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:#E4E7ED;z-index:1}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap::after,.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:#909399}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform .3s;float:left;z-index:2}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#303133;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus.is-active.is-focus:not(:active){box-shadow:0 0 2px 2px #409EFF inset;border-radius:3px}.el-tabs__item .el-icon-close{border-radius:50%;text-align:center;transition:all .3s cubic-bezier(.645,.045,.355,1);margin-left:5px}.el-tabs__item .el-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .el-icon-close:hover{background-color:#C0C4CC;color:#FFF}.el-tabs__item.is-active{color:#409EFF}.el-tabs__item:hover{color:#409EFF;cursor:pointer}.el-tabs__item.is-disabled{color:#C0C4CC;cursor:default}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid #E4E7ED}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid #E4E7ED;border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .el-icon-close,.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .el-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid #E4E7ED;transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#FFF}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--border-card{background:#FFF;border:1px solid #DCDFE6;box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:#F5F7FA;border-bottom:1px solid #E4E7ED;margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all .3s cubic-bezier(.645,.045,.355,1);border:1px solid transparent;margin-top:-1px;color:#909399}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:#409EFF;background-color:#FFF;border-right-color:#DCDFE6;border-left-color:#DCDFE6}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:#409EFF}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:#C0C4CC}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid #DCDFE6}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotateZ(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left::after{right:0;left:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left::after,.el-tabs--left .el-tabs__nav-wrap.is-right::after,.el-tabs--right .el-tabs__nav-wrap.is-left::after,.el-tabs--right .el-tabs__nav-wrap.is-right::after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left,.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid #E4E7ED;border-bottom:none;border-top:1px solid #E4E7ED;text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid #E4E7ED;border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid #E4E7ED;border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid #E4E7ED;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid #dfe4ed}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:#d1dbe5 transparent}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right::after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid #E4E7ED}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid #E4E7ED;border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid #E4E7ED;border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid #E4E7ED;border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid #dfe4ed}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:#d1dbe5 transparent}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter .3s;animation:slideInRight-enter .3s}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave .3s;animation:slideInRight-leave .3s}.slideInLeft-enter{-webkit-animation:slideInLeft-enter .3s;animation:slideInLeft-enter .3s}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave .3s;animation:slideInLeft-leave .3s}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(-100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(-100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(-100%);opacity:0}}.el-tree{position:relative;cursor:default;background:#FFF;color:#606266}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#909399;font-size:14px}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:#409EFF}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:#F5F7FA}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:#409EFF;color:#fff}.el-tree-node__content{display:flex;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:#F5F7FA}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:#C0C4CC;font-size:12px;transform:rotate(0);transition:transform .3s ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__label{font-size:14px}.el-tree-node__loading-icon{margin-right:8px;font-size:14px;color:#C0C4CC}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f7ff}.el-alert{width:100%;padding:8px 16px;margin:0;box-sizing:border-box;border-radius:4px;position:relative;background-color:#FFF;overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity .2s}.el-alert.is-light .el-alert__closebtn{color:#C0C4CC}.el-alert.is-dark .el-alert__closebtn,.el-alert.is-dark .el-alert__description{color:#FFF}.el-alert.is-center{justify-content:center}.el-alert--success.is-light{background-color:#f0f9eb;color:#67C23A}.el-alert--success.is-light .el-alert__description{color:#67C23A}.el-alert--success.is-dark{background-color:#67C23A;color:#FFF}.el-alert--info.is-light{background-color:#f4f4f5;color:#909399}.el-alert--info.is-dark{background-color:#909399;color:#FFF}.el-alert--info .el-alert__description{color:#909399}.el-alert--warning.is-light{background-color:#fdf6ec;color:#E6A23C}.el-alert--warning.is-light .el-alert__description{color:#E6A23C}.el-alert--warning.is-dark{background-color:#E6A23C;color:#FFF}.el-alert--error.is-light{background-color:#fef0f0;color:#F56C6C}.el-alert--error.is-light .el-alert__description{color:#F56C6C}.el-alert--error.is-dark{background-color:#F56C6C;color:#FFF}.el-alert__content{display:table-cell;padding:0 8px}.el-alert__icon{font-size:16px;width:16px}.el-alert__icon.is-big{font-size:28px;width:28px}.el-alert__title{font-size:13px;line-height:18px}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:12px;margin:5px 0 0}.el-alert__closebtn{font-size:12px;opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert-fade-enter,.el-alert-fade-leave-active,.el-loading-fade-enter,.el-loading-fade-leave-active,.el-notification-fade-leave-active{opacity:0}.el-alert__closebtn.is-customed{font-style:normal;font-size:13px;top:9px}.el-notification{display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67C23A}.el-notification .el-icon-error{color:#F56C6C}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#E6A23C}.el-notification-fade-enter.right{right:0;transform:translateX(100%)}.el-notification-fade-enter.left{left:0;transform:translateX(-100%)}.el-input-number{position:relative;display:inline-block;width:180px;line-height:38px}.el-input-number .el-input{display:block}.el-input-number .el-input__inner{-webkit-appearance:none;padding-left:50px;padding-right:50px;text-align:center}.el-input-number__decrease,.el-input-number__increase{position:absolute;z-index:1;top:1px;width:40px;height:auto;text-align:center;background:#F5F7FA;color:#606266;cursor:pointer;font-size:13px}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:#409EFF}.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),.el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled){border-color:#409EFF}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 4px 4px 0;border-left:1px solid #DCDFE6}.el-input-number__decrease{left:1px;border-radius:4px 0 0 4px;border-right:1px solid #DCDFE6}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:#E4E7ED;color:#E4E7ED}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:#E4E7ED;cursor:not-allowed}.el-input-number--medium{width:200px;line-height:34px}.el-input-number--medium .el-input-number__decrease,.el-input-number--medium .el-input-number__increase{width:36px;font-size:14px}.el-input-number--medium .el-input__inner{padding-left:43px;padding-right:43px}.el-input-number--small{width:130px;line-height:30px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:32px;font-size:13px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number--small .el-input__inner{padding-left:39px;padding-right:39px}.el-input-number--mini{width:130px;line-height:26px}.el-input-number--mini .el-input-number__decrease,.el-input-number--mini .el-input-number__increase{width:28px;font-size:12px}.el-input-number--mini .el-input-number__decrease [class*=el-icon],.el-input-number--mini .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number--mini .el-input__inner{padding-left:35px;padding-right:35px}.el-input-number.is-without-controls .el-input__inner{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__inner{padding-left:15px;padding-right:50px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{height:auto;line-height:19px}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-radius:0 4px 0 0;border-bottom:1px solid #DCDFE6}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;bottom:1px;top:auto;left:auto;border-right:none;border-left:1px solid #DCDFE6;border-radius:0 0 4px}.el-input-number.is-controls-right[class*=medium] [class*=decrease],.el-input-number.is-controls-right[class*=medium] [class*=increase]{line-height:17px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{line-height:15px}.el-input-number.is-controls-right[class*=mini] [class*=decrease],.el-input-number.is-controls-right[class*=mini] [class*=increase]{line-height:13px}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:12px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow::after{content:\" \";border-width:5px}.el-progress-bar__inner::after,.el-row::after,.el-row::before,.el-slider::after,.el-slider::before,.el-slider__button-wrapper::after,.el-upload-cover::after{content:\"\"}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-5px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow::after{bottom:-5px;left:1px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper.is-dark{background:#303133;color:#FFF}.el-tooltip__popper.is-light{background:#FFF;border:1px solid #303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow::after{border-top-color:#FFF}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#303133}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow::after{border-bottom-color:#FFF}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#303133}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow::after{border-left-color:#FFF}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#303133}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow::after{border-right-color:#FFF}.el-slider::after,.el-slider::before{display:table}.el-slider__button-wrapper .el-tooltip,.el-slider__button-wrapper::after{vertical-align:middle;display:inline-block}.el-slider::after{clear:both}.el-slider__runway{width:100%;height:6px;margin:16px 0;background-color:#E4E7ED;border-radius:3px;position:relative;cursor:pointer;vertical-align:middle}.el-slider__runway.show-input{margin-right:160px;width:auto}.el-slider__runway.disabled{cursor:default}.el-slider__runway.disabled .el-slider__bar{background-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button{border-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button-wrapper.dragging,.el-slider__runway.disabled .el-slider__button-wrapper.hover,.el-slider__runway.disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.disabled .el-slider__button.dragging,.el-slider__runway.disabled .el-slider__button.hover,.el-slider__runway.disabled .el-slider__button:hover{transform:scale(1);cursor:not-allowed}.el-slider__button-wrapper,.el-slider__stop{-webkit-transform:translateX(-50%);position:absolute}.el-slider__input{float:right;margin-top:3px;width:130px}.el-slider__input.el-input-number--mini{margin-top:5px}.el-slider__input.el-input-number--medium{margin-top:0}.el-slider__input.el-input-number--large{margin-top:-2px}.el-slider__bar{height:6px;background-color:#409EFF;border-top-left-radius:3px;border-bottom-left-radius:3px;position:absolute}.el-slider__button-wrapper{height:36px;width:36px;z-index:1001;top:-15px;transform:translateX(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal}.el-slider__button-wrapper::after{height:100%}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{width:16px;height:16px;border:2px solid #409EFF;background-color:#FFF;border-radius:50%;transition:.2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn,.el-step__icon-inner{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{height:6px;width:6px;border-radius:100%;background-color:#FFF;transform:translateX(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translateX(-50%);font-size:14px;color:#909399;margin-top:15px}.el-slider.is-vertical{position:relative}.el-slider.is-vertical .el-slider__runway{width:6px;height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:6px;height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:-15px;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical.el-slider--with-input{padding-bottom:58px}.el-slider.is-vertical.el-slider--with-input .el-slider__input{overflow:visible;float:none;position:absolute;bottom:22px;width:36px;margin-top:15px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input__inner{text-align:center;padding-left:5px;padding-right:5px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{top:32px;margin-top:-1px;border:1px solid #DCDFE6;line-height:20px;box-sizing:border-box;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease{width:18px;right:18px;border-bottom-left-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{width:19px;border-bottom-right-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase~.el-input .el-input__inner{border-bottom-left-radius:0;border-bottom-right-radius:0}.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__increase{border-color:#C0C4CC}.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__increase{border-color:#409EFF}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:rgba(255,255,255,.9);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity .3s}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:-25px}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:50px;width:50px}.el-loading-spinner{top:50%;margin-top:-21px;width:100%;text-align:center;position:absolute}.el-col-pull-0,.el-col-pull-1,.el-col-pull-10,.el-col-pull-11,.el-col-pull-13,.el-col-pull-14,.el-col-pull-15,.el-col-pull-16,.el-col-pull-17,.el-col-pull-18,.el-col-pull-19,.el-col-pull-2,.el-col-pull-20,.el-col-pull-21,.el-col-pull-22,.el-col-pull-23,.el-col-pull-24,.el-col-pull-3,.el-col-pull-4,.el-col-pull-5,.el-col-pull-6,.el-col-pull-7,.el-col-pull-8,.el-col-pull-9,.el-col-push-0,.el-col-push-1,.el-col-push-10,.el-col-push-11,.el-col-push-12,.el-col-push-13,.el-col-push-14,.el-col-push-15,.el-col-push-16,.el-col-push-17,.el-col-push-18,.el-col-push-19,.el-col-push-2,.el-col-push-20,.el-col-push-21,.el-col-push-22,.el-col-push-23,.el-col-push-24,.el-col-push-3,.el-col-push-4,.el-col-push-5,.el-col-push-6,.el-col-push-7,.el-col-push-8,.el-col-push-9,.el-row{position:relative}.el-loading-spinner .el-loading-text{color:#409EFF;margin:3px 0;font-size:14px}.el-loading-spinner .circular{height:42px;width:42px;-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:#409EFF;stroke-linecap:round}.el-loading-spinner i{color:#409EFF}@-webkit-keyframes loading-rotate{100%{transform:rotate(360deg)}}@keyframes loading-rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-row{box-sizing:border-box}.el-row::after,.el-row::before{display:table}.el-row::after{clear:both}.el-row--flex{display:flex}.el-col-0,.el-row--flex:after,.el-row--flex:before{display:none}.el-row--flex.is-justify-center{justify-content:center}.el-row--flex.is-justify-end{justify-content:flex-end}.el-row--flex.is-justify-space-between{justify-content:space-between}.el-row--flex.is-justify-space-around{justify-content:space-around}.el-row--flex.is-align-middle{align-items:center}.el-row--flex.is-align-bottom{align-items:flex-end}[class*=el-col-]{float:left;box-sizing:border-box}.el-upload--picture-card,.el-upload-dragger{-webkit-box-sizing:border-box;cursor:pointer}.el-col-0{width:0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{right:0}.el-col-push-0{left:0}.el-col-1{width:4.16667%}.el-col-offset-1{margin-left:4.16667%}.el-col-pull-1{right:4.16667%}.el-col-push-1{left:4.16667%}.el-col-2{width:8.33333%}.el-col-offset-2{margin-left:8.33333%}.el-col-pull-2{right:8.33333%}.el-col-push-2{left:8.33333%}.el-col-3{width:12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{right:12.5%}.el-col-push-3{left:12.5%}.el-col-4{width:16.66667%}.el-col-offset-4{margin-left:16.66667%}.el-col-pull-4{right:16.66667%}.el-col-push-4{left:16.66667%}.el-col-5{width:20.83333%}.el-col-offset-5{margin-left:20.83333%}.el-col-pull-5{right:20.83333%}.el-col-push-5{left:20.83333%}.el-col-6{width:25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{right:25%}.el-col-push-6{left:25%}.el-col-7{width:29.16667%}.el-col-offset-7{margin-left:29.16667%}.el-col-pull-7{right:29.16667%}.el-col-push-7{left:29.16667%}.el-col-8{width:33.33333%}.el-col-offset-8{margin-left:33.33333%}.el-col-pull-8{right:33.33333%}.el-col-push-8{left:33.33333%}.el-col-9{width:37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{right:37.5%}.el-col-push-9{left:37.5%}.el-col-10{width:41.66667%}.el-col-offset-10{margin-left:41.66667%}.el-col-pull-10{right:41.66667%}.el-col-push-10{left:41.66667%}.el-col-11{width:45.83333%}.el-col-offset-11{margin-left:45.83333%}.el-col-pull-11{right:45.83333%}.el-col-push-11{left:45.83333%}.el-col-12{width:50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%}.el-col-13{width:54.16667%}.el-col-offset-13{margin-left:54.16667%}.el-col-pull-13{right:54.16667%}.el-col-push-13{left:54.16667%}.el-col-14{width:58.33333%}.el-col-offset-14{margin-left:58.33333%}.el-col-pull-14{right:58.33333%}.el-col-push-14{left:58.33333%}.el-col-15{width:62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{right:62.5%}.el-col-push-15{left:62.5%}.el-col-16{width:66.66667%}.el-col-offset-16{margin-left:66.66667%}.el-col-pull-16{right:66.66667%}.el-col-push-16{left:66.66667%}.el-col-17{width:70.83333%}.el-col-offset-17{margin-left:70.83333%}.el-col-pull-17{right:70.83333%}.el-col-push-17{left:70.83333%}.el-col-18{width:75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{right:75%}.el-col-push-18{left:75%}.el-col-19{width:79.16667%}.el-col-offset-19{margin-left:79.16667%}.el-col-pull-19{right:79.16667%}.el-col-push-19{left:79.16667%}.el-col-20{width:83.33333%}.el-col-offset-20{margin-left:83.33333%}.el-col-pull-20{right:83.33333%}.el-col-push-20{left:83.33333%}.el-col-21{width:87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{right:87.5%}.el-col-push-21{left:87.5%}.el-col-22{width:91.66667%}.el-col-offset-22{margin-left:91.66667%}.el-col-pull-22{right:91.66667%}.el-col-push-22{left:91.66667%}.el-col-23{width:95.83333%}.el-col-offset-23{margin-left:95.83333%}.el-col-pull-23{right:95.83333%}.el-col-push-23{left:95.83333%}.el-col-24{width:100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{right:100%}.el-col-push-24{left:100%}@media only screen and (max-width:767px){.el-col-xs-0{display:none;width:0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{width:4.16667%}.el-col-xs-offset-1{margin-left:4.16667%}.el-col-xs-pull-1{position:relative;right:4.16667%}.el-col-xs-push-1{position:relative;left:4.16667%}.el-col-xs-2{width:8.33333%}.el-col-xs-offset-2{margin-left:8.33333%}.el-col-xs-pull-2{position:relative;right:8.33333%}.el-col-xs-push-2{position:relative;left:8.33333%}.el-col-xs-3{width:12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{width:16.66667%}.el-col-xs-offset-4{margin-left:16.66667%}.el-col-xs-pull-4{position:relative;right:16.66667%}.el-col-xs-push-4{position:relative;left:16.66667%}.el-col-xs-5{width:20.83333%}.el-col-xs-offset-5{margin-left:20.83333%}.el-col-xs-pull-5{position:relative;right:20.83333%}.el-col-xs-push-5{position:relative;left:20.83333%}.el-col-xs-6{width:25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{width:29.16667%}.el-col-xs-offset-7{margin-left:29.16667%}.el-col-xs-pull-7{position:relative;right:29.16667%}.el-col-xs-push-7{position:relative;left:29.16667%}.el-col-xs-8{width:33.33333%}.el-col-xs-offset-8{margin-left:33.33333%}.el-col-xs-pull-8{position:relative;right:33.33333%}.el-col-xs-push-8{position:relative;left:33.33333%}.el-col-xs-9{width:37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{width:41.66667%}.el-col-xs-offset-10{margin-left:41.66667%}.el-col-xs-pull-10{position:relative;right:41.66667%}.el-col-xs-push-10{position:relative;left:41.66667%}.el-col-xs-11{width:45.83333%}.el-col-xs-offset-11{margin-left:45.83333%}.el-col-xs-pull-11{position:relative;right:45.83333%}.el-col-xs-push-11{position:relative;left:45.83333%}.el-col-xs-12{width:50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{width:54.16667%}.el-col-xs-offset-13{margin-left:54.16667%}.el-col-xs-pull-13{position:relative;right:54.16667%}.el-col-xs-push-13{position:relative;left:54.16667%}.el-col-xs-14{width:58.33333%}.el-col-xs-offset-14{margin-left:58.33333%}.el-col-xs-pull-14{position:relative;right:58.33333%}.el-col-xs-push-14{position:relative;left:58.33333%}.el-col-xs-15{width:62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{width:66.66667%}.el-col-xs-offset-16{margin-left:66.66667%}.el-col-xs-pull-16{position:relative;right:66.66667%}.el-col-xs-push-16{position:relative;left:66.66667%}.el-col-xs-17{width:70.83333%}.el-col-xs-offset-17{margin-left:70.83333%}.el-col-xs-pull-17{position:relative;right:70.83333%}.el-col-xs-push-17{position:relative;left:70.83333%}.el-col-xs-18{width:75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{width:79.16667%}.el-col-xs-offset-19{margin-left:79.16667%}.el-col-xs-pull-19{position:relative;right:79.16667%}.el-col-xs-push-19{position:relative;left:79.16667%}.el-col-xs-20{width:83.33333%}.el-col-xs-offset-20{margin-left:83.33333%}.el-col-xs-pull-20{position:relative;right:83.33333%}.el-col-xs-push-20{position:relative;left:83.33333%}.el-col-xs-21{width:87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{width:91.66667%}.el-col-xs-offset-22{margin-left:91.66667%}.el-col-xs-pull-22{position:relative;right:91.66667%}.el-col-xs-push-22{position:relative;left:91.66667%}.el-col-xs-23{width:95.83333%}.el-col-xs-offset-23{margin-left:95.83333%}.el-col-xs-pull-23{position:relative;right:95.83333%}.el-col-xs-push-23{position:relative;left:95.83333%}.el-col-xs-24{width:100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;width:0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{width:4.16667%}.el-col-sm-offset-1{margin-left:4.16667%}.el-col-sm-pull-1{position:relative;right:4.16667%}.el-col-sm-push-1{position:relative;left:4.16667%}.el-col-sm-2{width:8.33333%}.el-col-sm-offset-2{margin-left:8.33333%}.el-col-sm-pull-2{position:relative;right:8.33333%}.el-col-sm-push-2{position:relative;left:8.33333%}.el-col-sm-3{width:12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{width:16.66667%}.el-col-sm-offset-4{margin-left:16.66667%}.el-col-sm-pull-4{position:relative;right:16.66667%}.el-col-sm-push-4{position:relative;left:16.66667%}.el-col-sm-5{width:20.83333%}.el-col-sm-offset-5{margin-left:20.83333%}.el-col-sm-pull-5{position:relative;right:20.83333%}.el-col-sm-push-5{position:relative;left:20.83333%}.el-col-sm-6{width:25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{width:29.16667%}.el-col-sm-offset-7{margin-left:29.16667%}.el-col-sm-pull-7{position:relative;right:29.16667%}.el-col-sm-push-7{position:relative;left:29.16667%}.el-col-sm-8{width:33.33333%}.el-col-sm-offset-8{margin-left:33.33333%}.el-col-sm-pull-8{position:relative;right:33.33333%}.el-col-sm-push-8{position:relative;left:33.33333%}.el-col-sm-9{width:37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{width:41.66667%}.el-col-sm-offset-10{margin-left:41.66667%}.el-col-sm-pull-10{position:relative;right:41.66667%}.el-col-sm-push-10{position:relative;left:41.66667%}.el-col-sm-11{width:45.83333%}.el-col-sm-offset-11{margin-left:45.83333%}.el-col-sm-pull-11{position:relative;right:45.83333%}.el-col-sm-push-11{position:relative;left:45.83333%}.el-col-sm-12{width:50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{width:54.16667%}.el-col-sm-offset-13{margin-left:54.16667%}.el-col-sm-pull-13{position:relative;right:54.16667%}.el-col-sm-push-13{position:relative;left:54.16667%}.el-col-sm-14{width:58.33333%}.el-col-sm-offset-14{margin-left:58.33333%}.el-col-sm-pull-14{position:relative;right:58.33333%}.el-col-sm-push-14{position:relative;left:58.33333%}.el-col-sm-15{width:62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{width:66.66667%}.el-col-sm-offset-16{margin-left:66.66667%}.el-col-sm-pull-16{position:relative;right:66.66667%}.el-col-sm-push-16{position:relative;left:66.66667%}.el-col-sm-17{width:70.83333%}.el-col-sm-offset-17{margin-left:70.83333%}.el-col-sm-pull-17{position:relative;right:70.83333%}.el-col-sm-push-17{position:relative;left:70.83333%}.el-col-sm-18{width:75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{width:79.16667%}.el-col-sm-offset-19{margin-left:79.16667%}.el-col-sm-pull-19{position:relative;right:79.16667%}.el-col-sm-push-19{position:relative;left:79.16667%}.el-col-sm-20{width:83.33333%}.el-col-sm-offset-20{margin-left:83.33333%}.el-col-sm-pull-20{position:relative;right:83.33333%}.el-col-sm-push-20{position:relative;left:83.33333%}.el-col-sm-21{width:87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{width:91.66667%}.el-col-sm-offset-22{margin-left:91.66667%}.el-col-sm-pull-22{position:relative;right:91.66667%}.el-col-sm-push-22{position:relative;left:91.66667%}.el-col-sm-23{width:95.83333%}.el-col-sm-offset-23{margin-left:95.83333%}.el-col-sm-pull-23{position:relative;right:95.83333%}.el-col-sm-push-23{position:relative;left:95.83333%}.el-col-sm-24{width:100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0{display:none;width:0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{width:4.16667%}.el-col-md-offset-1{margin-left:4.16667%}.el-col-md-pull-1{position:relative;right:4.16667%}.el-col-md-push-1{position:relative;left:4.16667%}.el-col-md-2{width:8.33333%}.el-col-md-offset-2{margin-left:8.33333%}.el-col-md-pull-2{position:relative;right:8.33333%}.el-col-md-push-2{position:relative;left:8.33333%}.el-col-md-3{width:12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{width:16.66667%}.el-col-md-offset-4{margin-left:16.66667%}.el-col-md-pull-4{position:relative;right:16.66667%}.el-col-md-push-4{position:relative;left:16.66667%}.el-col-md-5{width:20.83333%}.el-col-md-offset-5{margin-left:20.83333%}.el-col-md-pull-5{position:relative;right:20.83333%}.el-col-md-push-5{position:relative;left:20.83333%}.el-col-md-6{width:25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{width:29.16667%}.el-col-md-offset-7{margin-left:29.16667%}.el-col-md-pull-7{position:relative;right:29.16667%}.el-col-md-push-7{position:relative;left:29.16667%}.el-col-md-8{width:33.33333%}.el-col-md-offset-8{margin-left:33.33333%}.el-col-md-pull-8{position:relative;right:33.33333%}.el-col-md-push-8{position:relative;left:33.33333%}.el-col-md-9{width:37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{width:41.66667%}.el-col-md-offset-10{margin-left:41.66667%}.el-col-md-pull-10{position:relative;right:41.66667%}.el-col-md-push-10{position:relative;left:41.66667%}.el-col-md-11{width:45.83333%}.el-col-md-offset-11{margin-left:45.83333%}.el-col-md-pull-11{position:relative;right:45.83333%}.el-col-md-push-11{position:relative;left:45.83333%}.el-col-md-12{width:50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{width:54.16667%}.el-col-md-offset-13{margin-left:54.16667%}.el-col-md-pull-13{position:relative;right:54.16667%}.el-col-md-push-13{position:relative;left:54.16667%}.el-col-md-14{width:58.33333%}.el-col-md-offset-14{margin-left:58.33333%}.el-col-md-pull-14{position:relative;right:58.33333%}.el-col-md-push-14{position:relative;left:58.33333%}.el-col-md-15{width:62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{width:66.66667%}.el-col-md-offset-16{margin-left:66.66667%}.el-col-md-pull-16{position:relative;right:66.66667%}.el-col-md-push-16{position:relative;left:66.66667%}.el-col-md-17{width:70.83333%}.el-col-md-offset-17{margin-left:70.83333%}.el-col-md-pull-17{position:relative;right:70.83333%}.el-col-md-push-17{position:relative;left:70.83333%}.el-col-md-18{width:75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{width:79.16667%}.el-col-md-offset-19{margin-left:79.16667%}.el-col-md-pull-19{position:relative;right:79.16667%}.el-col-md-push-19{position:relative;left:79.16667%}.el-col-md-20{width:83.33333%}.el-col-md-offset-20{margin-left:83.33333%}.el-col-md-pull-20{position:relative;right:83.33333%}.el-col-md-push-20{position:relative;left:83.33333%}.el-col-md-21{width:87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{width:91.66667%}.el-col-md-offset-22{margin-left:91.66667%}.el-col-md-pull-22{position:relative;right:91.66667%}.el-col-md-push-22{position:relative;left:91.66667%}.el-col-md-23{width:95.83333%}.el-col-md-offset-23{margin-left:95.83333%}.el-col-md-pull-23{position:relative;right:95.83333%}.el-col-md-push-23{position:relative;left:95.83333%}.el-col-md-24{width:100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;width:0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{width:4.16667%}.el-col-lg-offset-1{margin-left:4.16667%}.el-col-lg-pull-1{position:relative;right:4.16667%}.el-col-lg-push-1{position:relative;left:4.16667%}.el-col-lg-2{width:8.33333%}.el-col-lg-offset-2{margin-left:8.33333%}.el-col-lg-pull-2{position:relative;right:8.33333%}.el-col-lg-push-2{position:relative;left:8.33333%}.el-col-lg-3{width:12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{width:16.66667%}.el-col-lg-offset-4{margin-left:16.66667%}.el-col-lg-pull-4{position:relative;right:16.66667%}.el-col-lg-push-4{position:relative;left:16.66667%}.el-col-lg-5{width:20.83333%}.el-col-lg-offset-5{margin-left:20.83333%}.el-col-lg-pull-5{position:relative;right:20.83333%}.el-col-lg-push-5{position:relative;left:20.83333%}.el-col-lg-6{width:25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{width:29.16667%}.el-col-lg-offset-7{margin-left:29.16667%}.el-col-lg-pull-7{position:relative;right:29.16667%}.el-col-lg-push-7{position:relative;left:29.16667%}.el-col-lg-8{width:33.33333%}.el-col-lg-offset-8{margin-left:33.33333%}.el-col-lg-pull-8{position:relative;right:33.33333%}.el-col-lg-push-8{position:relative;left:33.33333%}.el-col-lg-9{width:37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{width:41.66667%}.el-col-lg-offset-10{margin-left:41.66667%}.el-col-lg-pull-10{position:relative;right:41.66667%}.el-col-lg-push-10{position:relative;left:41.66667%}.el-col-lg-11{width:45.83333%}.el-col-lg-offset-11{margin-left:45.83333%}.el-col-lg-pull-11{position:relative;right:45.83333%}.el-col-lg-push-11{position:relative;left:45.83333%}.el-col-lg-12{width:50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{width:54.16667%}.el-col-lg-offset-13{margin-left:54.16667%}.el-col-lg-pull-13{position:relative;right:54.16667%}.el-col-lg-push-13{position:relative;left:54.16667%}.el-col-lg-14{width:58.33333%}.el-col-lg-offset-14{margin-left:58.33333%}.el-col-lg-pull-14{position:relative;right:58.33333%}.el-col-lg-push-14{position:relative;left:58.33333%}.el-col-lg-15{width:62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{width:66.66667%}.el-col-lg-offset-16{margin-left:66.66667%}.el-col-lg-pull-16{position:relative;right:66.66667%}.el-col-lg-push-16{position:relative;left:66.66667%}.el-col-lg-17{width:70.83333%}.el-col-lg-offset-17{margin-left:70.83333%}.el-col-lg-pull-17{position:relative;right:70.83333%}.el-col-lg-push-17{position:relative;left:70.83333%}.el-col-lg-18{width:75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{width:79.16667%}.el-col-lg-offset-19{margin-left:79.16667%}.el-col-lg-pull-19{position:relative;right:79.16667%}.el-col-lg-push-19{position:relative;left:79.16667%}.el-col-lg-20{width:83.33333%}.el-col-lg-offset-20{margin-left:83.33333%}.el-col-lg-pull-20{position:relative;right:83.33333%}.el-col-lg-push-20{position:relative;left:83.33333%}.el-col-lg-21{width:87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{width:91.66667%}.el-col-lg-offset-22{margin-left:91.66667%}.el-col-lg-pull-22{position:relative;right:91.66667%}.el-col-lg-push-22{position:relative;left:91.66667%}.el-col-lg-23{width:95.83333%}.el-col-lg-offset-23{margin-left:95.83333%}.el-col-lg-pull-23{position:relative;right:95.83333%}.el-col-lg-push-23{position:relative;left:95.83333%}.el-col-lg-24{width:100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;width:0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{width:4.16667%}.el-col-xl-offset-1{margin-left:4.16667%}.el-col-xl-pull-1{position:relative;right:4.16667%}.el-col-xl-push-1{position:relative;left:4.16667%}.el-col-xl-2{width:8.33333%}.el-col-xl-offset-2{margin-left:8.33333%}.el-col-xl-pull-2{position:relative;right:8.33333%}.el-col-xl-push-2{position:relative;left:8.33333%}.el-col-xl-3{width:12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{width:16.66667%}.el-col-xl-offset-4{margin-left:16.66667%}.el-col-xl-pull-4{position:relative;right:16.66667%}.el-col-xl-push-4{position:relative;left:16.66667%}.el-col-xl-5{width:20.83333%}.el-col-xl-offset-5{margin-left:20.83333%}.el-col-xl-pull-5{position:relative;right:20.83333%}.el-col-xl-push-5{position:relative;left:20.83333%}.el-col-xl-6{width:25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{width:29.16667%}.el-col-xl-offset-7{margin-left:29.16667%}.el-col-xl-pull-7{position:relative;right:29.16667%}.el-col-xl-push-7{position:relative;left:29.16667%}.el-col-xl-8{width:33.33333%}.el-col-xl-offset-8{margin-left:33.33333%}.el-col-xl-pull-8{position:relative;right:33.33333%}.el-col-xl-push-8{position:relative;left:33.33333%}.el-col-xl-9{width:37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{width:41.66667%}.el-col-xl-offset-10{margin-left:41.66667%}.el-col-xl-pull-10{position:relative;right:41.66667%}.el-col-xl-push-10{position:relative;left:41.66667%}.el-col-xl-11{width:45.83333%}.el-col-xl-offset-11{margin-left:45.83333%}.el-col-xl-pull-11{position:relative;right:45.83333%}.el-col-xl-push-11{position:relative;left:45.83333%}.el-col-xl-12{width:50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{width:54.16667%}.el-col-xl-offset-13{margin-left:54.16667%}.el-col-xl-pull-13{position:relative;right:54.16667%}.el-col-xl-push-13{position:relative;left:54.16667%}.el-col-xl-14{width:58.33333%}.el-col-xl-offset-14{margin-left:58.33333%}.el-col-xl-pull-14{position:relative;right:58.33333%}.el-col-xl-push-14{position:relative;left:58.33333%}.el-col-xl-15{width:62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{width:66.66667%}.el-col-xl-offset-16{margin-left:66.66667%}.el-col-xl-pull-16{position:relative;right:66.66667%}.el-col-xl-push-16{position:relative;left:66.66667%}.el-col-xl-17{width:70.83333%}.el-col-xl-offset-17{margin-left:70.83333%}.el-col-xl-pull-17{position:relative;right:70.83333%}.el-col-xl-push-17{position:relative;left:70.83333%}.el-col-xl-18{width:75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{width:79.16667%}.el-col-xl-offset-19{margin-left:79.16667%}.el-col-xl-pull-19{position:relative;right:79.16667%}.el-col-xl-push-19{position:relative;left:79.16667%}.el-col-xl-20{width:83.33333%}.el-col-xl-offset-20{margin-left:83.33333%}.el-col-xl-pull-20{position:relative;right:83.33333%}.el-col-xl-push-20{position:relative;left:83.33333%}.el-col-xl-21{width:87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{width:91.66667%}.el-col-xl-offset-22{margin-left:91.66667%}.el-col-xl-pull-22{position:relative;right:91.66667%}.el-col-xl-push-22{position:relative;left:91.66667%}.el-col-xl-23{width:95.83333%}.el-col-xl-offset-23{margin-left:95.83333%}.el-col-xl-pull-23{position:relative;right:95.83333%}.el-col-xl-push-23{position:relative;left:95.83333%}.el-col-xl-24{width:100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}@-webkit-keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-upload{display:inline-block;text-align:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:#606266;margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.el-upload--picture-card{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;box-sizing:border-box;width:148px;height:148px;line-height:146px;vertical-align:top}.el-upload--picture-card i{font-size:28px;color:#8c939d}.el-upload--picture-card:hover,.el-upload:focus{border-color:#409EFF;color:#409EFF}.el-upload:focus .el-upload-dragger{border-color:#409EFF}.el-upload-dragger{background-color:#fff;border:1px dashed #d9d9d9;border-radius:6px;box-sizing:border-box;width:360px;height:180px;text-align:center;position:relative;overflow:hidden}.el-upload-dragger .el-icon-upload{font-size:67px;color:#C0C4CC;margin:40px 0 16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:1px solid #DCDFE6;margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:#606266;font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:#409EFF;font-style:normal}.el-upload-dragger:hover{border-color:#409EFF}.el-upload-dragger.is-dragover{background-color:rgba(32,159,255,.06);border:2px dashed #409EFF}.el-upload-list{margin:0;padding:0;list-style:none}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:#606266;line-height:1.8;margin-top:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item:first-child{margin-top:10px}.el-upload-list__item .el-icon-upload-success{color:#67C23A}.el-upload-list__item .el-icon-close{display:none;position:absolute;top:5px;right:5px;cursor:pointer;opacity:.75;color:#606266}.el-upload-list__item .el-icon-close:hover{opacity:1}.el-upload-list__item .el-icon-close-tip{display:none;position:absolute;top:5px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:#409EFF}.el-upload-list__item:hover{background-color:#F5F7FA}.el-upload-list__item:hover .el-icon-close{display:inline-block}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:block}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:#409EFF;cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip{display:inline-block}.el-upload-list__item.is-success:active .el-icon-close-tip,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:not(.focusing):focus .el-icon-close-tip{display:none}.el-upload-list.is-disabled .el-upload-list__item:hover .el-upload-list__item-status-label{display:block}.el-upload-list__item-name{color:#606266;display:block;margin-right:40px;overflow:hidden;padding-left:4px;text-overflow:ellipsis;transition:color .3s;white-space:nowrap}.el-upload-list__item-name [class^=el-icon]{height:100%;margin-right:7px;color:#909399;line-height:inherit}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:#606266;display:none}.el-upload-list__item-delete:hover{color:#409EFF}.el-upload-list--picture-card{margin:0;display:inline;vertical-align:top}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;width:148px;height:148px;margin:0 8px 8px 0;display:inline-block}.el-upload-list--picture-card .el-upload-list__item .el-icon-check,.el-upload-list--picture-card .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture-card .el-upload-list__item .el-icon-close,.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;text-align:center;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);transition:opacity .3s}.el-upload-list--picture-card .el-upload-list__item-actions::after{display:inline-block;content:\"\";height:100%;vertical-align:middle}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:15px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-block}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px 10px 10px 90px;height:92px}.el-upload-list--picture .el-upload-list__item .el-icon-check,.el-upload-list--picture .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{background:0 0;box-shadow:none;top:-2px;right:-12px}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name{line-height:70px;margin-top:0}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item-thumbnail{vertical-align:middle;display:inline-block;width:70px;height:70px;float:left;position:relative;z-index:1;margin-left:-80px;background-color:#FFF}.el-upload-list--picture .el-upload-list__item-name{display:block;margin-top:20px}.el-upload-list--picture .el-upload-list__item-name i{font-size:70px;line-height:1;position:absolute;left:9px;top:10px}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 1px 1px #ccc}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover::after{display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;transform:rotate(45deg);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.72);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#FFF;font-size:14px;cursor:pointer;vertical-align:middle;transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);margin-top:60px}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#FFF;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#FFF;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:#303133}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-progress{position:relative;line-height:1}.el-progress__text{font-size:14px;color:#606266;display:inline-block;vertical-align:middle;margin-left:10px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translate(0,-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress-bar,.el-progress-bar__inner::after,.el-progress-bar__innerText,.el-spinner{display:inline-block;vertical-align:middle}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:#67C23A}.el-progress.is-success .el-progress__text{color:#67C23A}.el-progress.is-warning .el-progress-bar__inner{background-color:#E6A23C}.el-progress.is-warning .el-progress__text{color:#E6A23C}.el-progress.is-exception .el-progress-bar__inner{background-color:#F56C6C}.el-progress.is-exception .el-progress__text{color:#F56C6C}.el-progress-bar{padding-right:50px;width:100%;margin-right:-55px;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:#EBEEF5;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:#409EFF;text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-card,.el-message{border-radius:4px;overflow:hidden}.el-progress-bar__inner::after{height:100%}.el-progress-bar__innerText{color:#FFF;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:#ececec;stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{100%{transform:rotate(360deg)}}@keyframes rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-message{min-width:380px;box-sizing:border-box;border-width:1px;border-style:solid;border-color:#EBEEF5;position:fixed;left:50%;top:20px;transform:translateX(-50%);background-color:#edf2fc;transition:opacity .3s,transform .4s,top .4s;padding:15px 15px 15px 20px;display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--info .el-message__content{color:#909399}.el-message--success{background-color:#f0f9eb;border-color:#e1f3d8}.el-message--success .el-message__content{color:#67C23A}.el-message--warning{background-color:#fdf6ec;border-color:#faecd8}.el-message--warning .el-message__content{color:#E6A23C}.el-message--error{background-color:#fef0f0;border-color:#fde2e2}.el-message--error .el-message__content{color:#F56C6C}.el-message__icon{margin-right:10px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__closeBtn{position:absolute;top:50%;right:15px;transform:translateY(-50%);cursor:pointer;color:#C0C4CC;font-size:16px}.el-message__closeBtn:hover{color:#909399}.el-message .el-icon-success{color:#67C23A}.el-message .el-icon-error{color:#F56C6C}.el-message .el-icon-info{color:#909399}.el-message .el-icon-warning{color:#E6A23C}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;transform:translate(-50%,-100%)}.el-badge{position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:#F56C6C;border-radius:10px;color:#FFF;display:inline-block;font-size:12px;height:18px;line-height:18px;padding:0 6px;text-align:center;white-space:nowrap;border:1px solid #FFF}.el-badge__content.is-fixed{position:absolute;top:0;right:10px;transform:translateY(-50%) translateX(100%)}.el-rate__icon,.el-rate__item{position:relative;display:inline-block}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:#409EFF}.el-badge__content--success{background-color:#67C23A}.el-badge__content--warning{background-color:#E6A23C}.el-badge__content--info{background-color:#909399}.el-badge__content--danger{background-color:#F56C6C}.el-card{border:1px solid #EBEEF5;background-color:#FFF;color:#303133;transition:.3s}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-card__header{padding:18px 20px;border-bottom:1px solid #EBEEF5;box-sizing:border-box}.el-card__body{padding:20px}.el-rate{height:20px;line-height:1}.el-rate__item{font-size:0;vertical-align:middle}.el-rate__icon{font-size:18px;margin-right:6px;color:#C0C4CC;transition:.3s}.el-rate__decimal,.el-rate__icon .path2{position:absolute;top:0;left:0}.el-rate__icon.hover{transform:scale(1.15)}.el-rate__decimal{display:inline-block;overflow:hidden}.el-step.is-vertical,.el-steps{display:-ms-flexbox}.el-rate__text{font-size:14px;vertical-align:middle}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:#F5F7FA}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:#303133;border-color:#303133}.el-step__head.is-wait{color:#C0C4CC;border-color:#C0C4CC}.el-step__head.is-success{color:#67C23A;border-color:#67C23A}.el-step__head.is-error{color:#F56C6C;border-color:#F56C6C}.el-step__head.is-finish{color:#409EFF;border-color:#409EFF}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:#FFF;transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:#C0C4CC}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:#303133}.el-step__title.is-wait{color:#C0C4CC}.el-step__title.is-success{color:#67C23A}.el-step__title.is-error{color:#F56C6C}.el-step__title.is-finish{color:#409EFF}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:#303133}.el-step__description.is-wait{color:#C0C4CC}.el-step__description.is-success{color:#67C23A}.el-step__description.is-error{color:#F56C6C}.el-step__description.is-finish{color:#409EFF}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow::after,.el-step.is-simple .el-step__arrow::before{content:'';display:inline-block;position:absolute;height:15px;width:1px;background:#C0C4CC}.el-step.is-simple .el-step__arrow::before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow::after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-carousel{position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:36px;width:36px;cursor:pointer;transition:.3s;border-radius:50%;background-color:rgba(31,45,61,.11);color:#FFF;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:12px}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:rgba(31,45,61,.23)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:2}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translateX(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:26px;text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:#C0C4CC;opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:12px 4px}.el-carousel__indicator--vertical{padding:4px 12px}.el-carousel__indicator--vertical .el-carousel__button{width:2px;height:15px}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:30px;height:2px;background-color:#FFF;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:.3s}.el-carousel__item,.el-carousel__mask{height:100%;top:0;left:0;position:absolute}.carousel-arrow-left-enter,.carousel-arrow-left-leave-active{transform:translateY(-50%) translateX(-10px);opacity:0}.carousel-arrow-right-enter,.carousel-arrow-right-leave-active{transform:translateY(-50%) translateX(10px);opacity:0}.el-carousel__item{width:100%;display:inline-block;overflow:hidden;z-index:0}.el-carousel__item.is-active{z-index:2}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:1}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:2}.el-carousel__mask{width:100%;background-color:#FFF;opacity:.24;transition:.2s}.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-collapse{border-top:1px solid #EBEEF5;border-bottom:1px solid #EBEEF5}.el-collapse-item.is-disabled .el-collapse-item__header{color:#bbb;cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:48px;line-height:48px;background-color:#FFF;color:#303133;cursor:pointer;border-bottom:1px solid #EBEEF5;font-size:13px;font-weight:500;transition:border-bottom-color .3s;outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform .3s;font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:#409EFF}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:#FFF;overflow:hidden;box-sizing:border-box;border-bottom:1px solid #EBEEF5}.el-cascader__tags,.el-tag{-webkit-box-sizing:border-box}.el-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.769230769230769}.el-collapse-item:last-child{margin-bottom:-1px}.el-popper .popper__arrow,.el-popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03))}.el-popper .popper__arrow::after{content:\" \";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#EBEEF5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-6px;border-top-color:#FFF;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#EBEEF5}.el-popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#FFF}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#EBEEF5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow::after{bottom:-6px;left:1px;border-right-color:#FFF;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#EBEEF5}.el-popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#FFF}.el-tag{background-color:#ecf5ff;border-color:#d9ecff;display:inline-block;height:32px;padding:0 10px;line-height:30px;font-size:12px;color:#409EFF;border-width:1px;border-style:solid;border-radius:4px;box-sizing:border-box;white-space:nowrap}.el-tag.is-hit{border-color:#409EFF}.el-tag .el-tag__close{color:#409eff}.el-tag .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag.el-tag--info{background-color:#f4f4f5;border-color:#e9e9eb;color:#909399}.el-tag.el-tag--info.is-hit{border-color:#909399}.el-tag.el-tag--info .el-tag__close{color:#909399}.el-tag.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag.el-tag--success{background-color:#f0f9eb;border-color:#e1f3d8;color:#67c23a}.el-tag.el-tag--success.is-hit{border-color:#67C23A}.el-tag.el-tag--success .el-tag__close{color:#67c23a}.el-tag.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag.el-tag--warning{background-color:#fdf6ec;border-color:#faecd8;color:#e6a23c}.el-tag.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag.el-tag--danger{background-color:#fef0f0;border-color:#fde2e2;color:#f56c6c}.el-tag.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag .el-icon-close{border-radius:50%;text-align:center;position:relative;cursor:pointer;font-size:12px;height:16px;width:16px;line-height:16px;vertical-align:middle;top:-1px;right:-5px}.el-tag .el-icon-close::before{display:block}.el-tag--dark{background-color:#409eff;border-color:#409eff;color:#fff}.el-tag--dark.is-hit{border-color:#409EFF}.el-tag--dark .el-tag__close{color:#fff}.el-tag--dark .el-tag__close:hover{color:#FFF;background-color:#66b1ff}.el-tag--dark.el-tag--info{background-color:#909399;border-color:#909399;color:#fff}.el-tag--dark.el-tag--info.is-hit{border-color:#909399}.el-tag--dark.el-tag--info .el-tag__close{color:#fff}.el-tag--dark.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#a6a9ad}.el-tag--dark.el-tag--success{background-color:#67c23a;border-color:#67c23a;color:#fff}.el-tag--dark.el-tag--success.is-hit{border-color:#67C23A}.el-tag--dark.el-tag--success .el-tag__close{color:#fff}.el-tag--dark.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#85ce61}.el-tag--dark.el-tag--warning{background-color:#e6a23c;border-color:#e6a23c;color:#fff}.el-tag--dark.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--dark.el-tag--warning .el-tag__close{color:#fff}.el-tag--dark.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#ebb563}.el-tag--dark.el-tag--danger{background-color:#f56c6c;border-color:#f56c6c;color:#fff}.el-tag--dark.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--dark.el-tag--danger .el-tag__close{color:#fff}.el-tag--dark.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f78989}.el-tag--plain{background-color:#fff;border-color:#b3d8ff;color:#409eff}.el-tag--plain.is-hit{border-color:#409EFF}.el-tag--plain .el-tag__close{color:#409eff}.el-tag--plain .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag--plain.el-tag--info{background-color:#fff;border-color:#d3d4d6;color:#909399}.el-tag--plain.el-tag--info.is-hit{border-color:#909399}.el-tag--plain.el-tag--info .el-tag__close{color:#909399}.el-tag--plain.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag--plain.el-tag--success{background-color:#fff;border-color:#c2e7b0;color:#67c23a}.el-tag--plain.el-tag--success.is-hit{border-color:#67C23A}.el-tag--plain.el-tag--success .el-tag__close{color:#67c23a}.el-tag--plain.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag--plain.el-tag--warning{background-color:#fff;border-color:#f5dab1;color:#e6a23c}.el-tag--plain.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--plain.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag--plain.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag--plain.el-tag--danger{background-color:#fff;border-color:#fbc4c4;color:#f56c6c}.el-tag--plain.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--plain.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag--plain.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag--medium{height:28px;line-height:26px}.el-tag--medium .el-icon-close{transform:scale(.8)}.el-tag--small{height:24px;padding:0 8px;line-height:22px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag--mini{height:20px;padding:0 5px;line-height:19px}.el-tag--mini .el-icon-close{margin-left:-3px;transform:scale(.7)}.el-cascader{display:inline-block;position:relative;font-size:14px;line-height:40px}.el-cascader:not(.is-disabled):hover .el-input__inner{cursor:pointer;border-color:#C0C4CC}.el-cascader .el-input .el-input__inner:focus,.el-cascader .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-cascader .el-input{cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis}.el-cascader .el-input .el-icon-arrow-down{transition:transform .3s;font-size:14px}.el-cascader .el-input .el-icon-arrow-down.is-reverse{transform:rotateZ(180deg)}.el-cascader .el-input .el-icon-circle-close:hover{color:#909399}.el-cascader--medium{font-size:14px;line-height:36px}.el-cascader--small{font-size:13px;line-height:32px}.el-cascader--mini{font-size:12px;line-height:28px}.el-cascader.is-disabled .el-cascader__label{z-index:2;color:#C0C4CC}.el-cascader__dropdown{margin:5px 0;font-size:14px;background:#FFF;border:1px solid #E4E7ED;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:#f0f2f5}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:#C0C4CC;color:#FFF}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:#909399}.el-cascader__suggestion-panel{border-radius:4px}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:14px;color:#606266;text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:#F5F7FA}.el-cascader__suggestion-item.is-checked{color:#409EFF;font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:#C0C4CC}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 15px;padding:0;color:#606266;border:none;outline:0;box-sizing:border-box}.el-cascader__search-input:-ms-input-placeholder{color:#C0C4CC}.el-cascader__search-input::-moz-placeholder{color:#C0C4CC}.el-cascader__search-input::placeholder{color:#C0C4CC}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px #409EFF}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper::after{content:\"\";display:table;clear:both}.el-color-dropdown__btns{margin-top:6px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-dropdown__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-color-dropdown__btn[disabled]{color:#ccc;cursor:not-allowed}.el-color-dropdown__btn:hover{color:#409EFF;border-color:#409EFF}.el-color-dropdown__link-btn{cursor:pointer;color:#409EFF;text-decoration:none;padding:15px;font-size:12px}.el-color-dropdown__link-btn:hover{color:tint(#409EFF,20%)}.el-color-picker{display:inline-block;position:relative;line-height:normal;height:40px}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--medium{height:36px}.el-color-picker--medium .el-color-picker__trigger{height:36px;width:36px}.el-color-picker--medium .el-color-picker__mask{height:34px;width:34px}.el-color-picker--small{height:32px}.el-color-picker--small .el-color-picker__trigger{height:32px;width:32px}.el-color-picker--small .el-color-picker__mask{height:30px;width:30px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker--mini{height:28px}.el-color-picker--mini .el-color-picker__trigger{height:28px;width:28px}.el-color-picker--mini .el-color-picker__mask{height:26px;width:26px}.el-color-picker--mini .el-color-picker__empty,.el-color-picker--mini .el-color-picker__icon{transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:rgba(255,255,255,.7)}.el-color-picker__trigger{display:inline-block;box-sizing:border-box;height:40px;width:40px;padding:4px;border:1px solid #e6e6e6;border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid #999;border-radius:2px;width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-picker__color-inner{position:absolute;left:0;top:0;right:0;bottom:0}.el-color-picker__empty,.el-color-picker__icon{top:50%;left:50%;font-size:12px;position:absolute}.el-color-picker__empty{color:#999;transform:translate3d(-50%,-50%,0)}.el-color-picker__icon{display:inline-block;width:100%;transform:translate3d(-50%,-50%,0);color:#FFF;text-align:center}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:14px}.el-textarea__inner{display:block;resize:vertical;padding:5px 15px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;color:#606266;background-color:#FFF;background-image:none;border:1px solid #DCDFE6;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::-moz-placeholder{color:#C0C4CC}.el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea__inner:hover{border-color:#C0C4CC}.el-textarea__inner:focus{outline:0;border-color:#409EFF}.el-textarea .el-input__count{color:#909399;background:#FFF;position:absolute;font-size:12px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea.is-exceed .el-textarea__inner{border-color:#F56C6C}.el-textarea.is-exceed .el-input__count{color:#F56C6C}.el-input{position:relative;font-size:14px;display:inline-block;width:100%}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:#b4bccc}.el-input::-webkit-scrollbar-corner{background:#fff}.el-input::-webkit-scrollbar-track{background:#fff}.el-input::-webkit-scrollbar-track-piece{background:#fff;width:6px}.el-input .el-input__clear{color:#C0C4CC;font-size:14px;cursor:pointer;transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-input .el-input__clear:hover{color:#909399}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:#909399;font-size:12px}.el-input .el-input__count .el-input__count-inner{background:#FFF;line-height:initial;display:inline-block;padding:0 5px}.el-input__inner{-webkit-appearance:none;background-color:#FFF;background-image:none;border-radius:4px;border:1px solid #DCDFE6;box-sizing:border-box;color:#606266;display:inline-block;font-size:inherit;height:40px;line-height:40px;outline:0;padding:0 15px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%}.el-input__prefix,.el-input__suffix{position:absolute;top:0;-webkit-transition:all .3s;height:100%;color:#C0C4CC;text-align:center}.el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input__inner::-moz-placeholder{color:#C0C4CC}.el-input__inner::placeholder{color:#C0C4CC}.el-input__inner:hover{border-color:#C0C4CC}.el-input.is-active .el-input__inner,.el-input__inner:focus{border-color:#409EFF;outline:0}.el-input__suffix{right:5px;transition:all .3s}.el-input__suffix-inner{pointer-events:all}.el-input__prefix{left:5px;transition:all .3s}.el-input__icon{height:100%;width:25px;text-align:center;transition:all .3s;line-height:40px}.el-input__icon:after{content:'';height:100%;width:0;display:inline-block;vertical-align:middle}.el-input__validateIcon{pointer-events:none}.el-input.is-disabled .el-input__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-link,.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-input.is-exceed .el-input__inner{border-color:#F56C6C}.el-input.is-exceed .el-input__suffix .el-input__count{color:#F56C6C}.el-input--suffix .el-input__inner{padding-right:30px}.el-input--prefix .el-input__inner{padding-left:30px}.el-input--medium{font-size:14px}.el-input--medium .el-input__inner{height:36px;line-height:36px}.el-input--medium .el-input__icon{line-height:36px}.el-input--small{font-size:13px}.el-input--small .el-input__inner{height:32px;line-height:32px}.el-input--small .el-input__icon{line-height:32px}.el-input--mini{font-size:12px}.el-input--mini .el-input__inner{height:28px;line-height:28px}.el-input--mini .el-input__icon{line-height:28px}.el-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate;border-spacing:0}.el-input-group>.el-input__inner{vertical-align:middle;display:table-cell}.el-input-group__append,.el-input-group__prepend{background-color:#F5F7FA;color:#909399;vertical-align:middle;display:table-cell;position:relative;border:1px solid #DCDFE6;border-radius:4px;padding:0 20px;width:1px;white-space:nowrap}.el-input-group--prepend .el-input__inner,.el-input-group__append{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--append .el-input__inner,.el-input-group__prepend{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:-10px -20px}.el-input-group__append button.el-button,.el-input-group__append div.el-select .el-input__inner,.el-input-group__append div.el-select:hover .el-input__inner,.el-input-group__prepend button.el-button,.el-input-group__prepend div.el-select .el-input__inner,.el-input-group__prepend div.el-select:hover .el-input__inner{border-color:transparent;background-color:transparent;color:inherit;border-top:0;border-bottom:0}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0}.el-input-group__append{border-left:0}.el-input-group--append .el-select .el-input.is-focus .el-input__inner,.el-input-group--prepend .el-select .el-input.is-focus .el-input__inner{border-color:transparent}.el-input__inner::-ms-clear{display:none;width:0;height:0}.el-transfer{font-size:14px}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{display:block;margin:0 auto;padding:10px;border-radius:50%;color:#FFF;background-color:#409EFF;font-size:0}.el-transfer-panel__item+.el-transfer-panel__item,.el-transfer__button [class*=el-icon-]+span{margin-left:0}.el-transfer__button.is-with-texts{border-radius:4px}.el-transfer__button.is-disabled,.el-transfer__button.is-disabled:hover{border:1px solid #DCDFE6;background-color:#F5F7FA;color:#C0C4CC}.el-transfer__button:first-child{margin-bottom:10px}.el-transfer__button:nth-child(2){margin:0}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer-panel{border:1px solid #EBEEF5;border-radius:4px;overflow:hidden;background:#FFF;display:inline-block;vertical-align:middle;width:200px;max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:246px}.el-transfer-panel__body.is-with-footer{padding-bottom:40px}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:246px;overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:194px;padding-top:0}.el-transfer-panel__item{height:30px;line-height:30px;padding-left:15px;display:block!important}.el-transfer-panel__item.el-checkbox{color:#606266}.el-transfer-panel__item:hover{color:#409EFF}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:24px;line-height:30px}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;margin:15px;box-sizing:border-box;display:block;width:auto}.el-transfer-panel__filter .el-input__inner{height:32px;width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:16px;padding-right:10px;padding-left:30px}.el-transfer-panel__filter .el-input__icon{margin-left:5px}.el-transfer-panel .el-transfer-panel__header{height:40px;line-height:40px;background:#F5F7FA;margin:0;padding-left:15px;border-bottom:1px solid #EBEEF5;box-sizing:border-box;color:#000}.el-transfer-panel .el-transfer-panel__header .el-checkbox{display:block;line-height:40px}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:#303133;font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;color:#909399;font-size:12px;font-weight:400}.el-divider__text,.el-link{font-weight:500;font-size:14px}.el-transfer-panel .el-transfer-panel__footer{height:40px;background:#FFF;margin:0;padding:0;border-top:1px solid #EBEEF5;position:absolute;bottom:0;left:0;width:100%;z-index:1}.el-transfer-panel .el-transfer-panel__footer::after{display:inline-block;content:\"\";height:100%;vertical-align:middle}.el-container,.el-timeline-item__node{display:-ms-flexbox}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:#606266}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:30px;line-height:30px;padding:6px 15px 0;color:#909399;text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner::after{height:6px;width:3px;left:4px}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical,.el-drawer{-webkit-box-orient:vertical}.el-aside,.el-header{-webkit-box-sizing:border-box}.el-container.is-vertical{flex-direction:column}.el-header{padding:0 20px;box-sizing:border-box;flex-shrink:0}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0}.el-footer,.el-main{-webkit-box-sizing:border-box}.el-main{display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:20px}.el-footer{padding:0 20px;box-sizing:border-box;flex-shrink:0}.el-timeline{margin:0;font-size:14px;list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid #E4E7ED}.el-timeline-item__icon{color:#FFF;font-size:13px}.el-timeline-item__node{position:absolute;background-color:#E4E7ED;border-radius:50%;display:flex;justify-content:center;align-items:center}.el-image__error,.el-timeline-item__dot{display:-ms-flexbox}.el-timeline-item__node--normal{left:-1px;width:12px;height:12px}.el-timeline-item__node--large{left:-2px;width:14px;height:14px}.el-timeline-item__node--primary{background-color:#409EFF}.el-timeline-item__node--success{background-color:#67C23A}.el-timeline-item__node--warning{background-color:#E6A23C}.el-timeline-item__node--danger{background-color:#F56C6C}.el-timeline-item__node--info{background-color:#909399}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:#303133}.el-timeline-item__timestamp{color:#909399;line-height:1;font-size:13px}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;padding:0}.el-link.is-underline:hover:after{content:\"\";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid #409EFF}.el-link.el-link--default:after,.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:#409EFF}.el-link.is-disabled{cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default{color:#606266}.el-link.el-link--default:hover{color:#409EFF}.el-link.el-link--default.is-disabled{color:#C0C4CC}.el-link.el-link--primary{color:#409EFF}.el-link.el-link--primary:hover{color:#66b1ff}.el-link.el-link--primary.is-disabled{color:#a0cfff}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:#F56C6C}.el-link.el-link--danger{color:#F56C6C}.el-link.el-link--danger:hover{color:#f78989}.el-link.el-link--danger.is-disabled{color:#fab6b6}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:#67C23A}.el-link.el-link--success{color:#67C23A}.el-link.el-link--success:hover{color:#85ce61}.el-link.el-link--success.is-disabled{color:#b3e19d}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:#E6A23C}.el-link.el-link--warning{color:#E6A23C}.el-link.el-link--warning:hover{color:#ebb563}.el-link.el-link--warning.is-disabled{color:#f3d19e}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:#909399}.el-link.el-link--info{color:#909399}.el-link.el-link--info:hover{color:#a6a9ad}.el-link.el-link--info.is-disabled{color:#c8c9cc}.el-divider{background-color:#DCDFE6;position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative}.el-divider__text{position:absolute;background-color:#FFF;padding:0 20px;color:#303133}.el-image__error,.el-image__placeholder{background:#F5F7FA}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translateX(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-image__error,.el-image__inner,.el-image__placeholder{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top}.el-image__inner--center{position:relative;top:50%;left:50%;transform:translate(-50%,-50%);display:block}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;color:#C0C4CC;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-button,.el-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-image-viewer__actions{left:50%;bottom:30px;transform:translateX(-50%);width:282px;height:44px;padding:0 23px;background-color:#606266;border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__next,.el-image-viewer__prev{top:50%;width:44px;height:44px;font-size:24px;color:#fff;background-color:#606266;border-color:#fff}.el-image-viewer__prev{transform:translateY(-50%);left:40px}.el-image-viewer__next{transform:translateY(-50%);right:40px;text-indent:2px}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in .3s;animation:viewer-fade-in .3s}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out .3s;animation:viewer-fade-out .3s}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button:focus,.el-button:hover{color:#409EFF;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:focus,.el-button.is-plain:hover{background:#FFF;border-color:#409EFF;color:#409EFF}.el-button.is-active,.el-button.is-plain:active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-plain:active{background:#FFF;outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:focus,.el-button.is-disabled.is-plain:hover{background-color:#FFF;border-color:#EBEEF5;color:#C0C4CC}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:rgba(255,255,255,.35)}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#FFF;background-color:#409EFF;border-color:#409EFF}.el-button--primary:focus,.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#FFF}.el-button--primary.is-active,.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF}.el-button--primary:active{outline:0}.el-button--primary.is-disabled,.el-button--primary.is-disabled:active,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:hover{color:#FFF;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409EFF;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#409EFF;border-color:#409EFF;color:#FFF}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF;outline:0}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#FFF;background-color:#67C23A;border-color:#67C23A}.el-button--success:focus,.el-button--success:hover{background:#85ce61;border-color:#85ce61;color:#FFF}.el-button--success.is-active,.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#FFF}.el-button--success:active{outline:0}.el-button--success.is-disabled,.el-button--success.is-disabled:active,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:hover{color:#FFF;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67C23A;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:focus,.el-button--success.is-plain:hover{background:#67C23A;border-color:#67C23A;color:#FFF}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#FFF;outline:0}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#FFF;background-color:#E6A23C;border-color:#E6A23C}.el-button--warning:focus,.el-button--warning:hover{background:#ebb563;border-color:#ebb563;color:#FFF}.el-button--warning.is-active,.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#FFF}.el-button--warning:active{outline:0}.el-button--warning.is-disabled,.el-button--warning.is-disabled:active,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:hover{color:#FFF;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#E6A23C;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:focus,.el-button--warning.is-plain:hover{background:#E6A23C;border-color:#E6A23C;color:#FFF}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#FFF;outline:0}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#FFF;background-color:#F56C6C;border-color:#F56C6C}.el-button--danger:focus,.el-button--danger:hover{background:#f78989;border-color:#f78989;color:#FFF}.el-button--danger.is-active,.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#FFF}.el-button--danger:active{outline:0}.el-button--danger.is-disabled,.el-button--danger.is-disabled:active,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:hover{color:#FFF;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#F56C6C;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:focus,.el-button--danger.is-plain:hover{background:#F56C6C;border-color:#F56C6C;color:#FFF}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#FFF;outline:0}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#FFF;background-color:#909399;border-color:#909399}.el-button--info:focus,.el-button--info:hover{background:#a6a9ad;border-color:#a6a9ad;color:#FFF}.el-button--info.is-active,.el-button--info:active{background:#82848a;border-color:#82848a;color:#FFF}.el-button--info:active{outline:0}.el-button--info.is-disabled,.el-button--info.is-disabled:active,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:hover{color:#FFF;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:focus,.el-button--info.is-plain:hover{background:#909399;border-color:#909399;color:#FFF}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#FFF;outline:0}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--text,.el-button--text.is-disabled,.el-button--text.is-disabled:focus,.el-button--text.is-disabled:hover,.el-button--text:active{border-color:transparent}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--mini,.el-button--small{font-size:12px;border-radius:3px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small,.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini,.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{color:#409EFF;background:0 0;padding-left:0;padding-right:0}.el-button--text:focus,.el-button--text:hover{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;background-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group::after,.el-button-group::before{display:table;content:\"\"}.el-button-group::after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-calendar{background-color:#fff}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #EBEEF5}.el-backtop,.el-page-header{display:-ms-flexbox}.el-calendar__title{color:#000;align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:#606266;font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:#C0C4CC}.el-backtop,.el-calendar-table td.is-today{color:#409EFF}.el-calendar-table td{border-bottom:1px solid #EBEEF5;border-right:1px solid #EBEEF5;vertical-align:top;transition:background-color .2s ease}.el-calendar-table td.is-selected{background-color:#F2F8FE}.el-calendar-table tr:first-child td{border-top:1px solid #EBEEF5}.el-calendar-table tr td:first-child{border-left:1px solid #EBEEF5}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:85px}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:#F2F8FE}.el-backtop{position:fixed;background-color:#FFF;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 0 6px rgba(0,0,0,.12);cursor:pointer;z-index:5}.el-backtop:hover{background-color:#F2F6FC}.el-page-header{display:flex;line-height:24px}.el-page-header__left{display:flex;cursor:pointer;margin-right:40px;position:relative}.el-page-header__left::after{content:\"\";position:absolute;width:1px;height:16px;right:-20px;top:50%;transform:translateY(-50%);background-color:#DCDFE6}.el-checkbox,.el-checkbox__input{display:inline-block;position:relative;white-space:nowrap}.el-page-header__left .el-icon-back{font-size:18px;margin-right:6px;align-self:center}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:#303133}.el-checkbox{color:#606266;font-weight:500;font-size:14px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px}.el-checkbox-button__inner,.el-radio{font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.el-checkbox.is-bordered{padding:9px 20px 9px 10px;border-radius:4px;border:1px solid #DCDFE6;box-sizing:border-box;line-height:normal;height:40px}.el-checkbox.is-bordered.is-checked{border-color:#409EFF}.el-checkbox.is-bordered.is-disabled{border-color:#EBEEF5;cursor:not-allowed}.el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:10px}.el-checkbox.is-bordered.el-checkbox--medium{padding:7px 20px 7px 10px;border-radius:4px;height:36px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__label{line-height:17px;font-size:14px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:5px 15px 5px 10px;border-radius:3px;height:32px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{line-height:15px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox.is-bordered.el-checkbox--mini{padding:3px 15px 3px 10px;border-radius:3px;height:28px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__label{line-height:12px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox__input{cursor:pointer;outline:0;line-height:1;vertical-align:middle}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:#edf2fc;border-color:#DCDFE6;cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner::after{cursor:not-allowed;border-color:#C0C4CC}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:#C0C4CC}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner::before{background-color:#C0C4CC;border-color:#C0C4CC}.el-checkbox__input.is-checked .el-checkbox__inner,.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#409EFF;border-color:#409EFF}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:#C0C4CC;cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner::after{transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:#409EFF}.el-checkbox__input.is-focus .el-checkbox__inner{border-color:#409EFF}.el-checkbox__input.is-indeterminate .el-checkbox__inner::before{content:'';position:absolute;display:block;background-color:#FFF;height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner::after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:1px solid #DCDFE6;border-radius:2px;box-sizing:border-box;width:14px;height:14px;background-color:#FFF;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:#409EFF}.el-checkbox__inner::after{box-sizing:content-box;content:\"\";border:1px solid #FFF;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox-button,.el-checkbox-button__inner{display:inline-block;position:relative}.el-checkbox__label{display:inline-block;padding-left:10px;line-height:19px;font-size:14px}.el-checkbox:last-of-type{margin-right:0}.el-checkbox-button__inner{line-height:1;white-space:nowrap;vertical-align:middle;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-checkbox-button__inner.is-round{padding:12px 20px}.el-checkbox-button__inner:hover{color:#409EFF}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-radio,.el-radio__input{line-height:1;outline:0;white-space:nowrap}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-radio,.el-radio__inner,.el-radio__input{position:relative;display:inline-block}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;box-shadow:-1px 0 0 0 #8cc5ff}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:#409EFF}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:#EBEEF5}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:#409EFF}.el-checkbox-button:last-child .el-checkbox-button__inner{border-radius:0 4px 4px 0}.el-checkbox-button--medium .el-checkbox-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-checkbox-button--medium .el-checkbox-button__inner.is-round{padding:10px 20px}.el-checkbox-button--small .el-checkbox-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:9px 15px}.el-checkbox-button--mini .el-checkbox-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-checkbox-button--mini .el-checkbox-button__inner.is-round{padding:7px 15px}.el-checkbox-group{font-size:0}.el-radio,.el-radio--medium.is-bordered .el-radio__label{font-size:14px}.el-radio{color:#606266;cursor:pointer;margin-right:30px}.el-cascader-node>.el-radio,.el-radio:last-child{margin-right:0}.el-radio.is-bordered{padding:12px 20px 0 10px;border-radius:4px;border:1px solid #DCDFE6;box-sizing:border-box;height:40px}.el-radio.is-bordered.is-checked{border-color:#409EFF}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:#EBEEF5}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#F5F7FA;border-color:#E4E7ED}.el-radio.is-bordered+.el-radio.is-bordered{margin-left:10px}.el-radio--medium.is-bordered{padding:10px 20px 0 10px;border-radius:4px;height:36px}.el-radio--mini.is-bordered .el-radio__label,.el-radio--small.is-bordered .el-radio__label{font-size:12px}.el-radio--medium.is-bordered .el-radio__inner{height:14px;width:14px}.el-radio--small.is-bordered{padding:8px 15px 0 10px;border-radius:3px;height:32px}.el-radio--small.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio--mini.is-bordered{padding:6px 15px 0 10px;border-radius:3px;height:28px}.el-radio--mini.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio__input{cursor:pointer;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner::after{cursor:not-allowed;background-color:#F5F7FA}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner::after{background-color:#C0C4CC}.el-radio__input.is-disabled+span.el-radio__label{color:#C0C4CC;cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:#409EFF;background:#409EFF}.el-radio__input.is-checked .el-radio__inner::after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:#409EFF}.el-radio__input.is-focus .el-radio__inner{border-color:#409EFF}.el-radio__inner{border:1px solid #DCDFE6;border-radius:100%;width:14px;height:14px;background-color:#FFF;cursor:pointer;box-sizing:border-box}.el-radio__inner:hover{border-color:#409EFF}.el-radio__inner::after{width:4px;height:4px;border-radius:100%;background-color:#FFF;content:\"\";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px #409EFF}.el-radio__label{font-size:14px;padding-left:10px}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active>.el-scrollbar__bar,.el-scrollbar:focus>.el-scrollbar__bar,.el-scrollbar:hover>.el-scrollbar__bar{opacity:1;transition:opacity 340ms ease-out}.el-scrollbar__wrap{overflow:scroll;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);transition:.3s background-color}.el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;transition:opacity 120ms ease-out}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-cascader-panel{display:flex;border-radius:4px;font-size:14px}.el-cascader-panel.is-bordered{border:1px solid #E4E7ED;border-radius:4px}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:#606266;border-right:solid 1px #E4E7ED}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-avatar,.el-drawer{-webkit-box-sizing:border-box;overflow:hidden}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#C0C4CC}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:#606266}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:#409EFF;font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:#F5F7FA}.el-cascader-node.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-drawer,.el-drawer__header{display:-ms-flexbox}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-drawer.btt,.el-drawer.ttb,.el-drawer__container{left:0;right:0;width:100%}.el-drawer.ltr,.el-drawer.rtl,.el-drawer__container{top:0;bottom:0;height:100%}@-webkit-keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes rtl-drawer-in{0%{transform:translate(100%,0)}100%{transform:translate(0,0)}}@keyframes rtl-drawer-in{0%{transform:translate(100%,0)}100%{transform:translate(0,0)}}@-webkit-keyframes rtl-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(100%,0)}}@keyframes rtl-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(100%,0)}}@-webkit-keyframes ltr-drawer-in{0%{transform:translate(-100%,0)}100%{transform:translate(0,0)}}@keyframes ltr-drawer-in{0%{transform:translate(-100%,0)}100%{transform:translate(0,0)}}@-webkit-keyframes ltr-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(-100%,0)}}@keyframes ltr-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(-100%,0)}}@-webkit-keyframes ttb-drawer-in{0%{transform:translate(0,-100%)}100%{transform:translate(0,0)}}@keyframes ttb-drawer-in{0%{transform:translate(0,-100%)}100%{transform:translate(0,0)}}@-webkit-keyframes ttb-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(0,-100%)}}@keyframes ttb-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(0,-100%)}}@-webkit-keyframes btt-drawer-in{0%{transform:translate(0,100%)}100%{transform:translate(0,0)}}@keyframes btt-drawer-in{0%{transform:translate(0,100%)}100%{transform:translate(0,0)}}@-webkit-keyframes btt-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(0,100%)}}@keyframes btt-drawer-out{0%{transform:translate(0,0)}100%{transform:translate(0,100%)}}.el-drawer{position:absolute;box-sizing:border-box;background-color:#FFF;display:flex;flex-direction:column;box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.el-drawer.rtl{-webkit-animation:rtl-drawer-out .3s;animation:rtl-drawer-out .3s;right:0}.el-drawer__open .el-drawer.rtl{-webkit-animation:rtl-drawer-in .3s 1ms;animation:rtl-drawer-in .3s 1ms}.el-drawer.ltr{-webkit-animation:ltr-drawer-out .3s;animation:ltr-drawer-out .3s;left:0}.el-drawer__open .el-drawer.ltr{-webkit-animation:ltr-drawer-in .3s 1ms;animation:ltr-drawer-in .3s 1ms}.el-drawer.ttb{-webkit-animation:ttb-drawer-out .3s;animation:ttb-drawer-out .3s;top:0}.el-drawer__open .el-drawer.ttb{-webkit-animation:ttb-drawer-in .3s 1ms;animation:ttb-drawer-in .3s 1ms}.el-drawer.btt{-webkit-animation:btt-drawer-out .3s;animation:btt-drawer-out .3s;bottom:0}.el-drawer__open .el-drawer.btt{-webkit-animation:btt-drawer-in .3s 1ms;animation:btt-drawer-in .3s 1ms}.el-drawer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;margin:0}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:20px 20px 0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__close-btn{border:none;cursor:pointer;font-size:20px;color:inherit;background-color:transparent}.el-drawer__body{flex:1}.el-drawer__body>*{box-sizing:border-box}.el-drawer__container{position:relative}.el-drawer-fade-enter-active{-webkit-animation:el-drawer-fade-in .3s;animation:el-drawer-fade-in .3s}.el-drawer-fade-leave-active{animation:el-drawer-fade-in .3s reverse}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin:0}", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /***/ "./node_modules/css-loader/dist/runtime/api.js":
- /*!*****************************************************!*\
- !*** ./node_modules/css-loader/dist/runtime/api.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- // css base code, injected by the css-loader
- // eslint-disable-next-line func-names
- module.exports = function (useSourceMap) {
- var list = []; // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if (item[2]) {
- return "@media ".concat(item[2], " {").concat(content, "}");
- }
- return content;
- }).join('');
- }; // import a list of modules into the list
- // eslint-disable-next-line func-names
- list.i = function (modules, mediaQuery, dedupe) {
- if (typeof modules === 'string') {
- // eslint-disable-next-line no-param-reassign
- modules = [[null, modules, '']];
- }
- var alreadyImportedModules = {};
- if (dedupe) {
- for (var i = 0; i < this.length; i++) {
- // eslint-disable-next-line prefer-destructuring
- var id = this[i][0];
- if (id != null) {
- alreadyImportedModules[id] = true;
- }
- }
- }
- for (var _i = 0; _i < modules.length; _i++) {
- var item = [].concat(modules[_i]);
- if (dedupe && alreadyImportedModules[item[0]]) {
- // eslint-disable-next-line no-continue
- continue;
- }
- if (mediaQuery) {
- if (!item[2]) {
- item[2] = mediaQuery;
- } else {
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
- }
- }
- list.push(item);
- }
- };
- return list;
- };
- function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
- });
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
- return [content].join('\n');
- } // Adapted from convert-source-map (MIT)
- function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
- return "/*# ".concat(data, " */");
- }
- /***/ }),
- /***/ "./node_modules/css-loader/dist/runtime/getUrl.js":
- /*!********************************************************!*\
- !*** ./node_modules/css-loader/dist/runtime/getUrl.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- module.exports = function (url, options) {
- if (!options) {
- // eslint-disable-next-line no-param-reassign
- options = {};
- } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
- url = url && url.__esModule ? url.default : url;
- if (typeof url !== 'string') {
- return url;
- } // If url is already wrapped in quotes, remove them
- if (/^['"].*['"]$/.test(url)) {
- // eslint-disable-next-line no-param-reassign
- url = url.slice(1, -1);
- }
- if (options.hash) {
- // eslint-disable-next-line no-param-reassign
- url += options.hash;
- } // Should url be wrapped?
- // See https://drafts.csswg.org/css-values-3/#urls
- if (/["'() \t\n]/.test(url) || options.needQuotes) {
- return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, '\\n'), "\"");
- }
- return url;
- };
- /***/ }),
- /***/ "./node_modules/deepmerge/dist/cjs.js":
- /*!********************************************!*\
- !*** ./node_modules/deepmerge/dist/cjs.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var isMergeableObject = function isMergeableObject(value) {
- return isNonNullObject(value)
- && !isSpecial(value)
- };
- function isNonNullObject(value) {
- return !!value && typeof value === 'object'
- }
- function isSpecial(value) {
- var stringValue = Object.prototype.toString.call(value);
- return stringValue === '[object RegExp]'
- || stringValue === '[object Date]'
- || isReactElement(value)
- }
- // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
- var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
- var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
- function isReactElement(value) {
- return value.$$typeof === REACT_ELEMENT_TYPE
- }
- function emptyTarget(val) {
- return Array.isArray(val) ? [] : {}
- }
- function cloneIfNecessary(value, optionsArgument) {
- var clone = optionsArgument && optionsArgument.clone === true;
- return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
- }
- function defaultArrayMerge(target, source, optionsArgument) {
- var destination = target.slice();
- source.forEach(function(e, i) {
- if (typeof destination[i] === 'undefined') {
- destination[i] = cloneIfNecessary(e, optionsArgument);
- } else if (isMergeableObject(e)) {
- destination[i] = deepmerge(target[i], e, optionsArgument);
- } else if (target.indexOf(e) === -1) {
- destination.push(cloneIfNecessary(e, optionsArgument));
- }
- });
- return destination
- }
- function mergeObject(target, source, optionsArgument) {
- var destination = {};
- if (isMergeableObject(target)) {
- Object.keys(target).forEach(function(key) {
- destination[key] = cloneIfNecessary(target[key], optionsArgument);
- });
- }
- Object.keys(source).forEach(function(key) {
- if (!isMergeableObject(source[key]) || !target[key]) {
- destination[key] = cloneIfNecessary(source[key], optionsArgument);
- } else {
- destination[key] = deepmerge(target[key], source[key], optionsArgument);
- }
- });
- return destination
- }
- function deepmerge(target, source, optionsArgument) {
- var sourceIsArray = Array.isArray(source);
- var targetIsArray = Array.isArray(target);
- var options = optionsArgument || { arrayMerge: defaultArrayMerge };
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
- if (!sourceAndTargetTypesMatch) {
- return cloneIfNecessary(source, optionsArgument)
- } else if (sourceIsArray) {
- var arrayMerge = options.arrayMerge || defaultArrayMerge;
- return arrayMerge(target, source, optionsArgument)
- } else {
- return mergeObject(target, source, optionsArgument)
- }
- }
- deepmerge.all = function deepmergeAll(array, optionsArgument) {
- if (!Array.isArray(array) || array.length < 2) {
- throw new Error('first argument should be an array with at least two elements')
- }
- // we are sure there are at least 2 values, so it is safe to have no initial value
- return array.reduce(function(prev, next) {
- return deepmerge(prev, next, optionsArgument)
- })
- };
- var deepmerge_1 = deepmerge;
- module.exports = deepmerge_1;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/button-group.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/button-group.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 99);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 99:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2)
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- /* harmony default export */ var button_groupvue_type_script_lang_js_ = ({
- name: 'ElButtonGroup'
- });
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_button_groupvue_type_script_lang_js_ = (button_groupvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_button_groupvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/button/src/button-group.vue"
- /* harmony default export */ var button_group = (component.exports);
- // CONCATENATED MODULE: ./packages/button-group/index.js
- /* istanbul ignore next */
- button_group.install = function (Vue) {
- Vue.component(button_group.name, button_group);
- };
- /* harmony default export */ var packages_button_group = __webpack_exports__["default"] = (button_group);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/button.js":
- /*!***********************************************!*\
- !*** ./node_modules/element-ui/lib/button.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 97);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 97:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "button",
- {
- staticClass: "el-button",
- class: [
- _vm.type ? "el-button--" + _vm.type : "",
- _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
- {
- "is-disabled": _vm.buttonDisabled,
- "is-loading": _vm.loading,
- "is-plain": _vm.plain,
- "is-round": _vm.round,
- "is-circle": _vm.circle
- }
- ],
- attrs: {
- disabled: _vm.buttonDisabled || _vm.loading,
- autofocus: _vm.autofocus,
- type: _vm.nativeType
- },
- on: { click: _vm.handleClick }
- },
- [
- _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
- _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
- _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e()
- ]
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
- name: 'ElButton',
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- props: {
- type: {
- type: String,
- default: 'default'
- },
- size: String,
- icon: {
- type: String,
- default: ''
- },
- nativeType: {
- type: String,
- default: 'button'
- },
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- autofocus: Boolean,
- round: Boolean,
- circle: Boolean
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- buttonSize: function buttonSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- buttonDisabled: function buttonDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- methods: {
- handleClick: function handleClick(evt) {
- this.$emit('click', evt);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/button/src/button.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_buttonvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/button/src/button.vue"
- /* harmony default export */ var src_button = (component.exports);
- // CONCATENATED MODULE: ./packages/button/index.js
- /* istanbul ignore next */
- src_button.install = function (Vue) {
- Vue.component(src_button.name, src_button);
- };
- /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/cascader-panel.js":
- /*!*******************************************************!*\
- !*** ./node_modules/element-ui/lib/cascader-panel.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 59);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 14:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/scrollbar */ "./node_modules/element-ui/lib/scrollbar.js");
- /***/ }),
- /***/ 18:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/checkbox */ "./node_modules/element-ui/lib/checkbox.js");
- /***/ }),
- /***/ 21:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "./node_modules/element-ui/lib/utils/shared.js");
- /***/ }),
- /***/ 26:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /***/ }),
- /***/ 3:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /***/ 31:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/scroll-into-view */ "./node_modules/element-ui/lib/utils/scroll-into-view.js");
- /***/ }),
- /***/ 32:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-utils */ "./node_modules/element-ui/lib/utils/aria-utils.js");
- /***/ }),
- /***/ 51:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/radio */ "./node_modules/element-ui/lib/radio.js");
- /***/ }),
- /***/ 59:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
- var cascader_panelvue_type_template_id_34932346_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: ["el-cascader-panel", _vm.border && "is-bordered"],
- on: { keydown: _vm.handleKeyDown }
- },
- _vm._l(_vm.menus, function(menu, index) {
- return _c("cascader-menu", {
- key: index,
- ref: "menu",
- refInFor: true,
- attrs: { index: index, nodes: menu }
- })
- }),
- 1
- )
- }
- var staticRenderFns = []
- cascader_panelvue_type_template_id_34932346_render._withStripped = true
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
- // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
- var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(26);
- var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
- // EXTERNAL MODULE: external "element-ui/lib/scrollbar"
- var scrollbar_ = __webpack_require__(14);
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
- // EXTERNAL MODULE: external "element-ui/lib/checkbox"
- var checkbox_ = __webpack_require__(18);
- var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
- // EXTERNAL MODULE: external "element-ui/lib/radio"
- var radio_ = __webpack_require__(51);
- var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
- var stopPropagation = function stopPropagation(e) {
- return e.stopPropagation();
- };
- /* harmony default export */ var cascader_nodevue_type_script_lang_js_ = ({
- inject: ['panel'],
- components: {
- ElCheckbox: checkbox_default.a,
- ElRadio: radio_default.a
- },
- props: {
- node: {
- required: true
- },
- nodeId: String
- },
- computed: {
- config: function config() {
- return this.panel.config;
- },
- isLeaf: function isLeaf() {
- return this.node.isLeaf;
- },
- isDisabled: function isDisabled() {
- return this.node.isDisabled;
- },
- checkedValue: function checkedValue() {
- return this.panel.checkedValue;
- },
- isChecked: function isChecked() {
- return this.node.isSameNode(this.checkedValue);
- },
- inActivePath: function inActivePath() {
- return this.isInPath(this.panel.activePath);
- },
- inCheckedPath: function inCheckedPath() {
- var _this = this;
- if (!this.config.checkStrictly) return false;
- return this.panel.checkedNodePaths.some(function (checkedPath) {
- return _this.isInPath(checkedPath);
- });
- },
- value: function value() {
- return this.node.getValueByOption();
- }
- },
- methods: {
- handleExpand: function handleExpand() {
- var _this2 = this;
- var panel = this.panel,
- node = this.node,
- isDisabled = this.isDisabled,
- config = this.config;
- var multiple = config.multiple,
- checkStrictly = config.checkStrictly;
- if (!checkStrictly && isDisabled || node.loading) return;
- if (config.lazy && !node.loaded) {
- panel.lazyLoad(node, function () {
- // do not use cached leaf value here, invoke this.isLeaf to get new value.
- var isLeaf = _this2.isLeaf;
- if (!isLeaf) _this2.handleExpand();
- if (multiple) {
- // if leaf sync checked state, else clear checked state
- var checked = isLeaf ? node.checked : false;
- _this2.handleMultiCheckChange(checked);
- }
- });
- } else {
- panel.handleExpand(node);
- }
- },
- handleCheckChange: function handleCheckChange() {
- var panel = this.panel,
- value = this.value,
- node = this.node;
- panel.handleCheckChange(value);
- panel.handleExpand(node);
- },
- handleMultiCheckChange: function handleMultiCheckChange(checked) {
- this.node.doCheck(checked);
- this.panel.calculateMultiCheckedValue();
- },
- isInPath: function isInPath(pathNodes) {
- var node = this.node;
- var selectedPathNode = pathNodes[node.level - 1] || {};
- return selectedPathNode.uid === node.uid;
- },
- renderPrefix: function renderPrefix(h) {
- var isLeaf = this.isLeaf,
- isChecked = this.isChecked,
- config = this.config;
- var checkStrictly = config.checkStrictly,
- multiple = config.multiple;
- if (multiple) {
- return this.renderCheckbox(h);
- } else if (checkStrictly) {
- return this.renderRadio(h);
- } else if (isLeaf && isChecked) {
- return this.renderCheckIcon(h);
- }
- return null;
- },
- renderPostfix: function renderPostfix(h) {
- var node = this.node,
- isLeaf = this.isLeaf;
- if (node.loading) {
- return this.renderLoadingIcon(h);
- } else if (!isLeaf) {
- return this.renderExpandIcon(h);
- }
- return null;
- },
- renderCheckbox: function renderCheckbox(h) {
- var node = this.node,
- config = this.config,
- isDisabled = this.isDisabled;
- var events = {
- on: { change: this.handleMultiCheckChange },
- nativeOn: {}
- };
- if (config.checkStrictly) {
- // when every node is selectable, click event should not trigger expand event.
- events.nativeOn.click = stopPropagation;
- }
- return h('el-checkbox', external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- value: node.checked,
- indeterminate: node.indeterminate,
- disabled: isDisabled
- }
- }, events]));
- },
- renderRadio: function renderRadio(h) {
- var checkedValue = this.checkedValue,
- value = this.value,
- isDisabled = this.isDisabled;
- // to keep same reference if value cause radio's checked state is calculated by reference comparision;
- if (Object(util_["isEqual"])(value, checkedValue)) {
- value = checkedValue;
- }
- return h(
- 'el-radio',
- {
- attrs: {
- value: checkedValue,
- label: value,
- disabled: isDisabled
- },
- on: {
- 'change': this.handleCheckChange
- },
- nativeOn: {
- 'click': stopPropagation
- }
- },
- [h('span')]
- );
- },
- renderCheckIcon: function renderCheckIcon(h) {
- return h('i', { 'class': 'el-icon-check el-cascader-node__prefix' });
- },
- renderLoadingIcon: function renderLoadingIcon(h) {
- return h('i', { 'class': 'el-icon-loading el-cascader-node__postfix' });
- },
- renderExpandIcon: function renderExpandIcon(h) {
- return h('i', { 'class': 'el-icon-arrow-right el-cascader-node__postfix' });
- },
- renderContent: function renderContent(h) {
- var panel = this.panel,
- node = this.node;
- var render = panel.renderLabelFn;
- var vnode = render ? render({ node: node, data: node.data }) : null;
- return h(
- 'span',
- { 'class': 'el-cascader-node__label' },
- [vnode || node.label]
- );
- }
- },
- render: function render(h) {
- var _this3 = this;
- var inActivePath = this.inActivePath,
- inCheckedPath = this.inCheckedPath,
- isChecked = this.isChecked,
- isLeaf = this.isLeaf,
- isDisabled = this.isDisabled,
- config = this.config,
- nodeId = this.nodeId;
- var expandTrigger = config.expandTrigger,
- checkStrictly = config.checkStrictly,
- multiple = config.multiple;
- var disabled = !checkStrictly && isDisabled;
- var events = { on: {} };
- if (expandTrigger === 'click') {
- events.on.click = this.handleExpand;
- } else {
- events.on.mouseenter = function (e) {
- _this3.handleExpand();
- _this3.$emit('expand', e);
- };
- events.on.focus = function (e) {
- _this3.handleExpand();
- _this3.$emit('expand', e);
- };
- }
- if (isLeaf && !isDisabled && !checkStrictly && !multiple) {
- events.on.click = this.handleCheckChange;
- }
- return h(
- 'li',
- external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- role: 'menuitem',
- id: nodeId,
- 'aria-expanded': inActivePath,
- tabindex: disabled ? null : -1
- },
- 'class': {
- 'el-cascader-node': true,
- 'is-selectable': checkStrictly,
- 'in-active-path': inActivePath,
- 'in-checked-path': inCheckedPath,
- 'is-active': isChecked,
- 'is-disabled': disabled
- }
- }, events]),
- [this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_nodevue_type_script_lang_js_ = (cascader_nodevue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue
- var cascader_node_render, cascader_node_staticRenderFns
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_cascader_nodevue_type_script_lang_js_,
- cascader_node_render,
- cascader_node_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/cascader-panel/src/cascader-node.vue"
- /* harmony default export */ var cascader_node = (component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
- var locale_ = __webpack_require__(6);
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var cascader_menuvue_type_script_lang_js_ = ({
- name: 'ElCascaderMenu',
- mixins: [locale_default.a],
- inject: ['panel'],
- components: {
- ElScrollbar: scrollbar_default.a,
- CascaderNode: cascader_node
- },
- props: {
- nodes: {
- type: Array,
- required: true
- },
- index: Number
- },
- data: function data() {
- return {
- activeNode: null,
- hoverTimer: null,
- id: Object(util_["generateId"])()
- };
- },
- computed: {
- isEmpty: function isEmpty() {
- return !this.nodes.length;
- },
- menuId: function menuId() {
- return 'cascader-menu-' + this.id + '-' + this.index;
- }
- },
- methods: {
- handleExpand: function handleExpand(e) {
- this.activeNode = e.target;
- },
- handleMouseMove: function handleMouseMove(e) {
- var activeNode = this.activeNode,
- hoverTimer = this.hoverTimer;
- var hoverZone = this.$refs.hoverZone;
- if (!activeNode || !hoverZone) return;
- if (activeNode.contains(e.target)) {
- clearTimeout(hoverTimer);
- var _$el$getBoundingClien = this.$el.getBoundingClientRect(),
- left = _$el$getBoundingClien.left;
- var startX = e.clientX - left;
- var _$el = this.$el,
- offsetWidth = _$el.offsetWidth,
- offsetHeight = _$el.offsetHeight;
- var top = activeNode.offsetTop;
- var bottom = top + activeNode.offsetHeight;
- hoverZone.innerHTML = '\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + top + ' L' + offsetWidth + ' 0 V' + top + ' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + bottom + ' L' + offsetWidth + ' ' + offsetHeight + ' V' + bottom + ' Z" />\n ';
- } else if (!hoverTimer) {
- this.hoverTimer = setTimeout(this.clearHoverZone, this.panel.config.hoverThreshold);
- }
- },
- clearHoverZone: function clearHoverZone() {
- var hoverZone = this.$refs.hoverZone;
- if (!hoverZone) return;
- hoverZone.innerHTML = '';
- },
- renderEmptyText: function renderEmptyText(h) {
- return h(
- 'div',
- { 'class': 'el-cascader-menu__empty-text' },
- [this.t('el.cascader.noData')]
- );
- },
- renderNodeList: function renderNodeList(h) {
- var menuId = this.menuId;
- var isHoverMenu = this.panel.isHoverMenu;
- var events = { on: {} };
- if (isHoverMenu) {
- events.on.expand = this.handleExpand;
- }
- var nodes = this.nodes.map(function (node, index) {
- var hasChildren = node.hasChildren;
- return h('cascader-node', external_babel_helper_vue_jsx_merge_props_default()([{
- key: node.uid,
- attrs: { node: node,
- 'node-id': menuId + '-' + index,
- 'aria-haspopup': hasChildren,
- 'aria-owns': hasChildren ? menuId : null
- }
- }, events]));
- });
- return [].concat(nodes, [isHoverMenu ? h('svg', { ref: 'hoverZone', 'class': 'el-cascader-menu__hover-zone' }) : null]);
- }
- },
- render: function render(h) {
- var isEmpty = this.isEmpty,
- menuId = this.menuId;
- var events = { nativeOn: {} };
- // optimize hover to expand experience (#8010)
- if (this.panel.isHoverMenu) {
- events.nativeOn.mousemove = this.handleMouseMove;
- // events.nativeOn.mouseleave = this.clearHoverZone;
- }
- return h(
- 'el-scrollbar',
- external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- tag: 'ul',
- role: 'menu',
- id: menuId,
- 'wrap-class': 'el-cascader-menu__wrap',
- 'view-class': {
- 'el-cascader-menu__list': true,
- 'is-empty': isEmpty
- }
- },
- 'class': 'el-cascader-menu' }, events]),
- [isEmpty ? this.renderEmptyText(h) : this.renderNodeList(h)]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_menuvue_type_script_lang_js_ = (cascader_menuvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue
- var cascader_menu_render, cascader_menu_staticRenderFns
- /* normalize component */
- var cascader_menu_component = Object(componentNormalizer["a" /* default */])(
- src_cascader_menuvue_type_script_lang_js_,
- cascader_menu_render,
- cascader_menu_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_menu_api; }
- cascader_menu_component.options.__file = "packages/cascader-panel/src/cascader-menu.vue"
- /* harmony default export */ var cascader_menu = (cascader_menu_component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
- var shared_ = __webpack_require__(21);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/node.js
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var uid = 0;
- var node_Node = function () {
- function Node(data, config, parentNode) {
- _classCallCheck(this, Node);
- this.data = data;
- this.config = config;
- this.parent = parentNode || null;
- this.level = !this.parent ? 1 : this.parent.level + 1;
- this.uid = uid++;
- this.initState();
- this.initChildren();
- }
- Node.prototype.initState = function initState() {
- var _config = this.config,
- valueKey = _config.value,
- labelKey = _config.label;
- this.value = this.data[valueKey];
- this.label = this.data[labelKey];
- this.pathNodes = this.calculatePathNodes();
- this.path = this.pathNodes.map(function (node) {
- return node.value;
- });
- this.pathLabels = this.pathNodes.map(function (node) {
- return node.label;
- });
- // lazy load
- this.loading = false;
- this.loaded = false;
- };
- Node.prototype.initChildren = function initChildren() {
- var _this = this;
- var config = this.config;
- var childrenKey = config.children;
- var childrenData = this.data[childrenKey];
- this.hasChildren = Array.isArray(childrenData);
- this.children = (childrenData || []).map(function (child) {
- return new Node(child, config, _this);
- });
- };
- Node.prototype.calculatePathNodes = function calculatePathNodes() {
- var nodes = [this];
- var parent = this.parent;
- while (parent) {
- nodes.unshift(parent);
- parent = parent.parent;
- }
- return nodes;
- };
- Node.prototype.getPath = function getPath() {
- return this.path;
- };
- Node.prototype.getValue = function getValue() {
- return this.value;
- };
- Node.prototype.getValueByOption = function getValueByOption() {
- return this.config.emitPath ? this.getPath() : this.getValue();
- };
- Node.prototype.getText = function getText(allLevels, separator) {
- return allLevels ? this.pathLabels.join(separator) : this.label;
- };
- Node.prototype.isSameNode = function isSameNode(checkedValue) {
- var value = this.getValueByOption();
- return this.config.multiple && Array.isArray(checkedValue) ? checkedValue.some(function (val) {
- return Object(util_["isEqual"])(val, value);
- }) : Object(util_["isEqual"])(checkedValue, value);
- };
- Node.prototype.broadcast = function broadcast(event) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- var handlerName = 'onParent' + Object(util_["capitalize"])(event);
- this.children.forEach(function (child) {
- if (child) {
- // bottom up
- child.broadcast.apply(child, [event].concat(args));
- child[handlerName] && child[handlerName].apply(child, args);
- }
- });
- };
- Node.prototype.emit = function emit(event) {
- var parent = this.parent;
- var handlerName = 'onChild' + Object(util_["capitalize"])(event);
- if (parent) {
- for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
- parent[handlerName] && parent[handlerName].apply(parent, args);
- parent.emit.apply(parent, [event].concat(args));
- }
- };
- Node.prototype.onParentCheck = function onParentCheck(checked) {
- if (!this.isDisabled) {
- this.setCheckState(checked);
- }
- };
- Node.prototype.onChildCheck = function onChildCheck() {
- var children = this.children;
- var validChildren = children.filter(function (child) {
- return !child.isDisabled;
- });
- var checked = validChildren.length ? validChildren.every(function (child) {
- return child.checked;
- }) : false;
- this.setCheckState(checked);
- };
- Node.prototype.setCheckState = function setCheckState(checked) {
- var totalNum = this.children.length;
- var checkedNum = this.children.reduce(function (c, p) {
- var num = p.checked ? 1 : p.indeterminate ? 0.5 : 0;
- return c + num;
- }, 0);
- this.checked = checked;
- this.indeterminate = checkedNum !== totalNum && checkedNum > 0;
- };
- Node.prototype.syncCheckState = function syncCheckState(checkedValue) {
- var value = this.getValueByOption();
- var checked = this.isSameNode(checkedValue, value);
- this.doCheck(checked);
- };
- Node.prototype.doCheck = function doCheck(checked) {
- if (this.checked !== checked) {
- if (this.config.checkStrictly) {
- this.checked = checked;
- } else {
- // bottom up to unify the calculation of the indeterminate state
- this.broadcast('check', checked);
- this.setCheckState(checked);
- this.emit('check');
- }
- }
- };
- _createClass(Node, [{
- key: 'isDisabled',
- get: function get() {
- var data = this.data,
- parent = this.parent,
- config = this.config;
- var disabledKey = config.disabled;
- var checkStrictly = config.checkStrictly;
- return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
- }
- }, {
- key: 'isLeaf',
- get: function get() {
- var data = this.data,
- loaded = this.loaded,
- hasChildren = this.hasChildren,
- children = this.children;
- var _config2 = this.config,
- lazy = _config2.lazy,
- leafKey = _config2.leaf;
- if (lazy) {
- var isLeaf = Object(shared_["isDef"])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
- this.hasChildren = !isLeaf;
- return isLeaf;
- }
- return !hasChildren;
- }
- }]);
- return Node;
- }();
- /* harmony default export */ var src_node = (node_Node);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/store.js
- function store_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var flatNodes = function flatNodes(data, leafOnly) {
- return data.reduce(function (res, node) {
- if (node.isLeaf) {
- res.push(node);
- } else {
- !leafOnly && res.push(node);
- res = res.concat(flatNodes(node.children, leafOnly));
- }
- return res;
- }, []);
- };
- var store_Store = function () {
- function Store(data, config) {
- store_classCallCheck(this, Store);
- this.config = config;
- this.initNodes(data);
- }
- Store.prototype.initNodes = function initNodes(data) {
- var _this = this;
- data = Object(util_["coerceTruthyValueToArray"])(data);
- this.nodes = data.map(function (nodeData) {
- return new src_node(nodeData, _this.config);
- });
- this.flattedNodes = this.getFlattedNodes(false, false);
- this.leafNodes = this.getFlattedNodes(true, false);
- };
- Store.prototype.appendNode = function appendNode(nodeData, parentNode) {
- var node = new src_node(nodeData, this.config, parentNode);
- var children = parentNode ? parentNode.children : this.nodes;
- children.push(node);
- };
- Store.prototype.appendNodes = function appendNodes(nodeDataList, parentNode) {
- var _this2 = this;
- nodeDataList = Object(util_["coerceTruthyValueToArray"])(nodeDataList);
- nodeDataList.forEach(function (nodeData) {
- return _this2.appendNode(nodeData, parentNode);
- });
- };
- Store.prototype.getNodes = function getNodes() {
- return this.nodes;
- };
- Store.prototype.getFlattedNodes = function getFlattedNodes(leafOnly) {
- var cached = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var cachedNodes = leafOnly ? this.leafNodes : this.flattedNodes;
- return cached ? cachedNodes : flatNodes(this.nodes, leafOnly);
- };
- Store.prototype.getNodeByValue = function getNodeByValue(value) {
- if (value) {
- var nodes = this.getFlattedNodes(false, !this.config.lazy).filter(function (node) {
- return Object(util_["valueEquals"])(node.path, value) || node.value === value;
- });
- return nodes && nodes.length ? nodes[0] : null;
- }
- return null;
- };
- return Store;
- }();
- /* harmony default export */ var src_store = (store_Store);
- // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
- var merge_ = __webpack_require__(9);
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/aria-utils"
- var aria_utils_ = __webpack_require__(32);
- var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/scroll-into-view"
- var scroll_into_view_ = __webpack_require__(31);
- var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var KeyCode = aria_utils_default.a.keys;
- var DefaultProps = {
- expandTrigger: 'click', // or hover
- multiple: false,
- checkStrictly: false, // whether all nodes can be selected
- emitPath: true, // wether to emit an array of all levels value in which node is located
- lazy: false,
- lazyLoad: util_["noop"],
- value: 'value',
- label: 'label',
- children: 'children',
- leaf: 'leaf',
- disabled: 'disabled',
- hoverThreshold: 500
- };
- var cascader_panelvue_type_script_lang_js_isLeaf = function isLeaf(el) {
- return !el.getAttribute('aria-owns');
- };
- var getSibling = function getSibling(el, distance) {
- var parentNode = el.parentNode;
- if (parentNode) {
- var siblings = parentNode.querySelectorAll('.el-cascader-node[tabindex="-1"]');
- var index = Array.prototype.indexOf.call(siblings, el);
- return siblings[index + distance] || null;
- }
- return null;
- };
- var getMenuIndex = function getMenuIndex(el, distance) {
- if (!el) return;
- var pieces = el.id.split('-');
- return Number(pieces[pieces.length - 2]);
- };
- var focusNode = function focusNode(el) {
- if (!el) return;
- el.focus();
- !cascader_panelvue_type_script_lang_js_isLeaf(el) && el.click();
- };
- var checkNode = function checkNode(el) {
- if (!el) return;
- var input = el.querySelector('input');
- if (input) {
- input.click();
- } else if (cascader_panelvue_type_script_lang_js_isLeaf(el)) {
- el.click();
- }
- };
- /* harmony default export */ var cascader_panelvue_type_script_lang_js_ = ({
- name: 'ElCascaderPanel',
- components: {
- CascaderMenu: cascader_menu
- },
- props: {
- value: {},
- options: Array,
- props: Object,
- border: {
- type: Boolean,
- default: true
- },
- renderLabel: Function
- },
- provide: function provide() {
- return {
- panel: this
- };
- },
- data: function data() {
- return {
- checkedValue: null,
- checkedNodePaths: [],
- store: [],
- menus: [],
- activePath: [],
- loadCount: 0
- };
- },
- computed: {
- config: function config() {
- return merge_default()(_extends({}, DefaultProps), this.props || {});
- },
- multiple: function multiple() {
- return this.config.multiple;
- },
- checkStrictly: function checkStrictly() {
- return this.config.checkStrictly;
- },
- leafOnly: function leafOnly() {
- return !this.checkStrictly;
- },
- isHoverMenu: function isHoverMenu() {
- return this.config.expandTrigger === 'hover';
- },
- renderLabelFn: function renderLabelFn() {
- return this.renderLabel || this.$scopedSlots.default;
- }
- },
- watch: {
- options: {
- handler: function handler() {
- this.initStore();
- },
- immediate: true,
- deep: true
- },
- value: function value() {
- this.syncCheckedValue();
- this.checkStrictly && this.calculateCheckedNodePaths();
- },
- checkedValue: function checkedValue(val) {
- if (!Object(util_["isEqual"])(val, this.value)) {
- this.checkStrictly && this.calculateCheckedNodePaths();
- this.$emit('input', val);
- this.$emit('change', val);
- }
- }
- },
- mounted: function mounted() {
- if (!Object(util_["isEmpty"])(this.value)) {
- this.syncCheckedValue();
- }
- },
- methods: {
- initStore: function initStore() {
- var config = this.config,
- options = this.options;
- if (config.lazy && Object(util_["isEmpty"])(options)) {
- this.lazyLoad();
- } else {
- this.store = new src_store(options, config);
- this.menus = [this.store.getNodes()];
- this.syncMenuState();
- }
- },
- syncCheckedValue: function syncCheckedValue() {
- var value = this.value,
- checkedValue = this.checkedValue;
- if (!Object(util_["isEqual"])(value, checkedValue)) {
- this.checkedValue = value;
- this.syncMenuState();
- }
- },
- syncMenuState: function syncMenuState() {
- var multiple = this.multiple,
- checkStrictly = this.checkStrictly;
- this.syncActivePath();
- multiple && this.syncMultiCheckState();
- checkStrictly && this.calculateCheckedNodePaths();
- this.$nextTick(this.scrollIntoView);
- },
- syncMultiCheckState: function syncMultiCheckState() {
- var _this = this;
- var nodes = this.getFlattedNodes(this.leafOnly);
- nodes.forEach(function (node) {
- node.syncCheckState(_this.checkedValue);
- });
- },
- syncActivePath: function syncActivePath() {
- var _this2 = this;
- var store = this.store,
- multiple = this.multiple,
- activePath = this.activePath,
- checkedValue = this.checkedValue;
- if (!Object(util_["isEmpty"])(activePath)) {
- var nodes = activePath.map(function (node) {
- return _this2.getNodeByValue(node.getValue());
- });
- this.expandNodes(nodes);
- } else if (!Object(util_["isEmpty"])(checkedValue)) {
- var value = multiple ? checkedValue[0] : checkedValue;
- var checkedNode = this.getNodeByValue(value) || {};
- var _nodes = (checkedNode.pathNodes || []).slice(0, -1);
- this.expandNodes(_nodes);
- } else {
- this.activePath = [];
- this.menus = [store.getNodes()];
- }
- },
- expandNodes: function expandNodes(nodes) {
- var _this3 = this;
- nodes.forEach(function (node) {
- return _this3.handleExpand(node, true /* silent */);
- });
- },
- calculateCheckedNodePaths: function calculateCheckedNodePaths() {
- var _this4 = this;
- var checkedValue = this.checkedValue,
- multiple = this.multiple;
- var checkedValues = multiple ? Object(util_["coerceTruthyValueToArray"])(checkedValue) : [checkedValue];
- this.checkedNodePaths = checkedValues.map(function (v) {
- var checkedNode = _this4.getNodeByValue(v);
- return checkedNode ? checkedNode.pathNodes : [];
- });
- },
- handleKeyDown: function handleKeyDown(e) {
- var target = e.target,
- keyCode = e.keyCode;
- switch (keyCode) {
- case KeyCode.up:
- var prev = getSibling(target, -1);
- focusNode(prev);
- break;
- case KeyCode.down:
- var next = getSibling(target, 1);
- focusNode(next);
- break;
- case KeyCode.left:
- var preMenu = this.$refs.menu[getMenuIndex(target) - 1];
- if (preMenu) {
- var expandedNode = preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
- focusNode(expandedNode);
- }
- break;
- case KeyCode.right:
- var nextMenu = this.$refs.menu[getMenuIndex(target) + 1];
- if (nextMenu) {
- var firstNode = nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
- focusNode(firstNode);
- }
- break;
- case KeyCode.enter:
- checkNode(target);
- break;
- case KeyCode.esc:
- case KeyCode.tab:
- this.$emit('close');
- break;
- default:
- return;
- }
- },
- handleExpand: function handleExpand(node, silent) {
- var activePath = this.activePath;
- var level = node.level;
- var path = activePath.slice(0, level - 1);
- var menus = this.menus.slice(0, level);
- if (!node.isLeaf) {
- path.push(node);
- menus.push(node.children);
- }
- this.activePath = path;
- this.menus = menus;
- if (!silent) {
- var pathValues = path.map(function (node) {
- return node.getValue();
- });
- var activePathValues = activePath.map(function (node) {
- return node.getValue();
- });
- if (!Object(util_["valueEquals"])(pathValues, activePathValues)) {
- this.$emit('active-item-change', pathValues); // Deprecated
- this.$emit('expand-change', pathValues);
- }
- }
- },
- handleCheckChange: function handleCheckChange(value) {
- this.checkedValue = value;
- },
- lazyLoad: function lazyLoad(node, onFullfiled) {
- var _this5 = this;
- var config = this.config;
- if (!node) {
- node = node || { root: true, level: 0 };
- this.store = new src_store([], config);
- this.menus = [this.store.getNodes()];
- }
- node.loading = true;
- var resolve = function resolve(dataList) {
- var parent = node.root ? null : node;
- dataList && dataList.length && _this5.store.appendNodes(dataList, parent);
- node.loading = false;
- node.loaded = true;
- // dispose default value on lazy load mode
- if (Array.isArray(_this5.checkedValue)) {
- var nodeValue = _this5.checkedValue[_this5.loadCount++];
- var valueKey = _this5.config.value;
- var leafKey = _this5.config.leaf;
- if (Array.isArray(dataList) && dataList.filter(function (item) {
- return item[valueKey] === nodeValue;
- }).length > 0) {
- var checkedNode = _this5.store.getNodeByValue(nodeValue);
- if (!checkedNode.data[leafKey]) {
- _this5.lazyLoad(checkedNode, function () {
- _this5.handleExpand(checkedNode);
- });
- }
- if (_this5.loadCount === _this5.checkedValue.length) {
- _this5.$parent.computePresentText();
- }
- }
- }
- onFullfiled && onFullfiled(dataList);
- };
- config.lazyLoad(node, resolve);
- },
- /**
- * public methods
- */
- calculateMultiCheckedValue: function calculateMultiCheckedValue() {
- this.checkedValue = this.getCheckedNodes(this.leafOnly).map(function (node) {
- return node.getValueByOption();
- });
- },
- scrollIntoView: function scrollIntoView() {
- if (this.$isServer) return;
- var menus = this.$refs.menu || [];
- menus.forEach(function (menu) {
- var menuElement = menu.$el;
- if (menuElement) {
- var container = menuElement.querySelector('.el-scrollbar__wrap');
- var activeNode = menuElement.querySelector('.el-cascader-node.is-active') || menuElement.querySelector('.el-cascader-node.in-active-path');
- scroll_into_view_default()(container, activeNode);
- }
- });
- },
- getNodeByValue: function getNodeByValue(val) {
- return this.store.getNodeByValue(val);
- },
- getFlattedNodes: function getFlattedNodes(leafOnly) {
- var cached = !this.config.lazy;
- return this.store.getFlattedNodes(leafOnly, cached);
- },
- getCheckedNodes: function getCheckedNodes(leafOnly) {
- var checkedValue = this.checkedValue,
- multiple = this.multiple;
- if (multiple) {
- var nodes = this.getFlattedNodes(leafOnly);
- return nodes.filter(function (node) {
- return node.checked;
- });
- } else {
- return Object(util_["isEmpty"])(checkedValue) ? [] : [this.getNodeByValue(checkedValue)];
- }
- },
- clearCheckedNodes: function clearCheckedNodes() {
- var config = this.config,
- leafOnly = this.leafOnly;
- var multiple = config.multiple,
- emitPath = config.emitPath;
- if (multiple) {
- this.getCheckedNodes(leafOnly).filter(function (node) {
- return !node.isDisabled;
- }).forEach(function (node) {
- return node.doCheck(false);
- });
- this.calculateMultiCheckedValue();
- } else {
- this.checkedValue = emitPath ? [] : null;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_panelvue_type_script_lang_js_ = (cascader_panelvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue
- /* normalize component */
- var cascader_panel_component = Object(componentNormalizer["a" /* default */])(
- src_cascader_panelvue_type_script_lang_js_,
- cascader_panelvue_type_template_id_34932346_render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_panel_api; }
- cascader_panel_component.options.__file = "packages/cascader-panel/src/cascader-panel.vue"
- /* harmony default export */ var cascader_panel = (cascader_panel_component.exports);
- // CONCATENATED MODULE: ./packages/cascader-panel/index.js
- /* istanbul ignore next */
- cascader_panel.install = function (Vue) {
- Vue.component(cascader_panel.name, cascader_panel);
- };
- /* harmony default export */ var packages_cascader_panel = __webpack_exports__["default"] = (cascader_panel);
- /***/ }),
- /***/ 6:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/locale */ "./node_modules/element-ui/lib/mixins/locale.js");
- /***/ }),
- /***/ 9:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/merge */ "./node_modules/element-ui/lib/utils/merge.js");
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/checkbox-group.js":
- /*!*******************************************************!*\
- !*** ./node_modules/element-ui/lib/checkbox-group.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 86);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 4:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /***/ 86:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-checkbox-group",
- attrs: { role: "group", "aria-label": "checkbox-group" }
- },
- [_vm._t("default")],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
- name: 'ElCheckboxGroup',
- componentName: 'ElCheckboxGroup',
- mixins: [emitter_default.a],
- inject: {
- elFormItem: {
- default: ''
- }
- },
- props: {
- value: {},
- disabled: Boolean,
- min: Number,
- max: Number,
- size: String,
- fill: String,
- textColor: String
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- checkboxGroupSize: function checkboxGroupSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- }
- },
- watch: {
- value: function value(_value) {
- this.dispatch('ElFormItem', 'el.form.change', [_value]);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_checkbox_groupvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/checkbox/src/checkbox-group.vue"
- /* harmony default export */ var checkbox_group = (component.exports);
- // CONCATENATED MODULE: ./packages/checkbox-group/index.js
- /* istanbul ignore next */
- checkbox_group.install = function (Vue) {
- Vue.component(checkbox_group.name, checkbox_group);
- };
- /* harmony default export */ var packages_checkbox_group = __webpack_exports__["default"] = (checkbox_group);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/checkbox.js":
- /*!*************************************************!*\
- !*** ./node_modules/element-ui/lib/checkbox.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 83);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 4:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /***/ 83:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-checkbox",
- class: [
- _vm.border && _vm.checkboxSize
- ? "el-checkbox--" + _vm.checkboxSize
- : "",
- { "is-disabled": _vm.isDisabled },
- { "is-bordered": _vm.border },
- { "is-checked": _vm.isChecked }
- ],
- attrs: { id: _vm.id }
- },
- [
- _c(
- "span",
- {
- staticClass: "el-checkbox__input",
- class: {
- "is-disabled": _vm.isDisabled,
- "is-checked": _vm.isChecked,
- "is-indeterminate": _vm.indeterminate,
- "is-focus": _vm.focus
- },
- attrs: {
- tabindex: _vm.indeterminate ? 0 : false,
- role: _vm.indeterminate ? "checkbox" : false,
- "aria-checked": _vm.indeterminate ? "mixed" : false
- }
- },
- [
- _c("span", { staticClass: "el-checkbox__inner" }),
- _vm.trueLabel || _vm.falseLabel
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox__original",
- attrs: {
- type: "checkbox",
- "aria-hidden": _vm.indeterminate ? "true" : "false",
- name: _vm.name,
- disabled: _vm.isDisabled,
- "true-value": _vm.trueLabel,
- "false-value": _vm.falseLabel
- },
- domProps: {
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, null) > -1
- : _vm._q(_vm.model, _vm.trueLabel)
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
- if (Array.isArray($$a)) {
- var $$v = null,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- })
- : _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox__original",
- attrs: {
- type: "checkbox",
- "aria-hidden": _vm.indeterminate ? "true" : "false",
- disabled: _vm.isDisabled,
- name: _vm.name
- },
- domProps: {
- value: _vm.label,
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, _vm.label) > -1
- : _vm.model
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? true : false
- if (Array.isArray($$a)) {
- var $$v = _vm.label,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- })
- ]
- ),
- _vm.$slots.default || _vm.label
- ? _c(
- "span",
- { staticClass: "el-checkbox__label" },
- [
- _vm._t("default"),
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
- ],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
- name: 'ElCheckbox',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- componentName: 'ElCheckbox',
- data: function data() {
- return {
- selfModel: false,
- focus: false,
- isLimitExceeded: false
- };
- },
- computed: {
- model: {
- get: function get() {
- return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
- },
- set: function set(val) {
- if (this.isGroup) {
- this.isLimitExceeded = false;
- this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
- this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
- this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
- } else {
- this.$emit('input', val);
- this.selfModel = val;
- }
- }
- },
- isChecked: function isChecked() {
- if ({}.toString.call(this.model) === '[object Boolean]') {
- return this.model;
- } else if (Array.isArray(this.model)) {
- return this.model.indexOf(this.label) > -1;
- } else if (this.model !== null && this.model !== undefined) {
- return this.model === this.trueLabel;
- }
- },
- isGroup: function isGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElCheckboxGroup') {
- parent = parent.$parent;
- } else {
- this._checkboxGroup = parent;
- return true;
- }
- }
- return false;
- },
- store: function store() {
- return this._checkboxGroup ? this._checkboxGroup.value : this.value;
- },
- /* used to make the isDisabled judgment under max/min props */
- isLimitDisabled: function isLimitDisabled() {
- var _checkboxGroup = this._checkboxGroup,
- max = _checkboxGroup.max,
- min = _checkboxGroup.min;
- return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
- },
- isDisabled: function isDisabled() {
- return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- checkboxSize: function checkboxSize() {
- var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
- }
- },
- props: {
- value: {},
- label: {},
- indeterminate: Boolean,
- disabled: Boolean,
- checked: Boolean,
- name: String,
- trueLabel: [String, Number],
- falseLabel: [String, Number],
- id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
- controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
- border: Boolean,
- size: String
- },
- methods: {
- addToStore: function addToStore() {
- if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
- this.model.push(this.label);
- } else {
- this.model = this.trueLabel || true;
- }
- },
- handleChange: function handleChange(ev) {
- var _this = this;
- if (this.isLimitExceeded) return;
- var value = void 0;
- if (ev.target.checked) {
- value = this.trueLabel === undefined ? true : this.trueLabel;
- } else {
- value = this.falseLabel === undefined ? false : this.falseLabel;
- }
- this.$emit('change', value, ev);
- this.$nextTick(function () {
- if (_this.isGroup) {
- _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
- }
- });
- }
- },
- created: function created() {
- this.checked && this.addToStore();
- },
- mounted: function mounted() {
- // 为indeterminate元素 添加aria-controls 属性
- if (this.indeterminate) {
- this.$el.setAttribute('aria-controls', this.controls);
- }
- },
- watch: {
- value: function value(_value) {
- this.dispatch('ElFormItem', 'el.form.change', _value);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_checkboxvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/checkbox/src/checkbox.vue"
- /* harmony default export */ var src_checkbox = (component.exports);
- // CONCATENATED MODULE: ./packages/checkbox/index.js
- /* istanbul ignore next */
- src_checkbox.install = function (Vue) {
- Vue.component(src_checkbox.name, src_checkbox);
- };
- /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/element-ui.common.js":
- /*!**********************************************************!*\
- !*** ./node_modules/element-ui/lib/element-ui.common.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 45);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/date-util */ "./node_modules/element-ui/lib/utils/date-util.js");
- /***/ }),
- /* 1 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- /***/ }),
- /* 2 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /* 3 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /* 4 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/locale */ "./node_modules/element-ui/lib/mixins/locale.js");
- /***/ }),
- /* 5 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/vue-popper */ "./node_modules/element-ui/lib/utils/vue-popper.js");
- /***/ }),
- /* 6 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- /***/ }),
- /* 7 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/merge */ "./node_modules/element-ui/lib/utils/merge.js");
- /***/ }),
- /* 8 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/input */ "./node_modules/element-ui/lib/input.js");
- /***/ }),
- /* 9 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/migrating */ "./node_modules/element-ui/lib/mixins/migrating.js");
- /***/ }),
- /* 10 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/clickoutside */ "./node_modules/element-ui/lib/utils/clickoutside.js");
- /***/ }),
- /* 11 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/locale */ "./node_modules/element-ui/lib/locale/index.js");
- /***/ }),
- /* 12 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/button */ "./node_modules/element-ui/lib/button.js");
- /***/ }),
- /* 13 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/resize-event */ "./node_modules/element-ui/lib/utils/resize-event.js");
- /***/ }),
- /* 14 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/popup */ "./node_modules/element-ui/lib/utils/popup/index.js");
- /***/ }),
- /* 15 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! throttle-debounce/debounce */ "./node_modules/throttle-debounce/debounce.js");
- /***/ }),
- /* 16 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/checkbox */ "./node_modules/element-ui/lib/checkbox.js");
- /***/ }),
- /* 17 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/scrollbar */ "./node_modules/element-ui/lib/scrollbar.js");
- /***/ }),
- /* 18 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/types */ "./node_modules/element-ui/lib/utils/types.js");
- /***/ }),
- /* 19 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "./node_modules/element-ui/lib/utils/shared.js");
- /***/ }),
- /* 20 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/date */ "./node_modules/element-ui/lib/utils/date.js");
- /***/ }),
- /* 21 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/transitions/collapse-transition */ "./node_modules/element-ui/lib/transitions/collapse-transition.js");
- /***/ }),
- /* 22 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/focus */ "./node_modules/element-ui/lib/mixins/focus.js");
- /***/ }),
- /* 23 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/vdom */ "./node_modules/element-ui/lib/utils/vdom.js");
- /***/ }),
- /* 24 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /***/ }),
- /* 25 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! throttle-debounce/throttle */ "./node_modules/throttle-debounce/throttle.js");
- /***/ }),
- /* 26 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/tooltip */ "./node_modules/element-ui/lib/tooltip.js");
- /***/ }),
- /* 27 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/scroll-into-view */ "./node_modules/element-ui/lib/utils/scroll-into-view.js");
- /***/ }),
- /* 28 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-utils */ "./node_modules/element-ui/lib/utils/aria-utils.js");
- /***/ }),
- /* 29 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/button-group */ "./node_modules/element-ui/lib/button-group.js");
- /***/ }),
- /* 30 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/tag */ "./node_modules/element-ui/lib/tag.js");
- /***/ }),
- /* 31 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/scrollbar-width */ "./node_modules/element-ui/lib/utils/scrollbar-width.js");
- /***/ }),
- /* 32 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/checkbox-group */ "./node_modules/element-ui/lib/checkbox-group.js");
- /***/ }),
- /* 33 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/after-leave */ "./node_modules/element-ui/lib/utils/after-leave.js");
- /***/ }),
- /* 34 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/progress */ "./node_modules/element-ui/lib/progress.js");
- /***/ }),
- /* 35 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! throttle-debounce */ "./node_modules/throttle-debounce/index.js");
- /***/ }),
- /* 36 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/select */ "./node_modules/element-ui/lib/select.js");
- /***/ }),
- /* 37 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/option */ "./node_modules/element-ui/lib/option.js");
- /***/ }),
- /* 38 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! normalize-wheel */ "./node_modules/normalize-wheel/index.js");
- /***/ }),
- /* 39 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-dialog */ "./node_modules/element-ui/lib/utils/aria-dialog.js");
- /***/ }),
- /* 40 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/es/index.js");
- /***/ }),
- /* 41 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/input-number */ "./node_modules/element-ui/lib/input-number.js");
- /***/ }),
- /* 42 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/cascader-panel */ "./node_modules/element-ui/lib/cascader-panel.js");
- /***/ }),
- /* 43 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/radio */ "./node_modules/element-ui/lib/radio.js");
- /***/ }),
- /* 44 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/popover */ "./node_modules/element-ui/lib/popover.js");
- /***/ }),
- /* 45 */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(46);
- /***/ }),
- /* 46 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=7274f267&
- var pagervue_type_template_id_7274f267_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "ul",
- { staticClass: "el-pager", on: { click: _vm.onPagerClick } },
- [
- _vm.pageCount > 0
- ? _c(
- "li",
- {
- staticClass: "number",
- class: { active: _vm.currentPage === 1, disabled: _vm.disabled }
- },
- [_vm._v("1")]
- )
- : _vm._e(),
- _vm.showPrevMore
- ? _c("li", {
- staticClass: "el-icon more btn-quickprev",
- class: [_vm.quickprevIconClass, { disabled: _vm.disabled }],
- on: {
- mouseenter: function($event) {
- _vm.onMouseenter("left")
- },
- mouseleave: function($event) {
- _vm.quickprevIconClass = "el-icon-more"
- }
- }
- })
- : _vm._e(),
- _vm._l(_vm.pagers, function(pager) {
- return _c(
- "li",
- {
- key: pager,
- staticClass: "number",
- class: { active: _vm.currentPage === pager, disabled: _vm.disabled }
- },
- [_vm._v(_vm._s(pager))]
- )
- }),
- _vm.showNextMore
- ? _c("li", {
- staticClass: "el-icon more btn-quicknext",
- class: [_vm.quicknextIconClass, { disabled: _vm.disabled }],
- on: {
- mouseenter: function($event) {
- _vm.onMouseenter("right")
- },
- mouseleave: function($event) {
- _vm.quicknextIconClass = "el-icon-more"
- }
- }
- })
- : _vm._e(),
- _vm.pageCount > 1
- ? _c(
- "li",
- {
- staticClass: "number",
- class: {
- active: _vm.currentPage === _vm.pageCount,
- disabled: _vm.disabled
- }
- },
- [_vm._v(_vm._s(_vm.pageCount))]
- )
- : _vm._e()
- ],
- 2
- )
- }
- var staticRenderFns = []
- pagervue_type_template_id_7274f267_render._withStripped = true
- // CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=template&id=7274f267&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var pagervue_type_script_lang_js_ = ({
- name: 'ElPager',
- props: {
- currentPage: Number,
- pageCount: Number,
- pagerCount: Number,
- disabled: Boolean
- },
- watch: {
- showPrevMore: function showPrevMore(val) {
- if (!val) this.quickprevIconClass = 'el-icon-more';
- },
- showNextMore: function showNextMore(val) {
- if (!val) this.quicknextIconClass = 'el-icon-more';
- }
- },
- methods: {
- onPagerClick: function onPagerClick(event) {
- var target = event.target;
- if (target.tagName === 'UL' || this.disabled) {
- return;
- }
- var newPage = Number(event.target.textContent);
- var pageCount = this.pageCount;
- var currentPage = this.currentPage;
- var pagerCountOffset = this.pagerCount - 2;
- if (target.className.indexOf('more') !== -1) {
- if (target.className.indexOf('quickprev') !== -1) {
- newPage = currentPage - pagerCountOffset;
- } else if (target.className.indexOf('quicknext') !== -1) {
- newPage = currentPage + pagerCountOffset;
- }
- }
- /* istanbul ignore if */
- if (!isNaN(newPage)) {
- if (newPage < 1) {
- newPage = 1;
- }
- if (newPage > pageCount) {
- newPage = pageCount;
- }
- }
- if (newPage !== currentPage) {
- this.$emit('change', newPage);
- }
- },
- onMouseenter: function onMouseenter(direction) {
- if (this.disabled) return;
- if (direction === 'left') {
- this.quickprevIconClass = 'el-icon-d-arrow-left';
- } else {
- this.quicknextIconClass = 'el-icon-d-arrow-right';
- }
- }
- },
- computed: {
- pagers: function pagers() {
- var pagerCount = this.pagerCount;
- var halfPagerCount = (pagerCount - 1) / 2;
- var currentPage = Number(this.currentPage);
- var pageCount = Number(this.pageCount);
- var showPrevMore = false;
- var showNextMore = false;
- if (pageCount > pagerCount) {
- if (currentPage > pagerCount - halfPagerCount) {
- showPrevMore = true;
- }
- if (currentPage < pageCount - halfPagerCount) {
- showNextMore = true;
- }
- }
- var array = [];
- if (showPrevMore && !showNextMore) {
- var startPage = pageCount - (pagerCount - 2);
- for (var i = startPage; i < pageCount; i++) {
- array.push(i);
- }
- } else if (!showPrevMore && showNextMore) {
- for (var _i = 2; _i < pagerCount; _i++) {
- array.push(_i);
- }
- } else if (showPrevMore && showNextMore) {
- var offset = Math.floor(pagerCount / 2) - 1;
- for (var _i2 = currentPage - offset; _i2 <= currentPage + offset; _i2++) {
- array.push(_i2);
- }
- } else {
- for (var _i3 = 2; _i3 < pageCount; _i3++) {
- array.push(_i3);
- }
- }
- this.showPrevMore = showPrevMore;
- this.showNextMore = showNextMore;
- return array;
- }
- },
- data: function data() {
- return {
- current: null,
- showPrevMore: false,
- showNextMore: false,
- quicknextIconClass: 'el-icon-more',
- quickprevIconClass: 'el-icon-more'
- };
- }
- });
- // CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_pagervue_type_script_lang_js_ = (pagervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- // CONCATENATED MODULE: ./packages/pagination/src/pager.vue
- /* normalize component */
- var component = normalizeComponent(
- src_pagervue_type_script_lang_js_,
- pagervue_type_template_id_7274f267_render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/pagination/src/pager.vue"
- /* harmony default export */ var pager = (component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/select"
- var select_ = __webpack_require__(36);
- var select_default = /*#__PURE__*/__webpack_require__.n(select_);
- // EXTERNAL MODULE: external "element-ui/lib/option"
- var option_ = __webpack_require__(37);
- var option_default = /*#__PURE__*/__webpack_require__.n(option_);
- // EXTERNAL MODULE: external "element-ui/lib/input"
- var input_ = __webpack_require__(8);
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
- var locale_ = __webpack_require__(4);
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(2);
- // CONCATENATED MODULE: ./packages/pagination/src/pagination.js
- /* harmony default export */ var pagination = ({
- name: 'ElPagination',
- props: {
- pageSize: {
- type: Number,
- default: 10
- },
- small: Boolean,
- total: Number,
- pageCount: Number,
- pagerCount: {
- type: Number,
- validator: function validator(value) {
- return (value | 0) === value && value > 4 && value < 22 && value % 2 === 1;
- },
- default: 7
- },
- currentPage: {
- type: Number,
- default: 1
- },
- layout: {
- default: 'prev, pager, next, jumper, ->, total'
- },
- pageSizes: {
- type: Array,
- default: function _default() {
- return [10, 20, 30, 40, 50, 100];
- }
- },
- popperClass: String,
- prevText: String,
- nextText: String,
- background: Boolean,
- disabled: Boolean,
- hideOnSinglePage: Boolean
- },
- data: function data() {
- return {
- internalCurrentPage: 1,
- internalPageSize: 0,
- lastEmittedPage: -1,
- userChangePageSize: false
- };
- },
- render: function render(h) {
- var layout = this.layout;
- if (!layout) return null;
- if (this.hideOnSinglePage && (!this.internalPageCount || this.internalPageCount === 1)) return null;
- var template = h('div', { 'class': ['el-pagination', {
- 'is-background': this.background,
- 'el-pagination--small': this.small
- }] });
- var TEMPLATE_MAP = {
- prev: h('prev'),
- jumper: h('jumper'),
- pager: h('pager', {
- attrs: { currentPage: this.internalCurrentPage, pageCount: this.internalPageCount, pagerCount: this.pagerCount, disabled: this.disabled },
- on: {
- 'change': this.handleCurrentChange
- }
- }),
- next: h('next'),
- sizes: h('sizes', {
- attrs: { pageSizes: this.pageSizes }
- }),
- slot: h('slot', [this.$slots.default ? this.$slots.default : '']),
- total: h('total')
- };
- var components = layout.split(',').map(function (item) {
- return item.trim();
- });
- var rightWrapper = h('div', { 'class': 'el-pagination__rightwrapper' });
- var haveRightWrapper = false;
- template.children = template.children || [];
- rightWrapper.children = rightWrapper.children || [];
- components.forEach(function (compo) {
- if (compo === '->') {
- haveRightWrapper = true;
- return;
- }
- if (!haveRightWrapper) {
- template.children.push(TEMPLATE_MAP[compo]);
- } else {
- rightWrapper.children.push(TEMPLATE_MAP[compo]);
- }
- });
- if (haveRightWrapper) {
- template.children.unshift(rightWrapper);
- }
- return template;
- },
- components: {
- Prev: {
- render: function render(h) {
- return h(
- 'button',
- {
- attrs: {
- type: 'button',
- disabled: this.$parent.disabled || this.$parent.internalCurrentPage <= 1
- },
- 'class': 'btn-prev', on: {
- 'click': this.$parent.prev
- }
- },
- [this.$parent.prevText ? h('span', [this.$parent.prevText]) : h('i', { 'class': 'el-icon el-icon-arrow-left' })]
- );
- }
- },
- Next: {
- render: function render(h) {
- return h(
- 'button',
- {
- attrs: {
- type: 'button',
- disabled: this.$parent.disabled || this.$parent.internalCurrentPage === this.$parent.internalPageCount || this.$parent.internalPageCount === 0
- },
- 'class': 'btn-next', on: {
- 'click': this.$parent.next
- }
- },
- [this.$parent.nextText ? h('span', [this.$parent.nextText]) : h('i', { 'class': 'el-icon el-icon-arrow-right' })]
- );
- }
- },
- Sizes: {
- mixins: [locale_default.a],
- props: {
- pageSizes: Array
- },
- watch: {
- pageSizes: {
- immediate: true,
- handler: function handler(newVal, oldVal) {
- if (Object(util_["valueEquals"])(newVal, oldVal)) return;
- if (Array.isArray(newVal)) {
- this.$parent.internalPageSize = newVal.indexOf(this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.pageSizes[0];
- }
- }
- }
- },
- render: function render(h) {
- var _this = this;
- return h(
- 'span',
- { 'class': 'el-pagination__sizes' },
- [h(
- 'el-select',
- {
- attrs: {
- value: this.$parent.internalPageSize,
- popperClass: this.$parent.popperClass || '',
- size: 'mini',
- disabled: this.$parent.disabled },
- on: {
- 'input': this.handleChange
- }
- },
- [this.pageSizes.map(function (item) {
- return h('el-option', {
- attrs: {
- value: item,
- label: item + _this.t('el.pagination.pagesize') }
- });
- })]
- )]
- );
- },
- components: {
- ElSelect: select_default.a,
- ElOption: option_default.a
- },
- methods: {
- handleChange: function handleChange(val) {
- if (val !== this.$parent.internalPageSize) {
- this.$parent.internalPageSize = val = parseInt(val, 10);
- this.$parent.userChangePageSize = true;
- this.$parent.$emit('update:pageSize', val);
- this.$parent.$emit('size-change', val);
- }
- }
- }
- },
- Jumper: {
- mixins: [locale_default.a],
- components: { ElInput: input_default.a },
- data: function data() {
- return {
- userInput: null
- };
- },
- watch: {
- '$parent.internalCurrentPage': function $parentInternalCurrentPage() {
- this.userInput = null;
- }
- },
- methods: {
- handleKeyup: function handleKeyup(_ref) {
- var keyCode = _ref.keyCode,
- target = _ref.target;
- // Chrome, Safari, Firefox triggers change event on Enter
- // Hack for IE: https://github.com/ElemeFE/element/issues/11710
- // Drop this method when we no longer supports IE
- if (keyCode === 13) {
- this.handleChange(target.value);
- }
- },
- handleInput: function handleInput(value) {
- this.userInput = value;
- },
- handleChange: function handleChange(value) {
- this.$parent.internalCurrentPage = this.$parent.getValidCurrentPage(value);
- this.$parent.emitChange();
- this.userInput = null;
- }
- },
- render: function render(h) {
- return h(
- 'span',
- { 'class': 'el-pagination__jump' },
- [this.t('el.pagination.goto'), h('el-input', {
- 'class': 'el-pagination__editor is-in-pagination',
- attrs: { min: 1,
- max: this.$parent.internalPageCount,
- value: this.userInput !== null ? this.userInput : this.$parent.internalCurrentPage,
- type: 'number',
- disabled: this.$parent.disabled
- },
- nativeOn: {
- 'keyup': this.handleKeyup
- },
- on: {
- 'input': this.handleInput,
- 'change': this.handleChange
- }
- }), this.t('el.pagination.pageClassifier')]
- );
- }
- },
- Total: {
- mixins: [locale_default.a],
- render: function render(h) {
- return typeof this.$parent.total === 'number' ? h(
- 'span',
- { 'class': 'el-pagination__total' },
- [this.t('el.pagination.total', { total: this.$parent.total })]
- ) : '';
- }
- },
- Pager: pager
- },
- methods: {
- handleCurrentChange: function handleCurrentChange(val) {
- this.internalCurrentPage = this.getValidCurrentPage(val);
- this.userChangePageSize = true;
- this.emitChange();
- },
- prev: function prev() {
- if (this.disabled) return;
- var newVal = this.internalCurrentPage - 1;
- this.internalCurrentPage = this.getValidCurrentPage(newVal);
- this.$emit('prev-click', this.internalCurrentPage);
- this.emitChange();
- },
- next: function next() {
- if (this.disabled) return;
- var newVal = this.internalCurrentPage + 1;
- this.internalCurrentPage = this.getValidCurrentPage(newVal);
- this.$emit('next-click', this.internalCurrentPage);
- this.emitChange();
- },
- getValidCurrentPage: function getValidCurrentPage(value) {
- value = parseInt(value, 10);
- var havePageCount = typeof this.internalPageCount === 'number';
- var resetValue = void 0;
- if (!havePageCount) {
- if (isNaN(value) || value < 1) resetValue = 1;
- } else {
- if (value < 1) {
- resetValue = 1;
- } else if (value > this.internalPageCount) {
- resetValue = this.internalPageCount;
- }
- }
- if (resetValue === undefined && isNaN(value)) {
- resetValue = 1;
- } else if (resetValue === 0) {
- resetValue = 1;
- }
- return resetValue === undefined ? value : resetValue;
- },
- emitChange: function emitChange() {
- var _this2 = this;
- this.$nextTick(function () {
- if (_this2.internalCurrentPage !== _this2.lastEmittedPage || _this2.userChangePageSize) {
- _this2.$emit('current-change', _this2.internalCurrentPage);
- _this2.lastEmittedPage = _this2.internalCurrentPage;
- _this2.userChangePageSize = false;
- }
- });
- }
- },
- computed: {
- internalPageCount: function internalPageCount() {
- if (typeof this.total === 'number') {
- return Math.max(1, Math.ceil(this.total / this.internalPageSize));
- } else if (typeof this.pageCount === 'number') {
- return Math.max(1, this.pageCount);
- }
- return null;
- }
- },
- watch: {
- currentPage: {
- immediate: true,
- handler: function handler(val) {
- this.internalCurrentPage = this.getValidCurrentPage(val);
- }
- },
- pageSize: {
- immediate: true,
- handler: function handler(val) {
- this.internalPageSize = isNaN(val) ? 10 : val;
- }
- },
- internalCurrentPage: {
- immediate: true,
- handler: function handler(newVal) {
- this.$emit('update:currentPage', newVal);
- this.lastEmittedPage = -1;
- }
- },
- internalPageCount: function internalPageCount(newVal) {
- /* istanbul ignore if */
- var oldPage = this.internalCurrentPage;
- if (newVal > 0 && oldPage === 0) {
- this.internalCurrentPage = 1;
- } else if (oldPage > newVal) {
- this.internalCurrentPage = newVal === 0 ? 1 : newVal;
- this.userChangePageSize && this.emitChange();
- }
- this.userChangePageSize = false;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/pagination/index.js
- /* istanbul ignore next */
- pagination.install = function (Vue) {
- Vue.component(pagination.name, pagination);
- };
- /* harmony default export */ var packages_pagination = (pagination);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=template&id=60140e62&
- var componentvue_type_template_id_60140e62_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "dialog-fade" },
- on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-dialog__wrapper",
- on: {
- click: function($event) {
- if ($event.target !== $event.currentTarget) {
- return null
- }
- return _vm.handleWrapperClick($event)
- }
- }
- },
- [
- _c(
- "div",
- {
- key: _vm.key,
- ref: "dialog",
- class: [
- "el-dialog",
- {
- "is-fullscreen": _vm.fullscreen,
- "el-dialog--center": _vm.center
- },
- _vm.customClass
- ],
- style: _vm.style,
- attrs: {
- role: "dialog",
- "aria-modal": "true",
- "aria-label": _vm.title || "dialog"
- }
- },
- [
- _c(
- "div",
- { staticClass: "el-dialog__header" },
- [
- _vm._t("title", [
- _c("span", { staticClass: "el-dialog__title" }, [
- _vm._v(_vm._s(_vm.title))
- ])
- ]),
- _vm.showClose
- ? _c(
- "button",
- {
- staticClass: "el-dialog__headerbtn",
- attrs: { type: "button", "aria-label": "Close" },
- on: { click: _vm.handleClose }
- },
- [
- _c("i", {
- staticClass:
- "el-dialog__close el-icon el-icon-close"
- })
- ]
- )
- : _vm._e()
- ],
- 2
- ),
- _vm.rendered
- ? _c(
- "div",
- { staticClass: "el-dialog__body" },
- [_vm._t("default")],
- 2
- )
- : _vm._e(),
- _vm.$slots.footer
- ? _c(
- "div",
- { staticClass: "el-dialog__footer" },
- [_vm._t("footer")],
- 2
- )
- : _vm._e()
- ]
- )
- ]
- )
- ]
- )
- }
- var componentvue_type_template_id_60140e62_staticRenderFns = []
- componentvue_type_template_id_60140e62_render._withStripped = true
- // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=template&id=60140e62&
- // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
- var popup_ = __webpack_require__(14);
- var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
- var migrating_ = __webpack_require__(9);
- var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(3);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var componentvue_type_script_lang_js_ = ({
- name: 'ElDialog',
- mixins: [popup_default.a, emitter_default.a, migrating_default.a],
- props: {
- title: {
- type: String,
- default: ''
- },
- modal: {
- type: Boolean,
- default: true
- },
- modalAppendToBody: {
- type: Boolean,
- default: true
- },
- appendToBody: {
- type: Boolean,
- default: false
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- closeOnClickModal: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- width: String,
- fullscreen: Boolean,
- customClass: {
- type: String,
- default: ''
- },
- top: {
- type: String,
- default: '15vh'
- },
- beforeClose: Function,
- center: {
- type: Boolean,
- default: false
- },
- destroyOnClose: Boolean
- },
- data: function data() {
- return {
- closed: false,
- key: 0
- };
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.closed = false;
- this.$emit('open');
- this.$el.addEventListener('scroll', this.updatePopper);
- this.$nextTick(function () {
- _this.$refs.dialog.scrollTop = 0;
- });
- if (this.appendToBody) {
- document.body.appendChild(this.$el);
- }
- } else {
- this.$el.removeEventListener('scroll', this.updatePopper);
- if (!this.closed) this.$emit('close');
- if (this.destroyOnClose) {
- this.$nextTick(function () {
- _this.key++;
- });
- }
- }
- }
- },
- computed: {
- style: function style() {
- var style = {};
- if (!this.fullscreen) {
- style.marginTop = this.top;
- if (this.width) {
- style.width = this.width;
- }
- }
- return style;
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'size': 'size is removed.'
- }
- };
- },
- handleWrapperClick: function handleWrapperClick() {
- if (!this.closeOnClickModal) return;
- this.handleClose();
- },
- handleClose: function handleClose() {
- if (typeof this.beforeClose === 'function') {
- this.beforeClose(this.hide);
- } else {
- this.hide();
- }
- },
- hide: function hide(cancel) {
- if (cancel !== false) {
- this.$emit('update:visible', false);
- this.$emit('close');
- this.closed = true;
- }
- },
- updatePopper: function updatePopper() {
- this.broadcast('ElSelectDropdown', 'updatePopper');
- this.broadcast('ElDropdownMenu', 'updatePopper');
- },
- afterEnter: function afterEnter() {
- this.$emit('opened');
- },
- afterLeave: function afterLeave() {
- this.$emit('closed');
- }
- },
- mounted: function mounted() {
- if (this.visible) {
- this.rendered = true;
- this.open();
- if (this.appendToBody) {
- document.body.appendChild(this.$el);
- }
- }
- },
- destroyed: function destroyed() {
- // if appendToBody is true, remove DOM node after destroy
- if (this.appendToBody && this.$el && this.$el.parentNode) {
- this.$el.parentNode.removeChild(this.$el);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_componentvue_type_script_lang_js_ = (componentvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/dialog/src/component.vue
- /* normalize component */
- var component_component = normalizeComponent(
- src_componentvue_type_script_lang_js_,
- componentvue_type_template_id_60140e62_render,
- componentvue_type_template_id_60140e62_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var component_api; }
- component_component.options.__file = "packages/dialog/src/component.vue"
- /* harmony default export */ var src_component = (component_component.exports);
- // CONCATENATED MODULE: ./packages/dialog/index.js
- /* istanbul ignore next */
- src_component.install = function (Vue) {
- Vue.component(src_component.name, src_component);
- };
- /* harmony default export */ var dialog = (src_component);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6&
- var autocompletevue_type_template_id_152f2ee6_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.close,
- expression: "close"
- }
- ],
- staticClass: "el-autocomplete",
- attrs: {
- "aria-haspopup": "listbox",
- role: "combobox",
- "aria-expanded": _vm.suggestionVisible,
- "aria-owns": _vm.id
- }
- },
- [
- _c(
- "el-input",
- _vm._b(
- {
- ref: "input",
- on: {
- input: _vm.handleInput,
- change: _vm.handleChange,
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- clear: _vm.handleClear
- },
- nativeOn: {
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, [
- "Up",
- "ArrowUp"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.highlight(_vm.highlightedIndex - 1)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.highlight(_vm.highlightedIndex + 1)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.handleKeyEnter($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
- ) {
- return null
- }
- return _vm.close($event)
- }
- ]
- }
- },
- "el-input",
- [_vm.$props, _vm.$attrs],
- false
- ),
- [
- _vm.$slots.prepend
- ? _c("template", { slot: "prepend" }, [_vm._t("prepend")], 2)
- : _vm._e(),
- _vm.$slots.append
- ? _c("template", { slot: "append" }, [_vm._t("append")], 2)
- : _vm._e(),
- _vm.$slots.prefix
- ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
- : _vm._e(),
- _vm.$slots.suffix
- ? _c("template", { slot: "suffix" }, [_vm._t("suffix")], 2)
- : _vm._e()
- ],
- 2
- ),
- _c(
- "el-autocomplete-suggestions",
- {
- ref: "suggestions",
- class: [_vm.popperClass ? _vm.popperClass : ""],
- attrs: {
- "visible-arrow": "",
- "popper-options": _vm.popperOptions,
- "append-to-body": _vm.popperAppendToBody,
- placement: _vm.placement,
- id: _vm.id
- }
- },
- _vm._l(_vm.suggestions, function(item, index) {
- return _c(
- "li",
- {
- key: index,
- class: { highlighted: _vm.highlightedIndex === index },
- attrs: {
- id: _vm.id + "-item-" + index,
- role: "option",
- "aria-selected": _vm.highlightedIndex === index
- },
- on: {
- click: function($event) {
- _vm.select(item)
- }
- }
- },
- [
- _vm._t(
- "default",
- [
- _vm._v("\n " + _vm._s(item[_vm.valueKey]) + "\n ")
- ],
- { item: item }
- )
- ],
- 2
- )
- }),
- 0
- )
- ],
- 1
- )
- }
- var autocompletevue_type_template_id_152f2ee6_staticRenderFns = []
- autocompletevue_type_template_id_152f2ee6_render._withStripped = true
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6&
- // EXTERNAL MODULE: external "throttle-debounce/debounce"
- var debounce_ = __webpack_require__(15);
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside"
- var clickoutside_ = __webpack_require__(10);
- var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
- var autocomplete_suggestionsvue_type_template_id_cd10dcf0_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showPopper,
- expression: "showPopper"
- }
- ],
- staticClass: "el-autocomplete-suggestion el-popper",
- class: {
- "is-loading": !_vm.parent.hideLoading && _vm.parent.loading
- },
- style: { width: _vm.dropdownWidth },
- attrs: { role: "region" }
- },
- [
- _c(
- "el-scrollbar",
- {
- attrs: {
- tag: "ul",
- "wrap-class": "el-autocomplete-suggestion__wrap",
- "view-class": "el-autocomplete-suggestion__list"
- }
- },
- [
- !_vm.parent.hideLoading && _vm.parent.loading
- ? _c("li", [_c("i", { staticClass: "el-icon-loading" })])
- : _vm._t("default")
- ],
- 2
- )
- ],
- 1
- )
- ]
- )
- }
- var autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns = []
- autocomplete_suggestionsvue_type_template_id_cd10dcf0_render._withStripped = true
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
- // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
- var vue_popper_ = __webpack_require__(5);
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
- // EXTERNAL MODULE: external "element-ui/lib/scrollbar"
- var scrollbar_ = __webpack_require__(17);
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var autocomplete_suggestionsvue_type_script_lang_js_ = ({
- components: { ElScrollbar: scrollbar_default.a },
- mixins: [vue_popper_default.a, emitter_default.a],
- componentName: 'ElAutocompleteSuggestions',
- data: function data() {
- return {
- parent: this.$parent,
- dropdownWidth: ''
- };
- },
- props: {
- options: {
- default: function _default() {
- return {
- gpuAcceleration: false
- };
- }
- },
- id: String
- },
- methods: {
- select: function select(item) {
- this.dispatch('ElAutocomplete', 'item-click', item);
- }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function (_) {
- _this.popperJS && _this.updatePopper();
- });
- },
- mounted: function mounted() {
- this.$parent.popperElm = this.popperElm = this.$el;
- this.referenceElm = this.$parent.$refs.input.$refs.input || this.$parent.$refs.input.$refs.textarea;
- this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
- this.referenceList.setAttribute('role', 'listbox');
- this.referenceList.setAttribute('id', this.id);
- },
- created: function created() {
- var _this2 = this;
- this.$on('visible', function (val, inputWidth) {
- _this2.dropdownWidth = inputWidth + 'px';
- _this2.showPopper = val;
- });
- }
- });
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_autocomplete_suggestionsvue_type_script_lang_js_ = (autocomplete_suggestionsvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue
- /* normalize component */
- var autocomplete_suggestions_component = normalizeComponent(
- src_autocomplete_suggestionsvue_type_script_lang_js_,
- autocomplete_suggestionsvue_type_template_id_cd10dcf0_render,
- autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var autocomplete_suggestions_api; }
- autocomplete_suggestions_component.options.__file = "packages/autocomplete/src/autocomplete-suggestions.vue"
- /* harmony default export */ var autocomplete_suggestions = (autocomplete_suggestions_component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
- var focus_ = __webpack_require__(22);
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var autocompletevue_type_script_lang_js_ = ({
- name: 'ElAutocomplete',
- mixins: [emitter_default.a, focus_default()('input'), migrating_default.a],
- inheritAttrs: false,
- componentName: 'ElAutocomplete',
- components: {
- ElInput: input_default.a,
- ElAutocompleteSuggestions: autocomplete_suggestions
- },
- directives: { Clickoutside: clickoutside_default.a },
- props: {
- valueKey: {
- type: String,
- default: 'value'
- },
- popperClass: String,
- popperOptions: Object,
- placeholder: String,
- clearable: {
- type: Boolean,
- default: false
- },
- disabled: Boolean,
- name: String,
- size: String,
- value: String,
- maxlength: Number,
- minlength: Number,
- autofocus: Boolean,
- fetchSuggestions: Function,
- triggerOnFocus: {
- type: Boolean,
- default: true
- },
- customItem: String,
- selectWhenUnmatched: {
- type: Boolean,
- default: false
- },
- prefixIcon: String,
- suffixIcon: String,
- label: String,
- debounce: {
- type: Number,
- default: 300
- },
- placement: {
- type: String,
- default: 'bottom-start'
- },
- hideLoading: Boolean,
- popperAppendToBody: {
- type: Boolean,
- default: true
- },
- highlightFirstItem: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- activated: false,
- suggestions: [],
- loading: false,
- highlightedIndex: -1,
- suggestionDisabled: false
- };
- },
- computed: {
- suggestionVisible: function suggestionVisible() {
- var suggestions = this.suggestions;
- var isValidData = Array.isArray(suggestions) && suggestions.length > 0;
- return (isValidData || this.loading) && this.activated;
- },
- id: function id() {
- return 'el-autocomplete-' + Object(util_["generateId"])();
- }
- },
- watch: {
- suggestionVisible: function suggestionVisible(val) {
- var $input = this.getInput();
- if ($input) {
- this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $input.offsetWidth]);
- }
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'custom-item': 'custom-item is removed, use scoped slot instead.',
- 'props': 'props is removed, use value-key instead.'
- }
- };
- },
- getData: function getData(queryString) {
- var _this = this;
- if (this.suggestionDisabled) {
- return;
- }
- this.loading = true;
- this.fetchSuggestions(queryString, function (suggestions) {
- _this.loading = false;
- if (_this.suggestionDisabled) {
- return;
- }
- if (Array.isArray(suggestions)) {
- _this.suggestions = suggestions;
- _this.highlightedIndex = _this.highlightFirstItem ? 0 : -1;
- } else {
- console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array');
- }
- });
- },
- handleInput: function handleInput(value) {
- this.$emit('input', value);
- this.suggestionDisabled = false;
- if (!this.triggerOnFocus && !value) {
- this.suggestionDisabled = true;
- this.suggestions = [];
- return;
- }
- this.debouncedGetData(value);
- },
- handleChange: function handleChange(value) {
- this.$emit('change', value);
- },
- handleFocus: function handleFocus(event) {
- this.activated = true;
- this.$emit('focus', event);
- if (this.triggerOnFocus) {
- this.debouncedGetData(this.value);
- }
- },
- handleBlur: function handleBlur(event) {
- this.$emit('blur', event);
- },
- handleClear: function handleClear() {
- this.activated = false;
- this.$emit('clear');
- },
- close: function close(e) {
- this.activated = false;
- },
- handleKeyEnter: function handleKeyEnter(e) {
- var _this2 = this;
- if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
- e.preventDefault();
- this.select(this.suggestions[this.highlightedIndex]);
- } else if (this.selectWhenUnmatched) {
- this.$emit('select', { value: this.value });
- this.$nextTick(function (_) {
- _this2.suggestions = [];
- _this2.highlightedIndex = -1;
- });
- }
- },
- select: function select(item) {
- var _this3 = this;
- this.$emit('input', item[this.valueKey]);
- this.$emit('select', item);
- this.$nextTick(function (_) {
- _this3.suggestions = [];
- _this3.highlightedIndex = -1;
- });
- },
- highlight: function highlight(index) {
- if (!this.suggestionVisible || this.loading) {
- return;
- }
- if (index < 0) {
- this.highlightedIndex = -1;
- return;
- }
- if (index >= this.suggestions.length) {
- index = this.suggestions.length - 1;
- }
- var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
- var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
- var highlightItem = suggestionList[index];
- var scrollTop = suggestion.scrollTop;
- var offsetTop = highlightItem.offsetTop;
- if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) {
- suggestion.scrollTop += highlightItem.scrollHeight;
- }
- if (offsetTop < scrollTop) {
- suggestion.scrollTop -= highlightItem.scrollHeight;
- }
- this.highlightedIndex = index;
- var $input = this.getInput();
- $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
- },
- getInput: function getInput() {
- return this.$refs.input.getInput();
- }
- },
- mounted: function mounted() {
- var _this4 = this;
- this.debouncedGetData = debounce_default()(this.debounce, this.getData);
- this.$on('item-click', function (item) {
- _this4.select(item);
- });
- var $input = this.getInput();
- $input.setAttribute('role', 'textbox');
- $input.setAttribute('aria-autocomplete', 'list');
- $input.setAttribute('aria-controls', 'id');
- $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
- },
- beforeDestroy: function beforeDestroy() {
- this.$refs.suggestions.$destroy();
- }
- });
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_autocompletevue_type_script_lang_js_ = (autocompletevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue
- /* normalize component */
- var autocomplete_component = normalizeComponent(
- src_autocompletevue_type_script_lang_js_,
- autocompletevue_type_template_id_152f2ee6_render,
- autocompletevue_type_template_id_152f2ee6_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var autocomplete_api; }
- autocomplete_component.options.__file = "packages/autocomplete/src/autocomplete.vue"
- /* harmony default export */ var autocomplete = (autocomplete_component.exports);
- // CONCATENATED MODULE: ./packages/autocomplete/index.js
- /* istanbul ignore next */
- autocomplete.install = function (Vue) {
- Vue.component(autocomplete.name, autocomplete);
- };
- /* harmony default export */ var packages_autocomplete = (autocomplete);
- // EXTERNAL MODULE: external "element-ui/lib/button"
- var button_ = __webpack_require__(12);
- var button_default = /*#__PURE__*/__webpack_require__.n(button_);
- // EXTERNAL MODULE: external "element-ui/lib/button-group"
- var button_group_ = __webpack_require__(29);
- var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
- /* harmony default export */ var dropdownvue_type_script_lang_js_ = ({
- name: 'ElDropdown',
- componentName: 'ElDropdown',
- mixins: [emitter_default.a, migrating_default.a],
- directives: { Clickoutside: clickoutside_default.a },
- components: {
- ElButton: button_default.a,
- ElButtonGroup: button_group_default.a
- },
- provide: function provide() {
- return {
- dropdown: this
- };
- },
- props: {
- trigger: {
- type: String,
- default: 'hover'
- },
- type: String,
- size: {
- type: String,
- default: ''
- },
- splitButton: Boolean,
- hideOnClick: {
- type: Boolean,
- default: true
- },
- placement: {
- type: String,
- default: 'bottom-end'
- },
- visibleArrow: {
- default: true
- },
- showTimeout: {
- type: Number,
- default: 250
- },
- hideTimeout: {
- type: Number,
- default: 150
- },
- tabindex: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- timeout: null,
- visible: false,
- triggerElm: null,
- menuItems: null,
- menuItemsArray: null,
- dropdownElm: null,
- focusing: false,
- listId: 'dropdown-menu-' + Object(util_["generateId"])()
- };
- },
- computed: {
- dropdownSize: function dropdownSize() {
- return this.size || (this.$ELEMENT || {}).size;
- }
- },
- mounted: function mounted() {
- this.$on('menu-item-click', this.handleMenuItemClick);
- },
- watch: {
- visible: function visible(val) {
- this.broadcast('ElDropdownMenu', 'visible', val);
- this.$emit('visible-change', val);
- },
- focusing: function focusing(val) {
- var selfDefine = this.$el.querySelector('.el-dropdown-selfdefine');
- if (selfDefine) {
- // 自定义
- if (val) {
- selfDefine.className += ' focusing';
- } else {
- selfDefine.className = selfDefine.className.replace('focusing', '');
- }
- }
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'menu-align': 'menu-align is renamed to placement.'
- }
- };
- },
- show: function show() {
- var _this = this;
- if (this.triggerElm.disabled) return;
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this.visible = true;
- }, this.trigger === 'click' ? 0 : this.showTimeout);
- },
- hide: function hide() {
- var _this2 = this;
- if (this.triggerElm.disabled) return;
- this.removeTabindex();
- if (this.tabindex >= 0) {
- this.resetTabindex(this.triggerElm);
- }
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this2.visible = false;
- }, this.trigger === 'click' ? 0 : this.hideTimeout);
- },
- handleClick: function handleClick() {
- if (this.triggerElm.disabled) return;
- if (this.visible) {
- this.hide();
- } else {
- this.show();
- }
- },
- handleTriggerKeyDown: function handleTriggerKeyDown(ev) {
- var keyCode = ev.keyCode;
- if ([38, 40].indexOf(keyCode) > -1) {
- // up/down
- this.removeTabindex();
- this.resetTabindex(this.menuItems[0]);
- this.menuItems[0].focus();
- ev.preventDefault();
- ev.stopPropagation();
- } else if (keyCode === 13) {
- // space enter选中
- this.handleClick();
- } else if ([9, 27].indexOf(keyCode) > -1) {
- // tab || esc
- this.hide();
- }
- },
- handleItemKeyDown: function handleItemKeyDown(ev) {
- var keyCode = ev.keyCode;
- var target = ev.target;
- var currentIndex = this.menuItemsArray.indexOf(target);
- var max = this.menuItemsArray.length - 1;
- var nextIndex = void 0;
- if ([38, 40].indexOf(keyCode) > -1) {
- // up/down
- if (keyCode === 38) {
- // up
- nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
- } else {
- // down
- nextIndex = currentIndex < max ? currentIndex + 1 : max;
- }
- this.removeTabindex();
- this.resetTabindex(this.menuItems[nextIndex]);
- this.menuItems[nextIndex].focus();
- ev.preventDefault();
- ev.stopPropagation();
- } else if (keyCode === 13) {
- // enter选中
- this.triggerElmFocus();
- target.click();
- if (this.hideOnClick) {
- // click关闭
- this.visible = false;
- }
- } else if ([9, 27].indexOf(keyCode) > -1) {
- // tab // esc
- this.hide();
- this.triggerElmFocus();
- }
- },
- resetTabindex: function resetTabindex(ele) {
- // 下次tab时组件聚焦元素
- this.removeTabindex();
- ele.setAttribute('tabindex', '0'); // 下次期望的聚焦元素
- },
- removeTabindex: function removeTabindex() {
- this.triggerElm.setAttribute('tabindex', '-1');
- this.menuItemsArray.forEach(function (item) {
- item.setAttribute('tabindex', '-1');
- });
- },
- initAria: function initAria() {
- this.dropdownElm.setAttribute('id', this.listId);
- this.triggerElm.setAttribute('aria-haspopup', 'list');
- this.triggerElm.setAttribute('aria-controls', this.listId);
- if (!this.splitButton) {
- // 自定义
- this.triggerElm.setAttribute('role', 'button');
- this.triggerElm.setAttribute('tabindex', this.tabindex);
- this.triggerElm.setAttribute('class', (this.triggerElm.getAttribute('class') || '') + ' el-dropdown-selfdefine'); // 控制
- }
- },
- initEvent: function initEvent() {
- var _this3 = this;
- var trigger = this.trigger,
- show = this.show,
- hide = this.hide,
- handleClick = this.handleClick,
- splitButton = this.splitButton,
- handleTriggerKeyDown = this.handleTriggerKeyDown,
- handleItemKeyDown = this.handleItemKeyDown;
- this.triggerElm = splitButton ? this.$refs.trigger.$el : this.$slots.default[0].elm;
- var dropdownElm = this.dropdownElm;
- this.triggerElm.addEventListener('keydown', handleTriggerKeyDown); // triggerElm keydown
- dropdownElm.addEventListener('keydown', handleItemKeyDown, true); // item keydown
- // 控制自定义元素的样式
- if (!splitButton) {
- this.triggerElm.addEventListener('focus', function () {
- _this3.focusing = true;
- });
- this.triggerElm.addEventListener('blur', function () {
- _this3.focusing = false;
- });
- this.triggerElm.addEventListener('click', function () {
- _this3.focusing = false;
- });
- }
- if (trigger === 'hover') {
- this.triggerElm.addEventListener('mouseenter', show);
- this.triggerElm.addEventListener('mouseleave', hide);
- dropdownElm.addEventListener('mouseenter', show);
- dropdownElm.addEventListener('mouseleave', hide);
- } else if (trigger === 'click') {
- this.triggerElm.addEventListener('click', handleClick);
- }
- },
- handleMenuItemClick: function handleMenuItemClick(command, instance) {
- if (this.hideOnClick) {
- this.visible = false;
- }
- this.$emit('command', command, instance);
- },
- triggerElmFocus: function triggerElmFocus() {
- this.triggerElm.focus && this.triggerElm.focus();
- },
- initDomOperation: function initDomOperation() {
- this.dropdownElm = this.popperElm;
- this.menuItems = this.dropdownElm.querySelectorAll("[tabindex='-1']");
- this.menuItemsArray = [].slice.call(this.menuItems);
- this.initEvent();
- this.initAria();
- }
- },
- render: function render(h) {
- var _this4 = this;
- var hide = this.hide,
- splitButton = this.splitButton,
- type = this.type,
- dropdownSize = this.dropdownSize;
- var handleMainButtonClick = function handleMainButtonClick(event) {
- _this4.$emit('click', event);
- hide();
- };
- var triggerElm = !splitButton ? this.$slots.default : h('el-button-group', [h(
- 'el-button',
- {
- attrs: { type: type, size: dropdownSize },
- nativeOn: {
- 'click': handleMainButtonClick
- }
- },
- [this.$slots.default]
- ), h(
- 'el-button',
- { ref: 'trigger', attrs: { type: type, size: dropdownSize },
- 'class': 'el-dropdown__caret-button' },
- [h('i', { 'class': 'el-dropdown__icon el-icon-arrow-down' })]
- )]);
- return h(
- 'div',
- { 'class': 'el-dropdown', directives: [{
- name: 'clickoutside',
- value: hide
- }]
- },
- [triggerElm, this.$slots.dropdown]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_dropdownvue_type_script_lang_js_ = (dropdownvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue
- var dropdown_render, dropdown_staticRenderFns
- /* normalize component */
- var dropdown_component = normalizeComponent(
- src_dropdownvue_type_script_lang_js_,
- dropdown_render,
- dropdown_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var dropdown_api; }
- dropdown_component.options.__file = "packages/dropdown/src/dropdown.vue"
- /* harmony default export */ var dropdown = (dropdown_component.exports);
- // CONCATENATED MODULE: ./packages/dropdown/index.js
- /* istanbul ignore next */
- dropdown.install = function (Vue) {
- Vue.component(dropdown.name, dropdown);
- };
- /* harmony default export */ var packages_dropdown = (dropdown);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714&
- var dropdown_menuvue_type_template_id_0da6b714_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
- [
- _c(
- "ul",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showPopper,
- expression: "showPopper"
- }
- ],
- staticClass: "el-dropdown-menu el-popper",
- class: [_vm.size && "el-dropdown-menu--" + _vm.size]
- },
- [_vm._t("default")],
- 2
- )
- ]
- )
- }
- var dropdown_menuvue_type_template_id_0da6b714_staticRenderFns = []
- dropdown_menuvue_type_template_id_0da6b714_render._withStripped = true
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var dropdown_menuvue_type_script_lang_js_ = ({
- name: 'ElDropdownMenu',
- componentName: 'ElDropdownMenu',
- mixins: [vue_popper_default.a],
- props: {
- visibleArrow: {
- type: Boolean,
- default: true
- },
- arrowOffset: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- size: this.dropdown.dropdownSize
- };
- },
- inject: ['dropdown'],
- created: function created() {
- var _this = this;
- this.$on('updatePopper', function () {
- if (_this.showPopper) _this.updatePopper();
- });
- this.$on('visible', function (val) {
- _this.showPopper = val;
- });
- },
- mounted: function mounted() {
- this.dropdown.popperElm = this.popperElm = this.$el;
- this.referenceElm = this.dropdown.$el;
- // compatible with 2.6 new v-slot syntax
- // issue link https://github.com/ElemeFE/element/issues/14345
- this.dropdown.initDomOperation();
- },
- watch: {
- 'dropdown.placement': {
- immediate: true,
- handler: function handler(val) {
- this.currentPlacement = val;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_dropdown_menuvue_type_script_lang_js_ = (dropdown_menuvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue
- /* normalize component */
- var dropdown_menu_component = normalizeComponent(
- src_dropdown_menuvue_type_script_lang_js_,
- dropdown_menuvue_type_template_id_0da6b714_render,
- dropdown_menuvue_type_template_id_0da6b714_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var dropdown_menu_api; }
- dropdown_menu_component.options.__file = "packages/dropdown/src/dropdown-menu.vue"
- /* harmony default export */ var dropdown_menu = (dropdown_menu_component.exports);
- // CONCATENATED MODULE: ./packages/dropdown-menu/index.js
- /* istanbul ignore next */
- dropdown_menu.install = function (Vue) {
- Vue.component(dropdown_menu.name, dropdown_menu);
- };
- /* harmony default export */ var packages_dropdown_menu = (dropdown_menu);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a&
- var dropdown_itemvue_type_template_id_6359102a_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "li",
- {
- staticClass: "el-dropdown-menu__item",
- class: {
- "is-disabled": _vm.disabled,
- "el-dropdown-menu__item--divided": _vm.divided
- },
- attrs: {
- "aria-disabled": _vm.disabled,
- tabindex: _vm.disabled ? null : -1
- },
- on: { click: _vm.handleClick }
- },
- [_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(), _vm._t("default")],
- 2
- )
- }
- var dropdown_itemvue_type_template_id_6359102a_staticRenderFns = []
- dropdown_itemvue_type_template_id_6359102a_render._withStripped = true
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var dropdown_itemvue_type_script_lang_js_ = ({
- name: 'ElDropdownItem',
- mixins: [emitter_default.a],
- props: {
- command: {},
- disabled: Boolean,
- divided: Boolean,
- icon: String
- },
- methods: {
- handleClick: function handleClick(e) {
- this.dispatch('ElDropdown', 'menu-item-click', [this.command, this]);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_dropdown_itemvue_type_script_lang_js_ = (dropdown_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue
- /* normalize component */
- var dropdown_item_component = normalizeComponent(
- src_dropdown_itemvue_type_script_lang_js_,
- dropdown_itemvue_type_template_id_6359102a_render,
- dropdown_itemvue_type_template_id_6359102a_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var dropdown_item_api; }
- dropdown_item_component.options.__file = "packages/dropdown/src/dropdown-item.vue"
- /* harmony default export */ var dropdown_item = (dropdown_item_component.exports);
- // CONCATENATED MODULE: ./packages/dropdown-item/index.js
- /* istanbul ignore next */
- dropdown_item.install = function (Vue) {
- Vue.component(dropdown_item.name, dropdown_item);
- };
- /* harmony default export */ var packages_dropdown_item = (dropdown_item);
- // CONCATENATED MODULE: ./src/utils/aria-utils.js
- var aria = aria || {};
- aria.Utils = aria.Utils || {};
- /**
- * @desc Set focus on descendant nodes until the first focusable element is
- * found.
- * @param element
- * DOM node for which to find the first focusable descendant.
- * @returns
- * true if a focusable element is found and focus is set.
- */
- aria.Utils.focusFirstDescendant = function (element) {
- for (var i = 0; i < element.childNodes.length; i++) {
- var child = element.childNodes[i];
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
- return true;
- }
- }
- return false;
- };
- /**
- * @desc Find the last descendant node that is focusable.
- * @param element
- * DOM node for which to find the last focusable descendant.
- * @returns
- * true if a focusable element is found and focus is set.
- */
- aria.Utils.focusLastDescendant = function (element) {
- for (var i = element.childNodes.length - 1; i >= 0; i--) {
- var child = element.childNodes[i];
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
- return true;
- }
- }
- return false;
- };
- /**
- * @desc Set Attempt to set focus on the current node.
- * @param element
- * The node to attempt to focus on.
- * @returns
- * true if element is focused.
- */
- aria.Utils.attemptFocus = function (element) {
- if (!aria.Utils.isFocusable(element)) {
- return false;
- }
- aria.Utils.IgnoreUtilFocusChanges = true;
- try {
- element.focus();
- } catch (e) {}
- aria.Utils.IgnoreUtilFocusChanges = false;
- return document.activeElement === element;
- };
- aria.Utils.isFocusable = function (element) {
- if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
- return true;
- }
- if (element.disabled) {
- return false;
- }
- switch (element.nodeName) {
- case 'A':
- return !!element.href && element.rel !== 'ignore';
- case 'INPUT':
- return element.type !== 'hidden' && element.type !== 'file';
- case 'BUTTON':
- case 'SELECT':
- case 'TEXTAREA':
- return true;
- default:
- return false;
- }
- };
- /**
- * 触发一个事件
- * mouseenter, mouseleave, mouseover, keyup, change, click 等
- * @param {Element} elm
- * @param {String} name
- * @param {*} opts
- */
- aria.Utils.triggerEvent = function (elm, name) {
- var eventName = void 0;
- if (/^mouse|click/.test(name)) {
- eventName = 'MouseEvents';
- } else if (/^key/.test(name)) {
- eventName = 'KeyboardEvent';
- } else {
- eventName = 'HTMLEvents';
- }
- var evt = document.createEvent(eventName);
- for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- opts[_key - 2] = arguments[_key];
- }
- evt.initEvent.apply(evt, [name].concat(opts));
- elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
- return elm;
- };
- aria.Utils.keys = {
- tab: 9,
- enter: 13,
- space: 32,
- left: 37,
- up: 38,
- right: 39,
- down: 40,
- esc: 27
- };
- /* harmony default export */ var aria_utils = (aria.Utils);
- // CONCATENATED MODULE: ./src/utils/menu/aria-submenu.js
- var SubMenu = function SubMenu(parent, domNode) {
- this.domNode = domNode;
- this.parent = parent;
- this.subMenuItems = [];
- this.subIndex = 0;
- this.init();
- };
- SubMenu.prototype.init = function () {
- this.subMenuItems = this.domNode.querySelectorAll('li');
- this.addListeners();
- };
- SubMenu.prototype.gotoSubIndex = function (idx) {
- if (idx === this.subMenuItems.length) {
- idx = 0;
- } else if (idx < 0) {
- idx = this.subMenuItems.length - 1;
- }
- this.subMenuItems[idx].focus();
- this.subIndex = idx;
- };
- SubMenu.prototype.addListeners = function () {
- var _this = this;
- var keys = aria_utils.keys;
- var parentNode = this.parent.domNode;
- Array.prototype.forEach.call(this.subMenuItems, function (el) {
- el.addEventListener('keydown', function (event) {
- var prevDef = false;
- switch (event.keyCode) {
- case keys.down:
- _this.gotoSubIndex(_this.subIndex + 1);
- prevDef = true;
- break;
- case keys.up:
- _this.gotoSubIndex(_this.subIndex - 1);
- prevDef = true;
- break;
- case keys.tab:
- aria_utils.triggerEvent(parentNode, 'mouseleave');
- break;
- case keys.enter:
- case keys.space:
- prevDef = true;
- event.currentTarget.click();
- break;
- }
- if (prevDef) {
- event.preventDefault();
- event.stopPropagation();
- }
- return false;
- });
- });
- };
- /* harmony default export */ var aria_submenu = (SubMenu);
- // CONCATENATED MODULE: ./src/utils/menu/aria-menuitem.js
- var MenuItem = function MenuItem(domNode) {
- this.domNode = domNode;
- this.submenu = null;
- this.init();
- };
- MenuItem.prototype.init = function () {
- this.domNode.setAttribute('tabindex', '0');
- var menuChild = this.domNode.querySelector('.el-menu');
- if (menuChild) {
- this.submenu = new aria_submenu(this, menuChild);
- }
- this.addListeners();
- };
- MenuItem.prototype.addListeners = function () {
- var _this = this;
- var keys = aria_utils.keys;
- this.domNode.addEventListener('keydown', function (event) {
- var prevDef = false;
- switch (event.keyCode) {
- case keys.down:
- aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
- _this.submenu && _this.submenu.gotoSubIndex(0);
- prevDef = true;
- break;
- case keys.up:
- aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
- _this.submenu && _this.submenu.gotoSubIndex(_this.submenu.subMenuItems.length - 1);
- prevDef = true;
- break;
- case keys.tab:
- aria_utils.triggerEvent(event.currentTarget, 'mouseleave');
- break;
- case keys.enter:
- case keys.space:
- prevDef = true;
- event.currentTarget.click();
- break;
- }
- if (prevDef) {
- event.preventDefault();
- }
- });
- };
- /* harmony default export */ var aria_menuitem = (MenuItem);
- // CONCATENATED MODULE: ./src/utils/menu/aria-menubar.js
- var Menu = function Menu(domNode) {
- this.domNode = domNode;
- this.init();
- };
- Menu.prototype.init = function () {
- var menuChildren = this.domNode.childNodes;
- [].filter.call(menuChildren, function (child) {
- return child.nodeType === 1;
- }).forEach(function (child) {
- new aria_menuitem(child); // eslint-disable-line
- });
- };
- /* harmony default export */ var aria_menubar = (Menu);
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
- var dom_ = __webpack_require__(1);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var menuvue_type_script_lang_js_ = ({
- name: 'ElMenu',
- render: function render(h) {
- var component = h(
- 'ul',
- {
- attrs: {
- role: 'menubar'
- },
- key: +this.collapse,
- style: { backgroundColor: this.backgroundColor || '' },
- 'class': {
- 'el-menu--horizontal': this.mode === 'horizontal',
- 'el-menu--collapse': this.collapse,
- "el-menu": true
- }
- },
- [this.$slots.default]
- );
- if (this.collapseTransition) {
- return h('el-menu-collapse-transition', [component]);
- } else {
- return component;
- }
- },
- componentName: 'ElMenu',
- mixins: [emitter_default.a, migrating_default.a],
- provide: function provide() {
- return {
- rootMenu: this
- };
- },
- components: {
- 'el-menu-collapse-transition': {
- functional: true,
- render: function render(createElement, context) {
- var data = {
- props: {
- mode: 'out-in'
- },
- on: {
- beforeEnter: function beforeEnter(el) {
- el.style.opacity = 0.2;
- },
- enter: function enter(el) {
- Object(dom_["addClass"])(el, 'el-opacity-transition');
- el.style.opacity = 1;
- },
- afterEnter: function afterEnter(el) {
- Object(dom_["removeClass"])(el, 'el-opacity-transition');
- el.style.opacity = '';
- },
- beforeLeave: function beforeLeave(el) {
- if (!el.dataset) el.dataset = {};
- if (Object(dom_["hasClass"])(el, 'el-menu--collapse')) {
- Object(dom_["removeClass"])(el, 'el-menu--collapse');
- el.dataset.oldOverflow = el.style.overflow;
- el.dataset.scrollWidth = el.clientWidth;
- Object(dom_["addClass"])(el, 'el-menu--collapse');
- } else {
- Object(dom_["addClass"])(el, 'el-menu--collapse');
- el.dataset.oldOverflow = el.style.overflow;
- el.dataset.scrollWidth = el.clientWidth;
- Object(dom_["removeClass"])(el, 'el-menu--collapse');
- }
- el.style.width = el.scrollWidth + 'px';
- el.style.overflow = 'hidden';
- },
- leave: function leave(el) {
- Object(dom_["addClass"])(el, 'horizontal-collapse-transition');
- el.style.width = el.dataset.scrollWidth + 'px';
- }
- }
- };
- return createElement('transition', data, context.children);
- }
- }
- },
- props: {
- mode: {
- type: String,
- default: 'vertical'
- },
- defaultActive: {
- type: String,
- default: ''
- },
- defaultOpeneds: Array,
- uniqueOpened: Boolean,
- router: Boolean,
- menuTrigger: {
- type: String,
- default: 'hover'
- },
- collapse: Boolean,
- backgroundColor: String,
- textColor: String,
- activeTextColor: String,
- collapseTransition: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- activeIndex: this.defaultActive,
- openedMenus: this.defaultOpeneds && !this.collapse ? this.defaultOpeneds.slice(0) : [],
- items: {},
- submenus: {}
- };
- },
- computed: {
- hoverBackground: function hoverBackground() {
- return this.backgroundColor ? this.mixColor(this.backgroundColor, 0.2) : '';
- },
- isMenuPopup: function isMenuPopup() {
- return this.mode === 'horizontal' || this.mode === 'vertical' && this.collapse;
- }
- },
- watch: {
- defaultActive: function defaultActive(value) {
- if (!this.items[value]) {
- this.activeIndex = null;
- }
- this.updateActiveIndex(value);
- },
- defaultOpeneds: function defaultOpeneds(value) {
- if (!this.collapse) {
- this.openedMenus = value;
- }
- },
- collapse: function collapse(value) {
- if (value) this.openedMenus = [];
- this.broadcast('ElSubmenu', 'toggle-collapse', value);
- }
- },
- methods: {
- updateActiveIndex: function updateActiveIndex(val) {
- var item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
- if (item) {
- this.activeIndex = item.index;
- this.initOpenedMenu();
- } else {
- this.activeIndex = null;
- }
- },
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'theme': 'theme is removed.'
- }
- };
- },
- getColorChannels: function getColorChannels(color) {
- color = color.replace('#', '');
- if (/^[0-9a-fA-F]{3}$/.test(color)) {
- color = color.split('');
- for (var i = 2; i >= 0; i--) {
- color.splice(i, 0, color[i]);
- }
- color = color.join('');
- }
- if (/^[0-9a-fA-F]{6}$/.test(color)) {
- return {
- red: parseInt(color.slice(0, 2), 16),
- green: parseInt(color.slice(2, 4), 16),
- blue: parseInt(color.slice(4, 6), 16)
- };
- } else {
- return {
- red: 255,
- green: 255,
- blue: 255
- };
- }
- },
- mixColor: function mixColor(color, percent) {
- var _getColorChannels = this.getColorChannels(color),
- red = _getColorChannels.red,
- green = _getColorChannels.green,
- blue = _getColorChannels.blue;
- if (percent > 0) {
- // shade given color
- red *= 1 - percent;
- green *= 1 - percent;
- blue *= 1 - percent;
- } else {
- // tint given color
- red += (255 - red) * percent;
- green += (255 - green) * percent;
- blue += (255 - blue) * percent;
- }
- return 'rgb(' + Math.round(red) + ', ' + Math.round(green) + ', ' + Math.round(blue) + ')';
- },
- addItem: function addItem(item) {
- this.$set(this.items, item.index, item);
- },
- removeItem: function removeItem(item) {
- delete this.items[item.index];
- },
- addSubmenu: function addSubmenu(item) {
- this.$set(this.submenus, item.index, item);
- },
- removeSubmenu: function removeSubmenu(item) {
- delete this.submenus[item.index];
- },
- openMenu: function openMenu(index, indexPath) {
- var openedMenus = this.openedMenus;
- if (openedMenus.indexOf(index) !== -1) return;
- // 将不在该菜单路径下的其余菜单收起
- // collapse all menu that are not under current menu item
- if (this.uniqueOpened) {
- this.openedMenus = openedMenus.filter(function (index) {
- return indexPath.indexOf(index) !== -1;
- });
- }
- this.openedMenus.push(index);
- },
- closeMenu: function closeMenu(index) {
- var i = this.openedMenus.indexOf(index);
- if (i !== -1) {
- this.openedMenus.splice(i, 1);
- }
- },
- handleSubmenuClick: function handleSubmenuClick(submenu) {
- var index = submenu.index,
- indexPath = submenu.indexPath;
- var isOpened = this.openedMenus.indexOf(index) !== -1;
- if (isOpened) {
- this.closeMenu(index);
- this.$emit('close', index, indexPath);
- } else {
- this.openMenu(index, indexPath);
- this.$emit('open', index, indexPath);
- }
- },
- handleItemClick: function handleItemClick(item) {
- var _this = this;
- var index = item.index,
- indexPath = item.indexPath;
- var oldActiveIndex = this.activeIndex;
- var hasIndex = item.index !== null;
- if (hasIndex) {
- this.activeIndex = item.index;
- }
- this.$emit('select', index, indexPath, item);
- if (this.mode === 'horizontal' || this.collapse) {
- this.openedMenus = [];
- }
- if (this.router && hasIndex) {
- this.routeToItem(item, function (error) {
- _this.activeIndex = oldActiveIndex;
- if (error) {
- // vue-router 3.1.0+ push/replace cause NavigationDuplicated error
- // https://github.com/ElemeFE/element/issues/17044
- if (error.name === 'NavigationDuplicated') return;
- console.error(error);
- }
- });
- }
- },
- // 初始化展开菜单
- // initialize opened menu
- initOpenedMenu: function initOpenedMenu() {
- var _this2 = this;
- var index = this.activeIndex;
- var activeItem = this.items[index];
- if (!activeItem || this.mode === 'horizontal' || this.collapse) return;
- var indexPath = activeItem.indexPath;
- // 展开该菜单项的路径上所有子菜单
- // expand all submenus of the menu item
- indexPath.forEach(function (index) {
- var submenu = _this2.submenus[index];
- submenu && _this2.openMenu(index, submenu.indexPath);
- });
- },
- routeToItem: function routeToItem(item, onError) {
- var route = item.route || item.index;
- try {
- this.$router.push(route, function () {}, onError);
- } catch (e) {
- console.error(e);
- }
- },
- open: function open(index) {
- var _this3 = this;
- var indexPath = this.submenus[index.toString()].indexPath;
- indexPath.forEach(function (i) {
- return _this3.openMenu(i, indexPath);
- });
- },
- close: function close(index) {
- this.closeMenu(index);
- }
- },
- mounted: function mounted() {
- this.initOpenedMenu();
- this.$on('item-click', this.handleItemClick);
- this.$on('submenu-click', this.handleSubmenuClick);
- if (this.mode === 'horizontal') {
- new aria_menubar(this.$el); // eslint-disable-line
- }
- this.$watch('items', this.updateActiveIndex);
- }
- });
- // CONCATENATED MODULE: ./packages/menu/src/menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_menuvue_type_script_lang_js_ = (menuvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/menu/src/menu.vue
- var menu_render, menu_staticRenderFns
- /* normalize component */
- var menu_component = normalizeComponent(
- src_menuvue_type_script_lang_js_,
- menu_render,
- menu_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var menu_api; }
- menu_component.options.__file = "packages/menu/src/menu.vue"
- /* harmony default export */ var src_menu = (menu_component.exports);
- // CONCATENATED MODULE: ./packages/menu/index.js
- /* istanbul ignore next */
- src_menu.install = function (Vue) {
- Vue.component(src_menu.name, src_menu);
- };
- /* harmony default export */ var packages_menu = (src_menu);
- // EXTERNAL MODULE: external "element-ui/lib/transitions/collapse-transition"
- var collapse_transition_ = __webpack_require__(21);
- var collapse_transition_default = /*#__PURE__*/__webpack_require__.n(collapse_transition_);
- // CONCATENATED MODULE: ./packages/menu/src/menu-mixin.js
- /* harmony default export */ var menu_mixin = ({
- inject: ['rootMenu'],
- computed: {
- indexPath: function indexPath() {
- var path = [this.index];
- var parent = this.$parent;
- while (parent.$options.componentName !== 'ElMenu') {
- if (parent.index) {
- path.unshift(parent.index);
- }
- parent = parent.$parent;
- }
- return path;
- },
- parentMenu: function parentMenu() {
- var parent = this.$parent;
- while (parent && ['ElMenu', 'ElSubmenu'].indexOf(parent.$options.componentName) === -1) {
- parent = parent.$parent;
- }
- return parent;
- },
- paddingStyle: function paddingStyle() {
- if (this.rootMenu.mode !== 'vertical') return {};
- var padding = 20;
- var parent = this.$parent;
- if (this.rootMenu.collapse) {
- padding = 20;
- } else {
- while (parent && parent.$options.componentName !== 'ElMenu') {
- if (parent.$options.componentName === 'ElSubmenu') {
- padding += 20;
- }
- parent = parent.$parent;
- }
- }
- return { paddingLeft: padding + 'px' };
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/submenu.vue?vue&type=script&lang=js&
- var poperMixins = {
- props: {
- transformOrigin: {
- type: [Boolean, String],
- default: false
- },
- offset: vue_popper_default.a.props.offset,
- boundariesPadding: vue_popper_default.a.props.boundariesPadding,
- popperOptions: vue_popper_default.a.props.popperOptions
- },
- data: vue_popper_default.a.data,
- methods: vue_popper_default.a.methods,
- beforeDestroy: vue_popper_default.a.beforeDestroy,
- deactivated: vue_popper_default.a.deactivated
- };
- /* harmony default export */ var submenuvue_type_script_lang_js_ = ({
- name: 'ElSubmenu',
- componentName: 'ElSubmenu',
- mixins: [menu_mixin, emitter_default.a, poperMixins],
- components: { ElCollapseTransition: collapse_transition_default.a },
- props: {
- index: {
- type: String,
- required: true
- },
- showTimeout: {
- type: Number,
- default: 300
- },
- hideTimeout: {
- type: Number,
- default: 300
- },
- popperClass: String,
- disabled: Boolean,
- popperAppendToBody: {
- type: Boolean,
- default: undefined
- }
- },
- data: function data() {
- return {
- popperJS: null,
- timeout: null,
- items: {},
- submenus: {},
- mouseInChild: false
- };
- },
- watch: {
- opened: function opened(val) {
- var _this = this;
- if (this.isMenuPopup) {
- this.$nextTick(function (_) {
- _this.updatePopper();
- });
- }
- }
- },
- computed: {
- // popper option
- appendToBody: function appendToBody() {
- return this.popperAppendToBody === undefined ? this.isFirstLevel : this.popperAppendToBody;
- },
- menuTransitionName: function menuTransitionName() {
- return this.rootMenu.collapse ? 'el-zoom-in-left' : 'el-zoom-in-top';
- },
- opened: function opened() {
- return this.rootMenu.openedMenus.indexOf(this.index) > -1;
- },
- active: function active() {
- var isActive = false;
- var submenus = this.submenus;
- var items = this.items;
- Object.keys(items).forEach(function (index) {
- if (items[index].active) {
- isActive = true;
- }
- });
- Object.keys(submenus).forEach(function (index) {
- if (submenus[index].active) {
- isActive = true;
- }
- });
- return isActive;
- },
- hoverBackground: function hoverBackground() {
- return this.rootMenu.hoverBackground;
- },
- backgroundColor: function backgroundColor() {
- return this.rootMenu.backgroundColor || '';
- },
- activeTextColor: function activeTextColor() {
- return this.rootMenu.activeTextColor || '';
- },
- textColor: function textColor() {
- return this.rootMenu.textColor || '';
- },
- mode: function mode() {
- return this.rootMenu.mode;
- },
- isMenuPopup: function isMenuPopup() {
- return this.rootMenu.isMenuPopup;
- },
- titleStyle: function titleStyle() {
- if (this.mode !== 'horizontal') {
- return {
- color: this.textColor
- };
- }
- return {
- borderBottomColor: this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent',
- color: this.active ? this.activeTextColor : this.textColor
- };
- },
- isFirstLevel: function isFirstLevel() {
- var isFirstLevel = true;
- var parent = this.$parent;
- while (parent && parent !== this.rootMenu) {
- if (['ElSubmenu', 'ElMenuItemGroup'].indexOf(parent.$options.componentName) > -1) {
- isFirstLevel = false;
- break;
- } else {
- parent = parent.$parent;
- }
- }
- return isFirstLevel;
- }
- },
- methods: {
- handleCollapseToggle: function handleCollapseToggle(value) {
- if (value) {
- this.initPopper();
- } else {
- this.doDestroy();
- }
- },
- addItem: function addItem(item) {
- this.$set(this.items, item.index, item);
- },
- removeItem: function removeItem(item) {
- delete this.items[item.index];
- },
- addSubmenu: function addSubmenu(item) {
- this.$set(this.submenus, item.index, item);
- },
- removeSubmenu: function removeSubmenu(item) {
- delete this.submenus[item.index];
- },
- handleClick: function handleClick() {
- var rootMenu = this.rootMenu,
- disabled = this.disabled;
- if (rootMenu.menuTrigger === 'hover' && rootMenu.mode === 'horizontal' || rootMenu.collapse && rootMenu.mode === 'vertical' || disabled) {
- return;
- }
- this.dispatch('ElMenu', 'submenu-click', this);
- },
- handleMouseenter: function handleMouseenter(event) {
- var _this2 = this;
- var showTimeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.showTimeout;
- if (!('ActiveXObject' in window) && event.type === 'focus' && !event.relatedTarget) {
- return;
- }
- var rootMenu = this.rootMenu,
- disabled = this.disabled;
- if (rootMenu.menuTrigger === 'click' && rootMenu.mode === 'horizontal' || !rootMenu.collapse && rootMenu.mode === 'vertical' || disabled) {
- return;
- }
- this.dispatch('ElSubmenu', 'mouse-enter-child');
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this2.rootMenu.openMenu(_this2.index, _this2.indexPath);
- }, showTimeout);
- if (this.appendToBody) {
- this.$parent.$el.dispatchEvent(new MouseEvent('mouseenter'));
- }
- },
- handleMouseleave: function handleMouseleave() {
- var _this3 = this;
- var deepDispatch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- var rootMenu = this.rootMenu;
- if (rootMenu.menuTrigger === 'click' && rootMenu.mode === 'horizontal' || !rootMenu.collapse && rootMenu.mode === 'vertical') {
- return;
- }
- this.dispatch('ElSubmenu', 'mouse-leave-child');
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- !_this3.mouseInChild && _this3.rootMenu.closeMenu(_this3.index);
- }, this.hideTimeout);
- if (this.appendToBody && deepDispatch) {
- if (this.$parent.$options.name === 'ElSubmenu') {
- this.$parent.handleMouseleave(true);
- }
- }
- },
- handleTitleMouseenter: function handleTitleMouseenter() {
- if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
- var title = this.$refs['submenu-title'];
- title && (title.style.backgroundColor = this.rootMenu.hoverBackground);
- },
- handleTitleMouseleave: function handleTitleMouseleave() {
- if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
- var title = this.$refs['submenu-title'];
- title && (title.style.backgroundColor = this.rootMenu.backgroundColor || '');
- },
- updatePlacement: function updatePlacement() {
- this.currentPlacement = this.mode === 'horizontal' && this.isFirstLevel ? 'bottom-start' : 'right-start';
- },
- initPopper: function initPopper() {
- this.referenceElm = this.$el;
- this.popperElm = this.$refs.menu;
- this.updatePlacement();
- }
- },
- created: function created() {
- var _this4 = this;
- this.$on('toggle-collapse', this.handleCollapseToggle);
- this.$on('mouse-enter-child', function () {
- _this4.mouseInChild = true;
- clearTimeout(_this4.timeout);
- });
- this.$on('mouse-leave-child', function () {
- _this4.mouseInChild = false;
- clearTimeout(_this4.timeout);
- });
- },
- mounted: function mounted() {
- this.parentMenu.addSubmenu(this);
- this.rootMenu.addSubmenu(this);
- this.initPopper();
- },
- beforeDestroy: function beforeDestroy() {
- this.parentMenu.removeSubmenu(this);
- this.rootMenu.removeSubmenu(this);
- },
- render: function render(h) {
- var _this5 = this;
- var active = this.active,
- opened = this.opened,
- paddingStyle = this.paddingStyle,
- titleStyle = this.titleStyle,
- backgroundColor = this.backgroundColor,
- rootMenu = this.rootMenu,
- currentPlacement = this.currentPlacement,
- menuTransitionName = this.menuTransitionName,
- mode = this.mode,
- disabled = this.disabled,
- popperClass = this.popperClass,
- $slots = this.$slots,
- isFirstLevel = this.isFirstLevel;
- var popupMenu = h(
- 'transition',
- {
- attrs: { name: menuTransitionName }
- },
- [h(
- 'div',
- {
- ref: 'menu',
- directives: [{
- name: 'show',
- value: opened
- }],
- 'class': ['el-menu--' + mode, popperClass],
- on: {
- 'mouseenter': function mouseenter($event) {
- return _this5.handleMouseenter($event, 100);
- },
- 'mouseleave': function mouseleave() {
- return _this5.handleMouseleave(true);
- },
- 'focus': function focus($event) {
- return _this5.handleMouseenter($event, 100);
- }
- }
- },
- [h(
- 'ul',
- {
- attrs: {
- role: 'menu'
- },
- 'class': ['el-menu el-menu--popup', 'el-menu--popup-' + currentPlacement],
- style: { backgroundColor: rootMenu.backgroundColor || '' } },
- [$slots.default]
- )]
- )]
- );
- var inlineMenu = h('el-collapse-transition', [h(
- 'ul',
- {
- attrs: {
- role: 'menu'
- },
- 'class': 'el-menu el-menu--inline',
- directives: [{
- name: 'show',
- value: opened
- }],
- style: { backgroundColor: rootMenu.backgroundColor || '' } },
- [$slots.default]
- )]);
- var submenuTitleIcon = rootMenu.mode === 'horizontal' && isFirstLevel || rootMenu.mode === 'vertical' && !rootMenu.collapse ? 'el-icon-arrow-down' : 'el-icon-arrow-right';
- return h(
- 'li',
- {
- 'class': {
- 'el-submenu': true,
- 'is-active': active,
- 'is-opened': opened,
- 'is-disabled': disabled
- },
- attrs: { role: 'menuitem',
- 'aria-haspopup': 'true',
- 'aria-expanded': opened
- },
- on: {
- 'mouseenter': this.handleMouseenter,
- 'mouseleave': function mouseleave() {
- return _this5.handleMouseleave(false);
- },
- 'focus': this.handleMouseenter
- }
- },
- [h(
- 'div',
- {
- 'class': 'el-submenu__title',
- ref: 'submenu-title',
- on: {
- 'click': this.handleClick,
- 'mouseenter': this.handleTitleMouseenter,
- 'mouseleave': this.handleTitleMouseleave
- },
- style: [paddingStyle, titleStyle, { backgroundColor: backgroundColor }]
- },
- [$slots.title, h('i', { 'class': ['el-submenu__icon-arrow', submenuTitleIcon] })]
- ), this.isMenuPopup ? popupMenu : inlineMenu]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/menu/src/submenu.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_submenuvue_type_script_lang_js_ = (submenuvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/menu/src/submenu.vue
- var submenu_render, submenu_staticRenderFns
- /* normalize component */
- var submenu_component = normalizeComponent(
- src_submenuvue_type_script_lang_js_,
- submenu_render,
- submenu_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var submenu_api; }
- submenu_component.options.__file = "packages/menu/src/submenu.vue"
- /* harmony default export */ var submenu = (submenu_component.exports);
- // CONCATENATED MODULE: ./packages/submenu/index.js
- /* istanbul ignore next */
- submenu.install = function (Vue) {
- Vue.component(submenu.name, submenu);
- };
- /* harmony default export */ var packages_submenu = (submenu);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
- var menu_itemvue_type_template_id_2a5dbfea_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "li",
- {
- staticClass: "el-menu-item",
- class: {
- "is-active": _vm.active,
- "is-disabled": _vm.disabled
- },
- style: [
- _vm.paddingStyle,
- _vm.itemStyle,
- { backgroundColor: _vm.backgroundColor }
- ],
- attrs: { role: "menuitem", tabindex: "-1" },
- on: {
- click: _vm.handleClick,
- mouseenter: _vm.onMouseEnter,
- focus: _vm.onMouseEnter,
- blur: _vm.onMouseLeave,
- mouseleave: _vm.onMouseLeave
- }
- },
- [
- _vm.parentMenu.$options.componentName === "ElMenu" &&
- _vm.rootMenu.collapse &&
- _vm.$slots.title
- ? _c("el-tooltip", { attrs: { effect: "dark", placement: "right" } }, [
- _c(
- "div",
- { attrs: { slot: "content" }, slot: "content" },
- [_vm._t("title")],
- 2
- ),
- _c(
- "div",
- {
- staticStyle: {
- position: "absolute",
- left: "0",
- top: "0",
- height: "100%",
- width: "100%",
- display: "inline-block",
- "box-sizing": "border-box",
- padding: "0 20px"
- }
- },
- [_vm._t("default")],
- 2
- )
- ])
- : [_vm._t("default"), _vm._t("title")]
- ],
- 2
- )
- }
- var menu_itemvue_type_template_id_2a5dbfea_staticRenderFns = []
- menu_itemvue_type_template_id_2a5dbfea_render._withStripped = true
- // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
- // EXTERNAL MODULE: external "element-ui/lib/tooltip"
- var tooltip_ = __webpack_require__(26);
- var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var menu_itemvue_type_script_lang_js_ = ({
- name: 'ElMenuItem',
- componentName: 'ElMenuItem',
- mixins: [menu_mixin, emitter_default.a],
- components: { ElTooltip: tooltip_default.a },
- props: {
- index: {
- default: null,
- validator: function validator(val) {
- return typeof val === 'string' || val === null;
- }
- },
- route: [String, Object],
- disabled: Boolean
- },
- computed: {
- active: function active() {
- return this.index === this.rootMenu.activeIndex;
- },
- hoverBackground: function hoverBackground() {
- return this.rootMenu.hoverBackground;
- },
- backgroundColor: function backgroundColor() {
- return this.rootMenu.backgroundColor || '';
- },
- activeTextColor: function activeTextColor() {
- return this.rootMenu.activeTextColor || '';
- },
- textColor: function textColor() {
- return this.rootMenu.textColor || '';
- },
- mode: function mode() {
- return this.rootMenu.mode;
- },
- itemStyle: function itemStyle() {
- var style = {
- color: this.active ? this.activeTextColor : this.textColor
- };
- if (this.mode === 'horizontal' && !this.isNested) {
- style.borderBottomColor = this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent';
- }
- return style;
- },
- isNested: function isNested() {
- return this.parentMenu !== this.rootMenu;
- }
- },
- methods: {
- onMouseEnter: function onMouseEnter() {
- if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
- this.$el.style.backgroundColor = this.hoverBackground;
- },
- onMouseLeave: function onMouseLeave() {
- if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
- this.$el.style.backgroundColor = this.backgroundColor;
- },
- handleClick: function handleClick() {
- if (!this.disabled) {
- this.dispatch('ElMenu', 'item-click', this);
- this.$emit('click', this);
- }
- }
- },
- mounted: function mounted() {
- this.parentMenu.addItem(this);
- this.rootMenu.addItem(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.parentMenu.removeItem(this);
- this.rootMenu.removeItem(this);
- }
- });
- // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_menu_itemvue_type_script_lang_js_ = (menu_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue
- /* normalize component */
- var menu_item_component = normalizeComponent(
- src_menu_itemvue_type_script_lang_js_,
- menu_itemvue_type_template_id_2a5dbfea_render,
- menu_itemvue_type_template_id_2a5dbfea_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var menu_item_api; }
- menu_item_component.options.__file = "packages/menu/src/menu-item.vue"
- /* harmony default export */ var menu_item = (menu_item_component.exports);
- // CONCATENATED MODULE: ./packages/menu-item/index.js
- /* istanbul ignore next */
- menu_item.install = function (Vue) {
- Vue.component(menu_item.name, menu_item);
- };
- /* harmony default export */ var packages_menu_item = (menu_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
- var menu_item_groupvue_type_template_id_543b7bdc_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("li", { staticClass: "el-menu-item-group" }, [
- _c(
- "div",
- {
- staticClass: "el-menu-item-group__title",
- style: { paddingLeft: _vm.levelPadding + "px" }
- },
- [!_vm.$slots.title ? [_vm._v(_vm._s(_vm.title))] : _vm._t("title")],
- 2
- ),
- _c("ul", [_vm._t("default")], 2)
- ])
- }
- var menu_item_groupvue_type_template_id_543b7bdc_staticRenderFns = []
- menu_item_groupvue_type_template_id_543b7bdc_render._withStripped = true
- // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var menu_item_groupvue_type_script_lang_js_ = ({
- name: 'ElMenuItemGroup',
- componentName: 'ElMenuItemGroup',
- inject: ['rootMenu'],
- props: {
- title: {
- type: String
- }
- },
- data: function data() {
- return {
- paddingLeft: 20
- };
- },
- computed: {
- levelPadding: function levelPadding() {
- var padding = 20;
- var parent = this.$parent;
- if (this.rootMenu.collapse) return 20;
- while (parent && parent.$options.componentName !== 'ElMenu') {
- if (parent.$options.componentName === 'ElSubmenu') {
- padding += 20;
- }
- parent = parent.$parent;
- }
- return padding;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_menu_item_groupvue_type_script_lang_js_ = (menu_item_groupvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue
- /* normalize component */
- var menu_item_group_component = normalizeComponent(
- src_menu_item_groupvue_type_script_lang_js_,
- menu_item_groupvue_type_template_id_543b7bdc_render,
- menu_item_groupvue_type_template_id_543b7bdc_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var menu_item_group_api; }
- menu_item_group_component.options.__file = "packages/menu/src/menu-item-group.vue"
- /* harmony default export */ var menu_item_group = (menu_item_group_component.exports);
- // CONCATENATED MODULE: ./packages/menu-item-group/index.js
- /* istanbul ignore next */
- menu_item_group.install = function (Vue) {
- Vue.component(menu_item_group.name, menu_item_group);
- };
- /* harmony default export */ var packages_menu_item_group = (menu_item_group);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
- var inputvue_type_template_id_343dd774_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: [
- _vm.type === "textarea" ? "el-textarea" : "el-input",
- _vm.inputSize ? "el-input--" + _vm.inputSize : "",
- {
- "is-disabled": _vm.inputDisabled,
- "is-exceed": _vm.inputExceed,
- "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
- "el-input-group--append": _vm.$slots.append,
- "el-input-group--prepend": _vm.$slots.prepend,
- "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
- "el-input--suffix":
- _vm.$slots.suffix ||
- _vm.suffixIcon ||
- _vm.clearable ||
- _vm.showPassword
- }
- ],
- on: {
- mouseenter: function($event) {
- _vm.hovering = true
- },
- mouseleave: function($event) {
- _vm.hovering = false
- }
- }
- },
- [
- _vm.type !== "textarea"
- ? [
- _vm.$slots.prepend
- ? _c(
- "div",
- { staticClass: "el-input-group__prepend" },
- [_vm._t("prepend")],
- 2
- )
- : _vm._e(),
- _vm.type !== "textarea"
- ? _c(
- "input",
- _vm._b(
- {
- ref: "input",
- staticClass: "el-input__inner",
- attrs: {
- tabindex: _vm.tabindex,
- type: _vm.showPassword
- ? _vm.passwordVisible
- ? "text"
- : "password"
- : _vm.type,
- disabled: _vm.inputDisabled,
- readonly: _vm.readonly,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- "aria-label": _vm.label
- },
- on: {
- compositionstart: _vm.handleCompositionStart,
- compositionupdate: _vm.handleCompositionUpdate,
- compositionend: _vm.handleCompositionEnd,
- input: _vm.handleInput,
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- change: _vm.handleChange
- }
- },
- "input",
- _vm.$attrs,
- false
- )
- )
- : _vm._e(),
- _vm.$slots.prefix || _vm.prefixIcon
- ? _c(
- "span",
- { staticClass: "el-input__prefix" },
- [
- _vm._t("prefix"),
- _vm.prefixIcon
- ? _c("i", {
- staticClass: "el-input__icon",
- class: _vm.prefixIcon
- })
- : _vm._e()
- ],
- 2
- )
- : _vm._e(),
- _vm.getSuffixVisible()
- ? _c("span", { staticClass: "el-input__suffix" }, [
- _c(
- "span",
- { staticClass: "el-input__suffix-inner" },
- [
- !_vm.showClear ||
- !_vm.showPwdVisible ||
- !_vm.isWordLimitVisible
- ? [
- _vm._t("suffix"),
- _vm.suffixIcon
- ? _c("i", {
- staticClass: "el-input__icon",
- class: _vm.suffixIcon
- })
- : _vm._e()
- ]
- : _vm._e(),
- _vm.showClear
- ? _c("i", {
- staticClass:
- "el-input__icon el-icon-circle-close el-input__clear",
- on: {
- mousedown: function($event) {
- $event.preventDefault()
- },
- click: _vm.clear
- }
- })
- : _vm._e(),
- _vm.showPwdVisible
- ? _c("i", {
- staticClass:
- "el-input__icon el-icon-view el-input__clear",
- on: { click: _vm.handlePasswordVisible }
- })
- : _vm._e(),
- _vm.isWordLimitVisible
- ? _c("span", { staticClass: "el-input__count" }, [
- _c(
- "span",
- { staticClass: "el-input__count-inner" },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.textLength) +
- "/" +
- _vm._s(_vm.upperLimit) +
- "\n "
- )
- ]
- )
- ])
- : _vm._e()
- ],
- 2
- ),
- _vm.validateState
- ? _c("i", {
- staticClass: "el-input__icon",
- class: ["el-input__validateIcon", _vm.validateIcon]
- })
- : _vm._e()
- ])
- : _vm._e(),
- _vm.$slots.append
- ? _c(
- "div",
- { staticClass: "el-input-group__append" },
- [_vm._t("append")],
- 2
- )
- : _vm._e()
- ]
- : _c(
- "textarea",
- _vm._b(
- {
- ref: "textarea",
- staticClass: "el-textarea__inner",
- style: _vm.textareaStyle,
- attrs: {
- tabindex: _vm.tabindex,
- disabled: _vm.inputDisabled,
- readonly: _vm.readonly,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- "aria-label": _vm.label
- },
- on: {
- compositionstart: _vm.handleCompositionStart,
- compositionupdate: _vm.handleCompositionUpdate,
- compositionend: _vm.handleCompositionEnd,
- input: _vm.handleInput,
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- change: _vm.handleChange
- }
- },
- "textarea",
- _vm.$attrs,
- false
- )
- ),
- _vm.isWordLimitVisible && _vm.type === "textarea"
- ? _c("span", { staticClass: "el-input__count" }, [
- _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))
- ])
- : _vm._e()
- ],
- 2
- )
- }
- var inputvue_type_template_id_343dd774_staticRenderFns = []
- inputvue_type_template_id_343dd774_render._withStripped = true
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
- // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
- var hiddenTextarea = void 0;
- var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
- var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
- function calculateNodeStyling(targetElement) {
- var style = window.getComputedStyle(targetElement);
- var boxSizing = style.getPropertyValue('box-sizing');
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
- var contextStyle = CONTEXT_STYLE.map(function (name) {
- return name + ':' + style.getPropertyValue(name);
- }).join(';');
- return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
- }
- function calcTextareaHeight(targetElement) {
- var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
- if (!hiddenTextarea) {
- hiddenTextarea = document.createElement('textarea');
- document.body.appendChild(hiddenTextarea);
- }
- var _calculateNodeStyling = calculateNodeStyling(targetElement),
- paddingSize = _calculateNodeStyling.paddingSize,
- borderSize = _calculateNodeStyling.borderSize,
- boxSizing = _calculateNodeStyling.boxSizing,
- contextStyle = _calculateNodeStyling.contextStyle;
- hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
- var height = hiddenTextarea.scrollHeight;
- var result = {};
- if (boxSizing === 'border-box') {
- height = height + borderSize;
- } else if (boxSizing === 'content-box') {
- height = height - paddingSize;
- }
- hiddenTextarea.value = '';
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
- if (minRows !== null) {
- var minHeight = singleRowHeight * minRows;
- if (boxSizing === 'border-box') {
- minHeight = minHeight + paddingSize + borderSize;
- }
- height = Math.max(minHeight, height);
- result.minHeight = minHeight + 'px';
- }
- if (maxRows !== null) {
- var maxHeight = singleRowHeight * maxRows;
- if (boxSizing === 'border-box') {
- maxHeight = maxHeight + paddingSize + borderSize;
- }
- height = Math.min(maxHeight, height);
- }
- result.height = height + 'px';
- hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
- hiddenTextarea = null;
- return result;
- };
- // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
- var merge_ = __webpack_require__(7);
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
- var shared_ = __webpack_require__(19);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var inputvue_type_script_lang_js_ = ({
- name: 'ElInput',
- componentName: 'ElInput',
- mixins: [emitter_default.a, migrating_default.a],
- inheritAttrs: false,
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- data: function data() {
- return {
- textareaCalcStyle: {},
- hovering: false,
- focused: false,
- isComposing: false,
- passwordVisible: false
- };
- },
- props: {
- value: [String, Number],
- size: String,
- resize: String,
- form: String,
- disabled: Boolean,
- readonly: Boolean,
- type: {
- type: String,
- default: 'text'
- },
- autosize: {
- type: [Boolean, Object],
- default: false
- },
- autocomplete: {
- type: String,
- default: 'off'
- },
- /** @Deprecated in next major version */
- autoComplete: {
- type: String,
- validator: function validator(val) {
- false && false;
- return true;
- }
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- suffixIcon: String,
- prefixIcon: String,
- label: String,
- clearable: {
- type: Boolean,
- default: false
- },
- showPassword: {
- type: Boolean,
- default: false
- },
- showWordLimit: {
- type: Boolean,
- default: false
- },
- tabindex: String
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- validateState: function validateState() {
- return this.elFormItem ? this.elFormItem.validateState : '';
- },
- needStatusIcon: function needStatusIcon() {
- return this.elForm ? this.elForm.statusIcon : false;
- },
- validateIcon: function validateIcon() {
- return {
- validating: 'el-icon-loading',
- success: 'el-icon-circle-check',
- error: 'el-icon-circle-close'
- }[this.validateState];
- },
- textareaStyle: function textareaStyle() {
- return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
- },
- inputSize: function inputSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- inputDisabled: function inputDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- nativeInputValue: function nativeInputValue() {
- return this.value === null || this.value === undefined ? '' : String(this.value);
- },
- showClear: function showClear() {
- return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
- },
- showPwdVisible: function showPwdVisible() {
- return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
- },
- isWordLimitVisible: function isWordLimitVisible() {
- return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
- },
- upperLimit: function upperLimit() {
- return this.$attrs.maxlength;
- },
- textLength: function textLength() {
- if (typeof this.value === 'number') {
- return String(this.value).length;
- }
- return (this.value || '').length;
- },
- inputExceed: function inputExceed() {
- // show exceed style if length of initial value greater then maxlength
- return this.isWordLimitVisible && this.textLength > this.upperLimit;
- }
- },
- watch: {
- value: function value(val) {
- this.$nextTick(this.resizeTextarea);
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.change', [val]);
- }
- },
- // native input value is set explicitly
- // do not use v-model / :value in template
- // see: https://github.com/ElemeFE/element/issues/14521
- nativeInputValue: function nativeInputValue() {
- this.setNativeInputValue();
- },
- // when change between <input> and <textarea>,
- // update DOM dependent value and styles
- // https://github.com/ElemeFE/element/issues/14857
- type: function type() {
- var _this = this;
- this.$nextTick(function () {
- _this.setNativeInputValue();
- _this.resizeTextarea();
- _this.updateIconOffset();
- });
- }
- },
- methods: {
- focus: function focus() {
- this.getInput().focus();
- },
- blur: function blur() {
- this.getInput().blur();
- },
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
- 'on-icon-click': 'on-icon-click is removed.'
- },
- events: {
- 'click': 'click is removed.'
- }
- };
- },
- handleBlur: function handleBlur(event) {
- this.focused = false;
- this.$emit('blur', event);
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
- }
- },
- select: function select() {
- this.getInput().select();
- },
- resizeTextarea: function resizeTextarea() {
- if (this.$isServer) return;
- var autosize = this.autosize,
- type = this.type;
- if (type !== 'textarea') return;
- if (!autosize) {
- this.textareaCalcStyle = {
- minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
- };
- return;
- }
- var minRows = autosize.minRows;
- var maxRows = autosize.maxRows;
- this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
- },
- setNativeInputValue: function setNativeInputValue() {
- var input = this.getInput();
- if (!input) return;
- if (input.value === this.nativeInputValue) return;
- input.value = this.nativeInputValue;
- },
- handleFocus: function handleFocus(event) {
- this.focused = true;
- this.$emit('focus', event);
- },
- handleCompositionStart: function handleCompositionStart() {
- this.isComposing = true;
- },
- handleCompositionUpdate: function handleCompositionUpdate(event) {
- var text = event.target.value;
- var lastCharacter = text[text.length - 1] || '';
- this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
- },
- handleCompositionEnd: function handleCompositionEnd(event) {
- if (this.isComposing) {
- this.isComposing = false;
- this.handleInput(event);
- }
- },
- handleInput: function handleInput(event) {
- // should not emit input during composition
- // see: https://github.com/ElemeFE/element/issues/10516
- if (this.isComposing) return;
- // hack for https://github.com/ElemeFE/element/issues/8548
- // should remove the following line when we don't support IE
- if (event.target.value === this.nativeInputValue) return;
- this.$emit('input', event.target.value);
- // ensure native input value is controlled
- // see: https://github.com/ElemeFE/element/issues/12850
- this.$nextTick(this.setNativeInputValue);
- },
- handleChange: function handleChange(event) {
- this.$emit('change', event.target.value);
- },
- calcIconOffset: function calcIconOffset(place) {
- var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
- if (!elList.length) return;
- var el = null;
- for (var i = 0; i < elList.length; i++) {
- if (elList[i].parentNode === this.$el) {
- el = elList[i];
- break;
- }
- }
- if (!el) return;
- var pendantMap = {
- suffix: 'append',
- prefix: 'prepend'
- };
- var pendant = pendantMap[place];
- if (this.$slots[pendant]) {
- el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
- } else {
- el.removeAttribute('style');
- }
- },
- updateIconOffset: function updateIconOffset() {
- this.calcIconOffset('prefix');
- this.calcIconOffset('suffix');
- },
- clear: function clear() {
- this.$emit('input', '');
- this.$emit('change', '');
- this.$emit('clear');
- },
- handlePasswordVisible: function handlePasswordVisible() {
- this.passwordVisible = !this.passwordVisible;
- this.focus();
- },
- getInput: function getInput() {
- return this.$refs.input || this.$refs.textarea;
- },
- getSuffixVisible: function getSuffixVisible() {
- return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
- }
- },
- created: function created() {
- this.$on('inputSelect', this.select);
- },
- mounted: function mounted() {
- this.setNativeInputValue();
- this.resizeTextarea();
- this.updateIconOffset();
- },
- updated: function updated() {
- this.$nextTick(this.updateIconOffset);
- }
- });
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/input/src/input.vue
- /* normalize component */
- var input_component = normalizeComponent(
- src_inputvue_type_script_lang_js_,
- inputvue_type_template_id_343dd774_render,
- inputvue_type_template_id_343dd774_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var input_api; }
- input_component.options.__file = "packages/input/src/input.vue"
- /* harmony default export */ var src_input = (input_component.exports);
- // CONCATENATED MODULE: ./packages/input/index.js
- /* istanbul ignore next */
- src_input.install = function (Vue) {
- Vue.component(src_input.name, src_input);
- };
- /* harmony default export */ var packages_input = (src_input);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
- var input_numbervue_type_template_id_42f8cf66_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: [
- "el-input-number",
- _vm.inputNumberSize ? "el-input-number--" + _vm.inputNumberSize : "",
- { "is-disabled": _vm.inputNumberDisabled },
- { "is-without-controls": !_vm.controls },
- { "is-controls-right": _vm.controlsAtRight }
- ],
- on: {
- dragstart: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _vm.controls
- ? _c(
- "span",
- {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.decrease,
- expression: "decrease"
- }
- ],
- staticClass: "el-input-number__decrease",
- class: { "is-disabled": _vm.minDisabled },
- attrs: { role: "button" },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.decrease($event)
- }
- }
- },
- [
- _c("i", {
- class:
- "el-icon-" + (_vm.controlsAtRight ? "arrow-down" : "minus")
- })
- ]
- )
- : _vm._e(),
- _vm.controls
- ? _c(
- "span",
- {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.increase,
- expression: "increase"
- }
- ],
- staticClass: "el-input-number__increase",
- class: { "is-disabled": _vm.maxDisabled },
- attrs: { role: "button" },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.increase($event)
- }
- }
- },
- [
- _c("i", {
- class: "el-icon-" + (_vm.controlsAtRight ? "arrow-up" : "plus")
- })
- ]
- )
- : _vm._e(),
- _c("el-input", {
- ref: "input",
- attrs: {
- value: _vm.displayValue,
- placeholder: _vm.placeholder,
- disabled: _vm.inputNumberDisabled,
- size: _vm.inputNumberSize,
- max: _vm.max,
- min: _vm.min,
- name: _vm.name,
- label: _vm.label
- },
- on: {
- blur: _vm.handleBlur,
- focus: _vm.handleFocus,
- input: _vm.handleInput,
- change: _vm.handleInputChange
- },
- nativeOn: {
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.increase($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.decrease($event)
- }
- ]
- }
- })
- ],
- 1
- )
- }
- var input_numbervue_type_template_id_42f8cf66_staticRenderFns = []
- input_numbervue_type_template_id_42f8cf66_render._withStripped = true
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
- // CONCATENATED MODULE: ./src/directives/repeat-click.js
- /* harmony default export */ var repeat_click = ({
- bind: function bind(el, binding, vnode) {
- var interval = null;
- var startTime = void 0;
- var handler = function handler() {
- return vnode.context[binding.expression].apply();
- };
- var clear = function clear() {
- if (Date.now() - startTime < 100) {
- handler();
- }
- clearInterval(interval);
- interval = null;
- };
- Object(dom_["on"])(el, 'mousedown', function (e) {
- if (e.button !== 0) return;
- startTime = Date.now();
- Object(dom_["once"])(document, 'mouseup', clear);
- clearInterval(interval);
- interval = setInterval(handler, 100);
- });
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var input_numbervue_type_script_lang_js_ = ({
- name: 'ElInputNumber',
- mixins: [focus_default()('input')],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- directives: {
- repeatClick: repeat_click
- },
- components: {
- ElInput: input_default.a
- },
- props: {
- step: {
- type: Number,
- default: 1
- },
- stepStrictly: {
- type: Boolean,
- default: false
- },
- max: {
- type: Number,
- default: Infinity
- },
- min: {
- type: Number,
- default: -Infinity
- },
- value: {},
- disabled: Boolean,
- size: String,
- controls: {
- type: Boolean,
- default: true
- },
- controlsPosition: {
- type: String,
- default: ''
- },
- name: String,
- label: String,
- placeholder: String,
- precision: {
- type: Number,
- validator: function validator(val) {
- return val >= 0 && val === parseInt(val, 10);
- }
- }
- },
- data: function data() {
- return {
- currentValue: 0,
- userInput: null
- };
- },
- watch: {
- value: {
- immediate: true,
- handler: function handler(value) {
- var newVal = value === undefined ? value : Number(value);
- if (newVal !== undefined) {
- if (isNaN(newVal)) {
- return;
- }
- if (this.stepStrictly) {
- var stepPrecision = this.getPrecision(this.step);
- var precisionFactor = Math.pow(10, stepPrecision);
- newVal = Math.round(newVal / this.step) * precisionFactor * this.step / precisionFactor;
- }
- if (this.precision !== undefined) {
- newVal = this.toPrecision(newVal, this.precision);
- }
- }
- if (newVal >= this.max) newVal = this.max;
- if (newVal <= this.min) newVal = this.min;
- this.currentValue = newVal;
- this.userInput = null;
- this.$emit('input', newVal);
- }
- }
- },
- computed: {
- minDisabled: function minDisabled() {
- return this._decrease(this.value, this.step) < this.min;
- },
- maxDisabled: function maxDisabled() {
- return this._increase(this.value, this.step) > this.max;
- },
- numPrecision: function numPrecision() {
- var value = this.value,
- step = this.step,
- getPrecision = this.getPrecision,
- precision = this.precision;
- var stepPrecision = getPrecision(step);
- if (precision !== undefined) {
- if (stepPrecision > precision) {
- console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');
- }
- return precision;
- } else {
- return Math.max(getPrecision(value), stepPrecision);
- }
- },
- controlsAtRight: function controlsAtRight() {
- return this.controls && this.controlsPosition === 'right';
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- inputNumberSize: function inputNumberSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- inputNumberDisabled: function inputNumberDisabled() {
- return this.disabled || !!(this.elForm || {}).disabled;
- },
- displayValue: function displayValue() {
- if (this.userInput !== null) {
- return this.userInput;
- }
- var currentValue = this.currentValue;
- if (typeof currentValue === 'number') {
- if (this.stepStrictly) {
- var stepPrecision = this.getPrecision(this.step);
- var precisionFactor = Math.pow(10, stepPrecision);
- currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;
- }
- if (this.precision !== undefined) {
- currentValue = currentValue.toFixed(this.precision);
- }
- }
- return currentValue;
- }
- },
- methods: {
- toPrecision: function toPrecision(num, precision) {
- if (precision === undefined) precision = this.numPrecision;
- return parseFloat(Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision));
- },
- getPrecision: function getPrecision(value) {
- if (value === undefined) return 0;
- var valueString = value.toString();
- var dotPosition = valueString.indexOf('.');
- var precision = 0;
- if (dotPosition !== -1) {
- precision = valueString.length - dotPosition - 1;
- }
- return precision;
- },
- _increase: function _increase(val, step) {
- if (typeof val !== 'number' && val !== undefined) return this.currentValue;
- var precisionFactor = Math.pow(10, this.numPrecision);
- // Solve the accuracy problem of JS decimal calculation by converting the value to integer.
- return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);
- },
- _decrease: function _decrease(val, step) {
- if (typeof val !== 'number' && val !== undefined) return this.currentValue;
- var precisionFactor = Math.pow(10, this.numPrecision);
- return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);
- },
- increase: function increase() {
- if (this.inputNumberDisabled || this.maxDisabled) return;
- var value = this.value || 0;
- var newVal = this._increase(value, this.step);
- this.setCurrentValue(newVal);
- },
- decrease: function decrease() {
- if (this.inputNumberDisabled || this.minDisabled) return;
- var value = this.value || 0;
- var newVal = this._decrease(value, this.step);
- this.setCurrentValue(newVal);
- },
- handleBlur: function handleBlur(event) {
- this.$emit('blur', event);
- },
- handleFocus: function handleFocus(event) {
- this.$emit('focus', event);
- },
- setCurrentValue: function setCurrentValue(newVal) {
- var oldVal = this.currentValue;
- if (typeof newVal === 'number' && this.precision !== undefined) {
- newVal = this.toPrecision(newVal, this.precision);
- }
- if (newVal >= this.max) newVal = this.max;
- if (newVal <= this.min) newVal = this.min;
- if (oldVal === newVal) return;
- this.userInput = null;
- this.$emit('input', newVal);
- this.$emit('change', newVal, oldVal);
- this.currentValue = newVal;
- },
- handleInput: function handleInput(value) {
- this.userInput = value;
- },
- handleInputChange: function handleInputChange(value) {
- var newVal = value === '' ? undefined : Number(value);
- if (!isNaN(newVal) || value === '') {
- this.setCurrentValue(newVal);
- }
- this.userInput = null;
- },
- select: function select() {
- this.$refs.input.select();
- }
- },
- mounted: function mounted() {
- var innerInput = this.$refs.input.$refs.input;
- innerInput.setAttribute('role', 'spinbutton');
- innerInput.setAttribute('aria-valuemax', this.max);
- innerInput.setAttribute('aria-valuemin', this.min);
- innerInput.setAttribute('aria-valuenow', this.currentValue);
- innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
- },
- updated: function updated() {
- if (!this.$refs || !this.$refs.input) return;
- var innerInput = this.$refs.input.$refs.input;
- innerInput.setAttribute('aria-valuenow', this.currentValue);
- }
- });
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_input_numbervue_type_script_lang_js_ = (input_numbervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
- /* normalize component */
- var input_number_component = normalizeComponent(
- src_input_numbervue_type_script_lang_js_,
- input_numbervue_type_template_id_42f8cf66_render,
- input_numbervue_type_template_id_42f8cf66_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var input_number_api; }
- input_number_component.options.__file = "packages/input-number/src/input-number.vue"
- /* harmony default export */ var input_number = (input_number_component.exports);
- // CONCATENATED MODULE: ./packages/input-number/index.js
- /* istanbul ignore next */
- input_number.install = function (Vue) {
- Vue.component(input_number.name, input_number);
- };
- /* harmony default export */ var packages_input_number = (input_number);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
- var radiovue_type_template_id_69cd6268_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-radio",
- class: [
- _vm.border && _vm.radioSize ? "el-radio--" + _vm.radioSize : "",
- { "is-disabled": _vm.isDisabled },
- { "is-focus": _vm.focus },
- { "is-bordered": _vm.border },
- { "is-checked": _vm.model === _vm.label }
- ],
- attrs: {
- role: "radio",
- "aria-checked": _vm.model === _vm.label,
- "aria-disabled": _vm.isDisabled,
- tabindex: _vm.tabIndex
- },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.model = _vm.isDisabled ? _vm.model : _vm.label
- }
- }
- },
- [
- _c(
- "span",
- {
- staticClass: "el-radio__input",
- class: {
- "is-disabled": _vm.isDisabled,
- "is-checked": _vm.model === _vm.label
- }
- },
- [
- _c("span", { staticClass: "el-radio__inner" }),
- _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- ref: "radio",
- staticClass: "el-radio__original",
- attrs: {
- type: "radio",
- "aria-hidden": "true",
- name: _vm.name,
- disabled: _vm.isDisabled,
- tabindex: "-1"
- },
- domProps: {
- value: _vm.label,
- checked: _vm._q(_vm.model, _vm.label)
- },
- on: {
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- },
- change: [
- function($event) {
- _vm.model = _vm.label
- },
- _vm.handleChange
- ]
- }
- })
- ]
- ),
- _c(
- "span",
- {
- staticClass: "el-radio__label",
- on: {
- keydown: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [
- _vm._t("default"),
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
- ],
- 2
- )
- ]
- )
- }
- var radiovue_type_template_id_69cd6268_staticRenderFns = []
- radiovue_type_template_id_69cd6268_render._withStripped = true
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var radiovue_type_script_lang_js_ = ({
- name: 'ElRadio',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- componentName: 'ElRadio',
- props: {
- value: {},
- label: {},
- disabled: Boolean,
- name: String,
- border: Boolean,
- size: String
- },
- data: function data() {
- return {
- focus: false
- };
- },
- computed: {
- isGroup: function isGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElRadioGroup') {
- parent = parent.$parent;
- } else {
- this._radioGroup = parent;
- return true;
- }
- }
- return false;
- },
- model: {
- get: function get() {
- return this.isGroup ? this._radioGroup.value : this.value;
- },
- set: function set(val) {
- if (this.isGroup) {
- this.dispatch('ElRadioGroup', 'input', [val]);
- } else {
- this.$emit('input', val);
- }
- this.$refs.radio && (this.$refs.radio.checked = this.model === this.label);
- }
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- radioSize: function radioSize() {
- var temRadioSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- return this.isGroup ? this._radioGroup.radioGroupSize || temRadioSize : temRadioSize;
- },
- isDisabled: function isDisabled() {
- return this.isGroup ? this._radioGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
- },
- tabIndex: function tabIndex() {
- return this.isDisabled || this.isGroup && this.model !== this.label ? -1 : 0;
- }
- },
- methods: {
- handleChange: function handleChange() {
- var _this = this;
- this.$nextTick(function () {
- _this.$emit('change', _this.model);
- _this.isGroup && _this.dispatch('ElRadioGroup', 'handleChange', _this.model);
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue
- /* normalize component */
- var radio_component = normalizeComponent(
- src_radiovue_type_script_lang_js_,
- radiovue_type_template_id_69cd6268_render,
- radiovue_type_template_id_69cd6268_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var radio_api; }
- radio_component.options.__file = "packages/radio/src/radio.vue"
- /* harmony default export */ var src_radio = (radio_component.exports);
- // CONCATENATED MODULE: ./packages/radio/index.js
- /* istanbul ignore next */
- src_radio.install = function (Vue) {
- Vue.component(src_radio.name, src_radio);
- };
- /* harmony default export */ var packages_radio = (src_radio);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=template&id=818a704c&
- var radio_groupvue_type_template_id_818a704c_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- _vm._elTag,
- {
- tag: "component",
- staticClass: "el-radio-group",
- attrs: { role: "radiogroup" },
- on: { keydown: _vm.handleKeydown }
- },
- [_vm._t("default")],
- 2
- )
- }
- var radio_groupvue_type_template_id_818a704c_staticRenderFns = []
- radio_groupvue_type_template_id_818a704c_render._withStripped = true
- // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=template&id=818a704c&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var keyCode = Object.freeze({
- LEFT: 37,
- UP: 38,
- RIGHT: 39,
- DOWN: 40
- });
- /* harmony default export */ var radio_groupvue_type_script_lang_js_ = ({
- name: 'ElRadioGroup',
- componentName: 'ElRadioGroup',
- inject: {
- elFormItem: {
- default: ''
- }
- },
- mixins: [emitter_default.a],
- props: {
- value: {},
- size: String,
- fill: String,
- textColor: String,
- disabled: Boolean
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- _elTag: function _elTag() {
- return (this.$vnode.data || {}).tag || 'div';
- },
- radioGroupSize: function radioGroupSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- }
- },
- created: function created() {
- var _this = this;
- this.$on('handleChange', function (value) {
- _this.$emit('change', value);
- });
- },
- mounted: function mounted() {
- // 当radioGroup没有默认选项时,第一个可以选中Tab导航
- var radios = this.$el.querySelectorAll('[type=radio]');
- var firstLabel = this.$el.querySelectorAll('[role=radio]')[0];
- if (![].some.call(radios, function (radio) {
- return radio.checked;
- }) && firstLabel) {
- firstLabel.tabIndex = 0;
- }
- },
- methods: {
- handleKeydown: function handleKeydown(e) {
- // 左右上下按键 可以在radio组内切换不同选项
- var target = e.target;
- var className = target.nodeName === 'INPUT' ? '[type=radio]' : '[role=radio]';
- var radios = this.$el.querySelectorAll(className);
- var length = radios.length;
- var index = [].indexOf.call(radios, target);
- var roleRadios = this.$el.querySelectorAll('[role=radio]');
- switch (e.keyCode) {
- case keyCode.LEFT:
- case keyCode.UP:
- e.stopPropagation();
- e.preventDefault();
- if (index === 0) {
- roleRadios[length - 1].click();
- roleRadios[length - 1].focus();
- } else {
- roleRadios[index - 1].click();
- roleRadios[index - 1].focus();
- }
- break;
- case keyCode.RIGHT:
- case keyCode.DOWN:
- if (index === length - 1) {
- e.stopPropagation();
- e.preventDefault();
- roleRadios[0].click();
- roleRadios[0].focus();
- } else {
- roleRadios[index + 1].click();
- roleRadios[index + 1].focus();
- }
- break;
- default:
- break;
- }
- }
- },
- watch: {
- value: function value(_value) {
- this.dispatch('ElFormItem', 'el.form.change', [this.value]);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue
- /* normalize component */
- var radio_group_component = normalizeComponent(
- src_radio_groupvue_type_script_lang_js_,
- radio_groupvue_type_template_id_818a704c_render,
- radio_groupvue_type_template_id_818a704c_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var radio_group_api; }
- radio_group_component.options.__file = "packages/radio/src/radio-group.vue"
- /* harmony default export */ var radio_group = (radio_group_component.exports);
- // CONCATENATED MODULE: ./packages/radio-group/index.js
- /* istanbul ignore next */
- radio_group.install = function (Vue) {
- Vue.component(radio_group.name, radio_group);
- };
- /* harmony default export */ var packages_radio_group = (radio_group);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=template&id=18a77a32&
- var radio_buttonvue_type_template_id_18a77a32_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-radio-button",
- class: [
- _vm.size ? "el-radio-button--" + _vm.size : "",
- { "is-active": _vm.value === _vm.label },
- { "is-disabled": _vm.isDisabled },
- { "is-focus": _vm.focus }
- ],
- attrs: {
- role: "radio",
- "aria-checked": _vm.value === _vm.label,
- "aria-disabled": _vm.isDisabled,
- tabindex: _vm.tabIndex
- },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.value = _vm.isDisabled ? _vm.value : _vm.label
- }
- }
- },
- [
- _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.value,
- expression: "value"
- }
- ],
- staticClass: "el-radio-button__orig-radio",
- attrs: {
- type: "radio",
- name: _vm.name,
- disabled: _vm.isDisabled,
- tabindex: "-1"
- },
- domProps: { value: _vm.label, checked: _vm._q(_vm.value, _vm.label) },
- on: {
- change: [
- function($event) {
- _vm.value = _vm.label
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- }),
- _c(
- "span",
- {
- staticClass: "el-radio-button__inner",
- style: _vm.value === _vm.label ? _vm.activeStyle : null,
- on: {
- keydown: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [
- _vm._t("default"),
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
- ],
- 2
- )
- ]
- )
- }
- var radio_buttonvue_type_template_id_18a77a32_staticRenderFns = []
- radio_buttonvue_type_template_id_18a77a32_render._withStripped = true
- // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=template&id=18a77a32&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var radio_buttonvue_type_script_lang_js_ = ({
- name: 'ElRadioButton',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- props: {
- label: {},
- disabled: Boolean,
- name: String
- },
- data: function data() {
- return {
- focus: false
- };
- },
- computed: {
- value: {
- get: function get() {
- return this._radioGroup.value;
- },
- set: function set(value) {
- this._radioGroup.$emit('input', value);
- }
- },
- _radioGroup: function _radioGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElRadioGroup') {
- parent = parent.$parent;
- } else {
- return parent;
- }
- }
- return false;
- },
- activeStyle: function activeStyle() {
- return {
- backgroundColor: this._radioGroup.fill || '',
- borderColor: this._radioGroup.fill || '',
- boxShadow: this._radioGroup.fill ? '-1px 0 0 0 ' + this._radioGroup.fill : '',
- color: this._radioGroup.textColor || ''
- };
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- size: function size() {
- return this._radioGroup.radioGroupSize || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- isDisabled: function isDisabled() {
- return this.disabled || this._radioGroup.disabled || (this.elForm || {}).disabled;
- },
- tabIndex: function tabIndex() {
- return this.isDisabled || this._radioGroup && this.value !== this.label ? -1 : 0;
- }
- },
- methods: {
- handleChange: function handleChange() {
- var _this = this;
- this.$nextTick(function () {
- _this.dispatch('ElRadioGroup', 'handleChange', _this.value);
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_radio_buttonvue_type_script_lang_js_ = (radio_buttonvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue
- /* normalize component */
- var radio_button_component = normalizeComponent(
- src_radio_buttonvue_type_script_lang_js_,
- radio_buttonvue_type_template_id_18a77a32_render,
- radio_buttonvue_type_template_id_18a77a32_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var radio_button_api; }
- radio_button_component.options.__file = "packages/radio/src/radio-button.vue"
- /* harmony default export */ var radio_button = (radio_button_component.exports);
- // CONCATENATED MODULE: ./packages/radio-button/index.js
- /* istanbul ignore next */
- radio_button.install = function (Vue) {
- Vue.component(radio_button.name, radio_button);
- };
- /* harmony default export */ var packages_radio_button = (radio_button);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
- var checkboxvue_type_template_id_d0387074_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-checkbox",
- class: [
- _vm.border && _vm.checkboxSize
- ? "el-checkbox--" + _vm.checkboxSize
- : "",
- { "is-disabled": _vm.isDisabled },
- { "is-bordered": _vm.border },
- { "is-checked": _vm.isChecked }
- ],
- attrs: { id: _vm.id }
- },
- [
- _c(
- "span",
- {
- staticClass: "el-checkbox__input",
- class: {
- "is-disabled": _vm.isDisabled,
- "is-checked": _vm.isChecked,
- "is-indeterminate": _vm.indeterminate,
- "is-focus": _vm.focus
- },
- attrs: {
- tabindex: _vm.indeterminate ? 0 : false,
- role: _vm.indeterminate ? "checkbox" : false,
- "aria-checked": _vm.indeterminate ? "mixed" : false
- }
- },
- [
- _c("span", { staticClass: "el-checkbox__inner" }),
- _vm.trueLabel || _vm.falseLabel
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox__original",
- attrs: {
- type: "checkbox",
- "aria-hidden": _vm.indeterminate ? "true" : "false",
- name: _vm.name,
- disabled: _vm.isDisabled,
- "true-value": _vm.trueLabel,
- "false-value": _vm.falseLabel
- },
- domProps: {
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, null) > -1
- : _vm._q(_vm.model, _vm.trueLabel)
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
- if (Array.isArray($$a)) {
- var $$v = null,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- })
- : _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox__original",
- attrs: {
- type: "checkbox",
- "aria-hidden": _vm.indeterminate ? "true" : "false",
- disabled: _vm.isDisabled,
- name: _vm.name
- },
- domProps: {
- value: _vm.label,
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, _vm.label) > -1
- : _vm.model
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? true : false
- if (Array.isArray($$a)) {
- var $$v = _vm.label,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- })
- ]
- ),
- _vm.$slots.default || _vm.label
- ? _c(
- "span",
- { staticClass: "el-checkbox__label" },
- [
- _vm._t("default"),
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
- ],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var checkboxvue_type_template_id_d0387074_staticRenderFns = []
- checkboxvue_type_template_id_d0387074_render._withStripped = true
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
- name: 'ElCheckbox',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- componentName: 'ElCheckbox',
- data: function data() {
- return {
- selfModel: false,
- focus: false,
- isLimitExceeded: false
- };
- },
- computed: {
- model: {
- get: function get() {
- return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
- },
- set: function set(val) {
- if (this.isGroup) {
- this.isLimitExceeded = false;
- this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
- this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
- this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
- } else {
- this.$emit('input', val);
- this.selfModel = val;
- }
- }
- },
- isChecked: function isChecked() {
- if ({}.toString.call(this.model) === '[object Boolean]') {
- return this.model;
- } else if (Array.isArray(this.model)) {
- return this.model.indexOf(this.label) > -1;
- } else if (this.model !== null && this.model !== undefined) {
- return this.model === this.trueLabel;
- }
- },
- isGroup: function isGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElCheckboxGroup') {
- parent = parent.$parent;
- } else {
- this._checkboxGroup = parent;
- return true;
- }
- }
- return false;
- },
- store: function store() {
- return this._checkboxGroup ? this._checkboxGroup.value : this.value;
- },
- /* used to make the isDisabled judgment under max/min props */
- isLimitDisabled: function isLimitDisabled() {
- var _checkboxGroup = this._checkboxGroup,
- max = _checkboxGroup.max,
- min = _checkboxGroup.min;
- return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
- },
- isDisabled: function isDisabled() {
- return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- checkboxSize: function checkboxSize() {
- var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
- }
- },
- props: {
- value: {},
- label: {},
- indeterminate: Boolean,
- disabled: Boolean,
- checked: Boolean,
- name: String,
- trueLabel: [String, Number],
- falseLabel: [String, Number],
- id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
- controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
- border: Boolean,
- size: String
- },
- methods: {
- addToStore: function addToStore() {
- if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
- this.model.push(this.label);
- } else {
- this.model = this.trueLabel || true;
- }
- },
- handleChange: function handleChange(ev) {
- var _this = this;
- if (this.isLimitExceeded) return;
- var value = void 0;
- if (ev.target.checked) {
- value = this.trueLabel === undefined ? true : this.trueLabel;
- } else {
- value = this.falseLabel === undefined ? false : this.falseLabel;
- }
- this.$emit('change', value, ev);
- this.$nextTick(function () {
- if (_this.isGroup) {
- _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
- }
- });
- }
- },
- created: function created() {
- this.checked && this.addToStore();
- },
- mounted: function mounted() {
- // 为indeterminate元素 添加aria-controls 属性
- if (this.indeterminate) {
- this.$el.setAttribute('aria-controls', this.controls);
- }
- },
- watch: {
- value: function value(_value) {
- this.dispatch('ElFormItem', 'el.form.change', _value);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
- /* normalize component */
- var checkbox_component = normalizeComponent(
- src_checkboxvue_type_script_lang_js_,
- checkboxvue_type_template_id_d0387074_render,
- checkboxvue_type_template_id_d0387074_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var checkbox_api; }
- checkbox_component.options.__file = "packages/checkbox/src/checkbox.vue"
- /* harmony default export */ var src_checkbox = (checkbox_component.exports);
- // CONCATENATED MODULE: ./packages/checkbox/index.js
- /* istanbul ignore next */
- src_checkbox.install = function (Vue) {
- Vue.component(src_checkbox.name, src_checkbox);
- };
- /* harmony default export */ var packages_checkbox = (src_checkbox);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=478e906e&
- var checkbox_buttonvue_type_template_id_478e906e_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-checkbox-button",
- class: [
- _vm.size ? "el-checkbox-button--" + _vm.size : "",
- { "is-disabled": _vm.isDisabled },
- { "is-checked": _vm.isChecked },
- { "is-focus": _vm.focus }
- ],
- attrs: {
- role: "checkbox",
- "aria-checked": _vm.isChecked,
- "aria-disabled": _vm.isDisabled
- }
- },
- [
- _vm.trueLabel || _vm.falseLabel
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox-button__original",
- attrs: {
- type: "checkbox",
- name: _vm.name,
- disabled: _vm.isDisabled,
- "true-value": _vm.trueLabel,
- "false-value": _vm.falseLabel
- },
- domProps: {
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, null) > -1
- : _vm._q(_vm.model, _vm.trueLabel)
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
- if (Array.isArray($$a)) {
- var $$v = null,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- })
- : _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- staticClass: "el-checkbox-button__original",
- attrs: {
- type: "checkbox",
- name: _vm.name,
- disabled: _vm.isDisabled
- },
- domProps: {
- value: _vm.label,
- checked: Array.isArray(_vm.model)
- ? _vm._i(_vm.model, _vm.label) > -1
- : _vm.model
- },
- on: {
- change: [
- function($event) {
- var $$a = _vm.model,
- $$el = $event.target,
- $$c = $$el.checked ? true : false
- if (Array.isArray($$a)) {
- var $$v = _vm.label,
- $$i = _vm._i($$a, $$v)
- if ($$el.checked) {
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
- } else {
- $$i > -1 &&
- (_vm.model = $$a
- .slice(0, $$i)
- .concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.model = $$c
- }
- },
- _vm.handleChange
- ],
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- }
- }
- }),
- _vm.$slots.default || _vm.label
- ? _c(
- "span",
- {
- staticClass: "el-checkbox-button__inner",
- style: _vm.isChecked ? _vm.activeStyle : null
- },
- [_vm._t("default", [_vm._v(_vm._s(_vm.label))])],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var checkbox_buttonvue_type_template_id_478e906e_staticRenderFns = []
- checkbox_buttonvue_type_template_id_478e906e_render._withStripped = true
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=478e906e&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var checkbox_buttonvue_type_script_lang_js_ = ({
- name: 'ElCheckboxButton',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- data: function data() {
- return {
- selfModel: false,
- focus: false,
- isLimitExceeded: false
- };
- },
- props: {
- value: {},
- label: {},
- disabled: Boolean,
- checked: Boolean,
- name: String,
- trueLabel: [String, Number],
- falseLabel: [String, Number]
- },
- computed: {
- model: {
- get: function get() {
- return this._checkboxGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
- },
- set: function set(val) {
- if (this._checkboxGroup) {
- this.isLimitExceeded = false;
- this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
- this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
- this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
- } else if (this.value !== undefined) {
- this.$emit('input', val);
- } else {
- this.selfModel = val;
- }
- }
- },
- isChecked: function isChecked() {
- if ({}.toString.call(this.model) === '[object Boolean]') {
- return this.model;
- } else if (Array.isArray(this.model)) {
- return this.model.indexOf(this.label) > -1;
- } else if (this.model !== null && this.model !== undefined) {
- return this.model === this.trueLabel;
- }
- },
- _checkboxGroup: function _checkboxGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElCheckboxGroup') {
- parent = parent.$parent;
- } else {
- return parent;
- }
- }
- return false;
- },
- store: function store() {
- return this._checkboxGroup ? this._checkboxGroup.value : this.value;
- },
- activeStyle: function activeStyle() {
- return {
- backgroundColor: this._checkboxGroup.fill || '',
- borderColor: this._checkboxGroup.fill || '',
- color: this._checkboxGroup.textColor || '',
- 'box-shadow': '-1px 0 0 0 ' + this._checkboxGroup.fill
- };
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- size: function size() {
- return this._checkboxGroup.checkboxGroupSize || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- /* used to make the isDisabled judgment under max/min props */
- isLimitDisabled: function isLimitDisabled() {
- var _checkboxGroup2 = this._checkboxGroup,
- max = _checkboxGroup2.max,
- min = _checkboxGroup2.min;
- return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
- },
- isDisabled: function isDisabled() {
- return this._checkboxGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
- }
- },
- methods: {
- addToStore: function addToStore() {
- if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
- this.model.push(this.label);
- } else {
- this.model = this.trueLabel || true;
- }
- },
- handleChange: function handleChange(ev) {
- var _this = this;
- if (this.isLimitExceeded) return;
- var value = void 0;
- if (ev.target.checked) {
- value = this.trueLabel === undefined ? true : this.trueLabel;
- } else {
- value = this.falseLabel === undefined ? false : this.falseLabel;
- }
- this.$emit('change', value, ev);
- this.$nextTick(function () {
- if (_this._checkboxGroup) {
- _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
- }
- });
- }
- },
- created: function created() {
- this.checked && this.addToStore();
- }
- });
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_checkbox_buttonvue_type_script_lang_js_ = (checkbox_buttonvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue
- /* normalize component */
- var checkbox_button_component = normalizeComponent(
- src_checkbox_buttonvue_type_script_lang_js_,
- checkbox_buttonvue_type_template_id_478e906e_render,
- checkbox_buttonvue_type_template_id_478e906e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var checkbox_button_api; }
- checkbox_button_component.options.__file = "packages/checkbox/src/checkbox-button.vue"
- /* harmony default export */ var checkbox_button = (checkbox_button_component.exports);
- // CONCATENATED MODULE: ./packages/checkbox-button/index.js
- /* istanbul ignore next */
- checkbox_button.install = function (Vue) {
- Vue.component(checkbox_button.name, checkbox_button);
- };
- /* harmony default export */ var packages_checkbox_button = (checkbox_button);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
- var checkbox_groupvue_type_template_id_7289a290_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-checkbox-group",
- attrs: { role: "group", "aria-label": "checkbox-group" }
- },
- [_vm._t("default")],
- 2
- )
- }
- var checkbox_groupvue_type_template_id_7289a290_staticRenderFns = []
- checkbox_groupvue_type_template_id_7289a290_render._withStripped = true
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
- name: 'ElCheckboxGroup',
- componentName: 'ElCheckboxGroup',
- mixins: [emitter_default.a],
- inject: {
- elFormItem: {
- default: ''
- }
- },
- props: {
- value: {},
- disabled: Boolean,
- min: Number,
- max: Number,
- size: String,
- fill: String,
- textColor: String
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- checkboxGroupSize: function checkboxGroupSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- }
- },
- watch: {
- value: function value(_value) {
- this.dispatch('ElFormItem', 'el.form.change', [_value]);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue
- /* normalize component */
- var checkbox_group_component = normalizeComponent(
- src_checkbox_groupvue_type_script_lang_js_,
- checkbox_groupvue_type_template_id_7289a290_render,
- checkbox_groupvue_type_template_id_7289a290_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var checkbox_group_api; }
- checkbox_group_component.options.__file = "packages/checkbox/src/checkbox-group.vue"
- /* harmony default export */ var checkbox_group = (checkbox_group_component.exports);
- // CONCATENATED MODULE: ./packages/checkbox-group/index.js
- /* istanbul ignore next */
- checkbox_group.install = function (Vue) {
- Vue.component(checkbox_group.name, checkbox_group);
- };
- /* harmony default export */ var packages_checkbox_group = (checkbox_group);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=template&id=2dcd8fbb&
- var componentvue_type_template_id_2dcd8fbb_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-switch",
- class: { "is-disabled": _vm.switchDisabled, "is-checked": _vm.checked },
- attrs: {
- role: "switch",
- "aria-checked": _vm.checked,
- "aria-disabled": _vm.switchDisabled
- },
- on: {
- click: function($event) {
- $event.preventDefault()
- return _vm.switchValue($event)
- }
- }
- },
- [
- _c("input", {
- ref: "input",
- staticClass: "el-switch__input",
- attrs: {
- type: "checkbox",
- id: _vm.id,
- name: _vm.name,
- "true-value": _vm.activeValue,
- "false-value": _vm.inactiveValue,
- disabled: _vm.switchDisabled
- },
- on: {
- change: _vm.handleChange,
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.switchValue($event)
- }
- }
- }),
- _vm.inactiveIconClass || _vm.inactiveText
- ? _c(
- "span",
- {
- class: [
- "el-switch__label",
- "el-switch__label--left",
- !_vm.checked ? "is-active" : ""
- ]
- },
- [
- _vm.inactiveIconClass
- ? _c("i", { class: [_vm.inactiveIconClass] })
- : _vm._e(),
- !_vm.inactiveIconClass && _vm.inactiveText
- ? _c("span", { attrs: { "aria-hidden": _vm.checked } }, [
- _vm._v(_vm._s(_vm.inactiveText))
- ])
- : _vm._e()
- ]
- )
- : _vm._e(),
- _c("span", {
- ref: "core",
- staticClass: "el-switch__core",
- style: { width: _vm.coreWidth + "px" }
- }),
- _vm.activeIconClass || _vm.activeText
- ? _c(
- "span",
- {
- class: [
- "el-switch__label",
- "el-switch__label--right",
- _vm.checked ? "is-active" : ""
- ]
- },
- [
- _vm.activeIconClass
- ? _c("i", { class: [_vm.activeIconClass] })
- : _vm._e(),
- !_vm.activeIconClass && _vm.activeText
- ? _c("span", { attrs: { "aria-hidden": !_vm.checked } }, [
- _vm._v(_vm._s(_vm.activeText))
- ])
- : _vm._e()
- ]
- )
- : _vm._e()
- ]
- )
- }
- var componentvue_type_template_id_2dcd8fbb_staticRenderFns = []
- componentvue_type_template_id_2dcd8fbb_render._withStripped = true
- // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=template&id=2dcd8fbb&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var switch_src_componentvue_type_script_lang_js_ = ({
- name: 'ElSwitch',
- mixins: [focus_default()('input'), migrating_default.a, emitter_default.a],
- inject: {
- elForm: {
- default: ''
- }
- },
- props: {
- value: {
- type: [Boolean, String, Number],
- default: false
- },
- disabled: {
- type: Boolean,
- default: false
- },
- width: {
- type: Number,
- default: 40
- },
- activeIconClass: {
- type: String,
- default: ''
- },
- inactiveIconClass: {
- type: String,
- default: ''
- },
- activeText: String,
- inactiveText: String,
- activeColor: {
- type: String,
- default: ''
- },
- inactiveColor: {
- type: String,
- default: ''
- },
- activeValue: {
- type: [Boolean, String, Number],
- default: true
- },
- inactiveValue: {
- type: [Boolean, String, Number],
- default: false
- },
- name: {
- type: String,
- default: ''
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- id: String
- },
- data: function data() {
- return {
- coreWidth: this.width
- };
- },
- created: function created() {
- if (!~[this.activeValue, this.inactiveValue].indexOf(this.value)) {
- this.$emit('input', this.inactiveValue);
- }
- },
- computed: {
- checked: function checked() {
- return this.value === this.activeValue;
- },
- switchDisabled: function switchDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- watch: {
- checked: function checked() {
- this.$refs.input.checked = this.checked;
- if (this.activeColor || this.inactiveColor) {
- this.setBackgroundColor();
- }
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.change', [this.value]);
- }
- }
- },
- methods: {
- handleChange: function handleChange(event) {
- var _this = this;
- var val = this.checked ? this.inactiveValue : this.activeValue;
- this.$emit('input', val);
- this.$emit('change', val);
- this.$nextTick(function () {
- // set input's checked property
- // in case parent refuses to change component's value
- _this.$refs.input.checked = _this.checked;
- });
- },
- setBackgroundColor: function setBackgroundColor() {
- var newColor = this.checked ? this.activeColor : this.inactiveColor;
- this.$refs.core.style.borderColor = newColor;
- this.$refs.core.style.backgroundColor = newColor;
- },
- switchValue: function switchValue() {
- !this.switchDisabled && this.handleChange();
- },
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'on-color': 'on-color is renamed to active-color.',
- 'off-color': 'off-color is renamed to inactive-color.',
- 'on-text': 'on-text is renamed to active-text.',
- 'off-text': 'off-text is renamed to inactive-text.',
- 'on-value': 'on-value is renamed to active-value.',
- 'off-value': 'off-value is renamed to inactive-value.',
- 'on-icon-class': 'on-icon-class is renamed to active-icon-class.',
- 'off-icon-class': 'off-icon-class is renamed to inactive-icon-class.'
- }
- };
- }
- },
- mounted: function mounted() {
- /* istanbul ignore if */
- this.coreWidth = this.width || 40;
- if (this.activeColor || this.inactiveColor) {
- this.setBackgroundColor();
- }
- this.$refs.input.checked = this.checked;
- }
- });
- // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_switch_src_componentvue_type_script_lang_js_ = (switch_src_componentvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/switch/src/component.vue
- /* normalize component */
- var src_component_component = normalizeComponent(
- packages_switch_src_componentvue_type_script_lang_js_,
- componentvue_type_template_id_2dcd8fbb_render,
- componentvue_type_template_id_2dcd8fbb_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_component_api; }
- src_component_component.options.__file = "packages/switch/src/component.vue"
- /* harmony default export */ var switch_src_component = (src_component_component.exports);
- // CONCATENATED MODULE: ./packages/switch/index.js
- /* istanbul ignore next */
- switch_src_component.install = function (Vue) {
- Vue.component(switch_src_component.name, switch_src_component);
- };
- /* harmony default export */ var packages_switch = (switch_src_component);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=0e4aade6&
- var selectvue_type_template_id_0e4aade6_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleClose,
- expression: "handleClose"
- }
- ],
- staticClass: "el-select",
- class: [_vm.selectSize ? "el-select--" + _vm.selectSize : ""],
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.toggleMenu($event)
- }
- }
- },
- [
- _vm.multiple
- ? _c(
- "div",
- {
- ref: "tags",
- staticClass: "el-select__tags",
- style: { "max-width": _vm.inputWidth - 32 + "px", width: "100%" }
- },
- [
- _vm.collapseTags && _vm.selected.length
- ? _c(
- "span",
- [
- _c(
- "el-tag",
- {
- attrs: {
- closable: !_vm.selectDisabled,
- size: _vm.collapseTagSize,
- hit: _vm.selected[0].hitState,
- type: "info",
- "disable-transitions": ""
- },
- on: {
- close: function($event) {
- _vm.deleteTag($event, _vm.selected[0])
- }
- }
- },
- [
- _c("span", { staticClass: "el-select__tags-text" }, [
- _vm._v(_vm._s(_vm.selected[0].currentLabel))
- ])
- ]
- ),
- _vm.selected.length > 1
- ? _c(
- "el-tag",
- {
- attrs: {
- closable: false,
- size: _vm.collapseTagSize,
- type: "info",
- "disable-transitions": ""
- }
- },
- [
- _c(
- "span",
- { staticClass: "el-select__tags-text" },
- [_vm._v("+ " + _vm._s(_vm.selected.length - 1))]
- )
- ]
- )
- : _vm._e()
- ],
- 1
- )
- : _vm._e(),
- !_vm.collapseTags
- ? _c(
- "transition-group",
- { on: { "after-leave": _vm.resetInputHeight } },
- _vm._l(_vm.selected, function(item) {
- return _c(
- "el-tag",
- {
- key: _vm.getValueKey(item),
- attrs: {
- closable: !_vm.selectDisabled,
- size: _vm.collapseTagSize,
- hit: item.hitState,
- type: "info",
- "disable-transitions": ""
- },
- on: {
- close: function($event) {
- _vm.deleteTag($event, item)
- }
- }
- },
- [
- _c("span", { staticClass: "el-select__tags-text" }, [
- _vm._v(_vm._s(item.currentLabel))
- ])
- ]
- )
- }),
- 1
- )
- : _vm._e(),
- _vm.filterable
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.query,
- expression: "query"
- }
- ],
- ref: "input",
- staticClass: "el-select__input",
- class: [_vm.selectSize ? "is-" + _vm.selectSize : ""],
- style: {
- "flex-grow": "1",
- width: _vm.inputLength / (_vm.inputWidth - 32) + "%",
- "max-width": _vm.inputWidth - 42 + "px"
- },
- attrs: {
- type: "text",
- disabled: _vm.selectDisabled,
- autocomplete: _vm.autoComplete || _vm.autocomplete
- },
- domProps: { value: _vm.query },
- on: {
- focus: _vm.handleFocus,
- blur: function($event) {
- _vm.softFocus = false
- },
- keyup: _vm.managePlaceholder,
- keydown: [
- _vm.resetInputState,
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.navigateOptions("next")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, [
- "Up",
- "ArrowUp"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.navigateOptions("prev")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.selectOption($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "esc", 27, $event.key, [
- "Esc",
- "Escape"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.visible = false
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "delete",
- [8, 46],
- $event.key,
- ["Backspace", "Delete", "Del"]
- )
- ) {
- return null
- }
- return _vm.deletePrevTag($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
- ) {
- return null
- }
- _vm.visible = false
- }
- ],
- compositionstart: _vm.handleComposition,
- compositionupdate: _vm.handleComposition,
- compositionend: _vm.handleComposition,
- input: [
- function($event) {
- if ($event.target.composing) {
- return
- }
- _vm.query = $event.target.value
- },
- _vm.debouncedQueryChange
- ]
- }
- })
- : _vm._e()
- ],
- 1
- )
- : _vm._e(),
- _c(
- "el-input",
- {
- ref: "reference",
- class: { "is-focus": _vm.visible },
- attrs: {
- type: "text",
- placeholder: _vm.currentPlaceholder,
- name: _vm.name,
- id: _vm.id,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- size: _vm.selectSize,
- disabled: _vm.selectDisabled,
- readonly: _vm.readonly,
- "validate-event": false,
- tabindex: _vm.multiple && _vm.filterable ? "-1" : null
- },
- on: { focus: _vm.handleFocus, blur: _vm.handleBlur },
- nativeOn: {
- keyup: function($event) {
- return _vm.debouncedOnInputChange($event)
- },
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.navigateOptions("next")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, [
- "Up",
- "ArrowUp"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.navigateOptions("prev")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.selectOption($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "esc", 27, $event.key, [
- "Esc",
- "Escape"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.visible = false
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
- ) {
- return null
- }
- _vm.visible = false
- }
- ],
- paste: function($event) {
- return _vm.debouncedOnInputChange($event)
- },
- mouseenter: function($event) {
- _vm.inputHovering = true
- },
- mouseleave: function($event) {
- _vm.inputHovering = false
- }
- },
- model: {
- value: _vm.selectedLabel,
- callback: function($$v) {
- _vm.selectedLabel = $$v
- },
- expression: "selectedLabel"
- }
- },
- [
- _vm.$slots.prefix
- ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
- : _vm._e(),
- _c("template", { slot: "suffix" }, [
- _c("i", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.showClose,
- expression: "!showClose"
- }
- ],
- class: [
- "el-select__caret",
- "el-input__icon",
- "el-icon-" + _vm.iconClass
- ]
- }),
- _vm.showClose
- ? _c("i", {
- staticClass:
- "el-select__caret el-input__icon el-icon-circle-close",
- on: { click: _vm.handleClearClick }
- })
- : _vm._e()
- ])
- ],
- 2
- ),
- _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "before-enter": _vm.handleMenuEnter,
- "after-leave": _vm.doDestroy
- }
- },
- [
- _c(
- "el-select-menu",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible && _vm.emptyText !== false,
- expression: "visible && emptyText !== false"
- }
- ],
- ref: "popper",
- attrs: { "append-to-body": _vm.popperAppendToBody }
- },
- [
- _c(
- "el-scrollbar",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.options.length > 0 && !_vm.loading,
- expression: "options.length > 0 && !loading"
- }
- ],
- ref: "scrollbar",
- class: {
- "is-empty":
- !_vm.allowCreate &&
- _vm.query &&
- _vm.filteredOptionsCount === 0
- },
- attrs: {
- tag: "ul",
- "wrap-class": "el-select-dropdown__wrap",
- "view-class": "el-select-dropdown__list"
- }
- },
- [
- _vm.showNewOption
- ? _c("el-option", {
- attrs: { value: _vm.query, created: "" }
- })
- : _vm._e(),
- _vm._t("default")
- ],
- 2
- ),
- _vm.emptyText &&
- (!_vm.allowCreate ||
- _vm.loading ||
- (_vm.allowCreate && _vm.options.length === 0))
- ? [
- _vm.$slots.empty
- ? _vm._t("empty")
- : _c("p", { staticClass: "el-select-dropdown__empty" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.emptyText) +
- "\n "
- )
- ])
- ]
- : _vm._e()
- ],
- 2
- )
- ],
- 1
- )
- ],
- 1
- )
- }
- var selectvue_type_template_id_0e4aade6_staticRenderFns = []
- selectvue_type_template_id_0e4aade6_render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=0e4aade6&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=template&id=06828748&
- var select_dropdownvue_type_template_id_06828748_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-select-dropdown el-popper",
- class: [{ "is-multiple": _vm.$parent.multiple }, _vm.popperClass],
- style: { minWidth: _vm.minWidth }
- },
- [_vm._t("default")],
- 2
- )
- }
- var select_dropdownvue_type_template_id_06828748_staticRenderFns = []
- select_dropdownvue_type_template_id_06828748_render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=template&id=06828748&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var select_dropdownvue_type_script_lang_js_ = ({
- name: 'ElSelectDropdown',
- componentName: 'ElSelectDropdown',
- mixins: [vue_popper_default.a],
- props: {
- placement: {
- default: 'bottom-start'
- },
- boundariesPadding: {
- default: 0
- },
- popperOptions: {
- default: function _default() {
- return {
- gpuAcceleration: false
- };
- }
- },
- visibleArrow: {
- default: true
- },
- appendToBody: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- minWidth: ''
- };
- },
- computed: {
- popperClass: function popperClass() {
- return this.$parent.popperClass;
- }
- },
- watch: {
- '$parent.inputWidth': function $parentInputWidth() {
- this.minWidth = this.$parent.$el.getBoundingClientRect().width + 'px';
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.referenceElm = this.$parent.$refs.reference.$el;
- this.$parent.popperElm = this.popperElm = this.$el;
- this.$on('updatePopper', function () {
- if (_this.$parent.visible) _this.updatePopper();
- });
- this.$on('destroyPopper', this.destroyPopper);
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_select_dropdownvue_type_script_lang_js_ = (select_dropdownvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue
- /* normalize component */
- var select_dropdown_component = normalizeComponent(
- src_select_dropdownvue_type_script_lang_js_,
- select_dropdownvue_type_template_id_06828748_render,
- select_dropdownvue_type_template_id_06828748_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var select_dropdown_api; }
- select_dropdown_component.options.__file = "packages/select/src/select-dropdown.vue"
- /* harmony default export */ var select_dropdown = (select_dropdown_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- var optionvue_type_template_id_7a44c642_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "li",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-select-dropdown__item",
- class: {
- selected: _vm.itemSelected,
- "is-disabled": _vm.disabled || _vm.groupDisabled || _vm.limitReached,
- hover: _vm.hover
- },
- on: {
- mouseenter: _vm.hoverItem,
- click: function($event) {
- $event.stopPropagation()
- return _vm.selectOptionClick($event)
- }
- }
- },
- [_vm._t("default", [_c("span", [_vm._v(_vm._s(_vm.currentLabel))])])],
- 2
- )
- }
- var optionvue_type_template_id_7a44c642_staticRenderFns = []
- optionvue_type_template_id_7a44c642_render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js&
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var optionvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a],
- name: 'ElOption',
- componentName: 'ElOption',
- inject: ['select'],
- props: {
- value: {
- required: true
- },
- label: [String, Number],
- created: Boolean,
- disabled: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- index: -1,
- groupDisabled: false,
- visible: true,
- hitState: false,
- hover: false
- };
- },
- computed: {
- isObject: function isObject() {
- return Object.prototype.toString.call(this.value).toLowerCase() === '[object object]';
- },
- currentLabel: function currentLabel() {
- return this.label || (this.isObject ? '' : this.value);
- },
- currentValue: function currentValue() {
- return this.value || this.label || '';
- },
- itemSelected: function itemSelected() {
- if (!this.select.multiple) {
- return this.isEqual(this.value, this.select.value);
- } else {
- return this.contains(this.select.value, this.value);
- }
- },
- limitReached: function limitReached() {
- if (this.select.multiple) {
- return !this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0;
- } else {
- return false;
- }
- }
- },
- watch: {
- currentLabel: function currentLabel() {
- if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
- },
- value: function value(val, oldVal) {
- var _select = this.select,
- remote = _select.remote,
- valueKey = _select.valueKey;
- if (!this.created && !remote) {
- if (valueKey && (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && (typeof oldVal === 'undefined' ? 'undefined' : _typeof(oldVal)) === 'object' && val[valueKey] === oldVal[valueKey]) {
- return;
- }
- this.dispatch('ElSelect', 'setSelected');
- }
- }
- },
- methods: {
- isEqual: function isEqual(a, b) {
- if (!this.isObject) {
- return a === b;
- } else {
- var valueKey = this.select.valueKey;
- return Object(util_["getValueByPath"])(a, valueKey) === Object(util_["getValueByPath"])(b, valueKey);
- }
- },
- contains: function contains() {
- var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var target = arguments[1];
- if (!this.isObject) {
- return arr && arr.indexOf(target) > -1;
- } else {
- var valueKey = this.select.valueKey;
- return arr && arr.some(function (item) {
- return Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(target, valueKey);
- });
- }
- },
- handleGroupDisabled: function handleGroupDisabled(val) {
- this.groupDisabled = val;
- },
- hoverItem: function hoverItem() {
- if (!this.disabled && !this.groupDisabled) {
- this.select.hoverIndex = this.select.options.indexOf(this);
- }
- },
- selectOptionClick: function selectOptionClick() {
- if (this.disabled !== true && this.groupDisabled !== true) {
- this.dispatch('ElSelect', 'handleOptionClick', [this, true]);
- }
- },
- queryChange: function queryChange(query) {
- this.visible = new RegExp(Object(util_["escapeRegexpString"])(query), 'i').test(this.currentLabel) || this.created;
- if (!this.visible) {
- this.select.filteredOptionsCount--;
- }
- }
- },
- created: function created() {
- this.select.options.push(this);
- this.select.cachedOptions.push(this);
- this.select.optionsCount++;
- this.select.filteredOptionsCount++;
- this.$on('queryChange', this.queryChange);
- this.$on('handleGroupDisabled', this.handleGroupDisabled);
- },
- beforeDestroy: function beforeDestroy() {
- var _select2 = this.select,
- selected = _select2.selected,
- multiple = _select2.multiple;
- var selectedOptions = multiple ? selected : [selected];
- var index = this.select.cachedOptions.indexOf(this);
- var selectedIndex = selectedOptions.indexOf(this);
- // if option is not selected, remove it from cache
- if (index > -1 && selectedIndex < 0) {
- this.select.cachedOptions.splice(index, 1);
- }
- this.select.onOptionDestroy(this.select.options.indexOf(this));
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_optionvue_type_script_lang_js_ = (optionvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/select/src/option.vue
- /* normalize component */
- var option_component = normalizeComponent(
- src_optionvue_type_script_lang_js_,
- optionvue_type_template_id_7a44c642_render,
- optionvue_type_template_id_7a44c642_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var option_api; }
- option_component.options.__file = "packages/select/src/option.vue"
- /* harmony default export */ var src_option = (option_component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/tag"
- var tag_ = __webpack_require__(30);
- var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
- var resize_event_ = __webpack_require__(13);
- // EXTERNAL MODULE: external "element-ui/lib/locale"
- var lib_locale_ = __webpack_require__(11);
- var lib_locale_default = /*#__PURE__*/__webpack_require__.n(lib_locale_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/scroll-into-view"
- var scroll_into_view_ = __webpack_require__(27);
- var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
- // CONCATENATED MODULE: ./packages/select/src/navigation-mixin.js
- /* harmony default export */ var navigation_mixin = ({
- data: function data() {
- return {
- hoverOption: -1
- };
- },
- computed: {
- optionsAllDisabled: function optionsAllDisabled() {
- return this.options.filter(function (option) {
- return option.visible;
- }).every(function (option) {
- return option.disabled;
- });
- }
- },
- watch: {
- hoverIndex: function hoverIndex(val) {
- var _this = this;
- if (typeof val === 'number' && val > -1) {
- this.hoverOption = this.options[val] || {};
- }
- this.options.forEach(function (option) {
- option.hover = _this.hoverOption === option;
- });
- }
- },
- methods: {
- navigateOptions: function navigateOptions(direction) {
- var _this2 = this;
- if (!this.visible) {
- this.visible = true;
- return;
- }
- if (this.options.length === 0 || this.filteredOptionsCount === 0) return;
- if (!this.optionsAllDisabled) {
- if (direction === 'next') {
- this.hoverIndex++;
- if (this.hoverIndex === this.options.length) {
- this.hoverIndex = 0;
- }
- } else if (direction === 'prev') {
- this.hoverIndex--;
- if (this.hoverIndex < 0) {
- this.hoverIndex = this.options.length - 1;
- }
- }
- var option = this.options[this.hoverIndex];
- if (option.disabled === true || option.groupDisabled === true || !option.visible) {
- this.navigateOptions(direction);
- }
- this.$nextTick(function () {
- return _this2.scrollToOption(_this2.hoverOption);
- });
- }
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var selectvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a, locale_default.a, focus_default()('reference'), navigation_mixin],
- name: 'ElSelect',
- componentName: 'ElSelect',
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- provide: function provide() {
- return {
- 'select': this
- };
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- readonly: function readonly() {
- return !this.filterable || this.multiple || !Object(util_["isIE"])() && !Object(util_["isEdge"])() && !this.visible;
- },
- showClose: function showClose() {
- var hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && this.value !== null && this.value !== '';
- var criteria = this.clearable && !this.selectDisabled && this.inputHovering && hasValue;
- return criteria;
- },
- iconClass: function iconClass() {
- return this.remote && this.filterable ? '' : this.visible ? 'arrow-up is-reverse' : 'arrow-up';
- },
- debounce: function debounce() {
- return this.remote ? 300 : 0;
- },
- emptyText: function emptyText() {
- if (this.loading) {
- return this.loadingText || this.t('el.select.loading');
- } else {
- if (this.remote && this.query === '' && this.options.length === 0) return false;
- if (this.filterable && this.query && this.options.length > 0 && this.filteredOptionsCount === 0) {
- return this.noMatchText || this.t('el.select.noMatch');
- }
- if (this.options.length === 0) {
- return this.noDataText || this.t('el.select.noData');
- }
- }
- return null;
- },
- showNewOption: function showNewOption() {
- var _this = this;
- var hasExistingOption = this.options.filter(function (option) {
- return !option.created;
- }).some(function (option) {
- return option.currentLabel === _this.query;
- });
- return this.filterable && this.allowCreate && this.query !== '' && !hasExistingOption;
- },
- selectSize: function selectSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- selectDisabled: function selectDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- collapseTagSize: function collapseTagSize() {
- return ['small', 'mini'].indexOf(this.selectSize) > -1 ? 'mini' : 'small';
- }
- },
- components: {
- ElInput: input_default.a,
- ElSelectMenu: select_dropdown,
- ElOption: src_option,
- ElTag: tag_default.a,
- ElScrollbar: scrollbar_default.a
- },
- directives: { Clickoutside: clickoutside_default.a },
- props: {
- name: String,
- id: String,
- value: {
- required: true
- },
- autocomplete: {
- type: String,
- default: 'off'
- },
- /** @Deprecated in next major version */
- autoComplete: {
- type: String,
- validator: function validator(val) {
- false && false;
- return true;
- }
- },
- automaticDropdown: Boolean,
- size: String,
- disabled: Boolean,
- clearable: Boolean,
- filterable: Boolean,
- allowCreate: Boolean,
- loading: Boolean,
- popperClass: String,
- remote: Boolean,
- loadingText: String,
- noMatchText: String,
- noDataText: String,
- remoteMethod: Function,
- filterMethod: Function,
- multiple: Boolean,
- multipleLimit: {
- type: Number,
- default: 0
- },
- placeholder: {
- type: String,
- default: function _default() {
- return Object(lib_locale_["t"])('el.select.placeholder');
- }
- },
- defaultFirstOption: Boolean,
- reserveKeyword: Boolean,
- valueKey: {
- type: String,
- default: 'value'
- },
- collapseTags: Boolean,
- popperAppendToBody: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- options: [],
- cachedOptions: [],
- createdLabel: null,
- createdSelected: false,
- selected: this.multiple ? [] : {},
- inputLength: 20,
- inputWidth: 0,
- initialInputHeight: 0,
- cachedPlaceHolder: '',
- optionsCount: 0,
- filteredOptionsCount: 0,
- visible: false,
- softFocus: false,
- selectedLabel: '',
- hoverIndex: -1,
- query: '',
- previousQuery: null,
- inputHovering: false,
- currentPlaceholder: '',
- menuVisibleOnFocus: false,
- isOnComposition: false,
- isSilentBlur: false
- };
- },
- watch: {
- selectDisabled: function selectDisabled() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.resetInputHeight();
- });
- },
- placeholder: function placeholder(val) {
- this.cachedPlaceHolder = this.currentPlaceholder = val;
- },
- value: function value(val, oldVal) {
- if (this.multiple) {
- this.resetInputHeight();
- if (val && val.length > 0 || this.$refs.input && this.query !== '') {
- this.currentPlaceholder = '';
- } else {
- this.currentPlaceholder = this.cachedPlaceHolder;
- }
- if (this.filterable && !this.reserveKeyword) {
- this.query = '';
- this.handleQueryChange(this.query);
- }
- }
- this.setSelected();
- if (this.filterable && !this.multiple) {
- this.inputLength = 20;
- }
- if (!Object(util_["valueEquals"])(val, oldVal)) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- }
- },
- visible: function visible(val) {
- var _this3 = this;
- if (!val) {
- this.broadcast('ElSelectDropdown', 'destroyPopper');
- if (this.$refs.input) {
- this.$refs.input.blur();
- }
- this.query = '';
- this.previousQuery = null;
- this.selectedLabel = '';
- this.inputLength = 20;
- this.menuVisibleOnFocus = false;
- this.resetHoverIndex();
- this.$nextTick(function () {
- if (_this3.$refs.input && _this3.$refs.input.value === '' && _this3.selected.length === 0) {
- _this3.currentPlaceholder = _this3.cachedPlaceHolder;
- }
- });
- if (!this.multiple) {
- if (this.selected) {
- if (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel) {
- this.selectedLabel = this.createdLabel;
- } else {
- this.selectedLabel = this.selected.currentLabel;
- }
- if (this.filterable) this.query = this.selectedLabel;
- }
- if (this.filterable) {
- this.currentPlaceholder = this.cachedPlaceHolder;
- }
- }
- } else {
- this.broadcast('ElSelectDropdown', 'updatePopper');
- if (this.filterable) {
- this.query = this.remote ? '' : this.selectedLabel;
- this.handleQueryChange(this.query);
- if (this.multiple) {
- this.$refs.input.focus();
- } else {
- if (!this.remote) {
- this.broadcast('ElOption', 'queryChange', '');
- this.broadcast('ElOptionGroup', 'queryChange');
- }
- if (this.selectedLabel) {
- this.currentPlaceholder = this.selectedLabel;
- this.selectedLabel = '';
- }
- }
- }
- }
- this.$emit('visible-change', val);
- },
- options: function options() {
- var _this4 = this;
- if (this.$isServer) return;
- this.$nextTick(function () {
- _this4.broadcast('ElSelectDropdown', 'updatePopper');
- });
- if (this.multiple) {
- this.resetInputHeight();
- }
- var inputs = this.$el.querySelectorAll('input');
- if ([].indexOf.call(inputs, document.activeElement) === -1) {
- this.setSelected();
- }
- if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
- this.checkDefaultFirstOption();
- }
- }
- },
- methods: {
- handleComposition: function handleComposition(event) {
- var _this5 = this;
- var text = event.target.value;
- if (event.type === 'compositionend') {
- this.isOnComposition = false;
- this.$nextTick(function (_) {
- return _this5.handleQueryChange(text);
- });
- } else {
- var lastCharacter = text[text.length - 1] || '';
- this.isOnComposition = !Object(shared_["isKorean"])(lastCharacter);
- }
- },
- handleQueryChange: function handleQueryChange(val) {
- var _this6 = this;
- if (this.previousQuery === val || this.isOnComposition) return;
- if (this.previousQuery === null && (typeof this.filterMethod === 'function' || typeof this.remoteMethod === 'function')) {
- this.previousQuery = val;
- return;
- }
- this.previousQuery = val;
- this.$nextTick(function () {
- if (_this6.visible) _this6.broadcast('ElSelectDropdown', 'updatePopper');
- });
- this.hoverIndex = -1;
- if (this.multiple && this.filterable) {
- this.$nextTick(function () {
- var length = _this6.$refs.input.value.length * 15 + 20;
- _this6.inputLength = _this6.collapseTags ? Math.min(50, length) : length;
- _this6.managePlaceholder();
- _this6.resetInputHeight();
- });
- }
- if (this.remote && typeof this.remoteMethod === 'function') {
- this.hoverIndex = -1;
- this.remoteMethod(val);
- } else if (typeof this.filterMethod === 'function') {
- this.filterMethod(val);
- this.broadcast('ElOptionGroup', 'queryChange');
- } else {
- this.filteredOptionsCount = this.optionsCount;
- this.broadcast('ElOption', 'queryChange', val);
- this.broadcast('ElOptionGroup', 'queryChange');
- }
- if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
- this.checkDefaultFirstOption();
- }
- },
- scrollToOption: function scrollToOption(option) {
- var target = Array.isArray(option) && option[0] ? option[0].$el : option.$el;
- if (this.$refs.popper && target) {
- var menu = this.$refs.popper.$el.querySelector('.el-select-dropdown__wrap');
- scroll_into_view_default()(menu, target);
- }
- this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
- },
- handleMenuEnter: function handleMenuEnter() {
- var _this7 = this;
- this.$nextTick(function () {
- return _this7.scrollToOption(_this7.selected);
- });
- },
- emitChange: function emitChange(val) {
- if (!Object(util_["valueEquals"])(this.value, val)) {
- this.$emit('change', val);
- }
- },
- getOption: function getOption(value) {
- var option = void 0;
- var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
- var isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
- var isUndefined = Object.prototype.toString.call(value).toLowerCase() === '[object undefined]';
- for (var i = this.cachedOptions.length - 1; i >= 0; i--) {
- var cachedOption = this.cachedOptions[i];
- var isEqual = isObject ? Object(util_["getValueByPath"])(cachedOption.value, this.valueKey) === Object(util_["getValueByPath"])(value, this.valueKey) : cachedOption.value === value;
- if (isEqual) {
- option = cachedOption;
- break;
- }
- }
- if (option) return option;
- var label = !isObject && !isNull && !isUndefined ? value : '';
- var newOption = {
- value: value,
- currentLabel: label
- };
- if (this.multiple) {
- newOption.hitState = false;
- }
- return newOption;
- },
- setSelected: function setSelected() {
- var _this8 = this;
- if (!this.multiple) {
- var option = this.getOption(this.value);
- if (option.created) {
- this.createdLabel = option.currentLabel;
- this.createdSelected = true;
- } else {
- this.createdSelected = false;
- }
- this.selectedLabel = option.currentLabel;
- this.selected = option;
- if (this.filterable) this.query = this.selectedLabel;
- return;
- }
- var result = [];
- if (Array.isArray(this.value)) {
- this.value.forEach(function (value) {
- result.push(_this8.getOption(value));
- });
- }
- this.selected = result;
- this.$nextTick(function () {
- _this8.resetInputHeight();
- });
- },
- handleFocus: function handleFocus(event) {
- if (!this.softFocus) {
- if (this.automaticDropdown || this.filterable) {
- this.visible = true;
- if (this.filterable) {
- this.menuVisibleOnFocus = true;
- }
- }
- this.$emit('focus', event);
- } else {
- this.softFocus = false;
- }
- },
- blur: function blur() {
- this.visible = false;
- this.$refs.reference.blur();
- },
- handleBlur: function handleBlur(event) {
- var _this9 = this;
- setTimeout(function () {
- if (_this9.isSilentBlur) {
- _this9.isSilentBlur = false;
- } else {
- _this9.$emit('blur', event);
- }
- }, 50);
- this.softFocus = false;
- },
- handleClearClick: function handleClearClick(event) {
- this.deleteSelected(event);
- },
- doDestroy: function doDestroy() {
- this.$refs.popper && this.$refs.popper.doDestroy();
- },
- handleClose: function handleClose() {
- this.visible = false;
- },
- toggleLastOptionHitState: function toggleLastOptionHitState(hit) {
- if (!Array.isArray(this.selected)) return;
- var option = this.selected[this.selected.length - 1];
- if (!option) return;
- if (hit === true || hit === false) {
- option.hitState = hit;
- return hit;
- }
- option.hitState = !option.hitState;
- return option.hitState;
- },
- deletePrevTag: function deletePrevTag(e) {
- if (e.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
- var value = this.value.slice();
- value.pop();
- this.$emit('input', value);
- this.emitChange(value);
- }
- },
- managePlaceholder: function managePlaceholder() {
- if (this.currentPlaceholder !== '') {
- this.currentPlaceholder = this.$refs.input.value ? '' : this.cachedPlaceHolder;
- }
- },
- resetInputState: function resetInputState(e) {
- if (e.keyCode !== 8) this.toggleLastOptionHitState(false);
- this.inputLength = this.$refs.input.value.length * 15 + 20;
- this.resetInputHeight();
- },
- resetInputHeight: function resetInputHeight() {
- var _this10 = this;
- if (this.collapseTags && !this.filterable) return;
- this.$nextTick(function () {
- if (!_this10.$refs.reference) return;
- var inputChildNodes = _this10.$refs.reference.$el.childNodes;
- var input = [].filter.call(inputChildNodes, function (item) {
- return item.tagName === 'INPUT';
- })[0];
- var tags = _this10.$refs.tags;
- var sizeInMap = _this10.initialInputHeight || 40;
- input.style.height = _this10.selected.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tags.clientHeight + (tags.clientHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) + 'px';
- if (_this10.visible && _this10.emptyText !== false) {
- _this10.broadcast('ElSelectDropdown', 'updatePopper');
- }
- });
- },
- resetHoverIndex: function resetHoverIndex() {
- var _this11 = this;
- setTimeout(function () {
- if (!_this11.multiple) {
- _this11.hoverIndex = _this11.options.indexOf(_this11.selected);
- } else {
- if (_this11.selected.length > 0) {
- _this11.hoverIndex = Math.min.apply(null, _this11.selected.map(function (item) {
- return _this11.options.indexOf(item);
- }));
- } else {
- _this11.hoverIndex = -1;
- }
- }
- }, 300);
- },
- handleOptionSelect: function handleOptionSelect(option, byClick) {
- var _this12 = this;
- if (this.multiple) {
- var value = (this.value || []).slice();
- var optionIndex = this.getValueIndex(value, option.value);
- if (optionIndex > -1) {
- value.splice(optionIndex, 1);
- } else if (this.multipleLimit <= 0 || value.length < this.multipleLimit) {
- value.push(option.value);
- }
- this.$emit('input', value);
- this.emitChange(value);
- if (option.created) {
- this.query = '';
- this.handleQueryChange('');
- this.inputLength = 20;
- }
- if (this.filterable) this.$refs.input.focus();
- } else {
- this.$emit('input', option.value);
- this.emitChange(option.value);
- this.visible = false;
- }
- this.isSilentBlur = byClick;
- this.setSoftFocus();
- if (this.visible) return;
- this.$nextTick(function () {
- _this12.scrollToOption(option);
- });
- },
- setSoftFocus: function setSoftFocus() {
- this.softFocus = true;
- var input = this.$refs.input || this.$refs.reference;
- if (input) {
- input.focus();
- }
- },
- getValueIndex: function getValueIndex() {
- var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var value = arguments[1];
- var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
- if (!isObject) {
- return arr.indexOf(value);
- } else {
- var valueKey = this.valueKey;
- var index = -1;
- arr.some(function (item, i) {
- if (Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(value, valueKey)) {
- index = i;
- return true;
- }
- return false;
- });
- return index;
- }
- },
- toggleMenu: function toggleMenu() {
- if (!this.selectDisabled) {
- if (this.menuVisibleOnFocus) {
- this.menuVisibleOnFocus = false;
- } else {
- this.visible = !this.visible;
- }
- if (this.visible) {
- (this.$refs.input || this.$refs.reference).focus();
- }
- }
- },
- selectOption: function selectOption() {
- if (!this.visible) {
- this.toggleMenu();
- } else {
- if (this.options[this.hoverIndex]) {
- this.handleOptionSelect(this.options[this.hoverIndex]);
- }
- }
- },
- deleteSelected: function deleteSelected(event) {
- event.stopPropagation();
- var value = this.multiple ? [] : '';
- this.$emit('input', value);
- this.emitChange(value);
- this.visible = false;
- this.$emit('clear');
- },
- deleteTag: function deleteTag(event, tag) {
- var index = this.selected.indexOf(tag);
- if (index > -1 && !this.selectDisabled) {
- var value = this.value.slice();
- value.splice(index, 1);
- this.$emit('input', value);
- this.emitChange(value);
- this.$emit('remove-tag', tag.value);
- }
- event.stopPropagation();
- },
- onInputChange: function onInputChange() {
- if (this.filterable && this.query !== this.selectedLabel) {
- this.query = this.selectedLabel;
- this.handleQueryChange(this.query);
- }
- },
- onOptionDestroy: function onOptionDestroy(index) {
- if (index > -1) {
- this.optionsCount--;
- this.filteredOptionsCount--;
- this.options.splice(index, 1);
- }
- },
- resetInputWidth: function resetInputWidth() {
- this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width;
- },
- handleResize: function handleResize() {
- this.resetInputWidth();
- if (this.multiple) this.resetInputHeight();
- },
- checkDefaultFirstOption: function checkDefaultFirstOption() {
- this.hoverIndex = -1;
- // highlight the created option
- var hasCreated = false;
- for (var i = this.options.length - 1; i >= 0; i--) {
- if (this.options[i].created) {
- hasCreated = true;
- this.hoverIndex = i;
- break;
- }
- }
- if (hasCreated) return;
- for (var _i = 0; _i !== this.options.length; ++_i) {
- var option = this.options[_i];
- if (this.query) {
- // highlight first options that passes the filter
- if (!option.disabled && !option.groupDisabled && option.visible) {
- this.hoverIndex = _i;
- break;
- }
- } else {
- // highlight currently selected option
- if (option.itemSelected) {
- this.hoverIndex = _i;
- break;
- }
- }
- }
- },
- getValueKey: function getValueKey(item) {
- if (Object.prototype.toString.call(item.value).toLowerCase() !== '[object object]') {
- return item.value;
- } else {
- return Object(util_["getValueByPath"])(item.value, this.valueKey);
- }
- }
- },
- created: function created() {
- var _this13 = this;
- this.cachedPlaceHolder = this.currentPlaceholder = this.placeholder;
- if (this.multiple && !Array.isArray(this.value)) {
- this.$emit('input', []);
- }
- if (!this.multiple && Array.isArray(this.value)) {
- this.$emit('input', '');
- }
- this.debouncedOnInputChange = debounce_default()(this.debounce, function () {
- _this13.onInputChange();
- });
- this.debouncedQueryChange = debounce_default()(this.debounce, function (e) {
- _this13.handleQueryChange(e.target.value);
- });
- this.$on('handleOptionClick', this.handleOptionSelect);
- this.$on('setSelected', this.setSelected);
- },
- mounted: function mounted() {
- var _this14 = this;
- if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
- this.currentPlaceholder = '';
- }
- Object(resize_event_["addResizeListener"])(this.$el, this.handleResize);
- var reference = this.$refs.reference;
- if (reference && reference.$el) {
- var sizeMap = {
- medium: 36,
- small: 32,
- mini: 28
- };
- var input = reference.$el.querySelector('input');
- this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
- }
- if (this.remote && this.multiple) {
- this.resetInputHeight();
- }
- this.$nextTick(function () {
- if (reference && reference.$el) {
- _this14.inputWidth = reference.$el.getBoundingClientRect().width;
- }
- });
- this.setSelected();
- },
- beforeDestroy: function beforeDestroy() {
- if (this.$el && this.handleResize) Object(resize_event_["removeResizeListener"])(this.$el, this.handleResize);
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_selectvue_type_script_lang_js_ = (selectvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/select/src/select.vue
- /* normalize component */
- var select_component = normalizeComponent(
- src_selectvue_type_script_lang_js_,
- selectvue_type_template_id_0e4aade6_render,
- selectvue_type_template_id_0e4aade6_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var select_api; }
- select_component.options.__file = "packages/select/src/select.vue"
- /* harmony default export */ var src_select = (select_component.exports);
- // CONCATENATED MODULE: ./packages/select/index.js
- /* istanbul ignore next */
- src_select.install = function (Vue) {
- Vue.component(src_select.name, src_select);
- };
- /* harmony default export */ var packages_select = (src_select);
- // CONCATENATED MODULE: ./packages/option/index.js
- /* istanbul ignore next */
- src_option.install = function (Vue) {
- Vue.component(src_option.name, src_option);
- };
- /* harmony default export */ var packages_option = (src_option);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option-group.vue?vue&type=template&id=6685e5de&
- var option_groupvue_type_template_id_6685e5de_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "ul",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-select-group__wrap"
- },
- [
- _c("li", { staticClass: "el-select-group__title" }, [
- _vm._v(_vm._s(_vm.label))
- ]),
- _c("li", [
- _c("ul", { staticClass: "el-select-group" }, [_vm._t("default")], 2)
- ])
- ]
- )
- }
- var option_groupvue_type_template_id_6685e5de_staticRenderFns = []
- option_groupvue_type_template_id_6685e5de_render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/option-group.vue?vue&type=template&id=6685e5de&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option-group.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var option_groupvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a],
- name: 'ElOptionGroup',
- componentName: 'ElOptionGroup',
- props: {
- label: String,
- disabled: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- visible: true
- };
- },
- watch: {
- disabled: function disabled(val) {
- this.broadcast('ElOption', 'handleGroupDisabled', val);
- }
- },
- methods: {
- queryChange: function queryChange() {
- this.visible = this.$children && Array.isArray(this.$children) && this.$children.some(function (option) {
- return option.visible === true;
- });
- }
- },
- created: function created() {
- this.$on('queryChange', this.queryChange);
- },
- mounted: function mounted() {
- if (this.disabled) {
- this.broadcast('ElOption', 'handleGroupDisabled', this.disabled);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/option-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_option_groupvue_type_script_lang_js_ = (option_groupvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/select/src/option-group.vue
- /* normalize component */
- var option_group_component = normalizeComponent(
- src_option_groupvue_type_script_lang_js_,
- option_groupvue_type_template_id_6685e5de_render,
- option_groupvue_type_template_id_6685e5de_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var option_group_api; }
- option_group_component.options.__file = "packages/select/src/option-group.vue"
- /* harmony default export */ var option_group = (option_group_component.exports);
- // CONCATENATED MODULE: ./packages/option-group/index.js
- /* istanbul ignore next */
- option_group.install = function (Vue) {
- Vue.component(option_group.name, option_group);
- };
- /* harmony default export */ var packages_option_group = (option_group);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
- var buttonvue_type_template_id_ca859fb4_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "button",
- {
- staticClass: "el-button",
- class: [
- _vm.type ? "el-button--" + _vm.type : "",
- _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
- {
- "is-disabled": _vm.buttonDisabled,
- "is-loading": _vm.loading,
- "is-plain": _vm.plain,
- "is-round": _vm.round,
- "is-circle": _vm.circle
- }
- ],
- attrs: {
- disabled: _vm.buttonDisabled || _vm.loading,
- autofocus: _vm.autofocus,
- type: _vm.nativeType
- },
- on: { click: _vm.handleClick }
- },
- [
- _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
- _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
- _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e()
- ]
- )
- }
- var buttonvue_type_template_id_ca859fb4_staticRenderFns = []
- buttonvue_type_template_id_ca859fb4_render._withStripped = true
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
- name: 'ElButton',
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- props: {
- type: {
- type: String,
- default: 'default'
- },
- size: String,
- icon: {
- type: String,
- default: ''
- },
- nativeType: {
- type: String,
- default: 'button'
- },
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- autofocus: Boolean,
- round: Boolean,
- circle: Boolean
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- buttonSize: function buttonSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- buttonDisabled: function buttonDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- methods: {
- handleClick: function handleClick(evt) {
- this.$emit('click', evt);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/button/src/button.vue
- /* normalize component */
- var button_component = normalizeComponent(
- src_buttonvue_type_script_lang_js_,
- buttonvue_type_template_id_ca859fb4_render,
- buttonvue_type_template_id_ca859fb4_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var button_api; }
- button_component.options.__file = "packages/button/src/button.vue"
- /* harmony default export */ var src_button = (button_component.exports);
- // CONCATENATED MODULE: ./packages/button/index.js
- /* istanbul ignore next */
- src_button.install = function (Vue) {
- Vue.component(src_button.name, src_button);
- };
- /* harmony default export */ var packages_button = (src_button);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
- var button_groupvue_type_template_id_3d8661d0_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2)
- }
- var button_groupvue_type_template_id_3d8661d0_staticRenderFns = []
- button_groupvue_type_template_id_3d8661d0_render._withStripped = true
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- /* harmony default export */ var button_groupvue_type_script_lang_js_ = ({
- name: 'ElButtonGroup'
- });
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_button_groupvue_type_script_lang_js_ = (button_groupvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/button/src/button-group.vue
- /* normalize component */
- var button_group_component = normalizeComponent(
- src_button_groupvue_type_script_lang_js_,
- button_groupvue_type_template_id_3d8661d0_render,
- button_groupvue_type_template_id_3d8661d0_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var button_group_api; }
- button_group_component.options.__file = "packages/button/src/button-group.vue"
- /* harmony default export */ var button_group = (button_group_component.exports);
- // CONCATENATED MODULE: ./packages/button-group/index.js
- /* istanbul ignore next */
- button_group.install = function (Vue) {
- Vue.component(button_group.name, button_group);
- };
- /* harmony default export */ var packages_button_group = (button_group);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=493fe34e&
- var tablevue_type_template_id_493fe34e_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-table",
- class: [
- {
- "el-table--fit": _vm.fit,
- "el-table--striped": _vm.stripe,
- "el-table--border": _vm.border || _vm.isGroup,
- "el-table--hidden": _vm.isHidden,
- "el-table--group": _vm.isGroup,
- "el-table--fluid-height": _vm.maxHeight,
- "el-table--scrollable-x": _vm.layout.scrollX,
- "el-table--scrollable-y": _vm.layout.scrollY,
- "el-table--enable-row-hover": !_vm.store.states.isComplex,
- "el-table--enable-row-transition":
- (_vm.store.states.data || []).length !== 0 &&
- (_vm.store.states.data || []).length < 100
- },
- _vm.tableSize ? "el-table--" + _vm.tableSize : ""
- ],
- on: {
- mouseleave: function($event) {
- _vm.handleMouseLeave($event)
- }
- }
- },
- [
- _c(
- "div",
- { ref: "hiddenColumns", staticClass: "hidden-columns" },
- [_vm._t("default")],
- 2
- ),
- _vm.showHeader
- ? _c(
- "div",
- {
- directives: [
- {
- name: "mousewheel",
- rawName: "v-mousewheel",
- value: _vm.handleHeaderFooterMousewheel,
- expression: "handleHeaderFooterMousewheel"
- }
- ],
- ref: "headerWrapper",
- staticClass: "el-table__header-wrapper"
- },
- [
- _c("table-header", {
- ref: "tableHeader",
- style: {
- width: _vm.layout.bodyWidth ? _vm.layout.bodyWidth + "px" : ""
- },
- attrs: {
- store: _vm.store,
- border: _vm.border,
- "default-sort": _vm.defaultSort
- }
- })
- ],
- 1
- )
- : _vm._e(),
- _c(
- "div",
- {
- ref: "bodyWrapper",
- staticClass: "el-table__body-wrapper",
- class: [
- _vm.layout.scrollX
- ? "is-scrolling-" + _vm.scrollPosition
- : "is-scrolling-none"
- ],
- style: [_vm.bodyHeight]
- },
- [
- _c("table-body", {
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- context: _vm.context,
- store: _vm.store,
- stripe: _vm.stripe,
- "row-class-name": _vm.rowClassName,
- "row-style": _vm.rowStyle,
- highlight: _vm.highlightCurrentRow
- }
- }),
- !_vm.data || _vm.data.length === 0
- ? _c(
- "div",
- {
- ref: "emptyBlock",
- staticClass: "el-table__empty-block",
- style: _vm.emptyBlockStyle
- },
- [
- _c(
- "span",
- { staticClass: "el-table__empty-text" },
- [
- _vm._t("empty", [
- _vm._v(
- _vm._s(_vm.emptyText || _vm.t("el.table.emptyText"))
- )
- ])
- ],
- 2
- )
- ]
- )
- : _vm._e(),
- _vm.$slots.append
- ? _c(
- "div",
- {
- ref: "appendWrapper",
- staticClass: "el-table__append-wrapper"
- },
- [_vm._t("append")],
- 2
- )
- : _vm._e()
- ],
- 1
- ),
- _vm.showSummary
- ? _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.data && _vm.data.length > 0,
- expression: "data && data.length > 0"
- },
- {
- name: "mousewheel",
- rawName: "v-mousewheel",
- value: _vm.handleHeaderFooterMousewheel,
- expression: "handleHeaderFooterMousewheel"
- }
- ],
- ref: "footerWrapper",
- staticClass: "el-table__footer-wrapper"
- },
- [
- _c("table-footer", {
- style: {
- width: _vm.layout.bodyWidth ? _vm.layout.bodyWidth + "px" : ""
- },
- attrs: {
- store: _vm.store,
- border: _vm.border,
- "sum-text": _vm.sumText || _vm.t("el.table.sumText"),
- "summary-method": _vm.summaryMethod,
- "default-sort": _vm.defaultSort
- }
- })
- ],
- 1
- )
- : _vm._e(),
- _vm.fixedColumns.length > 0
- ? _c(
- "div",
- {
- directives: [
- {
- name: "mousewheel",
- rawName: "v-mousewheel",
- value: _vm.handleFixedMousewheel,
- expression: "handleFixedMousewheel"
- }
- ],
- ref: "fixedWrapper",
- staticClass: "el-table__fixed",
- style: [
- {
- width: _vm.layout.fixedWidth
- ? _vm.layout.fixedWidth + "px"
- : ""
- },
- _vm.fixedHeight
- ]
- },
- [
- _vm.showHeader
- ? _c(
- "div",
- {
- ref: "fixedHeaderWrapper",
- staticClass: "el-table__fixed-header-wrapper"
- },
- [
- _c("table-header", {
- ref: "fixedTableHeader",
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "left",
- border: _vm.border,
- store: _vm.store
- }
- })
- ],
- 1
- )
- : _vm._e(),
- _c(
- "div",
- {
- ref: "fixedBodyWrapper",
- staticClass: "el-table__fixed-body-wrapper",
- style: [
- {
- top: _vm.layout.headerHeight + "px"
- },
- _vm.fixedBodyHeight
- ]
- },
- [
- _c("table-body", {
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "left",
- store: _vm.store,
- stripe: _vm.stripe,
- highlight: _vm.highlightCurrentRow,
- "row-class-name": _vm.rowClassName,
- "row-style": _vm.rowStyle
- }
- }),
- _vm.$slots.append
- ? _c("div", {
- staticClass: "el-table__append-gutter",
- style: { height: _vm.layout.appendHeight + "px" }
- })
- : _vm._e()
- ],
- 1
- ),
- _vm.showSummary
- ? _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.data && _vm.data.length > 0,
- expression: "data && data.length > 0"
- }
- ],
- ref: "fixedFooterWrapper",
- staticClass: "el-table__fixed-footer-wrapper"
- },
- [
- _c("table-footer", {
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "left",
- border: _vm.border,
- "sum-text": _vm.sumText || _vm.t("el.table.sumText"),
- "summary-method": _vm.summaryMethod,
- store: _vm.store
- }
- })
- ],
- 1
- )
- : _vm._e()
- ]
- )
- : _vm._e(),
- _vm.rightFixedColumns.length > 0
- ? _c(
- "div",
- {
- directives: [
- {
- name: "mousewheel",
- rawName: "v-mousewheel",
- value: _vm.handleFixedMousewheel,
- expression: "handleFixedMousewheel"
- }
- ],
- ref: "rightFixedWrapper",
- staticClass: "el-table__fixed-right",
- style: [
- {
- width: _vm.layout.rightFixedWidth
- ? _vm.layout.rightFixedWidth + "px"
- : "",
- right: _vm.layout.scrollY
- ? (_vm.border
- ? _vm.layout.gutterWidth
- : _vm.layout.gutterWidth || 0) + "px"
- : ""
- },
- _vm.fixedHeight
- ]
- },
- [
- _vm.showHeader
- ? _c(
- "div",
- {
- ref: "rightFixedHeaderWrapper",
- staticClass: "el-table__fixed-header-wrapper"
- },
- [
- _c("table-header", {
- ref: "rightFixedTableHeader",
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "right",
- border: _vm.border,
- store: _vm.store
- }
- })
- ],
- 1
- )
- : _vm._e(),
- _c(
- "div",
- {
- ref: "rightFixedBodyWrapper",
- staticClass: "el-table__fixed-body-wrapper",
- style: [
- {
- top: _vm.layout.headerHeight + "px"
- },
- _vm.fixedBodyHeight
- ]
- },
- [
- _c("table-body", {
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "right",
- store: _vm.store,
- stripe: _vm.stripe,
- "row-class-name": _vm.rowClassName,
- "row-style": _vm.rowStyle,
- highlight: _vm.highlightCurrentRow
- }
- }),
- _vm.$slots.append
- ? _c("div", {
- staticClass: "el-table__append-gutter",
- style: { height: _vm.layout.appendHeight + "px" }
- })
- : _vm._e()
- ],
- 1
- ),
- _vm.showSummary
- ? _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.data && _vm.data.length > 0,
- expression: "data && data.length > 0"
- }
- ],
- ref: "rightFixedFooterWrapper",
- staticClass: "el-table__fixed-footer-wrapper"
- },
- [
- _c("table-footer", {
- style: {
- width: _vm.bodyWidth
- },
- attrs: {
- fixed: "right",
- border: _vm.border,
- "sum-text": _vm.sumText || _vm.t("el.table.sumText"),
- "summary-method": _vm.summaryMethod,
- store: _vm.store
- }
- })
- ],
- 1
- )
- : _vm._e()
- ]
- )
- : _vm._e(),
- _vm.rightFixedColumns.length > 0
- ? _c("div", {
- ref: "rightFixedPatch",
- staticClass: "el-table__fixed-right-patch",
- style: {
- width: _vm.layout.scrollY ? _vm.layout.gutterWidth + "px" : "0",
- height: _vm.layout.headerHeight + "px"
- }
- })
- : _vm._e(),
- _c("div", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.resizeProxyVisible,
- expression: "resizeProxyVisible"
- }
- ],
- ref: "resizeProxy",
- staticClass: "el-table__column-resize-proxy"
- })
- ]
- )
- }
- var tablevue_type_template_id_493fe34e_staticRenderFns = []
- tablevue_type_template_id_493fe34e_render._withStripped = true
- // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=493fe34e&
- // EXTERNAL MODULE: external "element-ui/lib/checkbox"
- var checkbox_ = __webpack_require__(16);
- var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
- // EXTERNAL MODULE: external "throttle-debounce"
- var external_throttle_debounce_ = __webpack_require__(35);
- // EXTERNAL MODULE: external "normalize-wheel"
- var external_normalize_wheel_ = __webpack_require__(38);
- var external_normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(external_normalize_wheel_);
- // CONCATENATED MODULE: ./src/directives/mousewheel.js
- var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
- var mousewheel_mousewheel = function mousewheel(element, callback) {
- if (element && element.addEventListener) {
- element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (event) {
- var normalized = external_normalize_wheel_default()(event);
- callback && callback.apply(this, [event, normalized]);
- });
- }
- };
- /* harmony default export */ var directives_mousewheel = ({
- bind: function bind(el, binding) {
- mousewheel_mousewheel(el, binding.value);
- }
- });
- // EXTERNAL MODULE: external "vue"
- var external_vue_ = __webpack_require__(6);
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
- // CONCATENATED MODULE: ./packages/table/src/util.js
- var util_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- var getCell = function getCell(event) {
- var cell = event.target;
- while (cell && cell.tagName.toUpperCase() !== 'HTML') {
- if (cell.tagName.toUpperCase() === 'TD') {
- return cell;
- }
- cell = cell.parentNode;
- }
- return null;
- };
- var util_isObject = function isObject(obj) {
- return obj !== null && (typeof obj === 'undefined' ? 'undefined' : util_typeof(obj)) === 'object';
- };
- var util_orderBy = function orderBy(array, sortKey, reverse, sortMethod, sortBy) {
- if (!sortKey && !sortMethod && (!sortBy || Array.isArray(sortBy) && !sortBy.length)) {
- return array;
- }
- if (typeof reverse === 'string') {
- reverse = reverse === 'descending' ? -1 : 1;
- } else {
- reverse = reverse && reverse < 0 ? -1 : 1;
- }
- var getKey = sortMethod ? null : function (value, index) {
- if (sortBy) {
- if (!Array.isArray(sortBy)) {
- sortBy = [sortBy];
- }
- return sortBy.map(function (by) {
- if (typeof by === 'string') {
- return Object(util_["getValueByPath"])(value, by);
- } else {
- return by(value, index, array);
- }
- });
- }
- if (sortKey !== '$key') {
- if (util_isObject(value) && '$value' in value) value = value.$value;
- }
- return [util_isObject(value) ? Object(util_["getValueByPath"])(value, sortKey) : value];
- };
- var compare = function compare(a, b) {
- if (sortMethod) {
- return sortMethod(a.value, b.value);
- }
- for (var i = 0, len = a.key.length; i < len; i++) {
- if (a.key[i] < b.key[i]) {
- return -1;
- }
- if (a.key[i] > b.key[i]) {
- return 1;
- }
- }
- return 0;
- };
- return array.map(function (value, index) {
- return {
- value: value,
- index: index,
- key: getKey ? getKey(value, index) : null
- };
- }).sort(function (a, b) {
- var order = compare(a, b);
- if (!order) {
- // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability
- order = a.index - b.index;
- }
- return order * reverse;
- }).map(function (item) {
- return item.value;
- });
- };
- var getColumnById = function getColumnById(table, columnId) {
- var column = null;
- table.columns.forEach(function (item) {
- if (item.id === columnId) {
- column = item;
- }
- });
- return column;
- };
- var getColumnByKey = function getColumnByKey(table, columnKey) {
- var column = null;
- for (var i = 0; i < table.columns.length; i++) {
- var item = table.columns[i];
- if (item.columnKey === columnKey) {
- column = item;
- break;
- }
- }
- return column;
- };
- var getColumnByCell = function getColumnByCell(table, cell) {
- var matches = (cell.className || '').match(/el-table_[^\s]+/gm);
- if (matches) {
- return getColumnById(table, matches[0]);
- }
- return null;
- };
- var getRowIdentity = function getRowIdentity(row, rowKey) {
- if (!row) throw new Error('row is required when get row identity');
- if (typeof rowKey === 'string') {
- if (rowKey.indexOf('.') < 0) {
- return row[rowKey];
- }
- var key = rowKey.split('.');
- var current = row;
- for (var i = 0; i < key.length; i++) {
- current = current[key[i]];
- }
- return current;
- } else if (typeof rowKey === 'function') {
- return rowKey.call(null, row);
- }
- };
- var getKeysMap = function getKeysMap(array, rowKey) {
- var arrayMap = {};
- (array || []).forEach(function (row, index) {
- arrayMap[getRowIdentity(row, rowKey)] = { row: row, index: index };
- });
- return arrayMap;
- };
- function hasOwn(obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
- }
- function mergeOptions(defaults, config) {
- var options = {};
- var key = void 0;
- for (key in defaults) {
- options[key] = defaults[key];
- }
- for (key in config) {
- if (hasOwn(config, key)) {
- var value = config[key];
- if (typeof value !== 'undefined') {
- options[key] = value;
- }
- }
- }
- return options;
- }
- function parseWidth(width) {
- if (width !== undefined) {
- width = parseInt(width, 10);
- if (isNaN(width)) {
- width = null;
- }
- }
- return width;
- }
- function parseMinWidth(minWidth) {
- if (typeof minWidth !== 'undefined') {
- minWidth = parseWidth(minWidth);
- if (isNaN(minWidth)) {
- minWidth = 80;
- }
- }
- return minWidth;
- };
- function parseHeight(height) {
- if (typeof height === 'number') {
- return height;
- }
- if (typeof height === 'string') {
- if (/^\d+(?:px)?$/.test(height)) {
- return parseInt(height, 10);
- } else {
- return height;
- }
- }
- return null;
- }
- // https://github.com/reduxjs/redux/blob/master/src/compose.js
- function compose() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
- if (funcs.length === 0) {
- return function (arg) {
- return arg;
- };
- }
- if (funcs.length === 1) {
- return funcs[0];
- }
- return funcs.reduce(function (a, b) {
- return function () {
- return a(b.apply(undefined, arguments));
- };
- });
- }
- function toggleRowStatus(statusArr, row, newVal) {
- var changed = false;
- var index = statusArr.indexOf(row);
- var included = index !== -1;
- var addRow = function addRow() {
- statusArr.push(row);
- changed = true;
- };
- var removeRow = function removeRow() {
- statusArr.splice(index, 1);
- changed = true;
- };
- if (typeof newVal === 'boolean') {
- if (newVal && !included) {
- addRow();
- } else if (!newVal && included) {
- removeRow();
- }
- } else {
- if (included) {
- removeRow();
- } else {
- addRow();
- }
- }
- return changed;
- }
- function walkTreeNode(root, cb) {
- var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
- var lazyKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'hasChildren';
- var isNil = function isNil(array) {
- return !(Array.isArray(array) && array.length);
- };
- function _walker(parent, children, level) {
- cb(parent, children, level);
- children.forEach(function (item) {
- if (item[lazyKey]) {
- cb(item, null, level + 1);
- return;
- }
- var children = item[childrenKey];
- if (!isNil(children)) {
- _walker(item, children, level + 1);
- }
- });
- }
- root.forEach(function (item) {
- if (item[lazyKey]) {
- cb(item, null, 0);
- return;
- }
- var children = item[childrenKey];
- if (!isNil(children)) {
- _walker(item, children, 0);
- }
- });
- }
- // CONCATENATED MODULE: ./packages/table/src/store/expand.js
- /* harmony default export */ var expand = ({
- data: function data() {
- return {
- states: {
- defaultExpandAll: false,
- expandRows: []
- }
- };
- },
- methods: {
- updateExpandRows: function updateExpandRows() {
- var _states = this.states,
- _states$data = _states.data,
- data = _states$data === undefined ? [] : _states$data,
- rowKey = _states.rowKey,
- defaultExpandAll = _states.defaultExpandAll,
- expandRows = _states.expandRows;
- if (defaultExpandAll) {
- this.states.expandRows = data.slice();
- } else if (rowKey) {
- // TODO:这里的代码可以优化
- var expandRowsMap = getKeysMap(expandRows, rowKey);
- this.states.expandRows = data.reduce(function (prev, row) {
- var rowId = getRowIdentity(row, rowKey);
- var rowInfo = expandRowsMap[rowId];
- if (rowInfo) {
- prev.push(row);
- }
- return prev;
- }, []);
- } else {
- this.states.expandRows = [];
- }
- },
- toggleRowExpansion: function toggleRowExpansion(row, expanded) {
- var changed = toggleRowStatus(this.states.expandRows, row, expanded);
- if (changed) {
- this.table.$emit('expand-change', row, this.states.expandRows.slice());
- this.scheduleLayout();
- }
- },
- setExpandRowKeys: function setExpandRowKeys(rowKeys) {
- this.assertRowKey();
- // TODO:这里的代码可以优化
- var _states2 = this.states,
- data = _states2.data,
- rowKey = _states2.rowKey;
- var keysMap = getKeysMap(data, rowKey);
- this.states.expandRows = rowKeys.reduce(function (prev, cur) {
- var info = keysMap[cur];
- if (info) {
- prev.push(info.row);
- }
- return prev;
- }, []);
- },
- isRowExpanded: function isRowExpanded(row) {
- var _states3 = this.states,
- _states3$expandRows = _states3.expandRows,
- expandRows = _states3$expandRows === undefined ? [] : _states3$expandRows,
- rowKey = _states3.rowKey;
- if (rowKey) {
- var expandMap = getKeysMap(expandRows, rowKey);
- return !!expandMap[getRowIdentity(row, rowKey)];
- }
- return expandRows.indexOf(row) !== -1;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/store/current.js
- /* harmony default export */ var current = ({
- data: function data() {
- return {
- states: {
- // 不可响应的,设置 currentRowKey 时,data 不一定存在,也许无法算出正确的 currentRow
- // 把该值缓存一下,当用户点击修改 currentRow 时,把该值重置为 null
- _currentRowKey: null,
- currentRow: null
- }
- };
- },
- methods: {
- setCurrentRowKey: function setCurrentRowKey(key) {
- this.assertRowKey();
- this.states._currentRowKey = key;
- this.setCurrentRowByKey(key);
- },
- restoreCurrentRowKey: function restoreCurrentRowKey() {
- this.states._currentRowKey = null;
- },
- setCurrentRowByKey: function setCurrentRowByKey(key) {
- var states = this.states;
- var _states$data = states.data,
- data = _states$data === undefined ? [] : _states$data,
- rowKey = states.rowKey;
- var currentRow = null;
- if (rowKey) {
- currentRow = Object(util_["arrayFind"])(data, function (item) {
- return getRowIdentity(item, rowKey) === key;
- });
- }
- states.currentRow = currentRow;
- },
- updateCurrentRow: function updateCurrentRow(currentRow) {
- var states = this.states,
- table = this.table;
- var oldCurrentRow = states.currentRow;
- if (currentRow && currentRow !== oldCurrentRow) {
- states.currentRow = currentRow;
- table.$emit('current-change', currentRow, oldCurrentRow);
- return;
- }
- if (!currentRow && oldCurrentRow) {
- states.currentRow = null;
- table.$emit('current-change', null, oldCurrentRow);
- }
- },
- updateCurrentRowData: function updateCurrentRowData() {
- var states = this.states,
- table = this.table;
- var rowKey = states.rowKey,
- _currentRowKey = states._currentRowKey;
- // data 为 null 时,解构时的默认值会被忽略
- var data = states.data || [];
- var oldCurrentRow = states.currentRow;
- // 当 currentRow 不在 data 中时尝试更新数据
- if (data.indexOf(oldCurrentRow) === -1 && oldCurrentRow) {
- if (rowKey) {
- var currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
- this.setCurrentRowByKey(currentRowKey);
- } else {
- states.currentRow = null;
- }
- if (states.currentRow === null) {
- table.$emit('current-change', null, oldCurrentRow);
- }
- } else if (_currentRowKey) {
- // 把初始时下设置的 rowKey 转化成 rowData
- this.setCurrentRowByKey(_currentRowKey);
- this.restoreCurrentRowKey();
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/store/tree.js
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- /* harmony default export */ var tree = ({
- data: function data() {
- return {
- states: {
- // defaultExpandAll 存在于 expand.js 中,这里不重复添加
- // 在展开行中,expandRowKeys 会被转化成 expandRows,expandRowKeys 这个属性只是记录了 TreeTable 行的展开
- // TODO: 拆分为独立的 TreeTable,统一用法
- expandRowKeys: [],
- treeData: {},
- indent: 16,
- lazy: false,
- lazyTreeNodeMap: {},
- lazyColumnIdentifier: 'hasChildren',
- childrenColumnName: 'children'
- }
- };
- },
- computed: {
- // 嵌入型的数据,watch 无法是检测到变化 https://github.com/ElemeFE/element/issues/14998
- // TODO: 使用 computed 解决该问题,是否会造成性能问题?
- // @return { id: { level, children } }
- normalizedData: function normalizedData() {
- if (!this.states.rowKey) return {};
- var data = this.states.data || [];
- return this.normalize(data);
- },
- // @return { id: { children } }
- // 针对懒加载的情形,不处理嵌套数据
- normalizedLazyNode: function normalizedLazyNode() {
- var _states = this.states,
- rowKey = _states.rowKey,
- lazyTreeNodeMap = _states.lazyTreeNodeMap,
- lazyColumnIdentifier = _states.lazyColumnIdentifier;
- var keys = Object.keys(lazyTreeNodeMap);
- var res = {};
- if (!keys.length) return res;
- keys.forEach(function (key) {
- if (lazyTreeNodeMap[key].length) {
- var item = { children: [] };
- lazyTreeNodeMap[key].forEach(function (row) {
- var currentRowKey = getRowIdentity(row, rowKey);
- item.children.push(currentRowKey);
- if (row[lazyColumnIdentifier] && !res[currentRowKey]) {
- res[currentRowKey] = { children: [] };
- }
- });
- res[key] = item;
- }
- });
- return res;
- }
- },
- watch: {
- normalizedData: 'updateTreeData',
- normalizedLazyNode: 'updateTreeData'
- },
- methods: {
- normalize: function normalize(data) {
- var _states2 = this.states,
- childrenColumnName = _states2.childrenColumnName,
- lazyColumnIdentifier = _states2.lazyColumnIdentifier,
- rowKey = _states2.rowKey,
- lazy = _states2.lazy;
- var res = {};
- walkTreeNode(data, function (parent, children, level) {
- var parentId = getRowIdentity(parent, rowKey);
- if (Array.isArray(children)) {
- res[parentId] = {
- children: children.map(function (row) {
- return getRowIdentity(row, rowKey);
- }),
- level: level
- };
- } else if (lazy) {
- // 当 children 不存在且 lazy 为 true,该节点即为懒加载的节点
- res[parentId] = {
- children: [],
- lazy: true,
- level: level
- };
- }
- }, childrenColumnName, lazyColumnIdentifier);
- return res;
- },
- updateTreeData: function updateTreeData() {
- var nested = this.normalizedData;
- var normalizedLazyNode = this.normalizedLazyNode;
- var keys = Object.keys(nested);
- var newTreeData = {};
- if (keys.length) {
- var _states3 = this.states,
- oldTreeData = _states3.treeData,
- defaultExpandAll = _states3.defaultExpandAll,
- expandRowKeys = _states3.expandRowKeys,
- lazy = _states3.lazy;
- var rootLazyRowKeys = [];
- var getExpanded = function getExpanded(oldValue, key) {
- var included = defaultExpandAll || expandRowKeys && expandRowKeys.indexOf(key) !== -1;
- return !!(oldValue && oldValue.expanded || included);
- };
- // 合并 expanded 与 display,确保数据刷新后,状态不变
- keys.forEach(function (key) {
- var oldValue = oldTreeData[key];
- var newValue = _extends({}, nested[key]);
- newValue.expanded = getExpanded(oldValue, key);
- if (newValue.lazy) {
- var _ref = oldValue || {},
- _ref$loaded = _ref.loaded,
- loaded = _ref$loaded === undefined ? false : _ref$loaded,
- _ref$loading = _ref.loading,
- loading = _ref$loading === undefined ? false : _ref$loading;
- newValue.loaded = !!loaded;
- newValue.loading = !!loading;
- rootLazyRowKeys.push(key);
- }
- newTreeData[key] = newValue;
- });
- // 根据懒加载数据更新 treeData
- var lazyKeys = Object.keys(normalizedLazyNode);
- if (lazy && lazyKeys.length && rootLazyRowKeys.length) {
- lazyKeys.forEach(function (key) {
- var oldValue = oldTreeData[key];
- var lazyNodeChildren = normalizedLazyNode[key].children;
- if (rootLazyRowKeys.indexOf(key) !== -1) {
- // 懒加载的 root 节点,更新一下原有的数据,原来的 children 一定是空数组
- if (newTreeData[key].children.length !== 0) {
- throw new Error('[ElTable]children must be an empty array.');
- }
- newTreeData[key].children = lazyNodeChildren;
- } else {
- var _ref2 = oldValue || {},
- _ref2$loaded = _ref2.loaded,
- loaded = _ref2$loaded === undefined ? false : _ref2$loaded,
- _ref2$loading = _ref2.loading,
- loading = _ref2$loading === undefined ? false : _ref2$loading;
- newTreeData[key] = {
- lazy: true,
- loaded: !!loaded,
- loading: !!loading,
- expanded: getExpanded(oldValue, key),
- children: lazyNodeChildren,
- level: ''
- };
- }
- });
- }
- }
- this.states.treeData = newTreeData;
- this.updateTableScrollY();
- },
- updateTreeExpandKeys: function updateTreeExpandKeys(value) {
- this.states.expandRowKeys = value;
- this.updateTreeData();
- },
- toggleTreeExpansion: function toggleTreeExpansion(row, expanded) {
- this.assertRowKey();
- var _states4 = this.states,
- rowKey = _states4.rowKey,
- treeData = _states4.treeData;
- var id = getRowIdentity(row, rowKey);
- var data = id && treeData[id];
- if (id && data && 'expanded' in data) {
- var oldExpanded = data.expanded;
- expanded = typeof expanded === 'undefined' ? !data.expanded : expanded;
- treeData[id].expanded = expanded;
- if (oldExpanded !== expanded) {
- this.table.$emit('expand-change', row, expanded);
- }
- this.updateTableScrollY();
- }
- },
- loadOrToggle: function loadOrToggle(row) {
- this.assertRowKey();
- var _states5 = this.states,
- lazy = _states5.lazy,
- treeData = _states5.treeData,
- rowKey = _states5.rowKey;
- var id = getRowIdentity(row, rowKey);
- var data = treeData[id];
- if (lazy && data && 'loaded' in data && !data.loaded) {
- this.loadData(row, id, data);
- } else {
- this.toggleTreeExpansion(row);
- }
- },
- loadData: function loadData(row, key, treeNode) {
- var _this = this;
- var load = this.table.load;
- var _states6 = this.states,
- lazyTreeNodeMap = _states6.lazyTreeNodeMap,
- treeData = _states6.treeData;
- if (load && !treeData[key].loaded) {
- treeData[key].loading = true;
- load(row, treeNode, function (data) {
- if (!Array.isArray(data)) {
- throw new Error('[ElTable] data must be an array');
- }
- treeData[key].loading = false;
- treeData[key].loaded = true;
- treeData[key].expanded = true;
- if (data.length) {
- _this.$set(lazyTreeNodeMap, key, data);
- }
- _this.table.$emit('expand-change', row, true);
- });
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/store/watcher.js
- var watcher_sortData = function sortData(data, states) {
- var sortingColumn = states.sortingColumn;
- if (!sortingColumn || typeof sortingColumn.sortable === 'string') {
- return data;
- }
- return util_orderBy(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
- };
- var doFlattenColumns = function doFlattenColumns(columns) {
- var result = [];
- columns.forEach(function (column) {
- if (column.children) {
- result.push.apply(result, doFlattenColumns(column.children));
- } else {
- result.push(column);
- }
- });
- return result;
- };
- /* harmony default export */ var watcher = (external_vue_default.a.extend({
- data: function data() {
- return {
- states: {
- // 3.0 版本后要求必须设置该属性
- rowKey: null,
- // 渲染的数据来源,是对 table 中的 data 过滤排序后的结果
- data: [],
- // 是否包含固定列
- isComplex: false,
- // 列
- _columns: [], // 不可响应的
- originColumns: [],
- columns: [],
- fixedColumns: [],
- rightFixedColumns: [],
- leafColumns: [],
- fixedLeafColumns: [],
- rightFixedLeafColumns: [],
- leafColumnsLength: 0,
- fixedLeafColumnsLength: 0,
- rightFixedLeafColumnsLength: 0,
- // 选择
- isAllSelected: false,
- selection: [],
- reserveSelection: false,
- selectOnIndeterminate: false,
- selectable: null,
- // 过滤
- filters: {}, // 不可响应的
- filteredData: null,
- // 排序
- sortingColumn: null,
- sortProp: null,
- sortOrder: null,
- hoverRow: null
- }
- };
- },
- mixins: [expand, current, tree],
- methods: {
- // 检查 rowKey 是否存在
- assertRowKey: function assertRowKey() {
- var rowKey = this.states.rowKey;
- if (!rowKey) throw new Error('[ElTable] prop row-key is required');
- },
- // 更新列
- updateColumns: function updateColumns() {
- var states = this.states;
- var _columns = states._columns || [];
- states.fixedColumns = _columns.filter(function (column) {
- return column.fixed === true || column.fixed === 'left';
- });
- states.rightFixedColumns = _columns.filter(function (column) {
- return column.fixed === 'right';
- });
- if (states.fixedColumns.length > 0 && _columns[0] && _columns[0].type === 'selection' && !_columns[0].fixed) {
- _columns[0].fixed = true;
- states.fixedColumns.unshift(_columns[0]);
- }
- var notFixedColumns = _columns.filter(function (column) {
- return !column.fixed;
- });
- states.originColumns = [].concat(states.fixedColumns).concat(notFixedColumns).concat(states.rightFixedColumns);
- var leafColumns = doFlattenColumns(notFixedColumns);
- var fixedLeafColumns = doFlattenColumns(states.fixedColumns);
- var rightFixedLeafColumns = doFlattenColumns(states.rightFixedColumns);
- states.leafColumnsLength = leafColumns.length;
- states.fixedLeafColumnsLength = fixedLeafColumns.length;
- states.rightFixedLeafColumnsLength = rightFixedLeafColumns.length;
- states.columns = [].concat(fixedLeafColumns).concat(leafColumns).concat(rightFixedLeafColumns);
- states.isComplex = states.fixedColumns.length > 0 || states.rightFixedColumns.length > 0;
- },
- // 更新 DOM
- scheduleLayout: function scheduleLayout(needUpdateColumns) {
- if (needUpdateColumns) {
- this.updateColumns();
- }
- this.table.debouncedUpdateLayout();
- },
- // 选择
- isSelected: function isSelected(row) {
- var _states$selection = this.states.selection,
- selection = _states$selection === undefined ? [] : _states$selection;
- return selection.indexOf(row) > -1;
- },
- clearSelection: function clearSelection() {
- var states = this.states;
- states.isAllSelected = false;
- var oldSelection = states.selection;
- if (oldSelection.length) {
- states.selection = [];
- this.table.$emit('selection-change', []);
- }
- },
- cleanSelection: function cleanSelection() {
- var states = this.states;
- var data = states.data,
- rowKey = states.rowKey,
- selection = states.selection;
- var deleted = void 0;
- if (rowKey) {
- deleted = [];
- var selectedMap = getKeysMap(selection, rowKey);
- var dataMap = getKeysMap(data, rowKey);
- for (var key in selectedMap) {
- if (selectedMap.hasOwnProperty(key) && !dataMap[key]) {
- deleted.push(selectedMap[key].row);
- }
- }
- } else {
- deleted = selection.filter(function (item) {
- return data.indexOf(item) === -1;
- });
- }
- if (deleted.length) {
- var newSelection = selection.filter(function (item) {
- return deleted.indexOf(item) === -1;
- });
- states.selection = newSelection;
- this.table.$emit('selection-change', newSelection.slice());
- }
- },
- toggleRowSelection: function toggleRowSelection(row, selected) {
- var emitChange = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- var changed = toggleRowStatus(this.states.selection, row, selected);
- if (changed) {
- var newSelection = (this.states.selection || []).slice();
- // 调用 API 修改选中值,不触发 select 事件
- if (emitChange) {
- this.table.$emit('select', newSelection, row);
- }
- this.table.$emit('selection-change', newSelection);
- }
- },
- _toggleAllSelection: function _toggleAllSelection() {
- var states = this.states;
- var _states$data = states.data,
- data = _states$data === undefined ? [] : _states$data,
- selection = states.selection;
- // when only some rows are selected (but not all), select or deselect all of them
- // depending on the value of selectOnIndeterminate
- var value = states.selectOnIndeterminate ? !states.isAllSelected : !(states.isAllSelected || selection.length);
- states.isAllSelected = value;
- var selectionChanged = false;
- data.forEach(function (row, index) {
- if (states.selectable) {
- if (states.selectable.call(null, row, index) && toggleRowStatus(selection, row, value)) {
- selectionChanged = true;
- }
- } else {
- if (toggleRowStatus(selection, row, value)) {
- selectionChanged = true;
- }
- }
- });
- if (selectionChanged) {
- this.table.$emit('selection-change', selection ? selection.slice() : []);
- }
- this.table.$emit('select-all', selection);
- },
- updateSelectionByRowKey: function updateSelectionByRowKey() {
- var states = this.states;
- var selection = states.selection,
- rowKey = states.rowKey,
- data = states.data;
- var selectedMap = getKeysMap(selection, rowKey);
- data.forEach(function (row) {
- var rowId = getRowIdentity(row, rowKey);
- var rowInfo = selectedMap[rowId];
- if (rowInfo) {
- selection[rowInfo.index] = row;
- }
- });
- },
- updateAllSelected: function updateAllSelected() {
- var states = this.states;
- var selection = states.selection,
- rowKey = states.rowKey,
- selectable = states.selectable;
- // data 为 null 时,解构时的默认值会被忽略
- var data = states.data || [];
- if (data.length === 0) {
- states.isAllSelected = false;
- return;
- }
- var selectedMap = void 0;
- if (rowKey) {
- selectedMap = getKeysMap(selection, rowKey);
- }
- var isSelected = function isSelected(row) {
- if (selectedMap) {
- return !!selectedMap[getRowIdentity(row, rowKey)];
- } else {
- return selection.indexOf(row) !== -1;
- }
- };
- var isAllSelected = true;
- var selectedCount = 0;
- for (var i = 0, j = data.length; i < j; i++) {
- var item = data[i];
- var isRowSelectable = selectable && selectable.call(null, item, i);
- if (!isSelected(item)) {
- if (!selectable || isRowSelectable) {
- isAllSelected = false;
- break;
- }
- } else {
- selectedCount++;
- }
- }
- if (selectedCount === 0) isAllSelected = false;
- states.isAllSelected = isAllSelected;
- },
- // 过滤与排序
- updateFilters: function updateFilters(columns, values) {
- if (!Array.isArray(columns)) {
- columns = [columns];
- }
- var states = this.states;
- var filters = {};
- columns.forEach(function (col) {
- states.filters[col.id] = values;
- filters[col.columnKey || col.id] = values;
- });
- return filters;
- },
- updateSort: function updateSort(column, prop, order) {
- if (this.states.sortingColumn && this.states.sortingColumn !== column) {
- this.states.sortingColumn.order = null;
- }
- this.states.sortingColumn = column;
- this.states.sortProp = prop;
- this.states.sortOrder = order;
- },
- execFilter: function execFilter() {
- var _this = this;
- var states = this.states;
- var _data = states._data,
- filters = states.filters;
- var data = _data;
- Object.keys(filters).forEach(function (columnId) {
- var values = states.filters[columnId];
- if (!values || values.length === 0) return;
- var column = getColumnById(_this.states, columnId);
- if (column && column.filterMethod) {
- data = data.filter(function (row) {
- return values.some(function (value) {
- return column.filterMethod.call(null, value, row, column);
- });
- });
- }
- });
- states.filteredData = data;
- },
- execSort: function execSort() {
- var states = this.states;
- states.data = watcher_sortData(states.filteredData, states);
- },
- // 根据 filters 与 sort 去过滤 data
- execQuery: function execQuery(ignore) {
- if (!(ignore && ignore.filter)) {
- this.execFilter();
- }
- this.execSort();
- },
- clearFilter: function clearFilter(columnKeys) {
- var states = this.states;
- var _table$$refs = this.table.$refs,
- tableHeader = _table$$refs.tableHeader,
- fixedTableHeader = _table$$refs.fixedTableHeader,
- rightFixedTableHeader = _table$$refs.rightFixedTableHeader;
- var panels = {};
- if (tableHeader) panels = merge_default()(panels, tableHeader.filterPanels);
- if (fixedTableHeader) panels = merge_default()(panels, fixedTableHeader.filterPanels);
- if (rightFixedTableHeader) panels = merge_default()(panels, rightFixedTableHeader.filterPanels);
- var keys = Object.keys(panels);
- if (!keys.length) return;
- if (typeof columnKeys === 'string') {
- columnKeys = [columnKeys];
- }
- if (Array.isArray(columnKeys)) {
- var columns = columnKeys.map(function (key) {
- return getColumnByKey(states, key);
- });
- keys.forEach(function (key) {
- var column = columns.find(function (col) {
- return col.id === key;
- });
- if (column) {
- // TODO: 优化这里的代码
- panels[key].filteredValue = [];
- }
- });
- this.commit('filterChange', {
- column: columns,
- values: [],
- silent: true,
- multi: true
- });
- } else {
- keys.forEach(function (key) {
- // TODO: 优化这里的代码
- panels[key].filteredValue = [];
- });
- states.filters = {};
- this.commit('filterChange', {
- column: {},
- values: [],
- silent: true
- });
- }
- },
- clearSort: function clearSort() {
- var states = this.states;
- if (!states.sortingColumn) return;
- this.updateSort(null, null, null);
- this.commit('changeSortCondition', {
- silent: true
- });
- },
- // 适配层,expand-row-keys 在 Expand 与 TreeTable 中都有使用
- setExpandRowKeysAdapter: function setExpandRowKeysAdapter(val) {
- // 这里会触发额外的计算,但为了兼容性,暂时这么做
- this.setExpandRowKeys(val);
- this.updateTreeExpandKeys(val);
- },
- // 展开行与 TreeTable 都要使用
- toggleRowExpansionAdapter: function toggleRowExpansionAdapter(row, expanded) {
- var hasExpandColumn = this.states.columns.some(function (_ref) {
- var type = _ref.type;
- return type === 'expand';
- });
- if (hasExpandColumn) {
- this.toggleRowExpansion(row, expanded);
- } else {
- this.toggleTreeExpansion(row, expanded);
- }
- }
- }
- }));
- // CONCATENATED MODULE: ./packages/table/src/store/index.js
- watcher.prototype.mutations = {
- setData: function setData(states, data) {
- var dataInstanceChanged = states._data !== data;
- states._data = data;
- this.execQuery();
- // 数据变化,更新部分数据。
- // 没有使用 computed,而是手动更新部分数据 https://github.com/vuejs/vue/issues/6660#issuecomment-331417140
- this.updateCurrentRowData();
- this.updateExpandRows();
- if (states.reserveSelection) {
- this.assertRowKey();
- this.updateSelectionByRowKey();
- } else {
- if (dataInstanceChanged) {
- this.clearSelection();
- } else {
- this.cleanSelection();
- }
- }
- this.updateAllSelected();
- this.updateTableScrollY();
- },
- insertColumn: function insertColumn(states, column, index, parent) {
- var array = states._columns;
- if (parent) {
- array = parent.children;
- if (!array) array = parent.children = [];
- }
- if (typeof index !== 'undefined') {
- array.splice(index, 0, column);
- } else {
- array.push(column);
- }
- if (column.type === 'selection') {
- states.selectable = column.selectable;
- states.reserveSelection = column.reserveSelection;
- }
- if (this.table.$ready) {
- this.updateColumns(); // hack for dynamics insert column
- this.scheduleLayout();
- }
- },
- removeColumn: function removeColumn(states, column, parent) {
- var array = states._columns;
- if (parent) {
- array = parent.children;
- if (!array) array = parent.children = [];
- }
- if (array) {
- array.splice(array.indexOf(column), 1);
- }
- if (this.table.$ready) {
- this.updateColumns(); // hack for dynamics remove column
- this.scheduleLayout();
- }
- },
- sort: function sort(states, options) {
- var prop = options.prop,
- order = options.order,
- init = options.init;
- if (prop) {
- var column = Object(util_["arrayFind"])(states.columns, function (column) {
- return column.property === prop;
- });
- if (column) {
- column.order = order;
- this.updateSort(column, prop, order);
- this.commit('changeSortCondition', { init: init });
- }
- }
- },
- changeSortCondition: function changeSortCondition(states, options) {
- // 修复 pr https://github.com/ElemeFE/element/pull/15012 导致的 bug
- var column = states.sortingColumn,
- prop = states.sortProp,
- order = states.sortOrder;
- if (order === null) {
- states.sortingColumn = null;
- states.sortProp = null;
- }
- var ingore = { filter: true };
- this.execQuery(ingore);
- if (!options || !(options.silent || options.init)) {
- this.table.$emit('sort-change', {
- column: column,
- prop: prop,
- order: order
- });
- }
- this.updateTableScrollY();
- },
- filterChange: function filterChange(states, options) {
- var column = options.column,
- values = options.values,
- silent = options.silent;
- var newFilters = this.updateFilters(column, values);
- this.execQuery();
- if (!silent) {
- this.table.$emit('filter-change', newFilters);
- }
- this.updateTableScrollY();
- },
- toggleAllSelection: function toggleAllSelection() {
- this.toggleAllSelection();
- },
- rowSelectedChanged: function rowSelectedChanged(states, row) {
- this.toggleRowSelection(row);
- this.updateAllSelected();
- },
- setHoverRow: function setHoverRow(states, row) {
- states.hoverRow = row;
- },
- setCurrentRow: function setCurrentRow(states, row) {
- this.updateCurrentRow(row);
- }
- };
- watcher.prototype.commit = function (name) {
- var mutations = this.mutations;
- if (mutations[name]) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- mutations[name].apply(this, [this.states].concat(args));
- } else {
- throw new Error('Action not found: ' + name);
- }
- };
- watcher.prototype.updateTableScrollY = function () {
- external_vue_default.a.nextTick(this.table.updateScrollY);
- };
- /* harmony default export */ var src_store = (watcher);
- // CONCATENATED MODULE: ./packages/table/src/store/helper.js
- function createStore(table) {
- var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (!table) {
- throw new Error('Table is required.');
- }
- var store = new src_store();
- store.table = table;
- // fix https://github.com/ElemeFE/element/issues/14075
- // related pr https://github.com/ElemeFE/element/pull/14146
- store.toggleAllSelection = debounce_default()(10, store._toggleAllSelection);
- Object.keys(initialState).forEach(function (key) {
- store.states[key] = initialState[key];
- });
- return store;
- }
- function mapStates(mapper) {
- var res = {};
- Object.keys(mapper).forEach(function (key) {
- var value = mapper[key];
- var fn = void 0;
- if (typeof value === 'string') {
- fn = function fn() {
- return this.store.states[value];
- };
- } else if (typeof value === 'function') {
- fn = function fn() {
- return value.call(this, this.store.states);
- };
- } else {
- console.error('invalid value type');
- }
- if (fn) {
- res[key] = fn;
- }
- });
- return res;
- };
- // EXTERNAL MODULE: external "element-ui/lib/utils/scrollbar-width"
- var scrollbar_width_ = __webpack_require__(31);
- var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
- // CONCATENATED MODULE: ./packages/table/src/table-layout.js
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var table_layout_TableLayout = function () {
- function TableLayout(options) {
- _classCallCheck(this, TableLayout);
- this.observers = [];
- this.table = null;
- this.store = null;
- this.columns = null;
- this.fit = true;
- this.showHeader = true;
- this.height = null;
- this.scrollX = false;
- this.scrollY = false;
- this.bodyWidth = null;
- this.fixedWidth = null;
- this.rightFixedWidth = null;
- this.tableHeight = null;
- this.headerHeight = 44; // Table Header Height
- this.appendHeight = 0; // Append Slot Height
- this.footerHeight = 44; // Table Footer Height
- this.viewportHeight = null; // Table Height - Scroll Bar Height
- this.bodyHeight = null; // Table Height - Table Header Height
- this.fixedBodyHeight = null; // Table Height - Table Header Height - Scroll Bar Height
- this.gutterWidth = scrollbar_width_default()();
- for (var name in options) {
- if (options.hasOwnProperty(name)) {
- this[name] = options[name];
- }
- }
- if (!this.table) {
- throw new Error('table is required for Table Layout');
- }
- if (!this.store) {
- throw new Error('store is required for Table Layout');
- }
- }
- TableLayout.prototype.updateScrollY = function updateScrollY() {
- var height = this.height;
- if (height === null) return false;
- var bodyWrapper = this.table.bodyWrapper;
- if (this.table.$el && bodyWrapper) {
- var body = bodyWrapper.querySelector('.el-table__body');
- var prevScrollY = this.scrollY;
- var scrollY = body.offsetHeight > this.bodyHeight;
- this.scrollY = scrollY;
- return prevScrollY !== scrollY;
- }
- return false;
- };
- TableLayout.prototype.setHeight = function setHeight(value) {
- var _this = this;
- var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'height';
- if (external_vue_default.a.prototype.$isServer) return;
- var el = this.table.$el;
- value = parseHeight(value);
- this.height = value;
- if (!el && (value || value === 0)) return external_vue_default.a.nextTick(function () {
- return _this.setHeight(value, prop);
- });
- if (typeof value === 'number') {
- el.style[prop] = value + 'px';
- this.updateElsHeight();
- } else if (typeof value === 'string') {
- el.style[prop] = value;
- this.updateElsHeight();
- }
- };
- TableLayout.prototype.setMaxHeight = function setMaxHeight(value) {
- this.setHeight(value, 'max-height');
- };
- TableLayout.prototype.getFlattenColumns = function getFlattenColumns() {
- var flattenColumns = [];
- var columns = this.table.columns;
- columns.forEach(function (column) {
- if (column.isColumnGroup) {
- flattenColumns.push.apply(flattenColumns, column.columns);
- } else {
- flattenColumns.push(column);
- }
- });
- return flattenColumns;
- };
- TableLayout.prototype.updateElsHeight = function updateElsHeight() {
- var _this2 = this;
- if (!this.table.$ready) return external_vue_default.a.nextTick(function () {
- return _this2.updateElsHeight();
- });
- var _table$$refs = this.table.$refs,
- headerWrapper = _table$$refs.headerWrapper,
- appendWrapper = _table$$refs.appendWrapper,
- footerWrapper = _table$$refs.footerWrapper;
- this.appendHeight = appendWrapper ? appendWrapper.offsetHeight : 0;
- if (this.showHeader && !headerWrapper) return;
- // fix issue (https://github.com/ElemeFE/element/pull/16956)
- var headerTrElm = headerWrapper ? headerWrapper.querySelector('.el-table__header tr') : null;
- var noneHeader = this.headerDisplayNone(headerTrElm);
- var headerHeight = this.headerHeight = !this.showHeader ? 0 : headerWrapper.offsetHeight;
- if (this.showHeader && !noneHeader && headerWrapper.offsetWidth > 0 && (this.table.columns || []).length > 0 && headerHeight < 2) {
- return external_vue_default.a.nextTick(function () {
- return _this2.updateElsHeight();
- });
- }
- var tableHeight = this.tableHeight = this.table.$el.clientHeight;
- var footerHeight = this.footerHeight = footerWrapper ? footerWrapper.offsetHeight : 0;
- if (this.height !== null) {
- this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
- }
- this.fixedBodyHeight = this.scrollX ? this.bodyHeight - this.gutterWidth : this.bodyHeight;
- var noData = !(this.store.states.data && this.store.states.data.length);
- this.viewportHeight = this.scrollX ? tableHeight - (noData ? 0 : this.gutterWidth) : tableHeight;
- this.updateScrollY();
- this.notifyObservers('scrollable');
- };
- TableLayout.prototype.headerDisplayNone = function headerDisplayNone(elm) {
- if (!elm) return true;
- var headerChild = elm;
- while (headerChild.tagName !== 'DIV') {
- if (getComputedStyle(headerChild).display === 'none') {
- return true;
- }
- headerChild = headerChild.parentElement;
- }
- return false;
- };
- TableLayout.prototype.updateColumnsWidth = function updateColumnsWidth() {
- if (external_vue_default.a.prototype.$isServer) return;
- var fit = this.fit;
- var bodyWidth = this.table.$el.clientWidth;
- var bodyMinWidth = 0;
- var flattenColumns = this.getFlattenColumns();
- var flexColumns = flattenColumns.filter(function (column) {
- return typeof column.width !== 'number';
- });
- flattenColumns.forEach(function (column) {
- // Clean those columns whose width changed from flex to unflex
- if (typeof column.width === 'number' && column.realWidth) column.realWidth = null;
- });
- if (flexColumns.length > 0 && fit) {
- flattenColumns.forEach(function (column) {
- bodyMinWidth += column.width || column.minWidth || 80;
- });
- var scrollYWidth = this.scrollY ? this.gutterWidth : 0;
- if (bodyMinWidth <= bodyWidth - scrollYWidth) {
- // DON'T HAVE SCROLL BAR
- this.scrollX = false;
- var totalFlexWidth = bodyWidth - scrollYWidth - bodyMinWidth;
- if (flexColumns.length === 1) {
- flexColumns[0].realWidth = (flexColumns[0].minWidth || 80) + totalFlexWidth;
- } else {
- var allColumnsWidth = flexColumns.reduce(function (prev, column) {
- return prev + (column.minWidth || 80);
- }, 0);
- var flexWidthPerPixel = totalFlexWidth / allColumnsWidth;
- var noneFirstWidth = 0;
- flexColumns.forEach(function (column, index) {
- if (index === 0) return;
- var flexWidth = Math.floor((column.minWidth || 80) * flexWidthPerPixel);
- noneFirstWidth += flexWidth;
- column.realWidth = (column.minWidth || 80) + flexWidth;
- });
- flexColumns[0].realWidth = (flexColumns[0].minWidth || 80) + totalFlexWidth - noneFirstWidth;
- }
- } else {
- // HAVE HORIZONTAL SCROLL BAR
- this.scrollX = true;
- flexColumns.forEach(function (column) {
- column.realWidth = column.minWidth;
- });
- }
- this.bodyWidth = Math.max(bodyMinWidth, bodyWidth);
- this.table.resizeState.width = this.bodyWidth;
- } else {
- flattenColumns.forEach(function (column) {
- if (!column.width && !column.minWidth) {
- column.realWidth = 80;
- } else {
- column.realWidth = column.width || column.minWidth;
- }
- bodyMinWidth += column.realWidth;
- });
- this.scrollX = bodyMinWidth > bodyWidth;
- this.bodyWidth = bodyMinWidth;
- }
- var fixedColumns = this.store.states.fixedColumns;
- if (fixedColumns.length > 0) {
- var fixedWidth = 0;
- fixedColumns.forEach(function (column) {
- fixedWidth += column.realWidth || column.width;
- });
- this.fixedWidth = fixedWidth;
- }
- var rightFixedColumns = this.store.states.rightFixedColumns;
- if (rightFixedColumns.length > 0) {
- var rightFixedWidth = 0;
- rightFixedColumns.forEach(function (column) {
- rightFixedWidth += column.realWidth || column.width;
- });
- this.rightFixedWidth = rightFixedWidth;
- }
- this.notifyObservers('columns');
- };
- TableLayout.prototype.addObserver = function addObserver(observer) {
- this.observers.push(observer);
- };
- TableLayout.prototype.removeObserver = function removeObserver(observer) {
- var index = this.observers.indexOf(observer);
- if (index !== -1) {
- this.observers.splice(index, 1);
- }
- };
- TableLayout.prototype.notifyObservers = function notifyObservers(event) {
- var _this3 = this;
- var observers = this.observers;
- observers.forEach(function (observer) {
- switch (event) {
- case 'columns':
- observer.onColumnsChange(_this3);
- break;
- case 'scrollable':
- observer.onScrollableChange(_this3);
- break;
- default:
- throw new Error('Table Layout don\'t have event ' + event + '.');
- }
- });
- };
- return TableLayout;
- }();
- /* harmony default export */ var table_layout = (table_layout_TableLayout);
- // CONCATENATED MODULE: ./packages/table/src/layout-observer.js
- /* harmony default export */ var layout_observer = ({
- created: function created() {
- this.tableLayout.addObserver(this);
- },
- destroyed: function destroyed() {
- this.tableLayout.removeObserver(this);
- },
- computed: {
- tableLayout: function tableLayout() {
- var layout = this.layout;
- if (!layout && this.table) {
- layout = this.table.layout;
- }
- if (!layout) {
- throw new Error('Can not find table layout.');
- }
- return layout;
- }
- },
- mounted: function mounted() {
- this.onColumnsChange(this.tableLayout);
- this.onScrollableChange(this.tableLayout);
- },
- updated: function updated() {
- if (this.__updated__) return;
- this.onColumnsChange(this.tableLayout);
- this.onScrollableChange(this.tableLayout);
- this.__updated__ = true;
- },
- methods: {
- onColumnsChange: function onColumnsChange(layout) {
- var cols = this.$el.querySelectorAll('colgroup > col');
- if (!cols.length) return;
- var flattenColumns = layout.getFlattenColumns();
- var columnsMap = {};
- flattenColumns.forEach(function (column) {
- columnsMap[column.id] = column;
- });
- for (var i = 0, j = cols.length; i < j; i++) {
- var col = cols[i];
- var name = col.getAttribute('name');
- var column = columnsMap[name];
- if (column) {
- col.setAttribute('width', column.realWidth || column.width);
- }
- }
- },
- onScrollableChange: function onScrollableChange(layout) {
- var cols = this.$el.querySelectorAll('colgroup > col[name=gutter]');
- for (var i = 0, j = cols.length; i < j; i++) {
- var col = cols[i];
- col.setAttribute('width', layout.scrollY ? layout.gutterWidth : '0');
- }
- var ths = this.$el.querySelectorAll('th.gutter');
- for (var _i = 0, _j = ths.length; _i < _j; _i++) {
- var th = ths[_i];
- th.style.width = layout.scrollY ? layout.gutterWidth + 'px' : '0';
- th.style.display = layout.scrollY ? '' : 'none';
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/table-body.js
- var table_body_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- var table_body_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- /* harmony default export */ var table_body = ({
- name: 'ElTableBody',
- mixins: [layout_observer],
- components: {
- ElCheckbox: checkbox_default.a,
- ElTooltip: tooltip_default.a
- },
- props: {
- store: {
- required: true
- },
- stripe: Boolean,
- context: {},
- rowClassName: [String, Function],
- rowStyle: [Object, Function],
- fixed: String,
- highlight: Boolean
- },
- render: function render(h) {
- var _this = this;
- var data = this.data || [];
- return h(
- 'table',
- {
- 'class': 'el-table__body',
- attrs: { cellspacing: '0',
- cellpadding: '0',
- border: '0' }
- },
- [h('colgroup', [this.columns.map(function (column) {
- return h('col', {
- attrs: { name: column.id },
- key: column.id });
- })]), h('tbody', [data.reduce(function (acc, row) {
- return acc.concat(_this.wrappedRowRender(row, acc.length));
- }, []), h('el-tooltip', {
- attrs: { effect: this.table.tooltipEffect, placement: 'top', content: this.tooltipContent },
- ref: 'tooltip' })])]
- );
- },
- computed: table_body_extends({
- table: function table() {
- return this.$parent;
- }
- }, mapStates({
- data: 'data',
- columns: 'columns',
- treeIndent: 'indent',
- leftFixedLeafCount: 'fixedLeafColumnsLength',
- rightFixedLeafCount: 'rightFixedLeafColumnsLength',
- columnsCount: function columnsCount(states) {
- return states.columns.length;
- },
- leftFixedCount: function leftFixedCount(states) {
- return states.fixedColumns.length;
- },
- rightFixedCount: function rightFixedCount(states) {
- return states.rightFixedColumns.length;
- },
- hasExpandColumn: function hasExpandColumn(states) {
- return states.columns.some(function (_ref) {
- var type = _ref.type;
- return type === 'expand';
- });
- }
- }), {
- firstDefaultColumnIndex: function firstDefaultColumnIndex() {
- return Object(util_["arrayFindIndex"])(this.columns, function (_ref2) {
- var type = _ref2.type;
- return type === 'default';
- });
- }
- }),
- watch: {
- // don't trigger getter of currentRow in getCellClass. see https://jsfiddle.net/oe2b4hqt/
- // update DOM manually. see https://github.com/ElemeFE/element/pull/13954/files#diff-9b450c00d0a9dec0ffad5a3176972e40
- 'store.states.hoverRow': function storeStatesHoverRow(newVal, oldVal) {
- var _this2 = this;
- if (!this.store.states.isComplex || this.$isServer) return;
- var raf = window.requestAnimationFrame;
- if (!raf) {
- raf = function raf(fn) {
- return setTimeout(fn, 16);
- };
- }
- raf(function () {
- var rows = _this2.$el.querySelectorAll('.el-table__row');
- var oldRow = rows[oldVal];
- var newRow = rows[newVal];
- if (oldRow) {
- Object(dom_["removeClass"])(oldRow, 'hover-row');
- }
- if (newRow) {
- Object(dom_["addClass"])(newRow, 'hover-row');
- }
- });
- }
- },
- data: function data() {
- return {
- tooltipContent: ''
- };
- },
- created: function created() {
- this.activateTooltip = debounce_default()(50, function (tooltip) {
- return tooltip.handleShowPopper();
- });
- },
- methods: {
- getKeyOfRow: function getKeyOfRow(row, index) {
- var rowKey = this.table.rowKey;
- if (rowKey) {
- return getRowIdentity(row, rowKey);
- }
- return index;
- },
- isColumnHidden: function isColumnHidden(index) {
- if (this.fixed === true || this.fixed === 'left') {
- return index >= this.leftFixedLeafCount;
- } else if (this.fixed === 'right') {
- return index < this.columnsCount - this.rightFixedLeafCount;
- } else {
- return index < this.leftFixedLeafCount || index >= this.columnsCount - this.rightFixedLeafCount;
- }
- },
- getSpan: function getSpan(row, column, rowIndex, columnIndex) {
- var rowspan = 1;
- var colspan = 1;
- var fn = this.table.spanMethod;
- if (typeof fn === 'function') {
- var result = fn({
- row: row,
- column: column,
- rowIndex: rowIndex,
- columnIndex: columnIndex
- });
- if (Array.isArray(result)) {
- rowspan = result[0];
- colspan = result[1];
- } else if ((typeof result === 'undefined' ? 'undefined' : table_body_typeof(result)) === 'object') {
- rowspan = result.rowspan;
- colspan = result.colspan;
- }
- }
- return { rowspan: rowspan, colspan: colspan };
- },
- getRowStyle: function getRowStyle(row, rowIndex) {
- var rowStyle = this.table.rowStyle;
- if (typeof rowStyle === 'function') {
- return rowStyle.call(null, {
- row: row,
- rowIndex: rowIndex
- });
- }
- return rowStyle || null;
- },
- getRowClass: function getRowClass(row, rowIndex) {
- var classes = ['el-table__row'];
- if (this.table.highlightCurrentRow && row === this.store.states.currentRow) {
- classes.push('current-row');
- }
- if (this.stripe && rowIndex % 2 === 1) {
- classes.push('el-table__row--striped');
- }
- var rowClassName = this.table.rowClassName;
- if (typeof rowClassName === 'string') {
- classes.push(rowClassName);
- } else if (typeof rowClassName === 'function') {
- classes.push(rowClassName.call(null, {
- row: row,
- rowIndex: rowIndex
- }));
- }
- if (this.store.states.expandRows.indexOf(row) > -1) {
- classes.push('expanded');
- }
- return classes;
- },
- getCellStyle: function getCellStyle(rowIndex, columnIndex, row, column) {
- var cellStyle = this.table.cellStyle;
- if (typeof cellStyle === 'function') {
- return cellStyle.call(null, {
- rowIndex: rowIndex,
- columnIndex: columnIndex,
- row: row,
- column: column
- });
- }
- return cellStyle;
- },
- getCellClass: function getCellClass(rowIndex, columnIndex, row, column) {
- var classes = [column.id, column.align, column.className];
- if (this.isColumnHidden(columnIndex)) {
- classes.push('is-hidden');
- }
- var cellClassName = this.table.cellClassName;
- if (typeof cellClassName === 'string') {
- classes.push(cellClassName);
- } else if (typeof cellClassName === 'function') {
- classes.push(cellClassName.call(null, {
- rowIndex: rowIndex,
- columnIndex: columnIndex,
- row: row,
- column: column
- }));
- }
- return classes.join(' ');
- },
- getColspanRealWidth: function getColspanRealWidth(columns, colspan, index) {
- if (colspan < 1) {
- return columns[index].realWidth;
- }
- var widthArr = columns.map(function (_ref3) {
- var realWidth = _ref3.realWidth;
- return realWidth;
- }).slice(index, index + colspan);
- return widthArr.reduce(function (acc, width) {
- return acc + width;
- }, -1);
- },
- handleCellMouseEnter: function handleCellMouseEnter(event, row) {
- var table = this.table;
- var cell = getCell(event);
- if (cell) {
- var column = getColumnByCell(table, cell);
- var hoverState = table.hoverState = { cell: cell, column: column, row: row };
- table.$emit('cell-mouse-enter', hoverState.row, hoverState.column, hoverState.cell, event);
- }
- // 判断是否text-overflow, 如果是就显示tooltip
- var cellChild = event.target.querySelector('.cell');
- if (!(Object(dom_["hasClass"])(cellChild, 'el-tooltip') && cellChild.childNodes.length)) {
- return;
- }
- // use range width instead of scrollWidth to determine whether the text is overflowing
- // to address a potential FireFox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1074543#c3
- var range = document.createRange();
- range.setStart(cellChild, 0);
- range.setEnd(cellChild, cellChild.childNodes.length);
- var rangeWidth = range.getBoundingClientRect().width;
- var padding = (parseInt(Object(dom_["getStyle"])(cellChild, 'paddingLeft'), 10) || 0) + (parseInt(Object(dom_["getStyle"])(cellChild, 'paddingRight'), 10) || 0);
- if ((rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) && this.$refs.tooltip) {
- var tooltip = this.$refs.tooltip;
- // TODO 会引起整个 Table 的重新渲染,需要优化
- this.tooltipContent = cell.innerText || cell.textContent;
- tooltip.referenceElm = cell;
- tooltip.$refs.popper && (tooltip.$refs.popper.style.display = 'none');
- tooltip.doDestroy();
- tooltip.setExpectedState(true);
- this.activateTooltip(tooltip);
- }
- },
- handleCellMouseLeave: function handleCellMouseLeave(event) {
- var tooltip = this.$refs.tooltip;
- if (tooltip) {
- tooltip.setExpectedState(false);
- tooltip.handleClosePopper();
- }
- var cell = getCell(event);
- if (!cell) return;
- var oldHoverState = this.table.hoverState || {};
- this.table.$emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, event);
- },
- handleMouseEnter: debounce_default()(30, function (index) {
- this.store.commit('setHoverRow', index);
- }),
- handleMouseLeave: debounce_default()(30, function () {
- this.store.commit('setHoverRow', null);
- }),
- handleContextMenu: function handleContextMenu(event, row) {
- this.handleEvent(event, row, 'contextmenu');
- },
- handleDoubleClick: function handleDoubleClick(event, row) {
- this.handleEvent(event, row, 'dblclick');
- },
- handleClick: function handleClick(event, row) {
- this.store.commit('setCurrentRow', row);
- this.handleEvent(event, row, 'click');
- },
- handleEvent: function handleEvent(event, row, name) {
- var table = this.table;
- var cell = getCell(event);
- var column = void 0;
- if (cell) {
- column = getColumnByCell(table, cell);
- if (column) {
- table.$emit('cell-' + name, row, column, cell, event);
- }
- }
- table.$emit('row-' + name, row, column, event);
- },
- rowRender: function rowRender(row, $index, treeRowData) {
- var _this3 = this;
- var h = this.$createElement;
- var treeIndent = this.treeIndent,
- columns = this.columns,
- firstDefaultColumnIndex = this.firstDefaultColumnIndex;
- var columnsHidden = columns.map(function (column, index) {
- return _this3.isColumnHidden(index);
- });
- var rowClasses = this.getRowClass(row, $index);
- var display = true;
- if (treeRowData) {
- rowClasses.push('el-table__row--level-' + treeRowData.level);
- display = treeRowData.display;
- }
- // 指令 v-show 会覆盖 row-style 中 display
- // 使用 :style 代替 v-show https://github.com/ElemeFE/element/issues/16995
- var displayStyle = display ? null : {
- display: 'none'
- };
- return h(
- 'tr',
- {
- style: [displayStyle, this.getRowStyle(row, $index)],
- 'class': rowClasses,
- key: this.getKeyOfRow(row, $index),
- on: {
- 'dblclick': function dblclick($event) {
- return _this3.handleDoubleClick($event, row);
- },
- 'click': function click($event) {
- return _this3.handleClick($event, row);
- },
- 'contextmenu': function contextmenu($event) {
- return _this3.handleContextMenu($event, row);
- },
- 'mouseenter': function mouseenter(_) {
- return _this3.handleMouseEnter($index);
- },
- 'mouseleave': this.handleMouseLeave
- }
- },
- [columns.map(function (column, cellIndex) {
- var _getSpan = _this3.getSpan(row, column, $index, cellIndex),
- rowspan = _getSpan.rowspan,
- colspan = _getSpan.colspan;
- if (!rowspan || !colspan) {
- return null;
- }
- var columnData = table_body_extends({}, column);
- columnData.realWidth = _this3.getColspanRealWidth(columns, colspan, cellIndex);
- var data = {
- store: _this3.store,
- _self: _this3.context || _this3.table.$vnode.context,
- column: columnData,
- row: row,
- $index: $index
- };
- if (cellIndex === firstDefaultColumnIndex && treeRowData) {
- data.treeNode = {
- indent: treeRowData.level * treeIndent,
- level: treeRowData.level
- };
- if (typeof treeRowData.expanded === 'boolean') {
- data.treeNode.expanded = treeRowData.expanded;
- // 表明是懒加载
- if ('loading' in treeRowData) {
- data.treeNode.loading = treeRowData.loading;
- }
- if ('noLazyChildren' in treeRowData) {
- data.treeNode.noLazyChildren = treeRowData.noLazyChildren;
- }
- }
- }
- return h(
- 'td',
- {
- style: _this3.getCellStyle($index, cellIndex, row, column),
- 'class': _this3.getCellClass($index, cellIndex, row, column),
- attrs: { rowspan: rowspan,
- colspan: colspan
- },
- on: {
- 'mouseenter': function mouseenter($event) {
- return _this3.handleCellMouseEnter($event, row);
- },
- 'mouseleave': _this3.handleCellMouseLeave
- }
- },
- [column.renderCell.call(_this3._renderProxy, _this3.$createElement, data, columnsHidden[cellIndex])]
- );
- })]
- );
- },
- wrappedRowRender: function wrappedRowRender(row, $index) {
- var _this4 = this;
- var h = this.$createElement;
- var store = this.store;
- var isRowExpanded = store.isRowExpanded,
- assertRowKey = store.assertRowKey;
- var _store$states = store.states,
- treeData = _store$states.treeData,
- lazyTreeNodeMap = _store$states.lazyTreeNodeMap,
- childrenColumnName = _store$states.childrenColumnName,
- rowKey = _store$states.rowKey;
- if (this.hasExpandColumn && isRowExpanded(row)) {
- var renderExpanded = this.table.renderExpanded;
- var tr = this.rowRender(row, $index);
- if (!renderExpanded) {
- console.error('[Element Error]renderExpanded is required.');
- return tr;
- }
- // 使用二维数组,避免修改 $index
- return [[tr, h(
- 'tr',
- { key: 'expanded-row__' + tr.key },
- [h(
- 'td',
- {
- attrs: { colspan: this.columnsCount },
- 'class': 'el-table__expanded-cell' },
- [renderExpanded(this.$createElement, { row: row, $index: $index, store: this.store })]
- )]
- )]];
- } else if (Object.keys(treeData).length) {
- assertRowKey();
- // TreeTable 时,rowKey 必须由用户设定,不使用 getKeyOfRow 计算
- // 在调用 rowRender 函数时,仍然会计算 rowKey,不太好的操作
- var key = getRowIdentity(row, rowKey);
- var cur = treeData[key];
- var treeRowData = null;
- if (cur) {
- treeRowData = {
- expanded: cur.expanded,
- level: cur.level,
- display: true
- };
- if (typeof cur.lazy === 'boolean') {
- if (typeof cur.loaded === 'boolean' && cur.loaded) {
- treeRowData.noLazyChildren = !(cur.children && cur.children.length);
- }
- treeRowData.loading = cur.loading;
- }
- }
- var tmp = [this.rowRender(row, $index, treeRowData)];
- // 渲染嵌套数据
- if (cur) {
- // currentRow 记录的是 index,所以还需主动增加 TreeTable 的 index
- var i = 0;
- var traverse = function traverse(children, parent) {
- if (!(children && children.length && parent)) return;
- children.forEach(function (node) {
- // 父节点的 display 状态影响子节点的显示状态
- var innerTreeRowData = {
- display: parent.display && parent.expanded,
- level: parent.level + 1
- };
- var childKey = getRowIdentity(node, rowKey);
- if (childKey === undefined || childKey === null) {
- throw new Error('for nested data item, row-key is required.');
- }
- cur = table_body_extends({}, treeData[childKey]);
- // 对于当前节点,分成有无子节点两种情况。
- // 如果包含子节点的,设置 expanded 属性。
- // 对于它子节点的 display 属性由它本身的 expanded 与 display 共同决定。
- if (cur) {
- innerTreeRowData.expanded = cur.expanded;
- // 懒加载的某些节点,level 未知
- cur.level = cur.level || innerTreeRowData.level;
- cur.display = !!(cur.expanded && innerTreeRowData.display);
- if (typeof cur.lazy === 'boolean') {
- if (typeof cur.loaded === 'boolean' && cur.loaded) {
- innerTreeRowData.noLazyChildren = !(cur.children && cur.children.length);
- }
- innerTreeRowData.loading = cur.loading;
- }
- }
- i++;
- tmp.push(_this4.rowRender(node, $index + i, innerTreeRowData));
- if (cur) {
- var _nodes = lazyTreeNodeMap[childKey] || node[childrenColumnName];
- traverse(_nodes, cur);
- }
- });
- };
- // 对于 root 节点,display 一定为 true
- cur.display = true;
- var nodes = lazyTreeNodeMap[key] || row[childrenColumnName];
- traverse(nodes, cur);
- }
- return tmp;
- } else {
- return this.rowRender(row, $index);
- }
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/filter-panel.vue?vue&type=template&id=7f2c919f&
- var filter_panelvue_type_template_id_7f2c919f_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "el-zoom-in-top" } }, [
- _vm.multiple
- ? _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleOutsideClick,
- expression: "handleOutsideClick"
- },
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showPopper,
- expression: "showPopper"
- }
- ],
- staticClass: "el-table-filter"
- },
- [
- _c(
- "div",
- { staticClass: "el-table-filter__content" },
- [
- _c(
- "el-scrollbar",
- { attrs: { "wrap-class": "el-table-filter__wrap" } },
- [
- _c(
- "el-checkbox-group",
- {
- staticClass: "el-table-filter__checkbox-group",
- model: {
- value: _vm.filteredValue,
- callback: function($$v) {
- _vm.filteredValue = $$v
- },
- expression: "filteredValue"
- }
- },
- _vm._l(_vm.filters, function(filter) {
- return _c(
- "el-checkbox",
- { key: filter.value, attrs: { label: filter.value } },
- [_vm._v(_vm._s(filter.text))]
- )
- }),
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _c("div", { staticClass: "el-table-filter__bottom" }, [
- _c(
- "button",
- {
- class: { "is-disabled": _vm.filteredValue.length === 0 },
- attrs: { disabled: _vm.filteredValue.length === 0 },
- on: { click: _vm.handleConfirm }
- },
- [_vm._v(_vm._s(_vm.t("el.table.confirmFilter")))]
- ),
- _c("button", { on: { click: _vm.handleReset } }, [
- _vm._v(_vm._s(_vm.t("el.table.resetFilter")))
- ])
- ])
- ]
- )
- : _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleOutsideClick,
- expression: "handleOutsideClick"
- },
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showPopper,
- expression: "showPopper"
- }
- ],
- staticClass: "el-table-filter"
- },
- [
- _c(
- "ul",
- { staticClass: "el-table-filter__list" },
- [
- _c(
- "li",
- {
- staticClass: "el-table-filter__list-item",
- class: {
- "is-active":
- _vm.filterValue === undefined ||
- _vm.filterValue === null
- },
- on: {
- click: function($event) {
- _vm.handleSelect(null)
- }
- }
- },
- [_vm._v(_vm._s(_vm.t("el.table.clearFilter")))]
- ),
- _vm._l(_vm.filters, function(filter) {
- return _c(
- "li",
- {
- key: filter.value,
- staticClass: "el-table-filter__list-item",
- class: { "is-active": _vm.isActive(filter) },
- attrs: { label: filter.value },
- on: {
- click: function($event) {
- _vm.handleSelect(filter.value)
- }
- }
- },
- [_vm._v(_vm._s(filter.text))]
- )
- })
- ],
- 2
- )
- ]
- )
- ])
- }
- var filter_panelvue_type_template_id_7f2c919f_staticRenderFns = []
- filter_panelvue_type_template_id_7f2c919f_render._withStripped = true
- // CONCATENATED MODULE: ./packages/table/src/filter-panel.vue?vue&type=template&id=7f2c919f&
- // CONCATENATED MODULE: ./packages/table/src/dropdown.js
- var dropdowns = [];
- !external_vue_default.a.prototype.$isServer && document.addEventListener('click', function (event) {
- dropdowns.forEach(function (dropdown) {
- var target = event.target;
- if (!dropdown || !dropdown.$el) return;
- if (target === dropdown.$el || dropdown.$el.contains(target)) {
- return;
- }
- dropdown.handleOutsideClick && dropdown.handleOutsideClick(event);
- });
- });
- /* harmony default export */ var src_dropdown = ({
- open: function open(instance) {
- if (instance) {
- dropdowns.push(instance);
- }
- },
- close: function close(instance) {
- var index = dropdowns.indexOf(instance);
- if (index !== -1) {
- dropdowns.splice(instance, 1);
- }
- }
- });
- // EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
- var checkbox_group_ = __webpack_require__(32);
- var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/filter-panel.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var filter_panelvue_type_script_lang_js_ = ({
- name: 'ElTableFilterPanel',
- mixins: [vue_popper_default.a, locale_default.a],
- directives: {
- Clickoutside: clickoutside_default.a
- },
- components: {
- ElCheckbox: checkbox_default.a,
- ElCheckboxGroup: checkbox_group_default.a,
- ElScrollbar: scrollbar_default.a
- },
- props: {
- placement: {
- type: String,
- default: 'bottom-end'
- }
- },
- methods: {
- isActive: function isActive(filter) {
- return filter.value === this.filterValue;
- },
- handleOutsideClick: function handleOutsideClick() {
- var _this = this;
- setTimeout(function () {
- _this.showPopper = false;
- }, 16);
- },
- handleConfirm: function handleConfirm() {
- this.confirmFilter(this.filteredValue);
- this.handleOutsideClick();
- },
- handleReset: function handleReset() {
- this.filteredValue = [];
- this.confirmFilter(this.filteredValue);
- this.handleOutsideClick();
- },
- handleSelect: function handleSelect(filterValue) {
- this.filterValue = filterValue;
- if (typeof filterValue !== 'undefined' && filterValue !== null) {
- this.confirmFilter(this.filteredValue);
- } else {
- this.confirmFilter([]);
- }
- this.handleOutsideClick();
- },
- confirmFilter: function confirmFilter(filteredValue) {
- this.table.store.commit('filterChange', {
- column: this.column,
- values: filteredValue
- });
- this.table.store.updateAllSelected();
- }
- },
- data: function data() {
- return {
- table: null,
- cell: null,
- column: null
- };
- },
- computed: {
- filters: function filters() {
- return this.column && this.column.filters;
- },
- filterValue: {
- get: function get() {
- return (this.column.filteredValue || [])[0];
- },
- set: function set(value) {
- if (this.filteredValue) {
- if (typeof value !== 'undefined' && value !== null) {
- this.filteredValue.splice(0, 1, value);
- } else {
- this.filteredValue.splice(0, 1);
- }
- }
- }
- },
- filteredValue: {
- get: function get() {
- if (this.column) {
- return this.column.filteredValue || [];
- }
- return [];
- },
- set: function set(value) {
- if (this.column) {
- this.column.filteredValue = value;
- }
- }
- },
- multiple: function multiple() {
- if (this.column) {
- return this.column.filterMultiple;
- }
- return true;
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- this.popperElm = this.$el;
- this.referenceElm = this.cell;
- this.table.bodyWrapper.addEventListener('scroll', function () {
- _this2.updatePopper();
- });
- this.$watch('showPopper', function (value) {
- if (_this2.column) _this2.column.filterOpened = value;
- if (value) {
- src_dropdown.open(_this2);
- } else {
- src_dropdown.close(_this2);
- }
- });
- },
- watch: {
- showPopper: function showPopper(val) {
- if (val === true && parseInt(this.popperJS._popper.style.zIndex, 10) < popup_["PopupManager"].zIndex) {
- this.popperJS._popper.style.zIndex = popup_["PopupManager"].nextZIndex();
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/filter-panel.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_filter_panelvue_type_script_lang_js_ = (filter_panelvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/table/src/filter-panel.vue
- /* normalize component */
- var filter_panel_component = normalizeComponent(
- src_filter_panelvue_type_script_lang_js_,
- filter_panelvue_type_template_id_7f2c919f_render,
- filter_panelvue_type_template_id_7f2c919f_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var filter_panel_api; }
- filter_panel_component.options.__file = "packages/table/src/filter-panel.vue"
- /* harmony default export */ var filter_panel = (filter_panel_component.exports);
- // CONCATENATED MODULE: ./packages/table/src/table-header.js
- var table_header_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- var getAllColumns = function getAllColumns(columns) {
- var result = [];
- columns.forEach(function (column) {
- if (column.children) {
- result.push(column);
- result.push.apply(result, getAllColumns(column.children));
- } else {
- result.push(column);
- }
- });
- return result;
- };
- var convertToRows = function convertToRows(originColumns) {
- var maxLevel = 1;
- var traverse = function traverse(column, parent) {
- if (parent) {
- column.level = parent.level + 1;
- if (maxLevel < column.level) {
- maxLevel = column.level;
- }
- }
- if (column.children) {
- var colSpan = 0;
- column.children.forEach(function (subColumn) {
- traverse(subColumn, column);
- colSpan += subColumn.colSpan;
- });
- column.colSpan = colSpan;
- } else {
- column.colSpan = 1;
- }
- };
- originColumns.forEach(function (column) {
- column.level = 1;
- traverse(column);
- });
- var rows = [];
- for (var i = 0; i < maxLevel; i++) {
- rows.push([]);
- }
- var allColumns = getAllColumns(originColumns);
- allColumns.forEach(function (column) {
- if (!column.children) {
- column.rowSpan = maxLevel - column.level + 1;
- } else {
- column.rowSpan = 1;
- }
- rows[column.level - 1].push(column);
- });
- return rows;
- };
- /* harmony default export */ var table_header = ({
- name: 'ElTableHeader',
- mixins: [layout_observer],
- render: function render(h) {
- var _this = this;
- var originColumns = this.store.states.originColumns;
- var columnRows = convertToRows(originColumns, this.columns);
- // 是否拥有多级表头
- var isGroup = columnRows.length > 1;
- if (isGroup) this.$parent.isGroup = true;
- return h(
- 'table',
- {
- 'class': 'el-table__header',
- attrs: { cellspacing: '0',
- cellpadding: '0',
- border: '0' }
- },
- [h('colgroup', [this.columns.map(function (column) {
- return h('col', {
- attrs: { name: column.id },
- key: column.id });
- }), this.hasGutter ? h('col', {
- attrs: { name: 'gutter' }
- }) : '']), h(
- 'thead',
- { 'class': [{ 'is-group': isGroup, 'has-gutter': this.hasGutter }] },
- [this._l(columnRows, function (columns, rowIndex) {
- return h(
- 'tr',
- {
- style: _this.getHeaderRowStyle(rowIndex),
- 'class': _this.getHeaderRowClass(rowIndex)
- },
- [columns.map(function (column, cellIndex) {
- return h(
- 'th',
- {
- attrs: {
- colspan: column.colSpan,
- rowspan: column.rowSpan
- },
- on: {
- 'mousemove': function mousemove($event) {
- return _this.handleMouseMove($event, column);
- },
- 'mouseout': _this.handleMouseOut,
- 'mousedown': function mousedown($event) {
- return _this.handleMouseDown($event, column);
- },
- 'click': function click($event) {
- return _this.handleHeaderClick($event, column);
- },
- 'contextmenu': function contextmenu($event) {
- return _this.handleHeaderContextMenu($event, column);
- }
- },
- style: _this.getHeaderCellStyle(rowIndex, cellIndex, columns, column),
- 'class': _this.getHeaderCellClass(rowIndex, cellIndex, columns, column),
- key: column.id },
- [h(
- 'div',
- { 'class': ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : '', column.labelClassName] },
- [column.renderHeader ? column.renderHeader.call(_this._renderProxy, h, { column: column, $index: cellIndex, store: _this.store, _self: _this.$parent.$vnode.context }) : column.label, column.sortable ? h(
- 'span',
- {
- 'class': 'caret-wrapper',
- on: {
- 'click': function click($event) {
- return _this.handleSortClick($event, column);
- }
- }
- },
- [h('i', { 'class': 'sort-caret ascending',
- on: {
- 'click': function click($event) {
- return _this.handleSortClick($event, column, 'ascending');
- }
- }
- }), h('i', { 'class': 'sort-caret descending',
- on: {
- 'click': function click($event) {
- return _this.handleSortClick($event, column, 'descending');
- }
- }
- })]
- ) : '', column.filterable ? h(
- 'span',
- {
- 'class': 'el-table__column-filter-trigger',
- on: {
- 'click': function click($event) {
- return _this.handleFilterClick($event, column);
- }
- }
- },
- [h('i', { 'class': ['el-icon-arrow-down', column.filterOpened ? 'el-icon-arrow-up' : ''] })]
- ) : '']
- )]
- );
- }), _this.hasGutter ? h('th', { 'class': 'gutter' }) : '']
- );
- })]
- )]
- );
- },
- props: {
- fixed: String,
- store: {
- required: true
- },
- border: Boolean,
- defaultSort: {
- type: Object,
- default: function _default() {
- return {
- prop: '',
- order: ''
- };
- }
- }
- },
- components: {
- ElCheckbox: checkbox_default.a
- },
- computed: table_header_extends({
- table: function table() {
- return this.$parent;
- },
- hasGutter: function hasGutter() {
- return !this.fixed && this.tableLayout.gutterWidth;
- }
- }, mapStates({
- columns: 'columns',
- isAllSelected: 'isAllSelected',
- leftFixedLeafCount: 'fixedLeafColumnsLength',
- rightFixedLeafCount: 'rightFixedLeafColumnsLength',
- columnsCount: function columnsCount(states) {
- return states.columns.length;
- },
- leftFixedCount: function leftFixedCount(states) {
- return states.fixedColumns.length;
- },
- rightFixedCount: function rightFixedCount(states) {
- return states.rightFixedColumns.length;
- }
- })),
- created: function created() {
- this.filterPanels = {};
- },
- mounted: function mounted() {
- var _this2 = this;
- // nextTick 是有必要的 https://github.com/ElemeFE/element/pull/11311
- this.$nextTick(function () {
- var _defaultSort = _this2.defaultSort,
- prop = _defaultSort.prop,
- order = _defaultSort.order;
- var init = true;
- _this2.store.commit('sort', { prop: prop, order: order, init: init });
- });
- },
- beforeDestroy: function beforeDestroy() {
- var panels = this.filterPanels;
- for (var prop in panels) {
- if (panels.hasOwnProperty(prop) && panels[prop]) {
- panels[prop].$destroy(true);
- }
- }
- },
- methods: {
- isCellHidden: function isCellHidden(index, columns) {
- var start = 0;
- for (var i = 0; i < index; i++) {
- start += columns[i].colSpan;
- }
- var after = start + columns[index].colSpan - 1;
- if (this.fixed === true || this.fixed === 'left') {
- return after >= this.leftFixedLeafCount;
- } else if (this.fixed === 'right') {
- return start < this.columnsCount - this.rightFixedLeafCount;
- } else {
- return after < this.leftFixedLeafCount || start >= this.columnsCount - this.rightFixedLeafCount;
- }
- },
- getHeaderRowStyle: function getHeaderRowStyle(rowIndex) {
- var headerRowStyle = this.table.headerRowStyle;
- if (typeof headerRowStyle === 'function') {
- return headerRowStyle.call(null, { rowIndex: rowIndex });
- }
- return headerRowStyle;
- },
- getHeaderRowClass: function getHeaderRowClass(rowIndex) {
- var classes = [];
- var headerRowClassName = this.table.headerRowClassName;
- if (typeof headerRowClassName === 'string') {
- classes.push(headerRowClassName);
- } else if (typeof headerRowClassName === 'function') {
- classes.push(headerRowClassName.call(null, { rowIndex: rowIndex }));
- }
- return classes.join(' ');
- },
- getHeaderCellStyle: function getHeaderCellStyle(rowIndex, columnIndex, row, column) {
- var headerCellStyle = this.table.headerCellStyle;
- if (typeof headerCellStyle === 'function') {
- return headerCellStyle.call(null, {
- rowIndex: rowIndex,
- columnIndex: columnIndex,
- row: row,
- column: column
- });
- }
- return headerCellStyle;
- },
- getHeaderCellClass: function getHeaderCellClass(rowIndex, columnIndex, row, column) {
- var classes = [column.id, column.order, column.headerAlign, column.className, column.labelClassName];
- if (rowIndex === 0 && this.isCellHidden(columnIndex, row)) {
- classes.push('is-hidden');
- }
- if (!column.children) {
- classes.push('is-leaf');
- }
- if (column.sortable) {
- classes.push('is-sortable');
- }
- var headerCellClassName = this.table.headerCellClassName;
- if (typeof headerCellClassName === 'string') {
- classes.push(headerCellClassName);
- } else if (typeof headerCellClassName === 'function') {
- classes.push(headerCellClassName.call(null, {
- rowIndex: rowIndex,
- columnIndex: columnIndex,
- row: row,
- column: column
- }));
- }
- return classes.join(' ');
- },
- toggleAllSelection: function toggleAllSelection(event) {
- event.stopPropagation();
- this.store.commit('toggleAllSelection');
- },
- handleFilterClick: function handleFilterClick(event, column) {
- event.stopPropagation();
- var target = event.target;
- var cell = target.tagName === 'TH' ? target : target.parentNode;
- if (Object(dom_["hasClass"])(cell, 'noclick')) return;
- cell = cell.querySelector('.el-table__column-filter-trigger') || cell;
- var table = this.$parent;
- var filterPanel = this.filterPanels[column.id];
- if (filterPanel && column.filterOpened) {
- filterPanel.showPopper = false;
- return;
- }
- if (!filterPanel) {
- filterPanel = new external_vue_default.a(filter_panel);
- this.filterPanels[column.id] = filterPanel;
- if (column.filterPlacement) {
- filterPanel.placement = column.filterPlacement;
- }
- filterPanel.table = table;
- filterPanel.cell = cell;
- filterPanel.column = column;
- !this.$isServer && filterPanel.$mount(document.createElement('div'));
- }
- setTimeout(function () {
- filterPanel.showPopper = true;
- }, 16);
- },
- handleHeaderClick: function handleHeaderClick(event, column) {
- if (!column.filters && column.sortable) {
- this.handleSortClick(event, column);
- } else if (column.filterable && !column.sortable) {
- this.handleFilterClick(event, column);
- }
- this.$parent.$emit('header-click', column, event);
- },
- handleHeaderContextMenu: function handleHeaderContextMenu(event, column) {
- this.$parent.$emit('header-contextmenu', column, event);
- },
- handleMouseDown: function handleMouseDown(event, column) {
- var _this3 = this;
- if (this.$isServer) return;
- if (column.children && column.children.length > 0) return;
- /* istanbul ignore if */
- if (this.draggingColumn && this.border) {
- this.dragging = true;
- this.$parent.resizeProxyVisible = true;
- var table = this.$parent;
- var tableEl = table.$el;
- var tableLeft = tableEl.getBoundingClientRect().left;
- var columnEl = this.$el.querySelector('th.' + column.id);
- var columnRect = columnEl.getBoundingClientRect();
- var minLeft = columnRect.left - tableLeft + 30;
- Object(dom_["addClass"])(columnEl, 'noclick');
- this.dragState = {
- startMouseLeft: event.clientX,
- startLeft: columnRect.right - tableLeft,
- startColumnLeft: columnRect.left - tableLeft,
- tableLeft: tableLeft
- };
- var resizeProxy = table.$refs.resizeProxy;
- resizeProxy.style.left = this.dragState.startLeft + 'px';
- document.onselectstart = function () {
- return false;
- };
- document.ondragstart = function () {
- return false;
- };
- var handleMouseMove = function handleMouseMove(event) {
- var deltaLeft = event.clientX - _this3.dragState.startMouseLeft;
- var proxyLeft = _this3.dragState.startLeft + deltaLeft;
- resizeProxy.style.left = Math.max(minLeft, proxyLeft) + 'px';
- };
- var handleMouseUp = function handleMouseUp() {
- if (_this3.dragging) {
- var _dragState = _this3.dragState,
- startColumnLeft = _dragState.startColumnLeft,
- startLeft = _dragState.startLeft;
- var finalLeft = parseInt(resizeProxy.style.left, 10);
- var columnWidth = finalLeft - startColumnLeft;
- column.width = column.realWidth = columnWidth;
- table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
- _this3.store.scheduleLayout();
- document.body.style.cursor = '';
- _this3.dragging = false;
- _this3.draggingColumn = null;
- _this3.dragState = {};
- table.resizeProxyVisible = false;
- }
- document.removeEventListener('mousemove', handleMouseMove);
- document.removeEventListener('mouseup', handleMouseUp);
- document.onselectstart = null;
- document.ondragstart = null;
- setTimeout(function () {
- Object(dom_["removeClass"])(columnEl, 'noclick');
- }, 0);
- };
- document.addEventListener('mousemove', handleMouseMove);
- document.addEventListener('mouseup', handleMouseUp);
- }
- },
- handleMouseMove: function handleMouseMove(event, column) {
- if (column.children && column.children.length > 0) return;
- var target = event.target;
- while (target && target.tagName !== 'TH') {
- target = target.parentNode;
- }
- if (!column || !column.resizable) return;
- if (!this.dragging && this.border) {
- var rect = target.getBoundingClientRect();
- var bodyStyle = document.body.style;
- if (rect.width > 12 && rect.right - event.pageX < 8) {
- bodyStyle.cursor = 'col-resize';
- if (Object(dom_["hasClass"])(target, 'is-sortable')) {
- target.style.cursor = 'col-resize';
- }
- this.draggingColumn = column;
- } else if (!this.dragging) {
- bodyStyle.cursor = '';
- if (Object(dom_["hasClass"])(target, 'is-sortable')) {
- target.style.cursor = 'pointer';
- }
- this.draggingColumn = null;
- }
- }
- },
- handleMouseOut: function handleMouseOut() {
- if (this.$isServer) return;
- document.body.style.cursor = '';
- },
- toggleOrder: function toggleOrder(_ref) {
- var order = _ref.order,
- sortOrders = _ref.sortOrders;
- if (order === '') return sortOrders[0];
- var index = sortOrders.indexOf(order || null);
- return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
- },
- handleSortClick: function handleSortClick(event, column, givenOrder) {
- event.stopPropagation();
- var order = column.order === givenOrder ? null : givenOrder || this.toggleOrder(column);
- var target = event.target;
- while (target && target.tagName !== 'TH') {
- target = target.parentNode;
- }
- if (target && target.tagName === 'TH') {
- if (Object(dom_["hasClass"])(target, 'noclick')) {
- Object(dom_["removeClass"])(target, 'noclick');
- return;
- }
- }
- if (!column.sortable) return;
- var states = this.store.states;
- var sortProp = states.sortProp;
- var sortOrder = void 0;
- var sortingColumn = states.sortingColumn;
- if (sortingColumn !== column || sortingColumn === column && sortingColumn.order === null) {
- if (sortingColumn) {
- sortingColumn.order = null;
- }
- states.sortingColumn = column;
- sortProp = column.property;
- }
- if (!order) {
- sortOrder = column.order = null;
- } else {
- sortOrder = column.order = order;
- }
- states.sortProp = sortProp;
- states.sortOrder = sortOrder;
- this.store.commit('changeSortCondition');
- }
- },
- data: function data() {
- return {
- draggingColumn: null,
- dragging: false,
- dragState: {}
- };
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/table-footer.js
- var table_footer_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- /* harmony default export */ var table_footer = ({
- name: 'ElTableFooter',
- mixins: [layout_observer],
- render: function render(h) {
- var _this = this;
- var sums = [];
- if (this.summaryMethod) {
- sums = this.summaryMethod({ columns: this.columns, data: this.store.states.data });
- } else {
- this.columns.forEach(function (column, index) {
- if (index === 0) {
- sums[index] = _this.sumText;
- return;
- }
- var values = _this.store.states.data.map(function (item) {
- return Number(item[column.property]);
- });
- var precisions = [];
- var notNumber = true;
- values.forEach(function (value) {
- if (!isNaN(value)) {
- notNumber = false;
- var decimal = ('' + value).split('.')[1];
- precisions.push(decimal ? decimal.length : 0);
- }
- });
- var precision = Math.max.apply(null, precisions);
- if (!notNumber) {
- sums[index] = values.reduce(function (prev, curr) {
- var value = Number(curr);
- if (!isNaN(value)) {
- return parseFloat((prev + curr).toFixed(Math.min(precision, 20)));
- } else {
- return prev;
- }
- }, 0);
- } else {
- sums[index] = '';
- }
- });
- }
- return h(
- 'table',
- {
- 'class': 'el-table__footer',
- attrs: { cellspacing: '0',
- cellpadding: '0',
- border: '0' }
- },
- [h('colgroup', [this.columns.map(function (column) {
- return h('col', {
- attrs: { name: column.id },
- key: column.id });
- }), this.hasGutter ? h('col', {
- attrs: { name: 'gutter' }
- }) : '']), h(
- 'tbody',
- { 'class': [{ 'has-gutter': this.hasGutter }] },
- [h('tr', [this.columns.map(function (column, cellIndex) {
- return h(
- 'td',
- {
- key: cellIndex,
- attrs: { colspan: column.colSpan,
- rowspan: column.rowSpan
- },
- 'class': _this.getRowClasses(column, cellIndex) },
- [h(
- 'div',
- { 'class': ['cell', column.labelClassName] },
- [sums[cellIndex]]
- )]
- );
- }), this.hasGutter ? h('th', { 'class': 'gutter' }) : ''])]
- )]
- );
- },
- props: {
- fixed: String,
- store: {
- required: true
- },
- summaryMethod: Function,
- sumText: String,
- border: Boolean,
- defaultSort: {
- type: Object,
- default: function _default() {
- return {
- prop: '',
- order: ''
- };
- }
- }
- },
- computed: table_footer_extends({
- table: function table() {
- return this.$parent;
- },
- hasGutter: function hasGutter() {
- return !this.fixed && this.tableLayout.gutterWidth;
- }
- }, mapStates({
- columns: 'columns',
- isAllSelected: 'isAllSelected',
- leftFixedLeafCount: 'fixedLeafColumnsLength',
- rightFixedLeafCount: 'rightFixedLeafColumnsLength',
- columnsCount: function columnsCount(states) {
- return states.columns.length;
- },
- leftFixedCount: function leftFixedCount(states) {
- return states.fixedColumns.length;
- },
- rightFixedCount: function rightFixedCount(states) {
- return states.rightFixedColumns.length;
- }
- })),
- methods: {
- isCellHidden: function isCellHidden(index, columns, column) {
- if (this.fixed === true || this.fixed === 'left') {
- return index >= this.leftFixedLeafCount;
- } else if (this.fixed === 'right') {
- var before = 0;
- for (var i = 0; i < index; i++) {
- before += columns[i].colSpan;
- }
- return before < this.columnsCount - this.rightFixedLeafCount;
- } else if (!this.fixed && column.fixed) {
- // hide cell when footer instance is not fixed and column is fixed
- return true;
- } else {
- return index < this.leftFixedCount || index >= this.columnsCount - this.rightFixedCount;
- }
- },
- getRowClasses: function getRowClasses(column, cellIndex) {
- var classes = [column.id, column.align, column.labelClassName];
- if (column.className) {
- classes.push(column.className);
- }
- if (this.isCellHidden(cellIndex, this.columns, column)) {
- classes.push('is-hidden');
- }
- if (!column.children) {
- classes.push('is-leaf');
- }
- return classes;
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=script&lang=js&
- var tablevue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var tableIdSeed = 1;
- /* harmony default export */ var tablevue_type_script_lang_js_ = ({
- name: 'ElTable',
- mixins: [locale_default.a, migrating_default.a],
- directives: {
- Mousewheel: directives_mousewheel
- },
- props: {
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- size: String,
- width: [String, Number],
- height: [String, Number],
- maxHeight: [String, Number],
- fit: {
- type: Boolean,
- default: true
- },
- stripe: Boolean,
- border: Boolean,
- rowKey: [String, Function],
- context: {},
- showHeader: {
- type: Boolean,
- default: true
- },
- showSummary: Boolean,
- sumText: String,
- summaryMethod: Function,
- rowClassName: [String, Function],
- rowStyle: [Object, Function],
- cellClassName: [String, Function],
- cellStyle: [Object, Function],
- headerRowClassName: [String, Function],
- headerRowStyle: [Object, Function],
- headerCellClassName: [String, Function],
- headerCellStyle: [Object, Function],
- highlightCurrentRow: Boolean,
- currentRowKey: [String, Number],
- emptyText: String,
- expandRowKeys: Array,
- defaultExpandAll: Boolean,
- defaultSort: Object,
- tooltipEffect: String,
- spanMethod: Function,
- selectOnIndeterminate: {
- type: Boolean,
- default: true
- },
- indent: {
- type: Number,
- default: 16
- },
- treeProps: {
- type: Object,
- default: function _default() {
- return {
- hasChildren: 'hasChildren',
- children: 'children'
- };
- }
- },
- lazy: Boolean,
- load: Function
- },
- components: {
- TableHeader: table_header,
- TableFooter: table_footer,
- TableBody: table_body,
- ElCheckbox: checkbox_default.a
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- events: {
- expand: 'expand is renamed to expand-change'
- }
- };
- },
- setCurrentRow: function setCurrentRow(row) {
- this.store.commit('setCurrentRow', row);
- },
- toggleRowSelection: function toggleRowSelection(row, selected) {
- this.store.toggleRowSelection(row, selected, false);
- this.store.updateAllSelected();
- },
- toggleRowExpansion: function toggleRowExpansion(row, expanded) {
- this.store.toggleRowExpansionAdapter(row, expanded);
- },
- clearSelection: function clearSelection() {
- this.store.clearSelection();
- },
- clearFilter: function clearFilter(columnKeys) {
- this.store.clearFilter(columnKeys);
- },
- clearSort: function clearSort() {
- this.store.clearSort();
- },
- handleMouseLeave: function handleMouseLeave() {
- this.store.commit('setHoverRow', null);
- if (this.hoverState) this.hoverState = null;
- },
- updateScrollY: function updateScrollY() {
- var changed = this.layout.updateScrollY();
- if (changed) {
- this.layout.notifyObservers('scrollable');
- this.layout.updateColumnsWidth();
- }
- },
- handleFixedMousewheel: function handleFixedMousewheel(event, data) {
- var bodyWrapper = this.bodyWrapper;
- if (Math.abs(data.spinY) > 0) {
- var currentScrollTop = bodyWrapper.scrollTop;
- if (data.pixelY < 0 && currentScrollTop !== 0) {
- event.preventDefault();
- }
- if (data.pixelY > 0 && bodyWrapper.scrollHeight - bodyWrapper.clientHeight > currentScrollTop) {
- event.preventDefault();
- }
- bodyWrapper.scrollTop += Math.ceil(data.pixelY / 5);
- } else {
- bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
- }
- },
- handleHeaderFooterMousewheel: function handleHeaderFooterMousewheel(event, data) {
- var pixelX = data.pixelX,
- pixelY = data.pixelY;
- if (Math.abs(pixelX) >= Math.abs(pixelY)) {
- this.bodyWrapper.scrollLeft += data.pixelX / 5;
- }
- },
- // TODO 使用 CSS transform
- syncPostion: Object(external_throttle_debounce_["throttle"])(20, function () {
- var _bodyWrapper = this.bodyWrapper,
- scrollLeft = _bodyWrapper.scrollLeft,
- scrollTop = _bodyWrapper.scrollTop,
- offsetWidth = _bodyWrapper.offsetWidth,
- scrollWidth = _bodyWrapper.scrollWidth;
- var _$refs = this.$refs,
- headerWrapper = _$refs.headerWrapper,
- footerWrapper = _$refs.footerWrapper,
- fixedBodyWrapper = _$refs.fixedBodyWrapper,
- rightFixedBodyWrapper = _$refs.rightFixedBodyWrapper;
- if (headerWrapper) headerWrapper.scrollLeft = scrollLeft;
- if (footerWrapper) footerWrapper.scrollLeft = scrollLeft;
- if (fixedBodyWrapper) fixedBodyWrapper.scrollTop = scrollTop;
- if (rightFixedBodyWrapper) rightFixedBodyWrapper.scrollTop = scrollTop;
- var maxScrollLeftPosition = scrollWidth - offsetWidth - 1;
- if (scrollLeft >= maxScrollLeftPosition) {
- this.scrollPosition = 'right';
- } else if (scrollLeft === 0) {
- this.scrollPosition = 'left';
- } else {
- this.scrollPosition = 'middle';
- }
- }),
- bindEvents: function bindEvents() {
- this.bodyWrapper.addEventListener('scroll', this.syncPostion, { passive: true });
- if (this.fit) {
- Object(resize_event_["addResizeListener"])(this.$el, this.resizeListener);
- }
- },
- unbindEvents: function unbindEvents() {
- this.bodyWrapper.removeEventListener('scroll', this.syncPostion, { passive: true });
- if (this.fit) {
- Object(resize_event_["removeResizeListener"])(this.$el, this.resizeListener);
- }
- },
- resizeListener: function resizeListener() {
- if (!this.$ready) return;
- var shouldUpdateLayout = false;
- var el = this.$el;
- var _resizeState = this.resizeState,
- oldWidth = _resizeState.width,
- oldHeight = _resizeState.height;
- var width = el.offsetWidth;
- if (oldWidth !== width) {
- shouldUpdateLayout = true;
- }
- var height = el.offsetHeight;
- if ((this.height || this.shouldUpdateHeight) && oldHeight !== height) {
- shouldUpdateLayout = true;
- }
- if (shouldUpdateLayout) {
- this.resizeState.width = width;
- this.resizeState.height = height;
- this.doLayout();
- }
- },
- doLayout: function doLayout() {
- if (this.shouldUpdateHeight) {
- this.layout.updateElsHeight();
- }
- this.layout.updateColumnsWidth();
- },
- sort: function sort(prop, order) {
- this.store.commit('sort', { prop: prop, order: order });
- },
- toggleAllSelection: function toggleAllSelection() {
- this.store.commit('toggleAllSelection');
- }
- },
- computed: tablevue_type_script_lang_js_extends({
- tableSize: function tableSize() {
- return this.size || (this.$ELEMENT || {}).size;
- },
- bodyWrapper: function bodyWrapper() {
- return this.$refs.bodyWrapper;
- },
- shouldUpdateHeight: function shouldUpdateHeight() {
- return this.height || this.maxHeight || this.fixedColumns.length > 0 || this.rightFixedColumns.length > 0;
- },
- bodyWidth: function bodyWidth() {
- var _layout = this.layout,
- bodyWidth = _layout.bodyWidth,
- scrollY = _layout.scrollY,
- gutterWidth = _layout.gutterWidth;
- return bodyWidth ? bodyWidth - (scrollY ? gutterWidth : 0) + 'px' : '';
- },
- bodyHeight: function bodyHeight() {
- var _layout2 = this.layout,
- _layout2$headerHeight = _layout2.headerHeight,
- headerHeight = _layout2$headerHeight === undefined ? 0 : _layout2$headerHeight,
- bodyHeight = _layout2.bodyHeight,
- _layout2$footerHeight = _layout2.footerHeight,
- footerHeight = _layout2$footerHeight === undefined ? 0 : _layout2$footerHeight;
- if (this.height) {
- return {
- height: bodyHeight ? bodyHeight + 'px' : ''
- };
- } else if (this.maxHeight) {
- var maxHeight = parseHeight(this.maxHeight);
- if (typeof maxHeight === 'number') {
- return {
- 'max-height': maxHeight - footerHeight - (this.showHeader ? headerHeight : 0) + 'px'
- };
- }
- }
- return {};
- },
- fixedBodyHeight: function fixedBodyHeight() {
- if (this.height) {
- return {
- height: this.layout.fixedBodyHeight ? this.layout.fixedBodyHeight + 'px' : ''
- };
- } else if (this.maxHeight) {
- var maxHeight = parseHeight(this.maxHeight);
- if (typeof maxHeight === 'number') {
- maxHeight = this.layout.scrollX ? maxHeight - this.layout.gutterWidth : maxHeight;
- if (this.showHeader) {
- maxHeight -= this.layout.headerHeight;
- }
- maxHeight -= this.layout.footerHeight;
- return {
- 'max-height': maxHeight + 'px'
- };
- }
- }
- return {};
- },
- fixedHeight: function fixedHeight() {
- if (this.maxHeight) {
- if (this.showSummary) {
- return {
- bottom: 0
- };
- }
- return {
- bottom: this.layout.scrollX && this.data.length ? this.layout.gutterWidth + 'px' : ''
- };
- } else {
- if (this.showSummary) {
- return {
- height: this.layout.tableHeight ? this.layout.tableHeight + 'px' : ''
- };
- }
- return {
- height: this.layout.viewportHeight ? this.layout.viewportHeight + 'px' : ''
- };
- }
- },
- emptyBlockStyle: function emptyBlockStyle() {
- if (this.data && this.data.length) return null;
- var height = '100%';
- if (this.layout.appendHeight) {
- height = 'calc(100% - ' + this.layout.appendHeight + 'px)';
- }
- return {
- width: this.bodyWidth,
- height: height
- };
- }
- }, mapStates({
- selection: 'selection',
- columns: 'columns',
- tableData: 'data',
- fixedColumns: 'fixedColumns',
- rightFixedColumns: 'rightFixedColumns'
- })),
- watch: {
- height: {
- immediate: true,
- handler: function handler(value) {
- this.layout.setHeight(value);
- }
- },
- maxHeight: {
- immediate: true,
- handler: function handler(value) {
- this.layout.setMaxHeight(value);
- }
- },
- currentRowKey: {
- immediate: true,
- handler: function handler(value) {
- if (!this.rowKey) return;
- this.store.setCurrentRowKey(value);
- }
- },
- data: {
- immediate: true,
- handler: function handler(value) {
- this.store.commit('setData', value);
- }
- },
- expandRowKeys: {
- immediate: true,
- handler: function handler(newVal) {
- if (newVal) {
- this.store.setExpandRowKeysAdapter(newVal);
- }
- }
- }
- },
- created: function created() {
- var _this = this;
- this.tableId = 'el-table_' + tableIdSeed++;
- this.debouncedUpdateLayout = Object(external_throttle_debounce_["debounce"])(50, function () {
- return _this.doLayout();
- });
- },
- mounted: function mounted() {
- var _this2 = this;
- this.bindEvents();
- this.store.updateColumns();
- this.doLayout();
- this.resizeState = {
- width: this.$el.offsetWidth,
- height: this.$el.offsetHeight
- };
- // init filters
- this.store.states.columns.forEach(function (column) {
- if (column.filteredValue && column.filteredValue.length) {
- _this2.store.commit('filterChange', {
- column: column,
- values: column.filteredValue,
- silent: true
- });
- }
- });
- this.$ready = true;
- },
- destroyed: function destroyed() {
- this.unbindEvents();
- },
- data: function data() {
- var _treeProps = this.treeProps,
- _treeProps$hasChildre = _treeProps.hasChildren,
- hasChildren = _treeProps$hasChildre === undefined ? 'hasChildren' : _treeProps$hasChildre,
- _treeProps$children = _treeProps.children,
- children = _treeProps$children === undefined ? 'children' : _treeProps$children;
- this.store = createStore(this, {
- rowKey: this.rowKey,
- defaultExpandAll: this.defaultExpandAll,
- selectOnIndeterminate: this.selectOnIndeterminate,
- // TreeTable 的相关配置
- indent: this.indent,
- lazy: this.lazy,
- lazyColumnIdentifier: hasChildren,
- childrenColumnName: children
- });
- var layout = new table_layout({
- store: this.store,
- table: this,
- fit: this.fit,
- showHeader: this.showHeader
- });
- return {
- layout: layout,
- isHidden: false,
- renderExpanded: null,
- resizeProxyVisible: false,
- resizeState: {
- width: null,
- height: null
- },
- // 是否拥有多级表头
- isGroup: false,
- scrollPosition: 'left'
- };
- }
- });
- // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tablevue_type_script_lang_js_ = (tablevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/table/src/table.vue
- /* normalize component */
- var table_component = normalizeComponent(
- src_tablevue_type_script_lang_js_,
- tablevue_type_template_id_493fe34e_render,
- tablevue_type_template_id_493fe34e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var table_api; }
- table_component.options.__file = "packages/table/src/table.vue"
- /* harmony default export */ var src_table = (table_component.exports);
- // CONCATENATED MODULE: ./packages/table/index.js
- /* istanbul ignore next */
- src_table.install = function (Vue) {
- Vue.component(src_table.name, src_table);
- };
- /* harmony default export */ var packages_table = (src_table);
- // CONCATENATED MODULE: ./packages/table/src/config.js
- var cellStarts = {
- default: {
- order: ''
- },
- selection: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: '',
- className: 'el-table-column--selection'
- },
- expand: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: ''
- },
- index: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: ''
- }
- };
- // 这些选项不应该被覆盖
- var cellForced = {
- selection: {
- renderHeader: function renderHeader(h, _ref) {
- var store = _ref.store;
- return h('el-checkbox', {
- attrs: {
- disabled: store.states.data && store.states.data.length === 0,
- indeterminate: store.states.selection.length > 0 && !this.isAllSelected,
- value: this.isAllSelected },
- nativeOn: {
- 'click': this.toggleAllSelection
- }
- });
- },
- renderCell: function renderCell(h, _ref2) {
- var row = _ref2.row,
- column = _ref2.column,
- store = _ref2.store,
- $index = _ref2.$index;
- return h('el-checkbox', {
- nativeOn: {
- 'click': function click(event) {
- return event.stopPropagation();
- }
- },
- attrs: {
- value: store.isSelected(row),
- disabled: column.selectable ? !column.selectable.call(null, row, $index) : false
- },
- on: {
- 'input': function input() {
- store.commit('rowSelectedChanged', row);
- }
- }
- });
- },
- sortable: false,
- resizable: false
- },
- index: {
- renderHeader: function renderHeader(h, _ref3) {
- var column = _ref3.column;
- return column.label || '#';
- },
- renderCell: function renderCell(h, _ref4) {
- var $index = _ref4.$index,
- column = _ref4.column;
- var i = $index + 1;
- var index = column.index;
- if (typeof index === 'number') {
- i = $index + index;
- } else if (typeof index === 'function') {
- i = index($index);
- }
- return h('div', [i]);
- },
- sortable: false
- },
- expand: {
- renderHeader: function renderHeader(h, _ref5) {
- var column = _ref5.column;
- return column.label || '';
- },
- renderCell: function renderCell(h, _ref6) {
- var row = _ref6.row,
- store = _ref6.store;
- var classes = ['el-table__expand-icon'];
- if (store.states.expandRows.indexOf(row) > -1) {
- classes.push('el-table__expand-icon--expanded');
- }
- var callback = function callback(e) {
- e.stopPropagation();
- store.toggleRowExpansion(row);
- };
- return h(
- 'div',
- { 'class': classes,
- on: {
- 'click': callback
- }
- },
- [h('i', { 'class': 'el-icon el-icon-arrow-right' })]
- );
- },
- sortable: false,
- resizable: false,
- className: 'el-table__expand-column'
- }
- };
- function defaultRenderCell(h, _ref7) {
- var row = _ref7.row,
- column = _ref7.column,
- $index = _ref7.$index;
- var property = column.property;
- var value = property && Object(util_["getPropByPath"])(row, property).v;
- if (column && column.formatter) {
- return column.formatter(row, column, value, $index);
- }
- return value;
- }
- function treeCellPrefix(h, _ref8) {
- var row = _ref8.row,
- treeNode = _ref8.treeNode,
- store = _ref8.store;
- if (!treeNode) return null;
- var ele = [];
- var callback = function callback(e) {
- e.stopPropagation();
- store.loadOrToggle(row);
- };
- if (treeNode.indent) {
- ele.push(h('span', { 'class': 'el-table__indent', style: { 'padding-left': treeNode.indent + 'px' } }));
- }
- if (typeof treeNode.expanded === 'boolean' && !treeNode.noLazyChildren) {
- var expandClasses = ['el-table__expand-icon', treeNode.expanded ? 'el-table__expand-icon--expanded' : ''];
- var iconClasses = ['el-icon-arrow-right'];
- if (treeNode.loading) {
- iconClasses = ['el-icon-loading'];
- }
- ele.push(h(
- 'div',
- { 'class': expandClasses,
- on: {
- 'click': callback
- }
- },
- [h('i', { 'class': iconClasses })]
- ));
- } else {
- ele.push(h('span', { 'class': 'el-table__placeholder' }));
- }
- return ele;
- }
- // CONCATENATED MODULE: ./packages/table/src/table-column.js
- var table_column_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- var columnIdSeed = 1;
- /* harmony default export */ var table_column = ({
- name: 'ElTableColumn',
- props: {
- type: {
- type: String,
- default: 'default'
- },
- label: String,
- className: String,
- labelClassName: String,
- property: String,
- prop: String,
- width: {},
- minWidth: {},
- renderHeader: Function,
- sortable: {
- type: [Boolean, String],
- default: false
- },
- sortMethod: Function,
- sortBy: [String, Function, Array],
- resizable: {
- type: Boolean,
- default: true
- },
- columnKey: String,
- align: String,
- headerAlign: String,
- showTooltipWhenOverflow: Boolean,
- showOverflowTooltip: Boolean,
- fixed: [Boolean, String],
- formatter: Function,
- selectable: Function,
- reserveSelection: Boolean,
- filterMethod: Function,
- filteredValue: Array,
- filters: Array,
- filterPlacement: String,
- filterMultiple: {
- type: Boolean,
- default: true
- },
- index: [Number, Function],
- sortOrders: {
- type: Array,
- default: function _default() {
- return ['ascending', 'descending', null];
- },
- validator: function validator(val) {
- return val.every(function (order) {
- return ['ascending', 'descending', null].indexOf(order) > -1;
- });
- }
- }
- },
- data: function data() {
- return {
- isSubColumn: false,
- columns: []
- };
- },
- computed: {
- owner: function owner() {
- var parent = this.$parent;
- while (parent && !parent.tableId) {
- parent = parent.$parent;
- }
- return parent;
- },
- columnOrTableParent: function columnOrTableParent() {
- var parent = this.$parent;
- while (parent && !parent.tableId && !parent.columnId) {
- parent = parent.$parent;
- }
- return parent;
- },
- realWidth: function realWidth() {
- return parseWidth(this.width);
- },
- realMinWidth: function realMinWidth() {
- return parseMinWidth(this.minWidth);
- },
- realAlign: function realAlign() {
- return this.align ? 'is-' + this.align : null;
- },
- realHeaderAlign: function realHeaderAlign() {
- return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
- }
- },
- methods: {
- getPropsData: function getPropsData() {
- var _this = this;
- for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
- props[_key] = arguments[_key];
- }
- return props.reduce(function (prev, cur) {
- if (Array.isArray(cur)) {
- cur.forEach(function (key) {
- prev[key] = _this[key];
- });
- }
- return prev;
- }, {});
- },
- getColumnElIndex: function getColumnElIndex(children, child) {
- return [].indexOf.call(children, child);
- },
- setColumnWidth: function setColumnWidth(column) {
- if (this.realWidth) {
- column.width = this.realWidth;
- }
- if (this.realMinWidth) {
- column.minWidth = this.realMinWidth;
- }
- if (!column.minWidth) {
- column.minWidth = 80;
- }
- column.realWidth = column.width === undefined ? column.minWidth : column.width;
- return column;
- },
- setColumnForcedProps: function setColumnForcedProps(column) {
- // 对于特定类型的 column,某些属性不允许设置
- var type = column.type;
- var source = cellForced[type] || {};
- Object.keys(source).forEach(function (prop) {
- var value = source[prop];
- if (value !== undefined) {
- column[prop] = prop === 'className' ? column[prop] + ' ' + value : value;
- }
- });
- return column;
- },
- setColumnRenders: function setColumnRenders(column) {
- var _this2 = this;
- var h = this.$createElement;
- // renderHeader 属性不推荐使用。
- if (this.renderHeader) {
- console.warn('[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
- } else if (column.type !== 'selection') {
- column.renderHeader = function (h, scope) {
- var renderHeader = _this2.$scopedSlots.header;
- return renderHeader ? renderHeader(scope) : column.label;
- };
- }
- var originRenderCell = column.renderCell;
- // TODO: 这里的实现调整
- if (column.type === 'expand') {
- // 对于展开行,renderCell 不允许配置的。在上一步中已经设置过,这里需要简单封装一下。
- column.renderCell = function (h, data) {
- return h(
- 'div',
- { 'class': 'cell' },
- [originRenderCell(h, data)]
- );
- };
- this.owner.renderExpanded = function (h, data) {
- return _this2.$scopedSlots.default ? _this2.$scopedSlots.default(data) : _this2.$slots.default;
- };
- } else {
- originRenderCell = originRenderCell || defaultRenderCell;
- // 对 renderCell 进行包装
- column.renderCell = function (h, data) {
- var children = null;
- if (_this2.$scopedSlots.default) {
- children = _this2.$scopedSlots.default(data);
- } else {
- children = originRenderCell(h, data);
- }
- var prefix = treeCellPrefix(h, data);
- var props = {
- class: 'cell',
- style: {}
- };
- if (column.showOverflowTooltip) {
- props.class += ' el-tooltip';
- props.style = { width: (data.column.realWidth || data.column.width) - 1 + 'px' };
- }
- return h(
- 'div',
- props,
- [prefix, children]
- );
- };
- }
- return column;
- },
- registerNormalWatchers: function registerNormalWatchers() {
- var _this3 = this;
- var props = ['label', 'property', 'filters', 'filterMultiple', 'sortable', 'index', 'formatter', 'className', 'labelClassName', 'showOverflowTooltip'];
- // 一些属性具有别名
- var aliases = {
- prop: 'property',
- realAlign: 'align',
- realHeaderAlign: 'headerAlign',
- realWidth: 'width'
- };
- var allAliases = props.reduce(function (prev, cur) {
- prev[cur] = cur;
- return prev;
- }, aliases);
- Object.keys(allAliases).forEach(function (key) {
- var columnKey = aliases[key];
- _this3.$watch(key, function (newVal) {
- _this3.columnConfig[columnKey] = newVal;
- });
- });
- },
- registerComplexWatchers: function registerComplexWatchers() {
- var _this4 = this;
- var props = ['fixed'];
- var aliases = {
- realWidth: 'width',
- realMinWidth: 'minWidth'
- };
- var allAliases = props.reduce(function (prev, cur) {
- prev[cur] = cur;
- return prev;
- }, aliases);
- Object.keys(allAliases).forEach(function (key) {
- var columnKey = aliases[key];
- _this4.$watch(key, function (newVal) {
- _this4.columnConfig[columnKey] = newVal;
- var updateColumns = columnKey === 'fixed';
- _this4.owner.store.scheduleLayout(updateColumns);
- });
- });
- }
- },
- components: {
- ElCheckbox: checkbox_default.a
- },
- beforeCreate: function beforeCreate() {
- this.row = {};
- this.column = {};
- this.$index = 0;
- this.columnId = '';
- },
- created: function created() {
- var parent = this.columnOrTableParent;
- this.isSubColumn = this.owner !== parent;
- this.columnId = (parent.tableId || parent.columnId) + '_column_' + columnIdSeed++;
- var type = this.type || 'default';
- var sortable = this.sortable === '' ? true : this.sortable;
- var defaults = table_column_extends({}, cellStarts[type], {
- id: this.columnId,
- type: type,
- property: this.prop || this.property,
- align: this.realAlign,
- headerAlign: this.realHeaderAlign,
- showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
- // filter 相关属性
- filterable: this.filters || this.filterMethod,
- filteredValue: [],
- filterPlacement: '',
- isColumnGroup: false,
- filterOpened: false,
- // sort 相关属性
- sortable: sortable,
- // index 列
- index: this.index
- });
- var basicProps = ['columnKey', 'label', 'className', 'labelClassName', 'type', 'renderHeader', 'formatter', 'fixed', 'resizable'];
- var sortProps = ['sortMethod', 'sortBy', 'sortOrders'];
- var selectProps = ['selectable', 'reserveSelection'];
- var filterProps = ['filterMethod', 'filters', 'filterMultiple', 'filterOpened', 'filteredValue', 'filterPlacement'];
- var column = this.getPropsData(basicProps, sortProps, selectProps, filterProps);
- column = mergeOptions(defaults, column);
- // 注意 compose 中函数执行的顺序是从右到左
- var chains = compose(this.setColumnRenders, this.setColumnWidth, this.setColumnForcedProps);
- column = chains(column);
- this.columnConfig = column;
- // 注册 watcher
- this.registerNormalWatchers();
- this.registerComplexWatchers();
- },
- mounted: function mounted() {
- var owner = this.owner;
- var parent = this.columnOrTableParent;
- var children = this.isSubColumn ? parent.$el.children : parent.$refs.hiddenColumns.children;
- var columnIndex = this.getColumnElIndex(children, this.$el);
- owner.store.commit('insertColumn', this.columnConfig, columnIndex, this.isSubColumn ? parent.columnConfig : null);
- },
- destroyed: function destroyed() {
- if (!this.$parent) return;
- var parent = this.$parent;
- this.owner.store.commit('removeColumn', this.columnConfig, this.isSubColumn ? parent.columnConfig : null);
- },
- render: function render(h) {
- // slots 也要渲染,需要计算合并表头
- return h('div', this.$slots.default);
- }
- });
- // CONCATENATED MODULE: ./packages/table-column/index.js
- /* istanbul ignore next */
- table_column.install = function (Vue) {
- Vue.component(table_column.name, table_column);
- };
- /* harmony default export */ var packages_table_column = (table_column);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=79ae069f&
- var pickervue_type_template_id_79ae069f_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return !_vm.ranged
- ? _c(
- "el-input",
- _vm._b(
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleClose,
- expression: "handleClose"
- }
- ],
- ref: "reference",
- staticClass: "el-date-editor",
- class: "el-date-editor--" + _vm.type,
- attrs: {
- readonly:
- !_vm.editable ||
- _vm.readonly ||
- _vm.type === "dates" ||
- _vm.type === "week",
- disabled: _vm.pickerDisabled,
- size: _vm.pickerSize,
- name: _vm.name,
- placeholder: _vm.placeholder,
- value: _vm.displayValue,
- validateEvent: false
- },
- on: {
- focus: _vm.handleFocus,
- input: function(value) {
- return (_vm.userInput = value)
- },
- change: _vm.handleChange
- },
- nativeOn: {
- keydown: function($event) {
- return _vm.handleKeydown($event)
- },
- mouseenter: function($event) {
- return _vm.handleMouseEnter($event)
- },
- mouseleave: function($event) {
- _vm.showClose = false
- }
- }
- },
- "el-input",
- _vm.firstInputId,
- false
- ),
- [
- _c("i", {
- staticClass: "el-input__icon",
- class: _vm.triggerClass,
- attrs: { slot: "prefix" },
- on: { click: _vm.handleFocus },
- slot: "prefix"
- }),
- _vm.haveTrigger
- ? _c("i", {
- staticClass: "el-input__icon",
- class: [_vm.showClose ? "" + _vm.clearIcon : ""],
- attrs: { slot: "suffix" },
- on: { click: _vm.handleClickIcon },
- slot: "suffix"
- })
- : _vm._e()
- ]
- )
- : _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleClose,
- expression: "handleClose"
- }
- ],
- ref: "reference",
- staticClass: "el-date-editor el-range-editor el-input__inner",
- class: [
- "el-date-editor--" + _vm.type,
- _vm.pickerSize ? "el-range-editor--" + _vm.pickerSize : "",
- _vm.pickerDisabled ? "is-disabled" : "",
- _vm.pickerVisible ? "is-active" : ""
- ],
- on: {
- click: _vm.handleRangeClick,
- mouseenter: _vm.handleMouseEnter,
- mouseleave: function($event) {
- _vm.showClose = false
- },
- keydown: _vm.handleKeydown
- }
- },
- [
- _c("i", {
- class: ["el-input__icon", "el-range__icon", _vm.triggerClass]
- }),
- _c(
- "input",
- _vm._b(
- {
- staticClass: "el-range-input",
- attrs: {
- autocomplete: "off",
- placeholder: _vm.startPlaceholder,
- disabled: _vm.pickerDisabled,
- readonly: !_vm.editable || _vm.readonly,
- name: _vm.name && _vm.name[0]
- },
- domProps: { value: _vm.displayValue && _vm.displayValue[0] },
- on: {
- input: _vm.handleStartInput,
- change: _vm.handleStartChange,
- focus: _vm.handleFocus
- }
- },
- "input",
- _vm.firstInputId,
- false
- )
- ),
- _vm._t("range-separator", [
- _c("span", { staticClass: "el-range-separator" }, [
- _vm._v(_vm._s(_vm.rangeSeparator))
- ])
- ]),
- _c(
- "input",
- _vm._b(
- {
- staticClass: "el-range-input",
- attrs: {
- autocomplete: "off",
- placeholder: _vm.endPlaceholder,
- disabled: _vm.pickerDisabled,
- readonly: !_vm.editable || _vm.readonly,
- name: _vm.name && _vm.name[1]
- },
- domProps: { value: _vm.displayValue && _vm.displayValue[1] },
- on: {
- input: _vm.handleEndInput,
- change: _vm.handleEndChange,
- focus: _vm.handleFocus
- }
- },
- "input",
- _vm.secondInputId,
- false
- )
- ),
- _vm.haveTrigger
- ? _c("i", {
- staticClass: "el-input__icon el-range__close-icon",
- class: [_vm.showClose ? "" + _vm.clearIcon : ""],
- on: { click: _vm.handleClickIcon }
- })
- : _vm._e()
- ],
- 2
- )
- }
- var pickervue_type_template_id_79ae069f_staticRenderFns = []
- pickervue_type_template_id_79ae069f_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=template&id=79ae069f&
- // EXTERNAL MODULE: external "element-ui/lib/utils/date-util"
- var date_util_ = __webpack_require__(0);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var NewPopper = {
- props: {
- appendToBody: vue_popper_default.a.props.appendToBody,
- offset: vue_popper_default.a.props.offset,
- boundariesPadding: vue_popper_default.a.props.boundariesPadding,
- arrowOffset: vue_popper_default.a.props.arrowOffset
- },
- methods: vue_popper_default.a.methods,
- data: function data() {
- return merge_default()({ visibleArrow: true }, vue_popper_default.a.data);
- },
- beforeDestroy: vue_popper_default.a.beforeDestroy
- };
- var DEFAULT_FORMATS = {
- date: 'yyyy-MM-dd',
- month: 'yyyy-MM',
- datetime: 'yyyy-MM-dd HH:mm:ss',
- time: 'HH:mm:ss',
- week: 'yyyywWW',
- timerange: 'HH:mm:ss',
- daterange: 'yyyy-MM-dd',
- monthrange: 'yyyy-MM',
- datetimerange: 'yyyy-MM-dd HH:mm:ss',
- year: 'yyyy'
- };
- var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'monthrange', 'timerange', 'datetimerange', 'dates'];
- var pickervue_type_script_lang_js_DATE_FORMATTER = function DATE_FORMATTER(value, format) {
- if (format === 'timestamp') return value.getTime();
- return Object(date_util_["formatDate"])(value, format);
- };
- var pickervue_type_script_lang_js_DATE_PARSER = function DATE_PARSER(text, format) {
- if (format === 'timestamp') return new Date(Number(text));
- return Object(date_util_["parseDate"])(text, format);
- };
- var RANGE_FORMATTER = function RANGE_FORMATTER(value, format) {
- if (Array.isArray(value) && value.length === 2) {
- var start = value[0];
- var end = value[1];
- if (start && end) {
- return [pickervue_type_script_lang_js_DATE_FORMATTER(start, format), pickervue_type_script_lang_js_DATE_FORMATTER(end, format)];
- }
- }
- return '';
- };
- var RANGE_PARSER = function RANGE_PARSER(array, format, separator) {
- if (!Array.isArray(array)) {
- array = array.split(separator);
- }
- if (array.length === 2) {
- var range1 = array[0];
- var range2 = array[1];
- return [pickervue_type_script_lang_js_DATE_PARSER(range1, format), pickervue_type_script_lang_js_DATE_PARSER(range2, format)];
- }
- return [];
- };
- var TYPE_VALUE_RESOLVER_MAP = {
- default: {
- formatter: function formatter(value) {
- if (!value) return '';
- return '' + value;
- },
- parser: function parser(text) {
- if (text === undefined || text === '') return null;
- return text;
- }
- },
- week: {
- formatter: function formatter(value, format) {
- var week = Object(date_util_["getWeekNumber"])(value);
- var month = value.getMonth();
- var trueDate = new Date(value);
- if (week === 1 && month === 11) {
- trueDate.setHours(0, 0, 0, 0);
- trueDate.setDate(trueDate.getDate() + 3 - (trueDate.getDay() + 6) % 7);
- }
- var date = Object(date_util_["formatDate"])(trueDate, format);
- date = /WW/.test(date) ? date.replace(/WW/, week < 10 ? '0' + week : week) : date.replace(/W/, week);
- return date;
- },
- parser: function parser(text, format) {
- // parse as if a normal date
- return TYPE_VALUE_RESOLVER_MAP.date.parser(text, format);
- }
- },
- date: {
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
- parser: pickervue_type_script_lang_js_DATE_PARSER
- },
- datetime: {
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
- parser: pickervue_type_script_lang_js_DATE_PARSER
- },
- daterange: {
- formatter: RANGE_FORMATTER,
- parser: RANGE_PARSER
- },
- monthrange: {
- formatter: RANGE_FORMATTER,
- parser: RANGE_PARSER
- },
- datetimerange: {
- formatter: RANGE_FORMATTER,
- parser: RANGE_PARSER
- },
- timerange: {
- formatter: RANGE_FORMATTER,
- parser: RANGE_PARSER
- },
- time: {
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
- parser: pickervue_type_script_lang_js_DATE_PARSER
- },
- month: {
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
- parser: pickervue_type_script_lang_js_DATE_PARSER
- },
- year: {
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
- parser: pickervue_type_script_lang_js_DATE_PARSER
- },
- number: {
- formatter: function formatter(value) {
- if (!value) return '';
- return '' + value;
- },
- parser: function parser(text) {
- var result = Number(text);
- if (!isNaN(text)) {
- return result;
- } else {
- return null;
- }
- }
- },
- dates: {
- formatter: function formatter(value, format) {
- return value.map(function (date) {
- return pickervue_type_script_lang_js_DATE_FORMATTER(date, format);
- });
- },
- parser: function parser(value, format) {
- return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
- return date instanceof Date ? date : pickervue_type_script_lang_js_DATE_PARSER(date, format);
- });
- }
- }
- };
- var PLACEMENT_MAP = {
- left: 'bottom-start',
- center: 'bottom',
- right: 'bottom-end'
- };
- var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type) {
- var rangeSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
- if (!value) return null;
- var parser = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).parser;
- var format = customFormat || DEFAULT_FORMATS[type];
- return parser(value, format, rangeSeparator);
- };
- var formatAsFormatAndType = function formatAsFormatAndType(value, customFormat, type) {
- if (!value) return null;
- var formatter = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).formatter;
- var format = customFormat || DEFAULT_FORMATS[type];
- return formatter(value, format);
- };
- /*
- * Considers:
- * 1. Date object
- * 2. date string
- * 3. array of 1 or 2
- */
- var valueEquals = function valueEquals(a, b) {
- // considers Date object and string
- var dateEquals = function dateEquals(a, b) {
- var aIsDate = a instanceof Date;
- var bIsDate = b instanceof Date;
- if (aIsDate && bIsDate) {
- return a.getTime() === b.getTime();
- }
- if (!aIsDate && !bIsDate) {
- return a === b;
- }
- return false;
- };
- var aIsArray = a instanceof Array;
- var bIsArray = b instanceof Array;
- if (aIsArray && bIsArray) {
- if (a.length !== b.length) {
- return false;
- }
- return a.every(function (item, index) {
- return dateEquals(item, b[index]);
- });
- }
- if (!aIsArray && !bIsArray) {
- return dateEquals(a, b);
- }
- return false;
- };
- var isString = function isString(val) {
- return typeof val === 'string' || val instanceof String;
- };
- var pickervue_type_script_lang_js_validator = function validator(val) {
- // either: String, Array of String, null / undefined
- return val === null || val === undefined || isString(val) || Array.isArray(val) && val.length === 2 && val.every(isString);
- };
- /* harmony default export */ var pickervue_type_script_lang_js_ = ({
- mixins: [emitter_default.a, NewPopper],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- props: {
- size: String,
- format: String,
- valueFormat: String,
- readonly: Boolean,
- placeholder: String,
- startPlaceholder: String,
- endPlaceholder: String,
- prefixIcon: String,
- clearIcon: {
- type: String,
- default: 'el-icon-circle-close'
- },
- name: {
- default: '',
- validator: pickervue_type_script_lang_js_validator
- },
- disabled: Boolean,
- clearable: {
- type: Boolean,
- default: true
- },
- id: {
- default: '',
- validator: pickervue_type_script_lang_js_validator
- },
- popperClass: String,
- editable: {
- type: Boolean,
- default: true
- },
- align: {
- type: String,
- default: 'left'
- },
- value: {},
- defaultValue: {},
- defaultTime: {},
- rangeSeparator: {
- default: '-'
- },
- pickerOptions: {},
- unlinkPanels: Boolean,
- validateEvent: {
- type: Boolean,
- default: true
- }
- },
- components: { ElInput: input_default.a },
- directives: { Clickoutside: clickoutside_default.a },
- data: function data() {
- return {
- pickerVisible: false,
- showClose: false,
- userInput: null,
- valueOnOpen: null, // value when picker opens, used to determine whether to emit change
- unwatchPickerOptions: null
- };
- },
- watch: {
- pickerVisible: function pickerVisible(val) {
- if (this.readonly || this.pickerDisabled) return;
- if (val) {
- this.showPicker();
- this.valueOnOpen = Array.isArray(this.value) ? [].concat(this.value) : this.value;
- } else {
- this.hidePicker();
- this.emitChange(this.value);
- this.userInput = null;
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.blur');
- }
- this.$emit('blur', this);
- this.blur();
- }
- },
- parsedValue: {
- immediate: true,
- handler: function handler(val) {
- if (this.picker) {
- this.picker.value = val;
- }
- }
- },
- defaultValue: function defaultValue(val) {
- // NOTE: should eventually move to jsx style picker + panel ?
- if (this.picker) {
- this.picker.defaultValue = val;
- }
- },
- value: function value(val, oldVal) {
- if (!valueEquals(val, oldVal) && !this.pickerVisible && this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- }
- }
- },
- computed: {
- ranged: function ranged() {
- return this.type.indexOf('range') > -1;
- },
- reference: function reference() {
- var reference = this.$refs.reference;
- return reference.$el || reference;
- },
- refInput: function refInput() {
- if (this.reference) {
- return [].slice.call(this.reference.querySelectorAll('input'));
- }
- return [];
- },
- valueIsEmpty: function valueIsEmpty() {
- var val = this.value;
- if (Array.isArray(val)) {
- for (var i = 0, len = val.length; i < len; i++) {
- if (val[i]) {
- return false;
- }
- }
- } else {
- if (val) {
- return false;
- }
- }
- return true;
- },
- triggerClass: function triggerClass() {
- return this.prefixIcon || (this.type.indexOf('time') !== -1 ? 'el-icon-time' : 'el-icon-date');
- },
- selectionMode: function selectionMode() {
- if (this.type === 'week') {
- return 'week';
- } else if (this.type === 'month') {
- return 'month';
- } else if (this.type === 'year') {
- return 'year';
- } else if (this.type === 'dates') {
- return 'dates';
- }
- return 'day';
- },
- haveTrigger: function haveTrigger() {
- if (typeof this.showTrigger !== 'undefined') {
- return this.showTrigger;
- }
- return HAVE_TRIGGER_TYPES.indexOf(this.type) !== -1;
- },
- displayValue: function displayValue() {
- var formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator);
- if (Array.isArray(this.userInput)) {
- return [this.userInput[0] || formattedValue && formattedValue[0] || '', this.userInput[1] || formattedValue && formattedValue[1] || ''];
- } else if (this.userInput !== null) {
- return this.userInput;
- } else if (formattedValue) {
- return this.type === 'dates' ? formattedValue.join(', ') : formattedValue;
- } else {
- return '';
- }
- },
- parsedValue: function parsedValue() {
- if (!this.value) return this.value; // component value is not set
- if (this.type === 'time-select') return this.value; // time-select does not require parsing, this might change in next major version
- var valueIsDateObject = Object(date_util_["isDateObject"])(this.value) || Array.isArray(this.value) && this.value.every(date_util_["isDateObject"]);
- if (valueIsDateObject) {
- return this.value;
- }
- if (this.valueFormat) {
- return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
- }
- // NOTE: deal with common but incorrect usage, should remove in next major version
- // user might provide string / timestamp without value-format, coerce them into date (or array of date)
- return Array.isArray(this.value) ? this.value.map(function (val) {
- return new Date(val);
- }) : new Date(this.value);
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- pickerSize: function pickerSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- pickerDisabled: function pickerDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- firstInputId: function firstInputId() {
- var obj = {};
- var id = void 0;
- if (this.ranged) {
- id = this.id && this.id[0];
- } else {
- id = this.id;
- }
- if (id) obj.id = id;
- return obj;
- },
- secondInputId: function secondInputId() {
- var obj = {};
- var id = void 0;
- if (this.ranged) {
- id = this.id && this.id[1];
- }
- if (id) obj.id = id;
- return obj;
- }
- },
- created: function created() {
- // vue-popper
- this.popperOptions = {
- boundariesPadding: 0,
- gpuAcceleration: false
- };
- this.placement = PLACEMENT_MAP[this.align] || PLACEMENT_MAP.left;
- this.$on('fieldReset', this.handleFieldReset);
- },
- methods: {
- focus: function focus() {
- if (!this.ranged) {
- this.$refs.reference.focus();
- } else {
- this.handleFocus();
- }
- },
- blur: function blur() {
- this.refInput.forEach(function (input) {
- return input.blur();
- });
- },
- // {parse, formatTo} Value deals maps component value with internal Date
- parseValue: function parseValue(value) {
- var isParsed = Object(date_util_["isDateObject"])(value) || Array.isArray(value) && value.every(date_util_["isDateObject"]);
- if (this.valueFormat && !isParsed) {
- return parseAsFormatAndType(value, this.valueFormat, this.type, this.rangeSeparator) || value;
- } else {
- return value;
- }
- },
- formatToValue: function formatToValue(date) {
- var isFormattable = Object(date_util_["isDateObject"])(date) || Array.isArray(date) && date.every(date_util_["isDateObject"]);
- if (this.valueFormat && isFormattable) {
- return formatAsFormatAndType(date, this.valueFormat, this.type, this.rangeSeparator);
- } else {
- return date;
- }
- },
- // {parse, formatTo} String deals with user input
- parseString: function parseString(value) {
- var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
- return parseAsFormatAndType(value, this.format, type);
- },
- formatToString: function formatToString(value) {
- var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
- return formatAsFormatAndType(value, this.format, type);
- },
- handleMouseEnter: function handleMouseEnter() {
- if (this.readonly || this.pickerDisabled) return;
- if (!this.valueIsEmpty && this.clearable) {
- this.showClose = true;
- }
- },
- handleChange: function handleChange() {
- if (this.userInput) {
- var value = this.parseString(this.displayValue);
- if (value) {
- this.picker.value = value;
- if (this.isValidValue(value)) {
- this.emitInput(value);
- this.userInput = null;
- }
- }
- }
- if (this.userInput === '') {
- this.emitInput(null);
- this.emitChange(null);
- this.userInput = null;
- }
- },
- handleStartInput: function handleStartInput(event) {
- if (this.userInput) {
- this.userInput = [event.target.value, this.userInput[1]];
- } else {
- this.userInput = [event.target.value, null];
- }
- },
- handleEndInput: function handleEndInput(event) {
- if (this.userInput) {
- this.userInput = [this.userInput[0], event.target.value];
- } else {
- this.userInput = [null, event.target.value];
- }
- },
- handleStartChange: function handleStartChange(event) {
- var value = this.parseString(this.userInput && this.userInput[0]);
- if (value) {
- this.userInput = [this.formatToString(value), this.displayValue[1]];
- var newValue = [value, this.picker.value && this.picker.value[1]];
- this.picker.value = newValue;
- if (this.isValidValue(newValue)) {
- this.emitInput(newValue);
- this.userInput = null;
- }
- }
- },
- handleEndChange: function handleEndChange(event) {
- var value = this.parseString(this.userInput && this.userInput[1]);
- if (value) {
- this.userInput = [this.displayValue[0], this.formatToString(value)];
- var newValue = [this.picker.value && this.picker.value[0], value];
- this.picker.value = newValue;
- if (this.isValidValue(newValue)) {
- this.emitInput(newValue);
- this.userInput = null;
- }
- }
- },
- handleClickIcon: function handleClickIcon(event) {
- if (this.readonly || this.pickerDisabled) return;
- if (this.showClose) {
- this.valueOnOpen = this.value;
- event.stopPropagation();
- this.emitInput(null);
- this.emitChange(null);
- this.showClose = false;
- if (this.picker && typeof this.picker.handleClear === 'function') {
- this.picker.handleClear();
- }
- } else {
- this.pickerVisible = !this.pickerVisible;
- }
- },
- handleClose: function handleClose() {
- if (!this.pickerVisible) return;
- this.pickerVisible = false;
- if (this.type === 'dates') {
- // restore to former value
- var oldValue = parseAsFormatAndType(this.valueOnOpen, this.valueFormat, this.type, this.rangeSeparator) || this.valueOnOpen;
- this.emitInput(oldValue);
- }
- },
- handleFieldReset: function handleFieldReset(initialValue) {
- this.userInput = initialValue === '' ? null : initialValue;
- },
- handleFocus: function handleFocus() {
- var type = this.type;
- if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
- this.pickerVisible = true;
- }
- this.$emit('focus', this);
- },
- handleKeydown: function handleKeydown(event) {
- var _this = this;
- var keyCode = event.keyCode;
- // ESC
- if (keyCode === 27) {
- this.pickerVisible = false;
- event.stopPropagation();
- return;
- }
- // Tab
- if (keyCode === 9) {
- if (!this.ranged) {
- this.handleChange();
- this.pickerVisible = this.picker.visible = false;
- this.blur();
- event.stopPropagation();
- } else {
- // user may change focus between two input
- setTimeout(function () {
- if (_this.refInput.indexOf(document.activeElement) === -1) {
- _this.pickerVisible = false;
- _this.blur();
- event.stopPropagation();
- }
- }, 0);
- }
- return;
- }
- // Enter
- if (keyCode === 13) {
- if (this.userInput === '' || this.isValidValue(this.parseString(this.displayValue))) {
- this.handleChange();
- this.pickerVisible = this.picker.visible = false;
- this.blur();
- }
- event.stopPropagation();
- return;
- }
- // if user is typing, do not let picker handle key input
- if (this.userInput) {
- event.stopPropagation();
- return;
- }
- // delegate other keys to panel
- if (this.picker && this.picker.handleKeydown) {
- this.picker.handleKeydown(event);
- }
- },
- handleRangeClick: function handleRangeClick() {
- var type = this.type;
- if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
- this.pickerVisible = true;
- }
- this.$emit('focus', this);
- },
- hidePicker: function hidePicker() {
- if (this.picker) {
- this.picker.resetView && this.picker.resetView();
- this.pickerVisible = this.picker.visible = false;
- this.destroyPopper();
- }
- },
- showPicker: function showPicker() {
- var _this2 = this;
- if (this.$isServer) return;
- if (!this.picker) {
- this.mountPicker();
- }
- this.pickerVisible = this.picker.visible = true;
- this.updatePopper();
- this.picker.value = this.parsedValue;
- this.picker.resetView && this.picker.resetView();
- this.$nextTick(function () {
- _this2.picker.adjustSpinners && _this2.picker.adjustSpinners();
- });
- },
- mountPicker: function mountPicker() {
- var _this3 = this;
- this.picker = new external_vue_default.a(this.panel).$mount();
- this.picker.defaultValue = this.defaultValue;
- this.picker.defaultTime = this.defaultTime;
- this.picker.popperClass = this.popperClass;
- this.popperElm = this.picker.$el;
- this.picker.width = this.reference.getBoundingClientRect().width;
- this.picker.showTime = this.type === 'datetime' || this.type === 'datetimerange';
- this.picker.selectionMode = this.selectionMode;
- this.picker.unlinkPanels = this.unlinkPanels;
- this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
- this.$watch('format', function (format) {
- _this3.picker.format = format;
- });
- var updateOptions = function updateOptions() {
- var options = _this3.pickerOptions;
- if (options && options.selectableRange) {
- var ranges = options.selectableRange;
- var parser = TYPE_VALUE_RESOLVER_MAP.datetimerange.parser;
- var format = DEFAULT_FORMATS.timerange;
- ranges = Array.isArray(ranges) ? ranges : [ranges];
- _this3.picker.selectableRange = ranges.map(function (range) {
- return parser(range, format, _this3.rangeSeparator);
- });
- }
- for (var option in options) {
- if (options.hasOwnProperty(option) &&
- // 忽略 time-picker 的该配置项
- option !== 'selectableRange') {
- _this3.picker[option] = options[option];
- }
- }
- // main format must prevail over undocumented pickerOptions.format
- if (_this3.format) {
- _this3.picker.format = _this3.format;
- }
- };
- updateOptions();
- this.unwatchPickerOptions = this.$watch('pickerOptions', function () {
- return updateOptions();
- }, { deep: true });
- this.$el.appendChild(this.picker.$el);
- this.picker.resetView && this.picker.resetView();
- this.picker.$on('dodestroy', this.doDestroy);
- this.picker.$on('pick', function () {
- var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- _this3.userInput = null;
- _this3.pickerVisible = _this3.picker.visible = visible;
- _this3.emitInput(date);
- _this3.picker.resetView && _this3.picker.resetView();
- });
- this.picker.$on('select-range', function (start, end, pos) {
- if (_this3.refInput.length === 0) return;
- if (!pos || pos === 'min') {
- _this3.refInput[0].setSelectionRange(start, end);
- _this3.refInput[0].focus();
- } else if (pos === 'max') {
- _this3.refInput[1].setSelectionRange(start, end);
- _this3.refInput[1].focus();
- }
- });
- },
- unmountPicker: function unmountPicker() {
- if (this.picker) {
- this.picker.$destroy();
- this.picker.$off();
- if (typeof this.unwatchPickerOptions === 'function') {
- this.unwatchPickerOptions();
- }
- this.picker.$el.parentNode.removeChild(this.picker.$el);
- }
- },
- emitChange: function emitChange(val) {
- // determine user real change only
- if (!valueEquals(val, this.valueOnOpen)) {
- this.$emit('change', val);
- this.valueOnOpen = val;
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- }
- }
- },
- emitInput: function emitInput(val) {
- var formatted = this.formatToValue(val);
- if (!valueEquals(this.value, formatted)) {
- this.$emit('input', formatted);
- }
- },
- isValidValue: function isValidValue(value) {
- if (!this.picker) {
- this.mountPicker();
- }
- if (this.picker.isValidValue) {
- return value && this.picker.isValidValue(value);
- } else {
- return true;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_pickervue_type_script_lang_js_ = (pickervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue
- /* normalize component */
- var picker_component = normalizeComponent(
- src_pickervue_type_script_lang_js_,
- pickervue_type_template_id_79ae069f_render,
- pickervue_type_template_id_79ae069f_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var picker_api; }
- picker_component.options.__file = "packages/date-picker/src/picker.vue"
- /* harmony default export */ var picker = (picker_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/date.vue?vue&type=template&id=2440d4ea&
- var datevue_type_template_id_2440d4ea_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: { "after-enter": _vm.handleEnter, "after-leave": _vm.handleLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-picker-panel el-date-picker el-popper",
- class: [
- {
- "has-sidebar": _vm.$slots.sidebar || _vm.shortcuts,
- "has-time": _vm.showTime
- },
- _vm.popperClass
- ]
- },
- [
- _c(
- "div",
- { staticClass: "el-picker-panel__body-wrapper" },
- [
- _vm._t("sidebar"),
- _vm.shortcuts
- ? _c(
- "div",
- { staticClass: "el-picker-panel__sidebar" },
- _vm._l(_vm.shortcuts, function(shortcut, key) {
- return _c(
- "button",
- {
- key: key,
- staticClass: "el-picker-panel__shortcut",
- attrs: { type: "button" },
- on: {
- click: function($event) {
- _vm.handleShortcutClick(shortcut)
- }
- }
- },
- [_vm._v(_vm._s(shortcut.text))]
- )
- }),
- 0
- )
- : _vm._e(),
- _c("div", { staticClass: "el-picker-panel__body" }, [
- _vm.showTime
- ? _c("div", { staticClass: "el-date-picker__time-header" }, [
- _c(
- "span",
- { staticClass: "el-date-picker__editor-wrap" },
- [
- _c("el-input", {
- attrs: {
- placeholder: _vm.t("el.datepicker.selectDate"),
- value: _vm.visibleDate,
- size: "small"
- },
- on: {
- input: function(val) {
- return (_vm.userInputDate = val)
- },
- change: _vm.handleVisibleDateChange
- }
- })
- ],
- 1
- ),
- _c(
- "span",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleTimePickClose,
- expression: "handleTimePickClose"
- }
- ],
- staticClass: "el-date-picker__editor-wrap"
- },
- [
- _c("el-input", {
- ref: "input",
- attrs: {
- placeholder: _vm.t("el.datepicker.selectTime"),
- value: _vm.visibleTime,
- size: "small"
- },
- on: {
- focus: function($event) {
- _vm.timePickerVisible = true
- },
- input: function(val) {
- return (_vm.userInputTime = val)
- },
- change: _vm.handleVisibleTimeChange
- }
- }),
- _c("time-picker", {
- ref: "timepicker",
- attrs: {
- "time-arrow-control": _vm.arrowControl,
- visible: _vm.timePickerVisible
- },
- on: {
- pick: _vm.handleTimePick,
- mounted: _vm.proxyTimePickerDataProperties
- }
- })
- ],
- 1
- )
- ])
- : _vm._e(),
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView !== "time",
- expression: "currentView !== 'time'"
- }
- ],
- staticClass: "el-date-picker__header",
- class: {
- "el-date-picker__header--bordered":
- _vm.currentView === "year" ||
- _vm.currentView === "month"
- }
- },
- [
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",
- attrs: {
- type: "button",
- "aria-label": _vm.t("el.datepicker.prevYear")
- },
- on: { click: _vm.prevYear }
- }),
- _c("button", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "date",
- expression: "currentView === 'date'"
- }
- ],
- staticClass:
- "el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",
- attrs: {
- type: "button",
- "aria-label": _vm.t("el.datepicker.prevMonth")
- },
- on: { click: _vm.prevMonth }
- }),
- _c(
- "span",
- {
- staticClass: "el-date-picker__header-label",
- attrs: { role: "button" },
- on: { click: _vm.showYearPicker }
- },
- [_vm._v(_vm._s(_vm.yearLabel))]
- ),
- _c(
- "span",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "date",
- expression: "currentView === 'date'"
- }
- ],
- staticClass: "el-date-picker__header-label",
- class: { active: _vm.currentView === "month" },
- attrs: { role: "button" },
- on: { click: _vm.showMonthPicker }
- },
- [
- _vm._v(
- _vm._s(_vm.t("el.datepicker.month" + (_vm.month + 1)))
- )
- ]
- ),
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",
- attrs: {
- type: "button",
- "aria-label": _vm.t("el.datepicker.nextYear")
- },
- on: { click: _vm.nextYear }
- }),
- _c("button", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "date",
- expression: "currentView === 'date'"
- }
- ],
- staticClass:
- "el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",
- attrs: {
- type: "button",
- "aria-label": _vm.t("el.datepicker.nextMonth")
- },
- on: { click: _vm.nextMonth }
- })
- ]
- ),
- _c(
- "div",
- { staticClass: "el-picker-panel__content" },
- [
- _c("date-table", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "date",
- expression: "currentView === 'date'"
- }
- ],
- attrs: {
- "selection-mode": _vm.selectionMode,
- "first-day-of-week": _vm.firstDayOfWeek,
- value: _vm.value,
- "default-value": _vm.defaultValue
- ? new Date(_vm.defaultValue)
- : null,
- date: _vm.date,
- "cell-class-name": _vm.cellClassName,
- "disabled-date": _vm.disabledDate
- },
- on: { pick: _vm.handleDatePick }
- }),
- _c("year-table", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "year",
- expression: "currentView === 'year'"
- }
- ],
- attrs: {
- value: _vm.value,
- "default-value": _vm.defaultValue
- ? new Date(_vm.defaultValue)
- : null,
- date: _vm.date,
- "disabled-date": _vm.disabledDate
- },
- on: { pick: _vm.handleYearPick }
- }),
- _c("month-table", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.currentView === "month",
- expression: "currentView === 'month'"
- }
- ],
- attrs: {
- value: _vm.value,
- "default-value": _vm.defaultValue
- ? new Date(_vm.defaultValue)
- : null,
- date: _vm.date,
- "disabled-date": _vm.disabledDate
- },
- on: { pick: _vm.handleMonthPick }
- })
- ],
- 1
- )
- ])
- ],
- 2
- ),
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.footerVisible && _vm.currentView === "date",
- expression: "footerVisible && currentView === 'date'"
- }
- ],
- staticClass: "el-picker-panel__footer"
- },
- [
- _c(
- "el-button",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.selectionMode !== "dates",
- expression: "selectionMode !== 'dates'"
- }
- ],
- staticClass: "el-picker-panel__link-btn",
- attrs: { size: "mini", type: "text" },
- on: { click: _vm.changeToNow }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.now")) +
- "\n "
- )
- ]
- ),
- _c(
- "el-button",
- {
- staticClass: "el-picker-panel__link-btn",
- attrs: { plain: "", size: "mini" },
- on: { click: _vm.confirm }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.confirm")) +
- "\n "
- )
- ]
- )
- ],
- 1
- )
- ]
- )
- ]
- )
- }
- var datevue_type_template_id_2440d4ea_staticRenderFns = []
- datevue_type_template_id_2440d4ea_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date.vue?vue&type=template&id=2440d4ea&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time.vue?vue&type=template&id=3d939089&
- var timevue_type_template_id_3d939089_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "after-leave": function($event) {
- _vm.$emit("dodestroy")
- }
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-time-panel el-popper",
- class: _vm.popperClass
- },
- [
- _c(
- "div",
- {
- staticClass: "el-time-panel__content",
- class: { "has-seconds": _vm.showSeconds }
- },
- [
- _c("time-spinner", {
- ref: "spinner",
- attrs: {
- "arrow-control": _vm.useArrow,
- "show-seconds": _vm.showSeconds,
- "am-pm-mode": _vm.amPmMode,
- date: _vm.date
- },
- on: {
- change: _vm.handleChange,
- "select-range": _vm.setSelectionRange
- }
- })
- ],
- 1
- ),
- _c("div", { staticClass: "el-time-panel__footer" }, [
- _c(
- "button",
- {
- staticClass: "el-time-panel__btn cancel",
- attrs: { type: "button" },
- on: { click: _vm.handleCancel }
- },
- [_vm._v(_vm._s(_vm.t("el.datepicker.cancel")))]
- ),
- _c(
- "button",
- {
- staticClass: "el-time-panel__btn",
- class: { confirm: !_vm.disabled },
- attrs: { type: "button" },
- on: {
- click: function($event) {
- _vm.handleConfirm()
- }
- }
- },
- [_vm._v(_vm._s(_vm.t("el.datepicker.confirm")))]
- )
- ])
- ]
- )
- ]
- )
- }
- var timevue_type_template_id_3d939089_staticRenderFns = []
- timevue_type_template_id_3d939089_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue?vue&type=template&id=3d939089&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/time-spinner.vue?vue&type=template&id=1facadeb&
- var time_spinnervue_type_template_id_1facadeb_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-time-spinner",
- class: { "has-seconds": _vm.showSeconds }
- },
- [
- !_vm.arrowControl
- ? [
- _c(
- "el-scrollbar",
- {
- ref: "hours",
- staticClass: "el-time-spinner__wrapper",
- attrs: {
- "wrap-style": "max-height: inherit;",
- "view-class": "el-time-spinner__list",
- noresize: "",
- tag: "ul"
- },
- nativeOn: {
- mouseenter: function($event) {
- _vm.emitSelectRange("hours")
- },
- mousemove: function($event) {
- _vm.adjustCurrentSpinner("hours")
- }
- }
- },
- _vm._l(_vm.hoursList, function(disabled, hour) {
- return _c(
- "li",
- {
- key: hour,
- staticClass: "el-time-spinner__item",
- class: { active: hour === _vm.hours, disabled: disabled },
- on: {
- click: function($event) {
- _vm.handleClick("hours", {
- value: hour,
- disabled: disabled
- })
- }
- }
- },
- [
- _vm._v(
- _vm._s(
- ("0" + (_vm.amPmMode ? hour % 12 || 12 : hour)).slice(
- -2
- )
- ) + _vm._s(_vm.amPm(hour))
- )
- ]
- )
- }),
- 0
- ),
- _c(
- "el-scrollbar",
- {
- ref: "minutes",
- staticClass: "el-time-spinner__wrapper",
- attrs: {
- "wrap-style": "max-height: inherit;",
- "view-class": "el-time-spinner__list",
- noresize: "",
- tag: "ul"
- },
- nativeOn: {
- mouseenter: function($event) {
- _vm.emitSelectRange("minutes")
- },
- mousemove: function($event) {
- _vm.adjustCurrentSpinner("minutes")
- }
- }
- },
- _vm._l(_vm.minutesList, function(enabled, key) {
- return _c(
- "li",
- {
- key: key,
- staticClass: "el-time-spinner__item",
- class: { active: key === _vm.minutes, disabled: !enabled },
- on: {
- click: function($event) {
- _vm.handleClick("minutes", {
- value: key,
- disabled: false
- })
- }
- }
- },
- [_vm._v(_vm._s(("0" + key).slice(-2)))]
- )
- }),
- 0
- ),
- _c(
- "el-scrollbar",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showSeconds,
- expression: "showSeconds"
- }
- ],
- ref: "seconds",
- staticClass: "el-time-spinner__wrapper",
- attrs: {
- "wrap-style": "max-height: inherit;",
- "view-class": "el-time-spinner__list",
- noresize: "",
- tag: "ul"
- },
- nativeOn: {
- mouseenter: function($event) {
- _vm.emitSelectRange("seconds")
- },
- mousemove: function($event) {
- _vm.adjustCurrentSpinner("seconds")
- }
- }
- },
- _vm._l(60, function(second, key) {
- return _c(
- "li",
- {
- key: key,
- staticClass: "el-time-spinner__item",
- class: { active: key === _vm.seconds },
- on: {
- click: function($event) {
- _vm.handleClick("seconds", {
- value: key,
- disabled: false
- })
- }
- }
- },
- [_vm._v(_vm._s(("0" + key).slice(-2)))]
- )
- }),
- 0
- )
- ]
- : _vm._e(),
- _vm.arrowControl
- ? [
- _c(
- "div",
- {
- staticClass: "el-time-spinner__wrapper is-arrow",
- on: {
- mouseenter: function($event) {
- _vm.emitSelectRange("hours")
- }
- }
- },
- [
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.decrease,
- expression: "decrease"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-up"
- }),
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.increase,
- expression: "increase"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-down"
- }),
- _c(
- "ul",
- { ref: "hours", staticClass: "el-time-spinner__list" },
- _vm._l(_vm.arrowHourList, function(hour, key) {
- return _c(
- "li",
- {
- key: key,
- staticClass: "el-time-spinner__item",
- class: {
- active: hour === _vm.hours,
- disabled: _vm.hoursList[hour]
- }
- },
- [
- _vm._v(
- _vm._s(
- hour === undefined
- ? ""
- : (
- "0" + (_vm.amPmMode ? hour % 12 || 12 : hour)
- ).slice(-2) + _vm.amPm(hour)
- )
- )
- ]
- )
- }),
- 0
- )
- ]
- ),
- _c(
- "div",
- {
- staticClass: "el-time-spinner__wrapper is-arrow",
- on: {
- mouseenter: function($event) {
- _vm.emitSelectRange("minutes")
- }
- }
- },
- [
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.decrease,
- expression: "decrease"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-up"
- }),
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.increase,
- expression: "increase"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-down"
- }),
- _c(
- "ul",
- { ref: "minutes", staticClass: "el-time-spinner__list" },
- _vm._l(_vm.arrowMinuteList, function(minute, key) {
- return _c(
- "li",
- {
- key: key,
- staticClass: "el-time-spinner__item",
- class: { active: minute === _vm.minutes }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(
- minute === undefined
- ? ""
- : ("0" + minute).slice(-2)
- ) +
- "\n "
- )
- ]
- )
- }),
- 0
- )
- ]
- ),
- _vm.showSeconds
- ? _c(
- "div",
- {
- staticClass: "el-time-spinner__wrapper is-arrow",
- on: {
- mouseenter: function($event) {
- _vm.emitSelectRange("seconds")
- }
- }
- },
- [
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.decrease,
- expression: "decrease"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-up"
- }),
- _c("i", {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.increase,
- expression: "increase"
- }
- ],
- staticClass: "el-time-spinner__arrow el-icon-arrow-down"
- }),
- _c(
- "ul",
- { ref: "seconds", staticClass: "el-time-spinner__list" },
- _vm._l(_vm.arrowSecondList, function(second, key) {
- return _c(
- "li",
- {
- key: key,
- staticClass: "el-time-spinner__item",
- class: { active: second === _vm.seconds }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(
- second === undefined
- ? ""
- : ("0" + second).slice(-2)
- ) +
- "\n "
- )
- ]
- )
- }),
- 0
- )
- ]
- )
- : _vm._e()
- ]
- : _vm._e()
- ],
- 2
- )
- }
- var time_spinnervue_type_template_id_1facadeb_staticRenderFns = []
- time_spinnervue_type_template_id_1facadeb_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue?vue&type=template&id=1facadeb&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/time-spinner.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var time_spinnervue_type_script_lang_js_ = ({
- components: { ElScrollbar: scrollbar_default.a },
- directives: {
- repeatClick: repeat_click
- },
- props: {
- date: {},
- defaultValue: {}, // reserved for future use
- showSeconds: {
- type: Boolean,
- default: true
- },
- arrowControl: Boolean,
- amPmMode: {
- type: String,
- default: '' // 'a': am/pm; 'A': AM/PM
- }
- },
- computed: {
- hours: function hours() {
- return this.date.getHours();
- },
- minutes: function minutes() {
- return this.date.getMinutes();
- },
- seconds: function seconds() {
- return this.date.getSeconds();
- },
- hoursList: function hoursList() {
- return Object(date_util_["getRangeHours"])(this.selectableRange);
- },
- minutesList: function minutesList() {
- return Object(date_util_["getRangeMinutes"])(this.selectableRange, this.hours);
- },
- arrowHourList: function arrowHourList() {
- var hours = this.hours;
- return [hours > 0 ? hours - 1 : undefined, hours, hours < 23 ? hours + 1 : undefined];
- },
- arrowMinuteList: function arrowMinuteList() {
- var minutes = this.minutes;
- return [minutes > 0 ? minutes - 1 : undefined, minutes, minutes < 59 ? minutes + 1 : undefined];
- },
- arrowSecondList: function arrowSecondList() {
- var seconds = this.seconds;
- return [seconds > 0 ? seconds - 1 : undefined, seconds, seconds < 59 ? seconds + 1 : undefined];
- }
- },
- data: function data() {
- return {
- selectableRange: [],
- currentScrollbar: null
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- !_this.arrowControl && _this.bindScrollEvent();
- });
- },
- methods: {
- increase: function increase() {
- this.scrollDown(1);
- },
- decrease: function decrease() {
- this.scrollDown(-1);
- },
- modifyDateField: function modifyDateField(type, value) {
- switch (type) {
- case 'hours':
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, value, this.minutes, this.seconds));break;
- case 'minutes':
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, this.hours, value, this.seconds));break;
- case 'seconds':
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, this.hours, this.minutes, value));break;
- }
- },
- handleClick: function handleClick(type, _ref) {
- var value = _ref.value,
- disabled = _ref.disabled;
- if (!disabled) {
- this.modifyDateField(type, value);
- this.emitSelectRange(type);
- this.adjustSpinner(type, value);
- }
- },
- emitSelectRange: function emitSelectRange(type) {
- if (type === 'hours') {
- this.$emit('select-range', 0, 2);
- } else if (type === 'minutes') {
- this.$emit('select-range', 3, 5);
- } else if (type === 'seconds') {
- this.$emit('select-range', 6, 8);
- }
- this.currentScrollbar = type;
- },
- bindScrollEvent: function bindScrollEvent() {
- var _this2 = this;
- var bindFuntion = function bindFuntion(type) {
- _this2.$refs[type].wrap.onscroll = function (e) {
- // TODO: scroll is emitted when set scrollTop programatically
- // should find better solutions in the future!
- _this2.handleScroll(type, e);
- };
- };
- bindFuntion('hours');
- bindFuntion('minutes');
- bindFuntion('seconds');
- },
- handleScroll: function handleScroll(type) {
- var value = Math.min(Math.round((this.$refs[type].wrap.scrollTop - (this.scrollBarHeight(type) * 0.5 - 10) / this.typeItemHeight(type) + 3) / this.typeItemHeight(type)), type === 'hours' ? 23 : 59);
- this.modifyDateField(type, value);
- },
- // NOTE: used by datetime / date-range panel
- // renamed from adjustScrollTop
- // should try to refactory it
- adjustSpinners: function adjustSpinners() {
- this.adjustSpinner('hours', this.hours);
- this.adjustSpinner('minutes', this.minutes);
- this.adjustSpinner('seconds', this.seconds);
- },
- adjustCurrentSpinner: function adjustCurrentSpinner(type) {
- this.adjustSpinner(type, this[type]);
- },
- adjustSpinner: function adjustSpinner(type, value) {
- if (this.arrowControl) return;
- var el = this.$refs[type].wrap;
- if (el) {
- el.scrollTop = Math.max(0, value * this.typeItemHeight(type));
- }
- },
- scrollDown: function scrollDown(step) {
- var _this3 = this;
- if (!this.currentScrollbar) {
- this.emitSelectRange('hours');
- }
- var label = this.currentScrollbar;
- var hoursList = this.hoursList;
- var now = this[label];
- if (this.currentScrollbar === 'hours') {
- var total = Math.abs(step);
- step = step > 0 ? 1 : -1;
- var length = hoursList.length;
- while (length-- && total) {
- now = (now + step + hoursList.length) % hoursList.length;
- if (hoursList[now]) {
- continue;
- }
- total--;
- }
- if (hoursList[now]) return;
- } else {
- now = (now + step + 60) % 60;
- }
- this.modifyDateField(label, now);
- this.adjustSpinner(label, now);
- this.$nextTick(function () {
- return _this3.emitSelectRange(_this3.currentScrollbar);
- });
- },
- amPm: function amPm(hour) {
- var shouldShowAmPm = this.amPmMode.toLowerCase() === 'a';
- if (!shouldShowAmPm) return '';
- var isCapital = this.amPmMode === 'A';
- var content = hour < 12 ? ' am' : ' pm';
- if (isCapital) content = content.toUpperCase();
- return content;
- },
- typeItemHeight: function typeItemHeight(type) {
- return this.$refs[type].$el.querySelector('li').offsetHeight;
- },
- scrollBarHeight: function scrollBarHeight(type) {
- return this.$refs[type].$el.offsetHeight;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue?vue&type=script&lang=js&
- /* harmony default export */ var basic_time_spinnervue_type_script_lang_js_ = (time_spinnervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue
- /* normalize component */
- var time_spinner_component = normalizeComponent(
- basic_time_spinnervue_type_script_lang_js_,
- time_spinnervue_type_template_id_1facadeb_render,
- time_spinnervue_type_template_id_1facadeb_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var time_spinner_api; }
- time_spinner_component.options.__file = "packages/date-picker/src/basic/time-spinner.vue"
- /* harmony default export */ var time_spinner = (time_spinner_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var timevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- components: {
- TimeSpinner: time_spinner
- },
- props: {
- visible: Boolean,
- timeArrowControl: Boolean
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.oldValue = this.value;
- this.$nextTick(function () {
- return _this.$refs.spinner.emitSelectRange('hours');
- });
- } else {
- this.needInitAdjust = true;
- }
- },
- value: function value(newVal) {
- var _this2 = this;
- var date = void 0;
- if (newVal instanceof Date) {
- date = Object(date_util_["limitTimeRange"])(newVal, this.selectableRange, this.format);
- } else if (!newVal) {
- date = this.defaultValue ? new Date(this.defaultValue) : new Date();
- }
- this.date = date;
- if (this.visible && this.needInitAdjust) {
- this.$nextTick(function (_) {
- return _this2.adjustSpinners();
- });
- this.needInitAdjust = false;
- }
- },
- selectableRange: function selectableRange(val) {
- this.$refs.spinner.selectableRange = val;
- },
- defaultValue: function defaultValue(val) {
- if (!Object(date_util_["isDate"])(this.value)) {
- this.date = val ? new Date(val) : new Date();
- }
- }
- },
- data: function data() {
- return {
- popperClass: '',
- format: 'HH:mm:ss',
- value: '',
- defaultValue: null,
- date: new Date(),
- oldValue: new Date(),
- selectableRange: [],
- selectionRange: [0, 2],
- disabled: false,
- arrowControl: false,
- needInitAdjust: true
- };
- },
- computed: {
- showSeconds: function showSeconds() {
- return (this.format || '').indexOf('ss') !== -1;
- },
- useArrow: function useArrow() {
- return this.arrowControl || this.timeArrowControl || false;
- },
- amPmMode: function amPmMode() {
- if ((this.format || '').indexOf('A') !== -1) return 'A';
- if ((this.format || '').indexOf('a') !== -1) return 'a';
- return '';
- }
- },
- methods: {
- handleCancel: function handleCancel() {
- this.$emit('pick', this.oldValue, false);
- },
- handleChange: function handleChange(date) {
- // this.visible avoids edge cases, when use scrolls during panel closing animation
- if (this.visible) {
- this.date = Object(date_util_["clearMilliseconds"])(date);
- // if date is out of range, do not emit
- if (this.isValidValue(this.date)) {
- this.$emit('pick', this.date, true);
- }
- }
- },
- setSelectionRange: function setSelectionRange(start, end) {
- this.$emit('select-range', start, end);
- this.selectionRange = [start, end];
- },
- handleConfirm: function handleConfirm() {
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- var first = arguments[1];
- if (first) return;
- var date = Object(date_util_["clearMilliseconds"])(Object(date_util_["limitTimeRange"])(this.date, this.selectableRange, this.format));
- this.$emit('pick', date, visible, first);
- },
- handleKeydown: function handleKeydown(event) {
- var keyCode = event.keyCode;
- var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
- // Left or Right
- if (keyCode === 37 || keyCode === 39) {
- var step = mapping[keyCode];
- this.changeSelectionRange(step);
- event.preventDefault();
- return;
- }
- // Up or Down
- if (keyCode === 38 || keyCode === 40) {
- var _step = mapping[keyCode];
- this.$refs.spinner.scrollDown(_step);
- event.preventDefault();
- return;
- }
- },
- isValidValue: function isValidValue(date) {
- return Object(date_util_["timeWithinRange"])(date, this.selectableRange, this.format);
- },
- adjustSpinners: function adjustSpinners() {
- return this.$refs.spinner.adjustSpinners();
- },
- changeSelectionRange: function changeSelectionRange(step) {
- var list = [0, 3].concat(this.showSeconds ? [6] : []);
- var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
- var index = list.indexOf(this.selectionRange[0]);
- var next = (index + step + list.length) % list.length;
- this.$refs.spinner.emitSelectRange(mapping[next]);
- }
- },
- mounted: function mounted() {
- var _this3 = this;
- this.$nextTick(function () {
- return _this3.handleConfirm(true, true);
- });
- this.$emit('mounted');
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_timevue_type_script_lang_js_ = (timevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue
- /* normalize component */
- var time_component = normalizeComponent(
- panel_timevue_type_script_lang_js_,
- timevue_type_template_id_3d939089_render,
- timevue_type_template_id_3d939089_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var time_api; }
- time_component.options.__file = "packages/date-picker/src/panel/time.vue"
- /* harmony default export */ var panel_time = (time_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/year-table.vue?vue&type=template&id=c86ab5e0&
- var year_tablevue_type_template_id_c86ab5e0_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "table",
- { staticClass: "el-year-table", on: { click: _vm.handleYearTableClick } },
- [
- _c("tbody", [
- _c("tr", [
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 0)
- },
- [_c("a", { staticClass: "cell" }, [_vm._v(_vm._s(_vm.startYear))])]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 1)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 1))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 2)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 2))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 3)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 3))
- ])
- ]
- )
- ]),
- _c("tr", [
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 4)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 4))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 5)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 5))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 6)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 6))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 7)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 7))
- ])
- ]
- )
- ]),
- _c("tr", [
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 8)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 8))
- ])
- ]
- ),
- _c(
- "td",
- {
- staticClass: "available",
- class: _vm.getCellStyle(_vm.startYear + 9)
- },
- [
- _c("a", { staticClass: "cell" }, [
- _vm._v(_vm._s(_vm.startYear + 9))
- ])
- ]
- ),
- _c("td"),
- _c("td")
- ])
- ])
- ]
- )
- }
- var year_tablevue_type_template_id_c86ab5e0_staticRenderFns = []
- year_tablevue_type_template_id_c86ab5e0_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/year-table.vue?vue&type=template&id=c86ab5e0&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/year-table.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var year_tablevue_type_script_lang_js_datesInYear = function datesInYear(year) {
- var numOfDays = Object(date_util_["getDayCountOfYear"])(year);
- var firstDay = new Date(year, 0, 1);
- return Object(date_util_["range"])(numOfDays).map(function (n) {
- return Object(date_util_["nextDate"])(firstDay, n);
- });
- };
- /* harmony default export */ var year_tablevue_type_script_lang_js_ = ({
- props: {
- disabledDate: {},
- value: {},
- defaultValue: {
- validator: function validator(val) {
- // null or valid Date Object
- return val === null || val instanceof Date && Object(date_util_["isDate"])(val);
- }
- },
- date: {}
- },
- computed: {
- startYear: function startYear() {
- return Math.floor(this.date.getFullYear() / 10) * 10;
- }
- },
- methods: {
- getCellStyle: function getCellStyle(year) {
- var style = {};
- var today = new Date();
- style.disabled = typeof this.disabledDate === 'function' ? year_tablevue_type_script_lang_js_datesInYear(year).every(this.disabledDate) : false;
- style.current = Object(util_["arrayFindIndex"])(Object(util_["coerceTruthyValueToArray"])(this.value), function (date) {
- return date.getFullYear() === year;
- }) >= 0;
- style.today = today.getFullYear() === year;
- style.default = this.defaultValue && this.defaultValue.getFullYear() === year;
- return style;
- },
- handleYearTableClick: function handleYearTableClick(event) {
- var target = event.target;
- if (target.tagName === 'A') {
- if (Object(dom_["hasClass"])(target.parentNode, 'disabled')) return;
- var year = target.textContent || target.innerText;
- this.$emit('pick', Number(year));
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/year-table.vue?vue&type=script&lang=js&
- /* harmony default export */ var basic_year_tablevue_type_script_lang_js_ = (year_tablevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/year-table.vue
- /* normalize component */
- var year_table_component = normalizeComponent(
- basic_year_tablevue_type_script_lang_js_,
- year_tablevue_type_template_id_c86ab5e0_render,
- year_tablevue_type_template_id_c86ab5e0_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var year_table_api; }
- year_table_component.options.__file = "packages/date-picker/src/basic/year-table.vue"
- /* harmony default export */ var year_table = (year_table_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/month-table.vue?vue&type=template&id=654d4f42&
- var month_tablevue_type_template_id_654d4f42_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "table",
- {
- staticClass: "el-month-table",
- on: { click: _vm.handleMonthTableClick, mousemove: _vm.handleMouseMove }
- },
- [
- _c(
- "tbody",
- _vm._l(_vm.rows, function(row, key) {
- return _c(
- "tr",
- { key: key },
- _vm._l(row, function(cell, key) {
- return _c("td", { key: key, class: _vm.getCellStyle(cell) }, [
- _c("div", [
- _c("a", { staticClass: "cell" }, [
- _vm._v(
- _vm._s(
- _vm.t("el.datepicker.months." + _vm.months[cell.text])
- )
- )
- ])
- ])
- ])
- }),
- 0
- )
- }),
- 0
- )
- ]
- )
- }
- var month_tablevue_type_template_id_654d4f42_staticRenderFns = []
- month_tablevue_type_template_id_654d4f42_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/month-table.vue?vue&type=template&id=654d4f42&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/month-table.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var month_tablevue_type_script_lang_js_datesInMonth = function datesInMonth(year, month) {
- var numOfDays = Object(date_util_["getDayCountOfMonth"])(year, month);
- var firstDay = new Date(year, month, 1);
- return Object(date_util_["range"])(numOfDays).map(function (n) {
- return Object(date_util_["nextDate"])(firstDay, n);
- });
- };
- var clearDate = function clearDate(date) {
- return new Date(date.getFullYear(), date.getMonth());
- };
- var getMonthTimestamp = function getMonthTimestamp(time) {
- if (typeof time === 'number' || typeof time === 'string') {
- return clearDate(new Date(time)).getTime();
- } else if (time instanceof Date) {
- return clearDate(time).getTime();
- } else {
- return NaN;
- }
- };
- /* harmony default export */ var month_tablevue_type_script_lang_js_ = ({
- props: {
- disabledDate: {},
- value: {},
- selectionMode: {
- default: 'month'
- },
- minDate: {},
- maxDate: {},
- defaultValue: {
- validator: function validator(val) {
- // null or valid Date Object
- return val === null || Object(date_util_["isDate"])(val) || Array.isArray(val) && val.every(date_util_["isDate"]);
- }
- },
- date: {},
- rangeState: {
- default: function _default() {
- return {
- endDate: null,
- selecting: false
- };
- }
- }
- },
- mixins: [locale_default.a],
- watch: {
- 'rangeState.endDate': function rangeStateEndDate(newVal) {
- this.markRange(this.minDate, newVal);
- },
- minDate: function minDate(newVal, oldVal) {
- if (getMonthTimestamp(newVal) !== getMonthTimestamp(oldVal)) {
- this.markRange(this.minDate, this.maxDate);
- }
- },
- maxDate: function maxDate(newVal, oldVal) {
- if (getMonthTimestamp(newVal) !== getMonthTimestamp(oldVal)) {
- this.markRange(this.minDate, this.maxDate);
- }
- }
- },
- data: function data() {
- return {
- months: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'],
- tableRows: [[], [], []],
- lastRow: null,
- lastColumn: null
- };
- },
- methods: {
- cellMatchesDate: function cellMatchesDate(cell, date) {
- var value = new Date(date);
- return this.date.getFullYear() === value.getFullYear() && Number(cell.text) === value.getMonth();
- },
- getCellStyle: function getCellStyle(cell) {
- var _this = this;
- var style = {};
- var year = this.date.getFullYear();
- var today = new Date();
- var month = cell.text;
- var defaultValue = this.defaultValue ? Array.isArray(this.defaultValue) ? this.defaultValue : [this.defaultValue] : [];
- style.disabled = typeof this.disabledDate === 'function' ? month_tablevue_type_script_lang_js_datesInMonth(year, month).every(this.disabledDate) : false;
- style.current = Object(util_["arrayFindIndex"])(Object(util_["coerceTruthyValueToArray"])(this.value), function (date) {
- return date.getFullYear() === year && date.getMonth() === month;
- }) >= 0;
- style.today = today.getFullYear() === year && today.getMonth() === month;
- style.default = defaultValue.some(function (date) {
- return _this.cellMatchesDate(cell, date);
- });
- if (cell.inRange) {
- style['in-range'] = true;
- if (cell.start) {
- style['start-date'] = true;
- }
- if (cell.end) {
- style['end-date'] = true;
- }
- }
- return style;
- },
- getMonthOfCell: function getMonthOfCell(month) {
- var year = this.date.getFullYear();
- return new Date(year, month, 1);
- },
- markRange: function markRange(minDate, maxDate) {
- minDate = getMonthTimestamp(minDate);
- maxDate = getMonthTimestamp(maxDate) || minDate;
- var _ref = [Math.min(minDate, maxDate), Math.max(minDate, maxDate)];
- minDate = _ref[0];
- maxDate = _ref[1];
- var rows = this.rows;
- for (var i = 0, k = rows.length; i < k; i++) {
- var row = rows[i];
- for (var j = 0, l = row.length; j < l; j++) {
- var cell = row[j];
- var index = i * 4 + j;
- var time = new Date(this.date.getFullYear(), index).getTime();
- cell.inRange = minDate && time >= minDate && time <= maxDate;
- cell.start = minDate && time === minDate;
- cell.end = maxDate && time === maxDate;
- }
- }
- },
- handleMouseMove: function handleMouseMove(event) {
- if (!this.rangeState.selecting) return;
- var target = event.target;
- if (target.tagName === 'A') {
- target = target.parentNode.parentNode;
- }
- if (target.tagName === 'DIV') {
- target = target.parentNode;
- }
- if (target.tagName !== 'TD') return;
- var row = target.parentNode.rowIndex;
- var column = target.cellIndex;
- // can not select disabled date
- if (this.rows[row][column].disabled) return;
- // only update rangeState when mouse moves to a new cell
- // this avoids frequent Date object creation and improves performance
- if (row !== this.lastRow || column !== this.lastColumn) {
- this.lastRow = row;
- this.lastColumn = column;
- this.$emit('changerange', {
- minDate: this.minDate,
- maxDate: this.maxDate,
- rangeState: {
- selecting: true,
- endDate: this.getMonthOfCell(row * 4 + column)
- }
- });
- }
- },
- handleMonthTableClick: function handleMonthTableClick(event) {
- var target = event.target;
- if (target.tagName === 'A') {
- target = target.parentNode.parentNode;
- }
- if (target.tagName === 'DIV') {
- target = target.parentNode;
- }
- if (target.tagName !== 'TD') return;
- if (Object(dom_["hasClass"])(target, 'disabled')) return;
- var column = target.cellIndex;
- var row = target.parentNode.rowIndex;
- var month = row * 4 + column;
- var newDate = this.getMonthOfCell(month);
- if (this.selectionMode === 'range') {
- if (!this.rangeState.selecting) {
- this.$emit('pick', { minDate: newDate, maxDate: null });
- this.rangeState.selecting = true;
- } else {
- if (newDate >= this.minDate) {
- this.$emit('pick', { minDate: this.minDate, maxDate: newDate });
- } else {
- this.$emit('pick', { minDate: newDate, maxDate: this.minDate });
- }
- this.rangeState.selecting = false;
- }
- } else {
- this.$emit('pick', month);
- }
- }
- },
- computed: {
- rows: function rows() {
- var _this2 = this;
- // TODO: refactory rows / getCellClasses
- var rows = this.tableRows;
- var disabledDate = this.disabledDate;
- var selectedDate = [];
- var now = getMonthTimestamp(new Date());
- for (var i = 0; i < 3; i++) {
- var row = rows[i];
- var _loop = function _loop(j) {
- var cell = row[j];
- if (!cell) {
- cell = { row: i, column: j, type: 'normal', inRange: false, start: false, end: false };
- }
- cell.type = 'normal';
- var index = i * 4 + j;
- var time = new Date(_this2.date.getFullYear(), index).getTime();
- cell.inRange = time >= getMonthTimestamp(_this2.minDate) && time <= getMonthTimestamp(_this2.maxDate);
- cell.start = _this2.minDate && time === getMonthTimestamp(_this2.minDate);
- cell.end = _this2.maxDate && time === getMonthTimestamp(_this2.maxDate);
- var isToday = time === now;
- if (isToday) {
- cell.type = 'today';
- }
- cell.text = index;
- var cellDate = new Date(time);
- cell.disabled = typeof disabledDate === 'function' && disabledDate(cellDate);
- cell.selected = Object(util_["arrayFind"])(selectedDate, function (date) {
- return date.getTime() === cellDate.getTime();
- });
- _this2.$set(row, j, cell);
- };
- for (var j = 0; j < 4; j++) {
- _loop(j);
- }
- }
- return rows;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/month-table.vue?vue&type=script&lang=js&
- /* harmony default export */ var basic_month_tablevue_type_script_lang_js_ = (month_tablevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/month-table.vue
- /* normalize component */
- var month_table_component = normalizeComponent(
- basic_month_tablevue_type_script_lang_js_,
- month_tablevue_type_template_id_654d4f42_render,
- month_tablevue_type_template_id_654d4f42_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var month_table_api; }
- month_table_component.options.__file = "packages/date-picker/src/basic/month-table.vue"
- /* harmony default export */ var month_table = (month_table_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/date-table.vue?vue&type=template&id=5d1f3341&
- var date_tablevue_type_template_id_5d1f3341_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "table",
- {
- staticClass: "el-date-table",
- class: { "is-week-mode": _vm.selectionMode === "week" },
- attrs: { cellspacing: "0", cellpadding: "0" },
- on: { click: _vm.handleClick, mousemove: _vm.handleMouseMove }
- },
- [
- _c(
- "tbody",
- [
- _c(
- "tr",
- [
- _vm.showWeekNumber
- ? _c("th", [_vm._v(_vm._s(_vm.t("el.datepicker.week")))])
- : _vm._e(),
- _vm._l(_vm.WEEKS, function(week, key) {
- return _c("th", { key: key }, [
- _vm._v(_vm._s(_vm.t("el.datepicker.weeks." + week)))
- ])
- })
- ],
- 2
- ),
- _vm._l(_vm.rows, function(row, key) {
- return _c(
- "tr",
- {
- key: key,
- staticClass: "el-date-table__row",
- class: { current: _vm.isWeekActive(row[1]) }
- },
- _vm._l(row, function(cell, key) {
- return _c("td", { key: key, class: _vm.getCellClasses(cell) }, [
- _c("div", [
- _c("span", [
- _vm._v("\n " + _vm._s(cell.text) + "\n ")
- ])
- ])
- ])
- }),
- 0
- )
- })
- ],
- 2
- )
- ]
- )
- }
- var date_tablevue_type_template_id_5d1f3341_staticRenderFns = []
- date_tablevue_type_template_id_5d1f3341_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/date-table.vue?vue&type=template&id=5d1f3341&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/date-table.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var _WEEKS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
- var date_tablevue_type_script_lang_js_getDateTimestamp = function getDateTimestamp(time) {
- if (typeof time === 'number' || typeof time === 'string') {
- return Object(date_util_["clearTime"])(new Date(time)).getTime();
- } else if (time instanceof Date) {
- return Object(date_util_["clearTime"])(time).getTime();
- } else {
- return NaN;
- }
- };
- // remove the first element that satisfies `pred` from arr
- // return a new array if modification occurs
- // return the original array otherwise
- var date_tablevue_type_script_lang_js_removeFromArray = function removeFromArray(arr, pred) {
- var idx = typeof pred === 'function' ? Object(util_["arrayFindIndex"])(arr, pred) : arr.indexOf(pred);
- return idx >= 0 ? [].concat(arr.slice(0, idx), arr.slice(idx + 1)) : arr;
- };
- /* harmony default export */ var date_tablevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- props: {
- firstDayOfWeek: {
- default: 7,
- type: Number,
- validator: function validator(val) {
- return val >= 1 && val <= 7;
- }
- },
- value: {},
- defaultValue: {
- validator: function validator(val) {
- // either: null, valid Date object, Array of valid Date objects
- return val === null || Object(date_util_["isDate"])(val) || Array.isArray(val) && val.every(date_util_["isDate"]);
- }
- },
- date: {},
- selectionMode: {
- default: 'day'
- },
- showWeekNumber: {
- type: Boolean,
- default: false
- },
- disabledDate: {},
- cellClassName: {},
- minDate: {},
- maxDate: {},
- rangeState: {
- default: function _default() {
- return {
- endDate: null,
- selecting: false
- };
- }
- }
- },
- computed: {
- offsetDay: function offsetDay() {
- var week = this.firstDayOfWeek;
- // 周日为界限,左右偏移的天数,3217654 例如周一就是 -1,目的是调整前两行日期的位置
- return week > 3 ? 7 - week : -week;
- },
- WEEKS: function WEEKS() {
- var week = this.firstDayOfWeek;
- return _WEEKS.concat(_WEEKS).slice(week, week + 7);
- },
- year: function year() {
- return this.date.getFullYear();
- },
- month: function month() {
- return this.date.getMonth();
- },
- startDate: function startDate() {
- return Object(date_util_["getStartDateOfMonth"])(this.year, this.month);
- },
- rows: function rows() {
- var _this = this;
- // TODO: refactory rows / getCellClasses
- var date = new Date(this.year, this.month, 1);
- var day = Object(date_util_["getFirstDayOfMonth"])(date); // day of first day
- var dateCountOfMonth = Object(date_util_["getDayCountOfMonth"])(date.getFullYear(), date.getMonth());
- var dateCountOfLastMonth = Object(date_util_["getDayCountOfMonth"])(date.getFullYear(), date.getMonth() === 0 ? 11 : date.getMonth() - 1);
- day = day === 0 ? 7 : day;
- var offset = this.offsetDay;
- var rows = this.tableRows;
- var count = 1;
- var startDate = this.startDate;
- var disabledDate = this.disabledDate;
- var cellClassName = this.cellClassName;
- var selectedDate = this.selectionMode === 'dates' ? Object(util_["coerceTruthyValueToArray"])(this.value) : [];
- var now = date_tablevue_type_script_lang_js_getDateTimestamp(new Date());
- for (var i = 0; i < 6; i++) {
- var row = rows[i];
- if (this.showWeekNumber) {
- if (!row[0]) {
- row[0] = { type: 'week', text: Object(date_util_["getWeekNumber"])(Object(date_util_["nextDate"])(startDate, i * 7 + 1)) };
- }
- }
- var _loop = function _loop(j) {
- var cell = row[_this.showWeekNumber ? j + 1 : j];
- if (!cell) {
- cell = { row: i, column: j, type: 'normal', inRange: false, start: false, end: false };
- }
- cell.type = 'normal';
- var index = i * 7 + j;
- var time = Object(date_util_["nextDate"])(startDate, index - offset).getTime();
- cell.inRange = time >= date_tablevue_type_script_lang_js_getDateTimestamp(_this.minDate) && time <= date_tablevue_type_script_lang_js_getDateTimestamp(_this.maxDate);
- cell.start = _this.minDate && time === date_tablevue_type_script_lang_js_getDateTimestamp(_this.minDate);
- cell.end = _this.maxDate && time === date_tablevue_type_script_lang_js_getDateTimestamp(_this.maxDate);
- var isToday = time === now;
- if (isToday) {
- cell.type = 'today';
- }
- if (i >= 0 && i <= 1) {
- var numberOfDaysFromPreviousMonth = day + offset < 0 ? 7 + day + offset : day + offset;
- if (j + i * 7 >= numberOfDaysFromPreviousMonth) {
- cell.text = count++;
- } else {
- cell.text = dateCountOfLastMonth - (numberOfDaysFromPreviousMonth - j % 7) + 1 + i * 7;
- cell.type = 'prev-month';
- }
- } else {
- if (count <= dateCountOfMonth) {
- cell.text = count++;
- } else {
- cell.text = count++ - dateCountOfMonth;
- cell.type = 'next-month';
- }
- }
- var cellDate = new Date(time);
- cell.disabled = typeof disabledDate === 'function' && disabledDate(cellDate);
- cell.selected = Object(util_["arrayFind"])(selectedDate, function (date) {
- return date.getTime() === cellDate.getTime();
- });
- cell.customClass = typeof cellClassName === 'function' && cellClassName(cellDate);
- _this.$set(row, _this.showWeekNumber ? j + 1 : j, cell);
- };
- for (var j = 0; j < 7; j++) {
- _loop(j);
- }
- if (this.selectionMode === 'week') {
- var start = this.showWeekNumber ? 1 : 0;
- var end = this.showWeekNumber ? 7 : 6;
- var isWeekActive = this.isWeekActive(row[start + 1]);
- row[start].inRange = isWeekActive;
- row[start].start = isWeekActive;
- row[end].inRange = isWeekActive;
- row[end].end = isWeekActive;
- }
- }
- return rows;
- }
- },
- watch: {
- 'rangeState.endDate': function rangeStateEndDate(newVal) {
- this.markRange(this.minDate, newVal);
- },
- minDate: function minDate(newVal, oldVal) {
- if (date_tablevue_type_script_lang_js_getDateTimestamp(newVal) !== date_tablevue_type_script_lang_js_getDateTimestamp(oldVal)) {
- this.markRange(this.minDate, this.maxDate);
- }
- },
- maxDate: function maxDate(newVal, oldVal) {
- if (date_tablevue_type_script_lang_js_getDateTimestamp(newVal) !== date_tablevue_type_script_lang_js_getDateTimestamp(oldVal)) {
- this.markRange(this.minDate, this.maxDate);
- }
- }
- },
- data: function data() {
- return {
- tableRows: [[], [], [], [], [], []],
- lastRow: null,
- lastColumn: null
- };
- },
- methods: {
- cellMatchesDate: function cellMatchesDate(cell, date) {
- var value = new Date(date);
- return this.year === value.getFullYear() && this.month === value.getMonth() && Number(cell.text) === value.getDate();
- },
- getCellClasses: function getCellClasses(cell) {
- var _this2 = this;
- var selectionMode = this.selectionMode;
- var defaultValue = this.defaultValue ? Array.isArray(this.defaultValue) ? this.defaultValue : [this.defaultValue] : [];
- var classes = [];
- if ((cell.type === 'normal' || cell.type === 'today') && !cell.disabled) {
- classes.push('available');
- if (cell.type === 'today') {
- classes.push('today');
- }
- } else {
- classes.push(cell.type);
- }
- if (cell.type === 'normal' && defaultValue.some(function (date) {
- return _this2.cellMatchesDate(cell, date);
- })) {
- classes.push('default');
- }
- if (selectionMode === 'day' && (cell.type === 'normal' || cell.type === 'today') && this.cellMatchesDate(cell, this.value)) {
- classes.push('current');
- }
- if (cell.inRange && (cell.type === 'normal' || cell.type === 'today' || this.selectionMode === 'week')) {
- classes.push('in-range');
- if (cell.start) {
- classes.push('start-date');
- }
- if (cell.end) {
- classes.push('end-date');
- }
- }
- if (cell.disabled) {
- classes.push('disabled');
- }
- if (cell.selected) {
- classes.push('selected');
- }
- if (cell.customClass) {
- classes.push(cell.customClass);
- }
- return classes.join(' ');
- },
- getDateOfCell: function getDateOfCell(row, column) {
- var offsetFromStart = row * 7 + (column - (this.showWeekNumber ? 1 : 0)) - this.offsetDay;
- return Object(date_util_["nextDate"])(this.startDate, offsetFromStart);
- },
- isWeekActive: function isWeekActive(cell) {
- if (this.selectionMode !== 'week') return false;
- var newDate = new Date(this.year, this.month, 1);
- var year = newDate.getFullYear();
- var month = newDate.getMonth();
- if (cell.type === 'prev-month') {
- newDate.setMonth(month === 0 ? 11 : month - 1);
- newDate.setFullYear(month === 0 ? year - 1 : year);
- }
- if (cell.type === 'next-month') {
- newDate.setMonth(month === 11 ? 0 : month + 1);
- newDate.setFullYear(month === 11 ? year + 1 : year);
- }
- newDate.setDate(parseInt(cell.text, 10));
- if (Object(date_util_["isDate"])(this.value)) {
- var dayOffset = (this.value.getDay() - this.firstDayOfWeek + 7) % 7 - 1;
- var weekDate = Object(date_util_["prevDate"])(this.value, dayOffset);
- return weekDate.getTime() === newDate.getTime();
- }
- return false;
- },
- markRange: function markRange(minDate, maxDate) {
- minDate = date_tablevue_type_script_lang_js_getDateTimestamp(minDate);
- maxDate = date_tablevue_type_script_lang_js_getDateTimestamp(maxDate) || minDate;
- var _ref = [Math.min(minDate, maxDate), Math.max(minDate, maxDate)];
- minDate = _ref[0];
- maxDate = _ref[1];
- var startDate = this.startDate;
- var rows = this.rows;
- for (var i = 0, k = rows.length; i < k; i++) {
- var row = rows[i];
- for (var j = 0, l = row.length; j < l; j++) {
- if (this.showWeekNumber && j === 0) continue;
- var _cell = row[j];
- var index = i * 7 + j + (this.showWeekNumber ? -1 : 0);
- var time = Object(date_util_["nextDate"])(startDate, index - this.offsetDay).getTime();
- _cell.inRange = minDate && time >= minDate && time <= maxDate;
- _cell.start = minDate && time === minDate;
- _cell.end = maxDate && time === maxDate;
- }
- }
- },
- handleMouseMove: function handleMouseMove(event) {
- if (!this.rangeState.selecting) return;
- var target = event.target;
- if (target.tagName === 'SPAN') {
- target = target.parentNode.parentNode;
- }
- if (target.tagName === 'DIV') {
- target = target.parentNode;
- }
- if (target.tagName !== 'TD') return;
- var row = target.parentNode.rowIndex - 1;
- var column = target.cellIndex;
- // can not select disabled date
- if (this.rows[row][column].disabled) return;
- // only update rangeState when mouse moves to a new cell
- // this avoids frequent Date object creation and improves performance
- if (row !== this.lastRow || column !== this.lastColumn) {
- this.lastRow = row;
- this.lastColumn = column;
- this.$emit('changerange', {
- minDate: this.minDate,
- maxDate: this.maxDate,
- rangeState: {
- selecting: true,
- endDate: this.getDateOfCell(row, column)
- }
- });
- }
- },
- handleClick: function handleClick(event) {
- var target = event.target;
- if (target.tagName === 'SPAN') {
- target = target.parentNode.parentNode;
- }
- if (target.tagName === 'DIV') {
- target = target.parentNode;
- }
- if (target.tagName !== 'TD') return;
- var row = target.parentNode.rowIndex - 1;
- var column = this.selectionMode === 'week' ? 1 : target.cellIndex;
- var cell = this.rows[row][column];
- if (cell.disabled || cell.type === 'week') return;
- var newDate = this.getDateOfCell(row, column);
- if (this.selectionMode === 'range') {
- if (!this.rangeState.selecting) {
- this.$emit('pick', { minDate: newDate, maxDate: null });
- this.rangeState.selecting = true;
- } else {
- if (newDate >= this.minDate) {
- this.$emit('pick', { minDate: this.minDate, maxDate: newDate });
- } else {
- this.$emit('pick', { minDate: newDate, maxDate: this.minDate });
- }
- this.rangeState.selecting = false;
- }
- } else if (this.selectionMode === 'day') {
- this.$emit('pick', newDate);
- } else if (this.selectionMode === 'week') {
- var weekNumber = Object(date_util_["getWeekNumber"])(newDate);
- var value = newDate.getFullYear() + 'w' + weekNumber;
- this.$emit('pick', {
- year: newDate.getFullYear(),
- week: weekNumber,
- value: value,
- date: newDate
- });
- } else if (this.selectionMode === 'dates') {
- var _value = this.value || [];
- var newValue = cell.selected ? date_tablevue_type_script_lang_js_removeFromArray(_value, function (date) {
- return date.getTime() === newDate.getTime();
- }) : [].concat(_value, [newDate]);
- this.$emit('pick', newValue);
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/date-table.vue?vue&type=script&lang=js&
- /* harmony default export */ var basic_date_tablevue_type_script_lang_js_ = (date_tablevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/date-table.vue
- /* normalize component */
- var date_table_component = normalizeComponent(
- basic_date_tablevue_type_script_lang_js_,
- date_tablevue_type_template_id_5d1f3341_render,
- date_tablevue_type_template_id_5d1f3341_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var date_table_api; }
- date_table_component.options.__file = "packages/date-picker/src/basic/date-table.vue"
- /* harmony default export */ var date_table = (date_table_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/date.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var datevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- directives: { Clickoutside: clickoutside_default.a },
- watch: {
- showTime: function showTime(val) {
- var _this = this;
- /* istanbul ignore if */
- if (!val) return;
- this.$nextTick(function (_) {
- var inputElm = _this.$refs.input.$el;
- if (inputElm) {
- _this.pickerWidth = inputElm.getBoundingClientRect().width + 10;
- }
- });
- },
- value: function value(val) {
- if (this.selectionMode === 'dates' && this.value) return;
- if (Object(date_util_["isDate"])(val)) {
- this.date = new Date(val);
- } else {
- this.date = this.getDefaultValue();
- }
- },
- defaultValue: function defaultValue(val) {
- if (!Object(date_util_["isDate"])(this.value)) {
- this.date = val ? new Date(val) : new Date();
- }
- },
- timePickerVisible: function timePickerVisible(val) {
- var _this2 = this;
- if (val) this.$nextTick(function () {
- return _this2.$refs.timepicker.adjustSpinners();
- });
- },
- selectionMode: function selectionMode(newVal) {
- if (newVal === 'month') {
- /* istanbul ignore next */
- if (this.currentView !== 'year' || this.currentView !== 'month') {
- this.currentView = 'month';
- }
- } else if (newVal === 'dates') {
- this.currentView = 'date';
- }
- }
- },
- methods: {
- proxyTimePickerDataProperties: function proxyTimePickerDataProperties() {
- var _this3 = this;
- var format = function format(timeFormat) {
- _this3.$refs.timepicker.format = timeFormat;
- };
- var value = function value(_value) {
- _this3.$refs.timepicker.value = _value;
- };
- var date = function date(_date) {
- _this3.$refs.timepicker.date = _date;
- };
- var selectableRange = function selectableRange(_selectableRange) {
- _this3.$refs.timepicker.selectableRange = _selectableRange;
- };
- this.$watch('value', value);
- this.$watch('date', date);
- this.$watch('selectableRange', selectableRange);
- format(this.timeFormat);
- value(this.value);
- date(this.date);
- selectableRange(this.selectableRange);
- },
- handleClear: function handleClear() {
- this.date = this.getDefaultValue();
- this.$emit('pick', null);
- },
- emit: function emit(value) {
- var _this4 = this;
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- if (!value) {
- this.$emit.apply(this, ['pick', value].concat(args));
- } else if (Array.isArray(value)) {
- var dates = value.map(function (date) {
- return _this4.showTime ? Object(date_util_["clearMilliseconds"])(date) : Object(date_util_["clearTime"])(date);
- });
- this.$emit.apply(this, ['pick', dates].concat(args));
- } else {
- this.$emit.apply(this, ['pick', this.showTime ? Object(date_util_["clearMilliseconds"])(value) : Object(date_util_["clearTime"])(value)].concat(args));
- }
- this.userInputDate = null;
- this.userInputTime = null;
- },
- // resetDate() {
- // this.date = new Date(this.date);
- // },
- showMonthPicker: function showMonthPicker() {
- this.currentView = 'month';
- },
- showYearPicker: function showYearPicker() {
- this.currentView = 'year';
- },
- // XXX: 没用到
- // handleLabelClick() {
- // if (this.currentView === 'date') {
- // this.showMonthPicker();
- // } else if (this.currentView === 'month') {
- // this.showYearPicker();
- // }
- // },
- prevMonth: function prevMonth() {
- this.date = Object(date_util_["prevMonth"])(this.date);
- },
- nextMonth: function nextMonth() {
- this.date = Object(date_util_["nextMonth"])(this.date);
- },
- prevYear: function prevYear() {
- if (this.currentView === 'year') {
- this.date = Object(date_util_["prevYear"])(this.date, 10);
- } else {
- this.date = Object(date_util_["prevYear"])(this.date);
- }
- },
- nextYear: function nextYear() {
- if (this.currentView === 'year') {
- this.date = Object(date_util_["nextYear"])(this.date, 10);
- } else {
- this.date = Object(date_util_["nextYear"])(this.date);
- }
- },
- handleShortcutClick: function handleShortcutClick(shortcut) {
- if (shortcut.onClick) {
- shortcut.onClick(this);
- }
- },
- handleTimePick: function handleTimePick(value, visible, first) {
- if (Object(date_util_["isDate"])(value)) {
- var newDate = this.value ? Object(date_util_["modifyTime"])(this.value, value.getHours(), value.getMinutes(), value.getSeconds()) : Object(date_util_["modifyWithTimeString"])(this.getDefaultValue(), this.defaultTime);
- this.date = newDate;
- this.emit(this.date, true);
- } else {
- this.emit(value, true);
- }
- if (!first) {
- this.timePickerVisible = visible;
- }
- },
- handleTimePickClose: function handleTimePickClose() {
- this.timePickerVisible = false;
- },
- handleMonthPick: function handleMonthPick(month) {
- if (this.selectionMode === 'month') {
- this.date = Object(date_util_["modifyDate"])(this.date, this.year, month, 1);
- this.emit(this.date);
- } else {
- this.date = Object(date_util_["changeYearMonthAndClampDate"])(this.date, this.year, month);
- // TODO: should emit intermediate value ??
- // this.emit(this.date);
- this.currentView = 'date';
- }
- },
- handleDatePick: function handleDatePick(value) {
- if (this.selectionMode === 'day') {
- var newDate = this.value ? Object(date_util_["modifyDate"])(this.value, value.getFullYear(), value.getMonth(), value.getDate()) : Object(date_util_["modifyWithTimeString"])(value, this.defaultTime);
- // change default time while out of selectableRange
- if (!this.checkDateWithinRange(newDate)) {
- newDate = Object(date_util_["modifyDate"])(this.selectableRange[0][0], value.getFullYear(), value.getMonth(), value.getDate());
- }
- this.date = newDate;
- this.emit(this.date, this.showTime);
- } else if (this.selectionMode === 'week') {
- this.emit(value.date);
- } else if (this.selectionMode === 'dates') {
- this.emit(value, true); // set false to keep panel open
- }
- },
- handleYearPick: function handleYearPick(year) {
- if (this.selectionMode === 'year') {
- this.date = Object(date_util_["modifyDate"])(this.date, year, 0, 1);
- this.emit(this.date);
- } else {
- this.date = Object(date_util_["changeYearMonthAndClampDate"])(this.date, year, this.month);
- // TODO: should emit intermediate value ??
- // this.emit(this.date, true);
- this.currentView = 'month';
- }
- },
- changeToNow: function changeToNow() {
- // NOTE: not a permanent solution
- // consider disable "now" button in the future
- if ((!this.disabledDate || !this.disabledDate(new Date())) && this.checkDateWithinRange(new Date())) {
- this.date = new Date();
- this.emit(this.date);
- }
- },
- confirm: function confirm() {
- if (this.selectionMode === 'dates') {
- this.emit(this.value);
- } else {
- // value were emitted in handle{Date,Time}Pick, nothing to update here
- // deal with the scenario where: user opens the picker, then confirm without doing anything
- var value = this.value ? this.value : Object(date_util_["modifyWithTimeString"])(this.getDefaultValue(), this.defaultTime);
- this.date = new Date(value); // refresh date
- this.emit(value);
- }
- },
- resetView: function resetView() {
- if (this.selectionMode === 'month') {
- this.currentView = 'month';
- } else if (this.selectionMode === 'year') {
- this.currentView = 'year';
- } else {
- this.currentView = 'date';
- }
- },
- handleEnter: function handleEnter() {
- document.body.addEventListener('keydown', this.handleKeydown);
- },
- handleLeave: function handleLeave() {
- this.$emit('dodestroy');
- document.body.removeEventListener('keydown', this.handleKeydown);
- },
- handleKeydown: function handleKeydown(event) {
- var keyCode = event.keyCode;
- var list = [38, 40, 37, 39];
- if (this.visible && !this.timePickerVisible) {
- if (list.indexOf(keyCode) !== -1) {
- this.handleKeyControl(keyCode);
- event.stopPropagation();
- event.preventDefault();
- }
- if (keyCode === 13 && this.userInputDate === null && this.userInputTime === null) {
- // Enter
- this.emit(this.date, false);
- }
- }
- },
- handleKeyControl: function handleKeyControl(keyCode) {
- var mapping = {
- 'year': {
- 38: -4, 40: 4, 37: -1, 39: 1, offset: function offset(date, step) {
- return date.setFullYear(date.getFullYear() + step);
- }
- },
- 'month': {
- 38: -4, 40: 4, 37: -1, 39: 1, offset: function offset(date, step) {
- return date.setMonth(date.getMonth() + step);
- }
- },
- 'week': {
- 38: -1, 40: 1, 37: -1, 39: 1, offset: function offset(date, step) {
- return date.setDate(date.getDate() + step * 7);
- }
- },
- 'day': {
- 38: -7, 40: 7, 37: -1, 39: 1, offset: function offset(date, step) {
- return date.setDate(date.getDate() + step);
- }
- }
- };
- var mode = this.selectionMode;
- var year = 3.1536e10;
- var now = this.date.getTime();
- var newDate = new Date(this.date.getTime());
- while (Math.abs(now - newDate.getTime()) <= year) {
- var map = mapping[mode];
- map.offset(newDate, map[keyCode]);
- if (typeof this.disabledDate === 'function' && this.disabledDate(newDate)) {
- continue;
- }
- this.date = newDate;
- this.$emit('pick', newDate, true);
- break;
- }
- },
- handleVisibleTimeChange: function handleVisibleTimeChange(value) {
- var time = Object(date_util_["parseDate"])(value, this.timeFormat);
- if (time && this.checkDateWithinRange(time)) {
- this.date = Object(date_util_["modifyDate"])(time, this.year, this.month, this.monthDate);
- this.userInputTime = null;
- this.$refs.timepicker.value = this.date;
- this.timePickerVisible = false;
- this.emit(this.date, true);
- }
- },
- handleVisibleDateChange: function handleVisibleDateChange(value) {
- var date = Object(date_util_["parseDate"])(value, this.dateFormat);
- if (date) {
- if (typeof this.disabledDate === 'function' && this.disabledDate(date)) {
- return;
- }
- this.date = Object(date_util_["modifyTime"])(date, this.date.getHours(), this.date.getMinutes(), this.date.getSeconds());
- this.userInputDate = null;
- this.resetView();
- this.emit(this.date, true);
- }
- },
- isValidValue: function isValidValue(value) {
- return value && !isNaN(value) && (typeof this.disabledDate === 'function' ? !this.disabledDate(value) : true) && this.checkDateWithinRange(value);
- },
- getDefaultValue: function getDefaultValue() {
- // if default-value is set, return it
- // otherwise, return now (the moment this method gets called)
- return this.defaultValue ? new Date(this.defaultValue) : new Date();
- },
- checkDateWithinRange: function checkDateWithinRange(date) {
- return this.selectableRange.length > 0 ? Object(date_util_["timeWithinRange"])(date, this.selectableRange, this.format || 'HH:mm:ss') : true;
- }
- },
- components: {
- TimePicker: panel_time, YearTable: year_table, MonthTable: month_table, DateTable: date_table, ElInput: input_default.a, ElButton: button_default.a
- },
- data: function data() {
- return {
- popperClass: '',
- date: new Date(),
- value: '',
- defaultValue: null, // use getDefaultValue() for time computation
- defaultTime: null,
- showTime: false,
- selectionMode: 'day',
- shortcuts: '',
- visible: false,
- currentView: 'date',
- disabledDate: '',
- cellClassName: '',
- selectableRange: [],
- firstDayOfWeek: 7,
- showWeekNumber: false,
- timePickerVisible: false,
- format: '',
- arrowControl: false,
- userInputDate: null,
- userInputTime: null
- };
- },
- computed: {
- year: function year() {
- return this.date.getFullYear();
- },
- month: function month() {
- return this.date.getMonth();
- },
- week: function week() {
- return Object(date_util_["getWeekNumber"])(this.date);
- },
- monthDate: function monthDate() {
- return this.date.getDate();
- },
- footerVisible: function footerVisible() {
- return this.showTime || this.selectionMode === 'dates';
- },
- visibleTime: function visibleTime() {
- if (this.userInputTime !== null) {
- return this.userInputTime;
- } else {
- return Object(date_util_["formatDate"])(this.value || this.defaultValue, this.timeFormat);
- }
- },
- visibleDate: function visibleDate() {
- if (this.userInputDate !== null) {
- return this.userInputDate;
- } else {
- return Object(date_util_["formatDate"])(this.value || this.defaultValue, this.dateFormat);
- }
- },
- yearLabel: function yearLabel() {
- var yearTranslation = this.t('el.datepicker.year');
- if (this.currentView === 'year') {
- var startYear = Math.floor(this.year / 10) * 10;
- if (yearTranslation) {
- return startYear + ' ' + yearTranslation + ' - ' + (startYear + 9) + ' ' + yearTranslation;
- }
- return startYear + ' - ' + (startYear + 9);
- }
- return this.year + ' ' + yearTranslation;
- },
- timeFormat: function timeFormat() {
- if (this.format) {
- return Object(date_util_["extractTimeFormat"])(this.format);
- } else {
- return 'HH:mm:ss';
- }
- },
- dateFormat: function dateFormat() {
- if (this.format) {
- return Object(date_util_["extractDateFormat"])(this.format);
- } else {
- return 'yyyy-MM-dd';
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_datevue_type_script_lang_js_ = (datevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date.vue
- /* normalize component */
- var date_component = normalizeComponent(
- panel_datevue_type_script_lang_js_,
- datevue_type_template_id_2440d4ea_render,
- datevue_type_template_id_2440d4ea_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var date_api; }
- date_component.options.__file = "packages/date-picker/src/panel/date.vue"
- /* harmony default export */ var panel_date = (date_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/date-range.vue?vue&type=template&id=2652849a&
- var date_rangevue_type_template_id_2652849a_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "after-leave": function($event) {
- _vm.$emit("dodestroy")
- }
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-picker-panel el-date-range-picker el-popper",
- class: [
- {
- "has-sidebar": _vm.$slots.sidebar || _vm.shortcuts,
- "has-time": _vm.showTime
- },
- _vm.popperClass
- ]
- },
- [
- _c(
- "div",
- { staticClass: "el-picker-panel__body-wrapper" },
- [
- _vm._t("sidebar"),
- _vm.shortcuts
- ? _c(
- "div",
- { staticClass: "el-picker-panel__sidebar" },
- _vm._l(_vm.shortcuts, function(shortcut, key) {
- return _c(
- "button",
- {
- key: key,
- staticClass: "el-picker-panel__shortcut",
- attrs: { type: "button" },
- on: {
- click: function($event) {
- _vm.handleShortcutClick(shortcut)
- }
- }
- },
- [_vm._v(_vm._s(shortcut.text))]
- )
- }),
- 0
- )
- : _vm._e(),
- _c("div", { staticClass: "el-picker-panel__body" }, [
- _vm.showTime
- ? _c(
- "div",
- { staticClass: "el-date-range-picker__time-header" },
- [
- _c(
- "span",
- { staticClass: "el-date-range-picker__editors-wrap" },
- [
- _c(
- "span",
- {
- staticClass:
- "el-date-range-picker__time-picker-wrap"
- },
- [
- _c("el-input", {
- ref: "minInput",
- staticClass: "el-date-range-picker__editor",
- attrs: {
- size: "small",
- disabled: _vm.rangeState.selecting,
- placeholder: _vm.t(
- "el.datepicker.startDate"
- ),
- value: _vm.minVisibleDate
- },
- on: {
- input: function(val) {
- return _vm.handleDateInput(val, "min")
- },
- change: function(val) {
- return _vm.handleDateChange(val, "min")
- }
- }
- })
- ],
- 1
- ),
- _c(
- "span",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleMinTimeClose,
- expression: "handleMinTimeClose"
- }
- ],
- staticClass:
- "el-date-range-picker__time-picker-wrap"
- },
- [
- _c("el-input", {
- staticClass: "el-date-range-picker__editor",
- attrs: {
- size: "small",
- disabled: _vm.rangeState.selecting,
- placeholder: _vm.t(
- "el.datepicker.startTime"
- ),
- value: _vm.minVisibleTime
- },
- on: {
- focus: function($event) {
- _vm.minTimePickerVisible = true
- },
- input: function(val) {
- return _vm.handleTimeInput(val, "min")
- },
- change: function(val) {
- return _vm.handleTimeChange(val, "min")
- }
- }
- }),
- _c("time-picker", {
- ref: "minTimePicker",
- attrs: {
- "time-arrow-control": _vm.arrowControl,
- visible: _vm.minTimePickerVisible
- },
- on: {
- pick: _vm.handleMinTimePick,
- mounted: function($event) {
- _vm.$refs.minTimePicker.format =
- _vm.timeFormat
- }
- }
- })
- ],
- 1
- )
- ]
- ),
- _c("span", { staticClass: "el-icon-arrow-right" }),
- _c(
- "span",
- {
- staticClass:
- "el-date-range-picker__editors-wrap is-right"
- },
- [
- _c(
- "span",
- {
- staticClass:
- "el-date-range-picker__time-picker-wrap"
- },
- [
- _c("el-input", {
- staticClass: "el-date-range-picker__editor",
- attrs: {
- size: "small",
- disabled: _vm.rangeState.selecting,
- placeholder: _vm.t("el.datepicker.endDate"),
- value: _vm.maxVisibleDate,
- readonly: !_vm.minDate
- },
- on: {
- input: function(val) {
- return _vm.handleDateInput(val, "max")
- },
- change: function(val) {
- return _vm.handleDateChange(val, "max")
- }
- }
- })
- ],
- 1
- ),
- _c(
- "span",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleMaxTimeClose,
- expression: "handleMaxTimeClose"
- }
- ],
- staticClass:
- "el-date-range-picker__time-picker-wrap"
- },
- [
- _c("el-input", {
- staticClass: "el-date-range-picker__editor",
- attrs: {
- size: "small",
- disabled: _vm.rangeState.selecting,
- placeholder: _vm.t("el.datepicker.endTime"),
- value: _vm.maxVisibleTime,
- readonly: !_vm.minDate
- },
- on: {
- focus: function($event) {
- _vm.minDate &&
- (_vm.maxTimePickerVisible = true)
- },
- input: function(val) {
- return _vm.handleTimeInput(val, "max")
- },
- change: function(val) {
- return _vm.handleTimeChange(val, "max")
- }
- }
- }),
- _c("time-picker", {
- ref: "maxTimePicker",
- attrs: {
- "time-arrow-control": _vm.arrowControl,
- visible: _vm.maxTimePickerVisible
- },
- on: {
- pick: _vm.handleMaxTimePick,
- mounted: function($event) {
- _vm.$refs.maxTimePicker.format =
- _vm.timeFormat
- }
- }
- })
- ],
- 1
- )
- ]
- )
- ]
- )
- : _vm._e(),
- _c(
- "div",
- {
- staticClass:
- "el-picker-panel__content el-date-range-picker__content is-left"
- },
- [
- _c("div", { staticClass: "el-date-range-picker__header" }, [
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-left",
- attrs: { type: "button" },
- on: { click: _vm.leftPrevYear }
- }),
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-arrow-left",
- attrs: { type: "button" },
- on: { click: _vm.leftPrevMonth }
- }),
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-right",
- class: { "is-disabled": !_vm.enableYearArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableYearArrow
- },
- on: { click: _vm.leftNextYear }
- })
- : _vm._e(),
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-arrow-right",
- class: { "is-disabled": !_vm.enableMonthArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableMonthArrow
- },
- on: { click: _vm.leftNextMonth }
- })
- : _vm._e(),
- _c("div", [_vm._v(_vm._s(_vm.leftLabel))])
- ]),
- _c("date-table", {
- attrs: {
- "selection-mode": "range",
- date: _vm.leftDate,
- "default-value": _vm.defaultValue,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "range-state": _vm.rangeState,
- "disabled-date": _vm.disabledDate,
- "cell-class-name": _vm.cellClassName,
- "first-day-of-week": _vm.firstDayOfWeek
- },
- on: {
- changerange: _vm.handleChangeRange,
- pick: _vm.handleRangePick
- }
- })
- ],
- 1
- ),
- _c(
- "div",
- {
- staticClass:
- "el-picker-panel__content el-date-range-picker__content is-right"
- },
- [
- _c("div", { staticClass: "el-date-range-picker__header" }, [
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-left",
- class: { "is-disabled": !_vm.enableYearArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableYearArrow
- },
- on: { click: _vm.rightPrevYear }
- })
- : _vm._e(),
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-arrow-left",
- class: { "is-disabled": !_vm.enableMonthArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableMonthArrow
- },
- on: { click: _vm.rightPrevMonth }
- })
- : _vm._e(),
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-right",
- attrs: { type: "button" },
- on: { click: _vm.rightNextYear }
- }),
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-arrow-right",
- attrs: { type: "button" },
- on: { click: _vm.rightNextMonth }
- }),
- _c("div", [_vm._v(_vm._s(_vm.rightLabel))])
- ]),
- _c("date-table", {
- attrs: {
- "selection-mode": "range",
- date: _vm.rightDate,
- "default-value": _vm.defaultValue,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "range-state": _vm.rangeState,
- "disabled-date": _vm.disabledDate,
- "cell-class-name": _vm.cellClassName,
- "first-day-of-week": _vm.firstDayOfWeek
- },
- on: {
- changerange: _vm.handleChangeRange,
- pick: _vm.handleRangePick
- }
- })
- ],
- 1
- )
- ])
- ],
- 2
- ),
- _vm.showTime
- ? _c(
- "div",
- { staticClass: "el-picker-panel__footer" },
- [
- _c(
- "el-button",
- {
- staticClass: "el-picker-panel__link-btn",
- attrs: { size: "mini", type: "text" },
- on: { click: _vm.handleClear }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.clear")) +
- "\n "
- )
- ]
- ),
- _c(
- "el-button",
- {
- staticClass: "el-picker-panel__link-btn",
- attrs: {
- plain: "",
- size: "mini",
- disabled: _vm.btnDisabled
- },
- on: {
- click: function($event) {
- _vm.handleConfirm(false)
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.confirm")) +
- "\n "
- )
- ]
- )
- ],
- 1
- )
- : _vm._e()
- ]
- )
- ]
- )
- }
- var date_rangevue_type_template_id_2652849a_staticRenderFns = []
- date_rangevue_type_template_id_2652849a_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date-range.vue?vue&type=template&id=2652849a&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/date-range.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultValue(defaultValue) {
- if (Array.isArray(defaultValue)) {
- return [new Date(defaultValue[0]), new Date(defaultValue[1])];
- } else if (defaultValue) {
- return [new Date(defaultValue), Object(date_util_["nextDate"])(new Date(defaultValue), 1)];
- } else {
- return [new Date(), Object(date_util_["nextDate"])(new Date(), 1)];
- }
- };
- /* harmony default export */ var date_rangevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- directives: { Clickoutside: clickoutside_default.a },
- computed: {
- btnDisabled: function btnDisabled() {
- return !(this.minDate && this.maxDate && !this.selecting && this.isValidValue([this.minDate, this.maxDate]));
- },
- leftLabel: function leftLabel() {
- return this.leftDate.getFullYear() + ' ' + this.t('el.datepicker.year') + ' ' + this.t('el.datepicker.month' + (this.leftDate.getMonth() + 1));
- },
- rightLabel: function rightLabel() {
- return this.rightDate.getFullYear() + ' ' + this.t('el.datepicker.year') + ' ' + this.t('el.datepicker.month' + (this.rightDate.getMonth() + 1));
- },
- leftYear: function leftYear() {
- return this.leftDate.getFullYear();
- },
- leftMonth: function leftMonth() {
- return this.leftDate.getMonth();
- },
- leftMonthDate: function leftMonthDate() {
- return this.leftDate.getDate();
- },
- rightYear: function rightYear() {
- return this.rightDate.getFullYear();
- },
- rightMonth: function rightMonth() {
- return this.rightDate.getMonth();
- },
- rightMonthDate: function rightMonthDate() {
- return this.rightDate.getDate();
- },
- minVisibleDate: function minVisibleDate() {
- if (this.dateUserInput.min !== null) return this.dateUserInput.min;
- if (this.minDate) return Object(date_util_["formatDate"])(this.minDate, this.dateFormat);
- return '';
- },
- maxVisibleDate: function maxVisibleDate() {
- if (this.dateUserInput.max !== null) return this.dateUserInput.max;
- if (this.maxDate || this.minDate) return Object(date_util_["formatDate"])(this.maxDate || this.minDate, this.dateFormat);
- return '';
- },
- minVisibleTime: function minVisibleTime() {
- if (this.timeUserInput.min !== null) return this.timeUserInput.min;
- if (this.minDate) return Object(date_util_["formatDate"])(this.minDate, this.timeFormat);
- return '';
- },
- maxVisibleTime: function maxVisibleTime() {
- if (this.timeUserInput.max !== null) return this.timeUserInput.max;
- if (this.maxDate || this.minDate) return Object(date_util_["formatDate"])(this.maxDate || this.minDate, this.timeFormat);
- return '';
- },
- timeFormat: function timeFormat() {
- if (this.format) {
- return Object(date_util_["extractTimeFormat"])(this.format);
- } else {
- return 'HH:mm:ss';
- }
- },
- dateFormat: function dateFormat() {
- if (this.format) {
- return Object(date_util_["extractDateFormat"])(this.format);
- } else {
- return 'yyyy-MM-dd';
- }
- },
- enableMonthArrow: function enableMonthArrow() {
- var nextMonth = (this.leftMonth + 1) % 12;
- var yearOffset = this.leftMonth + 1 >= 12 ? 1 : 0;
- return this.unlinkPanels && new Date(this.leftYear + yearOffset, nextMonth) < new Date(this.rightYear, this.rightMonth);
- },
- enableYearArrow: function enableYearArrow() {
- return this.unlinkPanels && this.rightYear * 12 + this.rightMonth - (this.leftYear * 12 + this.leftMonth + 1) >= 12;
- }
- },
- data: function data() {
- return {
- popperClass: '',
- value: [],
- defaultValue: null,
- defaultTime: null,
- minDate: '',
- maxDate: '',
- leftDate: new Date(),
- rightDate: Object(date_util_["nextMonth"])(new Date()),
- rangeState: {
- endDate: null,
- selecting: false,
- row: null,
- column: null
- },
- showTime: false,
- shortcuts: '',
- visible: '',
- disabledDate: '',
- cellClassName: '',
- firstDayOfWeek: 7,
- minTimePickerVisible: false,
- maxTimePickerVisible: false,
- format: '',
- arrowControl: false,
- unlinkPanels: false,
- dateUserInput: {
- min: null,
- max: null
- },
- timeUserInput: {
- min: null,
- max: null
- }
- };
- },
- watch: {
- minDate: function minDate(val) {
- var _this = this;
- this.dateUserInput.min = null;
- this.timeUserInput.min = null;
- this.$nextTick(function () {
- if (_this.$refs.maxTimePicker && _this.maxDate && _this.maxDate < _this.minDate) {
- var format = 'HH:mm:ss';
- _this.$refs.maxTimePicker.selectableRange = [[Object(date_util_["parseDate"])(Object(date_util_["formatDate"])(_this.minDate, format), format), Object(date_util_["parseDate"])('23:59:59', format)]];
- }
- });
- if (val && this.$refs.minTimePicker) {
- this.$refs.minTimePicker.date = val;
- this.$refs.minTimePicker.value = val;
- }
- },
- maxDate: function maxDate(val) {
- this.dateUserInput.max = null;
- this.timeUserInput.max = null;
- if (val && this.$refs.maxTimePicker) {
- this.$refs.maxTimePicker.date = val;
- this.$refs.maxTimePicker.value = val;
- }
- },
- minTimePickerVisible: function minTimePickerVisible(val) {
- var _this2 = this;
- if (val) {
- this.$nextTick(function () {
- _this2.$refs.minTimePicker.date = _this2.minDate;
- _this2.$refs.minTimePicker.value = _this2.minDate;
- _this2.$refs.minTimePicker.adjustSpinners();
- });
- }
- },
- maxTimePickerVisible: function maxTimePickerVisible(val) {
- var _this3 = this;
- if (val) {
- this.$nextTick(function () {
- _this3.$refs.maxTimePicker.date = _this3.maxDate;
- _this3.$refs.maxTimePicker.value = _this3.maxDate;
- _this3.$refs.maxTimePicker.adjustSpinners();
- });
- }
- },
- value: function value(newVal) {
- if (!newVal) {
- this.minDate = null;
- this.maxDate = null;
- } else if (Array.isArray(newVal)) {
- this.minDate = Object(date_util_["isDate"])(newVal[0]) ? new Date(newVal[0]) : null;
- this.maxDate = Object(date_util_["isDate"])(newVal[1]) ? new Date(newVal[1]) : null;
- if (this.minDate) {
- this.leftDate = this.minDate;
- if (this.unlinkPanels && this.maxDate) {
- var minDateYear = this.minDate.getFullYear();
- var minDateMonth = this.minDate.getMonth();
- var maxDateYear = this.maxDate.getFullYear();
- var maxDateMonth = this.maxDate.getMonth();
- this.rightDate = minDateYear === maxDateYear && minDateMonth === maxDateMonth ? Object(date_util_["nextMonth"])(this.maxDate) : this.maxDate;
- } else {
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- }
- } else {
- this.leftDate = date_rangevue_type_script_lang_js_calcDefaultValue(this.defaultValue)[0];
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- }
- }
- },
- defaultValue: function defaultValue(val) {
- if (!Array.isArray(this.value)) {
- var _calcDefaultValue = date_rangevue_type_script_lang_js_calcDefaultValue(val),
- left = _calcDefaultValue[0],
- right = _calcDefaultValue[1];
- this.leftDate = left;
- this.rightDate = val && val[1] && this.unlinkPanels ? right : Object(date_util_["nextMonth"])(this.leftDate);
- }
- }
- },
- methods: {
- handleClear: function handleClear() {
- this.minDate = null;
- this.maxDate = null;
- this.leftDate = date_rangevue_type_script_lang_js_calcDefaultValue(this.defaultValue)[0];
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- this.$emit('pick', null);
- },
- handleChangeRange: function handleChangeRange(val) {
- this.minDate = val.minDate;
- this.maxDate = val.maxDate;
- this.rangeState = val.rangeState;
- },
- handleDateInput: function handleDateInput(value, type) {
- this.dateUserInput[type] = value;
- if (value.length !== this.dateFormat.length) return;
- var parsedValue = Object(date_util_["parseDate"])(value, this.dateFormat);
- if (parsedValue) {
- if (typeof this.disabledDate === 'function' && this.disabledDate(new Date(parsedValue))) {
- return;
- }
- if (type === 'min') {
- this.minDate = Object(date_util_["modifyDate"])(this.minDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
- this.leftDate = new Date(parsedValue);
- if (!this.unlinkPanels) {
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- }
- } else {
- this.maxDate = Object(date_util_["modifyDate"])(this.maxDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
- this.rightDate = new Date(parsedValue);
- if (!this.unlinkPanels) {
- this.leftDate = Object(date_util_["prevMonth"])(parsedValue);
- }
- }
- }
- },
- handleDateChange: function handleDateChange(value, type) {
- var parsedValue = Object(date_util_["parseDate"])(value, this.dateFormat);
- if (parsedValue) {
- if (type === 'min') {
- this.minDate = Object(date_util_["modifyDate"])(this.minDate, parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
- if (this.minDate > this.maxDate) {
- this.maxDate = this.minDate;
- }
- } else {
- this.maxDate = Object(date_util_["modifyDate"])(this.maxDate, parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
- if (this.maxDate < this.minDate) {
- this.minDate = this.maxDate;
- }
- }
- }
- },
- handleTimeInput: function handleTimeInput(value, type) {
- var _this4 = this;
- this.timeUserInput[type] = value;
- if (value.length !== this.timeFormat.length) return;
- var parsedValue = Object(date_util_["parseDate"])(value, this.timeFormat);
- if (parsedValue) {
- if (type === 'min') {
- this.minDate = Object(date_util_["modifyTime"])(this.minDate, parsedValue.getHours(), parsedValue.getMinutes(), parsedValue.getSeconds());
- this.$nextTick(function (_) {
- return _this4.$refs.minTimePicker.adjustSpinners();
- });
- } else {
- this.maxDate = Object(date_util_["modifyTime"])(this.maxDate, parsedValue.getHours(), parsedValue.getMinutes(), parsedValue.getSeconds());
- this.$nextTick(function (_) {
- return _this4.$refs.maxTimePicker.adjustSpinners();
- });
- }
- }
- },
- handleTimeChange: function handleTimeChange(value, type) {
- var parsedValue = Object(date_util_["parseDate"])(value, this.timeFormat);
- if (parsedValue) {
- if (type === 'min') {
- this.minDate = Object(date_util_["modifyTime"])(this.minDate, parsedValue.getHours(), parsedValue.getMinutes(), parsedValue.getSeconds());
- if (this.minDate > this.maxDate) {
- this.maxDate = this.minDate;
- }
- this.$refs.minTimePicker.value = this.minDate;
- this.minTimePickerVisible = false;
- } else {
- this.maxDate = Object(date_util_["modifyTime"])(this.maxDate, parsedValue.getHours(), parsedValue.getMinutes(), parsedValue.getSeconds());
- if (this.maxDate < this.minDate) {
- this.minDate = this.maxDate;
- }
- this.$refs.maxTimePicker.value = this.minDate;
- this.maxTimePickerVisible = false;
- }
- }
- },
- handleRangePick: function handleRangePick(val) {
- var _this5 = this;
- var close = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var defaultTime = this.defaultTime || [];
- var minDate = Object(date_util_["modifyWithTimeString"])(val.minDate, defaultTime[0]);
- var maxDate = Object(date_util_["modifyWithTimeString"])(val.maxDate, defaultTime[1]);
- if (this.maxDate === maxDate && this.minDate === minDate) {
- return;
- }
- this.onPick && this.onPick(val);
- this.maxDate = maxDate;
- this.minDate = minDate;
- // workaround for https://github.com/ElemeFE/element/issues/7539, should remove this block when we don't have to care about Chromium 55 - 57
- setTimeout(function () {
- _this5.maxDate = maxDate;
- _this5.minDate = minDate;
- }, 10);
- if (!close || this.showTime) return;
- this.handleConfirm();
- },
- handleShortcutClick: function handleShortcutClick(shortcut) {
- if (shortcut.onClick) {
- shortcut.onClick(this);
- }
- },
- handleMinTimePick: function handleMinTimePick(value, visible, first) {
- this.minDate = this.minDate || new Date();
- if (value) {
- this.minDate = Object(date_util_["modifyTime"])(this.minDate, value.getHours(), value.getMinutes(), value.getSeconds());
- }
- if (!first) {
- this.minTimePickerVisible = visible;
- }
- if (!this.maxDate || this.maxDate && this.maxDate.getTime() < this.minDate.getTime()) {
- this.maxDate = new Date(this.minDate);
- }
- },
- handleMinTimeClose: function handleMinTimeClose() {
- this.minTimePickerVisible = false;
- },
- handleMaxTimePick: function handleMaxTimePick(value, visible, first) {
- if (this.maxDate && value) {
- this.maxDate = Object(date_util_["modifyTime"])(this.maxDate, value.getHours(), value.getMinutes(), value.getSeconds());
- }
- if (!first) {
- this.maxTimePickerVisible = visible;
- }
- if (this.maxDate && this.minDate && this.minDate.getTime() > this.maxDate.getTime()) {
- this.minDate = new Date(this.maxDate);
- }
- },
- handleMaxTimeClose: function handleMaxTimeClose() {
- this.maxTimePickerVisible = false;
- },
- // leftPrev*, rightNext* need to take care of `unlinkPanels`
- leftPrevYear: function leftPrevYear() {
- this.leftDate = Object(date_util_["prevYear"])(this.leftDate);
- if (!this.unlinkPanels) {
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- }
- },
- leftPrevMonth: function leftPrevMonth() {
- this.leftDate = Object(date_util_["prevMonth"])(this.leftDate);
- if (!this.unlinkPanels) {
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- }
- },
- rightNextYear: function rightNextYear() {
- if (!this.unlinkPanels) {
- this.leftDate = Object(date_util_["nextYear"])(this.leftDate);
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- } else {
- this.rightDate = Object(date_util_["nextYear"])(this.rightDate);
- }
- },
- rightNextMonth: function rightNextMonth() {
- if (!this.unlinkPanels) {
- this.leftDate = Object(date_util_["nextMonth"])(this.leftDate);
- this.rightDate = Object(date_util_["nextMonth"])(this.leftDate);
- } else {
- this.rightDate = Object(date_util_["nextMonth"])(this.rightDate);
- }
- },
- // leftNext*, rightPrev* are called when `unlinkPanels` is true
- leftNextYear: function leftNextYear() {
- this.leftDate = Object(date_util_["nextYear"])(this.leftDate);
- },
- leftNextMonth: function leftNextMonth() {
- this.leftDate = Object(date_util_["nextMonth"])(this.leftDate);
- },
- rightPrevYear: function rightPrevYear() {
- this.rightDate = Object(date_util_["prevYear"])(this.rightDate);
- },
- rightPrevMonth: function rightPrevMonth() {
- this.rightDate = Object(date_util_["prevMonth"])(this.rightDate);
- },
- handleConfirm: function handleConfirm() {
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- if (this.isValidValue([this.minDate, this.maxDate])) {
- this.$emit('pick', [this.minDate, this.maxDate], visible);
- }
- },
- isValidValue: function isValidValue(value) {
- return Array.isArray(value) && value && value[0] && value[1] && Object(date_util_["isDate"])(value[0]) && Object(date_util_["isDate"])(value[1]) && value[0].getTime() <= value[1].getTime() && (typeof this.disabledDate === 'function' ? !this.disabledDate(value[0]) && !this.disabledDate(value[1]) : true);
- },
- resetView: function resetView() {
- // NOTE: this is a hack to reset {min, max}Date on picker open.
- // TODO: correct way of doing so is to refactor {min, max}Date to be dependent on value and internal selection state
- // an alternative would be resetView whenever picker becomes visible, should also investigate date-panel's resetView
- if (this.minDate && this.maxDate == null) this.rangeState.selecting = false;
- this.minDate = this.value && Object(date_util_["isDate"])(this.value[0]) ? new Date(this.value[0]) : null;
- this.maxDate = this.value && Object(date_util_["isDate"])(this.value[0]) ? new Date(this.value[1]) : null;
- }
- },
- components: { TimePicker: panel_time, DateTable: date_table, ElInput: input_default.a, ElButton: button_default.a }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date-range.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_date_rangevue_type_script_lang_js_ = (date_rangevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/date-range.vue
- /* normalize component */
- var date_range_component = normalizeComponent(
- panel_date_rangevue_type_script_lang_js_,
- date_rangevue_type_template_id_2652849a_render,
- date_rangevue_type_template_id_2652849a_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var date_range_api; }
- date_range_component.options.__file = "packages/date-picker/src/panel/date-range.vue"
- /* harmony default export */ var date_range = (date_range_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/month-range.vue?vue&type=template&id=f2645fb8&
- var month_rangevue_type_template_id_f2645fb8_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "after-leave": function($event) {
- _vm.$emit("dodestroy")
- }
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-picker-panel el-date-range-picker el-popper",
- class: [
- {
- "has-sidebar": _vm.$slots.sidebar || _vm.shortcuts
- },
- _vm.popperClass
- ]
- },
- [
- _c(
- "div",
- { staticClass: "el-picker-panel__body-wrapper" },
- [
- _vm._t("sidebar"),
- _vm.shortcuts
- ? _c(
- "div",
- { staticClass: "el-picker-panel__sidebar" },
- _vm._l(_vm.shortcuts, function(shortcut, key) {
- return _c(
- "button",
- {
- key: key,
- staticClass: "el-picker-panel__shortcut",
- attrs: { type: "button" },
- on: {
- click: function($event) {
- _vm.handleShortcutClick(shortcut)
- }
- }
- },
- [_vm._v(_vm._s(shortcut.text))]
- )
- }),
- 0
- )
- : _vm._e(),
- _c("div", { staticClass: "el-picker-panel__body" }, [
- _c(
- "div",
- {
- staticClass:
- "el-picker-panel__content el-date-range-picker__content is-left"
- },
- [
- _c("div", { staticClass: "el-date-range-picker__header" }, [
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-left",
- attrs: { type: "button" },
- on: { click: _vm.leftPrevYear }
- }),
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-right",
- class: { "is-disabled": !_vm.enableYearArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableYearArrow
- },
- on: { click: _vm.leftNextYear }
- })
- : _vm._e(),
- _c("div", [_vm._v(_vm._s(_vm.leftLabel))])
- ]),
- _c("month-table", {
- attrs: {
- "selection-mode": "range",
- date: _vm.leftDate,
- "default-value": _vm.defaultValue,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "range-state": _vm.rangeState,
- "disabled-date": _vm.disabledDate
- },
- on: {
- changerange: _vm.handleChangeRange,
- pick: _vm.handleRangePick
- }
- })
- ],
- 1
- ),
- _c(
- "div",
- {
- staticClass:
- "el-picker-panel__content el-date-range-picker__content is-right"
- },
- [
- _c("div", { staticClass: "el-date-range-picker__header" }, [
- _vm.unlinkPanels
- ? _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-left",
- class: { "is-disabled": !_vm.enableYearArrow },
- attrs: {
- type: "button",
- disabled: !_vm.enableYearArrow
- },
- on: { click: _vm.rightPrevYear }
- })
- : _vm._e(),
- _c("button", {
- staticClass:
- "el-picker-panel__icon-btn el-icon-d-arrow-right",
- attrs: { type: "button" },
- on: { click: _vm.rightNextYear }
- }),
- _c("div", [_vm._v(_vm._s(_vm.rightLabel))])
- ]),
- _c("month-table", {
- attrs: {
- "selection-mode": "range",
- date: _vm.rightDate,
- "default-value": _vm.defaultValue,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "range-state": _vm.rangeState,
- "disabled-date": _vm.disabledDate
- },
- on: {
- changerange: _vm.handleChangeRange,
- pick: _vm.handleRangePick
- }
- })
- ],
- 1
- )
- ])
- ],
- 2
- )
- ]
- )
- ]
- )
- }
- var month_rangevue_type_template_id_f2645fb8_staticRenderFns = []
- month_rangevue_type_template_id_f2645fb8_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/month-range.vue?vue&type=template&id=f2645fb8&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/month-range.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var month_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultValue(defaultValue) {
- if (Array.isArray(defaultValue)) {
- return [new Date(defaultValue[0]), new Date(defaultValue[1])];
- } else if (defaultValue) {
- return [new Date(defaultValue), Object(date_util_["nextMonth"])(new Date(defaultValue))];
- } else {
- return [new Date(), Object(date_util_["nextMonth"])(new Date())];
- }
- };
- /* harmony default export */ var month_rangevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- directives: { Clickoutside: clickoutside_default.a },
- computed: {
- btnDisabled: function btnDisabled() {
- return !(this.minDate && this.maxDate && !this.selecting && this.isValidValue([this.minDate, this.maxDate]));
- },
- leftLabel: function leftLabel() {
- return this.leftDate.getFullYear() + ' ' + this.t('el.datepicker.year');
- },
- rightLabel: function rightLabel() {
- return this.rightDate.getFullYear() + ' ' + this.t('el.datepicker.year');
- },
- leftYear: function leftYear() {
- return this.leftDate.getFullYear();
- },
- rightYear: function rightYear() {
- return this.rightDate.getFullYear() === this.leftDate.getFullYear() ? this.leftDate.getFullYear() + 1 : this.rightDate.getFullYear();
- },
- enableYearArrow: function enableYearArrow() {
- return this.unlinkPanels && this.rightYear > this.leftYear + 1;
- }
- },
- data: function data() {
- return {
- popperClass: '',
- value: [],
- defaultValue: null,
- defaultTime: null,
- minDate: '',
- maxDate: '',
- leftDate: new Date(),
- rightDate: Object(date_util_["nextYear"])(new Date()),
- rangeState: {
- endDate: null,
- selecting: false,
- row: null,
- column: null
- },
- shortcuts: '',
- visible: '',
- disabledDate: '',
- format: '',
- arrowControl: false,
- unlinkPanels: false
- };
- },
- watch: {
- value: function value(newVal) {
- if (!newVal) {
- this.minDate = null;
- this.maxDate = null;
- } else if (Array.isArray(newVal)) {
- this.minDate = Object(date_util_["isDate"])(newVal[0]) ? new Date(newVal[0]) : null;
- this.maxDate = Object(date_util_["isDate"])(newVal[1]) ? new Date(newVal[1]) : null;
- if (this.minDate) {
- this.leftDate = this.minDate;
- if (this.unlinkPanels && this.maxDate) {
- var minDateYear = this.minDate.getFullYear();
- var maxDateYear = this.maxDate.getFullYear();
- this.rightDate = minDateYear === maxDateYear ? Object(date_util_["nextYear"])(this.maxDate) : this.maxDate;
- } else {
- this.rightDate = Object(date_util_["nextYear"])(this.leftDate);
- }
- } else {
- this.leftDate = month_rangevue_type_script_lang_js_calcDefaultValue(this.defaultValue)[0];
- this.rightDate = Object(date_util_["nextYear"])(this.leftDate);
- }
- }
- },
- defaultValue: function defaultValue(val) {
- if (!Array.isArray(this.value)) {
- var _calcDefaultValue = month_rangevue_type_script_lang_js_calcDefaultValue(val),
- left = _calcDefaultValue[0],
- right = _calcDefaultValue[1];
- this.leftDate = left;
- this.rightDate = val && val[1] && left.getFullYear() !== right.getFullYear() && this.unlinkPanels ? right : Object(date_util_["nextYear"])(this.leftDate);
- }
- }
- },
- methods: {
- handleClear: function handleClear() {
- this.minDate = null;
- this.maxDate = null;
- this.leftDate = month_rangevue_type_script_lang_js_calcDefaultValue(this.defaultValue)[0];
- this.rightDate = Object(date_util_["nextYear"])(this.leftDate);
- this.$emit('pick', null);
- },
- handleChangeRange: function handleChangeRange(val) {
- this.minDate = val.minDate;
- this.maxDate = val.maxDate;
- this.rangeState = val.rangeState;
- },
- handleRangePick: function handleRangePick(val) {
- var _this = this;
- var close = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var defaultTime = this.defaultTime || [];
- var minDate = Object(date_util_["modifyWithTimeString"])(val.minDate, defaultTime[0]);
- var maxDate = Object(date_util_["modifyWithTimeString"])(val.maxDate, defaultTime[1]);
- if (this.maxDate === maxDate && this.minDate === minDate) {
- return;
- }
- this.onPick && this.onPick(val);
- this.maxDate = maxDate;
- this.minDate = minDate;
- // workaround for https://github.com/ElemeFE/element/issues/7539, should remove this block when we don't have to care about Chromium 55 - 57
- setTimeout(function () {
- _this.maxDate = maxDate;
- _this.minDate = minDate;
- }, 10);
- if (!close) return;
- this.handleConfirm();
- },
- handleShortcutClick: function handleShortcutClick(shortcut) {
- if (shortcut.onClick) {
- shortcut.onClick(this);
- }
- },
- // leftPrev*, rightNext* need to take care of `unlinkPanels`
- leftPrevYear: function leftPrevYear() {
- this.leftDate = Object(date_util_["prevYear"])(this.leftDate);
- if (!this.unlinkPanels) {
- this.rightDate = Object(date_util_["prevYear"])(this.rightDate);
- }
- },
- rightNextYear: function rightNextYear() {
- if (!this.unlinkPanels) {
- this.leftDate = Object(date_util_["nextYear"])(this.leftDate);
- }
- this.rightDate = Object(date_util_["nextYear"])(this.rightDate);
- },
- // leftNext*, rightPrev* are called when `unlinkPanels` is true
- leftNextYear: function leftNextYear() {
- this.leftDate = Object(date_util_["nextYear"])(this.leftDate);
- },
- rightPrevYear: function rightPrevYear() {
- this.rightDate = Object(date_util_["prevYear"])(this.rightDate);
- },
- handleConfirm: function handleConfirm() {
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- if (this.isValidValue([this.minDate, this.maxDate])) {
- this.$emit('pick', [this.minDate, this.maxDate], visible);
- }
- },
- isValidValue: function isValidValue(value) {
- return Array.isArray(value) && value && value[0] && value[1] && Object(date_util_["isDate"])(value[0]) && Object(date_util_["isDate"])(value[1]) && value[0].getTime() <= value[1].getTime() && (typeof this.disabledDate === 'function' ? !this.disabledDate(value[0]) && !this.disabledDate(value[1]) : true);
- },
- resetView: function resetView() {
- // NOTE: this is a hack to reset {min, max}Date on picker open.
- // TODO: correct way of doing so is to refactor {min, max}Date to be dependent on value and internal selection state
- // an alternative would be resetView whenever picker becomes visible, should also investigate date-panel's resetView
- this.minDate = this.value && Object(date_util_["isDate"])(this.value[0]) ? new Date(this.value[0]) : null;
- this.maxDate = this.value && Object(date_util_["isDate"])(this.value[0]) ? new Date(this.value[1]) : null;
- }
- },
- components: { MonthTable: month_table, ElInput: input_default.a, ElButton: button_default.a }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/month-range.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_month_rangevue_type_script_lang_js_ = (month_rangevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/month-range.vue
- /* normalize component */
- var month_range_component = normalizeComponent(
- panel_month_rangevue_type_script_lang_js_,
- month_rangevue_type_template_id_f2645fb8_render,
- month_rangevue_type_template_id_f2645fb8_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var month_range_api; }
- month_range_component.options.__file = "packages/date-picker/src/panel/month-range.vue"
- /* harmony default export */ var month_range = (month_range_component.exports);
- // CONCATENATED MODULE: ./packages/date-picker/src/picker/date-picker.js
- var date_picker_getPanel = function getPanel(type) {
- if (type === 'daterange' || type === 'datetimerange') {
- return date_range;
- } else if (type === 'monthrange') {
- return month_range;
- }
- return panel_date;
- };
- /* harmony default export */ var date_picker = ({
- mixins: [picker],
- name: 'ElDatePicker',
- props: {
- type: {
- type: String,
- default: 'date'
- },
- timeArrowControl: Boolean
- },
- watch: {
- type: function type(_type) {
- if (this.picker) {
- this.unmountPicker();
- this.panel = date_picker_getPanel(_type);
- this.mountPicker();
- } else {
- this.panel = date_picker_getPanel(_type);
- }
- }
- },
- created: function created() {
- this.panel = date_picker_getPanel(this.type);
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/index.js
- /* istanbul ignore next */
- date_picker.install = function install(Vue) {
- Vue.component(date_picker.name, date_picker);
- };
- /* harmony default export */ var packages_date_picker = (date_picker);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=51ab9320&
- var time_selectvue_type_template_id_51ab9320_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "before-enter": _vm.handleMenuEnter,
- "after-leave": function($event) {
- _vm.$emit("dodestroy")
- }
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- ref: "popper",
- staticClass: "el-picker-panel time-select el-popper",
- class: _vm.popperClass,
- style: { width: _vm.width + "px" }
- },
- [
- _c(
- "el-scrollbar",
- {
- attrs: { noresize: "", "wrap-class": "el-picker-panel__content" }
- },
- _vm._l(_vm.items, function(item) {
- return _c(
- "div",
- {
- key: item.value,
- staticClass: "time-select-item",
- class: {
- selected: _vm.value === item.value,
- disabled: item.disabled,
- default: item.value === _vm.defaultValue
- },
- attrs: { disabled: item.disabled },
- on: {
- click: function($event) {
- _vm.handleClick(item)
- }
- }
- },
- [_vm._v(_vm._s(item.value))]
- )
- }),
- 0
- )
- ],
- 1
- )
- ]
- )
- }
- var time_selectvue_type_template_id_51ab9320_staticRenderFns = []
- time_selectvue_type_template_id_51ab9320_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=51ab9320&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var parseTime = function parseTime(time) {
- var values = (time || '').split(':');
- if (values.length >= 2) {
- var hours = parseInt(values[0], 10);
- var minutes = parseInt(values[1], 10);
- return {
- hours: hours,
- minutes: minutes
- };
- }
- /* istanbul ignore next */
- return null;
- };
- var compareTime = function compareTime(time1, time2) {
- var value1 = parseTime(time1);
- var value2 = parseTime(time2);
- var minutes1 = value1.minutes + value1.hours * 60;
- var minutes2 = value2.minutes + value2.hours * 60;
- if (minutes1 === minutes2) {
- return 0;
- }
- return minutes1 > minutes2 ? 1 : -1;
- };
- var formatTime = function formatTime(time) {
- return (time.hours < 10 ? '0' + time.hours : time.hours) + ':' + (time.minutes < 10 ? '0' + time.minutes : time.minutes);
- };
- var nextTime = function nextTime(time, step) {
- var timeValue = parseTime(time);
- var stepValue = parseTime(step);
- var next = {
- hours: timeValue.hours,
- minutes: timeValue.minutes
- };
- next.minutes += stepValue.minutes;
- next.hours += stepValue.hours;
- next.hours += Math.floor(next.minutes / 60);
- next.minutes = next.minutes % 60;
- return formatTime(next);
- };
- /* harmony default export */ var time_selectvue_type_script_lang_js_ = ({
- components: { ElScrollbar: scrollbar_default.a },
- watch: {
- value: function value(val) {
- var _this = this;
- if (!val) return;
- this.$nextTick(function () {
- return _this.scrollToOption();
- });
- }
- },
- methods: {
- handleClick: function handleClick(item) {
- if (!item.disabled) {
- this.$emit('pick', item.value);
- }
- },
- handleClear: function handleClear() {
- this.$emit('pick', null);
- },
- scrollToOption: function scrollToOption() {
- var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '.selected';
- var menu = this.$refs.popper.querySelector('.el-picker-panel__content');
- scroll_into_view_default()(menu, menu.querySelector(selector));
- },
- handleMenuEnter: function handleMenuEnter() {
- var _this2 = this;
- var selected = this.items.map(function (item) {
- return item.value;
- }).indexOf(this.value) !== -1;
- var hasDefault = this.items.map(function (item) {
- return item.value;
- }).indexOf(this.defaultValue) !== -1;
- var option = selected && '.selected' || hasDefault && '.default' || '.time-select-item:not(.disabled)';
- this.$nextTick(function () {
- return _this2.scrollToOption(option);
- });
- },
- scrollDown: function scrollDown(step) {
- var items = this.items;
- var length = items.length;
- var total = items.length;
- var index = items.map(function (item) {
- return item.value;
- }).indexOf(this.value);
- while (total--) {
- index = (index + step + length) % length;
- if (!items[index].disabled) {
- this.$emit('pick', items[index].value, true);
- return;
- }
- }
- },
- isValidValue: function isValidValue(date) {
- return this.items.filter(function (item) {
- return !item.disabled;
- }).map(function (item) {
- return item.value;
- }).indexOf(date) !== -1;
- },
- handleKeydown: function handleKeydown(event) {
- var keyCode = event.keyCode;
- if (keyCode === 38 || keyCode === 40) {
- var mapping = { 40: 1, 38: -1 };
- var offset = mapping[keyCode.toString()];
- this.scrollDown(offset);
- event.stopPropagation();
- return;
- }
- }
- },
- data: function data() {
- return {
- popperClass: '',
- start: '09:00',
- end: '18:00',
- step: '00:30',
- value: '',
- defaultValue: '',
- visible: false,
- minTime: '',
- maxTime: '',
- width: 0
- };
- },
- computed: {
- items: function items() {
- var start = this.start;
- var end = this.end;
- var step = this.step;
- var result = [];
- if (start && end && step) {
- var current = start;
- while (compareTime(current, end) <= 0) {
- result.push({
- value: current,
- disabled: compareTime(current, this.minTime || '-1:-1') <= 0 || compareTime(current, this.maxTime || '100:100') >= 0
- });
- current = nextTime(current, step);
- }
- }
- return result;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_time_selectvue_type_script_lang_js_ = (time_selectvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue
- /* normalize component */
- var time_select_component = normalizeComponent(
- panel_time_selectvue_type_script_lang_js_,
- time_selectvue_type_template_id_51ab9320_render,
- time_selectvue_type_template_id_51ab9320_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var time_select_api; }
- time_select_component.options.__file = "packages/date-picker/src/panel/time-select.vue"
- /* harmony default export */ var time_select = (time_select_component.exports);
- // CONCATENATED MODULE: ./packages/date-picker/src/picker/time-select.js
- /* harmony default export */ var picker_time_select = ({
- mixins: [picker],
- name: 'ElTimeSelect',
- componentName: 'ElTimeSelect',
- props: {
- type: {
- type: String,
- default: 'time-select'
- }
- },
- beforeCreate: function beforeCreate() {
- this.panel = time_select;
- }
- });
- // CONCATENATED MODULE: ./packages/time-select/index.js
- /* istanbul ignore next */
- picker_time_select.install = function (Vue) {
- Vue.component(picker_time_select.name, picker_time_select);
- };
- /* harmony default export */ var packages_time_select = (picker_time_select);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-range.vue?vue&type=template&id=fb28660e&
- var time_rangevue_type_template_id_fb28660e_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "after-leave": function($event) {
- _vm.$emit("dodestroy")
- }
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-time-range-picker el-picker-panel el-popper",
- class: _vm.popperClass
- },
- [
- _c("div", { staticClass: "el-time-range-picker__content" }, [
- _c("div", { staticClass: "el-time-range-picker__cell" }, [
- _c("div", { staticClass: "el-time-range-picker__header" }, [
- _vm._v(_vm._s(_vm.t("el.datepicker.startTime")))
- ]),
- _c(
- "div",
- {
- staticClass:
- "el-time-range-picker__body el-time-panel__content",
- class: {
- "has-seconds": _vm.showSeconds,
- "is-arrow": _vm.arrowControl
- }
- },
- [
- _c("time-spinner", {
- ref: "minSpinner",
- attrs: {
- "show-seconds": _vm.showSeconds,
- "am-pm-mode": _vm.amPmMode,
- "arrow-control": _vm.arrowControl,
- date: _vm.minDate
- },
- on: {
- change: _vm.handleMinChange,
- "select-range": _vm.setMinSelectionRange
- }
- })
- ],
- 1
- )
- ]),
- _c("div", { staticClass: "el-time-range-picker__cell" }, [
- _c("div", { staticClass: "el-time-range-picker__header" }, [
- _vm._v(_vm._s(_vm.t("el.datepicker.endTime")))
- ]),
- _c(
- "div",
- {
- staticClass:
- "el-time-range-picker__body el-time-panel__content",
- class: {
- "has-seconds": _vm.showSeconds,
- "is-arrow": _vm.arrowControl
- }
- },
- [
- _c("time-spinner", {
- ref: "maxSpinner",
- attrs: {
- "show-seconds": _vm.showSeconds,
- "am-pm-mode": _vm.amPmMode,
- "arrow-control": _vm.arrowControl,
- date: _vm.maxDate
- },
- on: {
- change: _vm.handleMaxChange,
- "select-range": _vm.setMaxSelectionRange
- }
- })
- ],
- 1
- )
- ])
- ]),
- _c("div", { staticClass: "el-time-panel__footer" }, [
- _c(
- "button",
- {
- staticClass: "el-time-panel__btn cancel",
- attrs: { type: "button" },
- on: {
- click: function($event) {
- _vm.handleCancel()
- }
- }
- },
- [_vm._v(_vm._s(_vm.t("el.datepicker.cancel")))]
- ),
- _c(
- "button",
- {
- staticClass: "el-time-panel__btn confirm",
- attrs: { type: "button", disabled: _vm.btnDisabled },
- on: {
- click: function($event) {
- _vm.handleConfirm()
- }
- }
- },
- [_vm._v(_vm._s(_vm.t("el.datepicker.confirm")))]
- )
- ])
- ]
- )
- ]
- )
- }
- var time_rangevue_type_template_id_fb28660e_staticRenderFns = []
- time_rangevue_type_template_id_fb28660e_render._withStripped = true
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue?vue&type=template&id=fb28660e&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-range.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var MIN_TIME = Object(date_util_["parseDate"])('00:00:00', 'HH:mm:ss');
- var MAX_TIME = Object(date_util_["parseDate"])('23:59:59', 'HH:mm:ss');
- var time_rangevue_type_script_lang_js_minTimeOfDay = function minTimeOfDay(date) {
- return Object(date_util_["modifyDate"])(MIN_TIME, date.getFullYear(), date.getMonth(), date.getDate());
- };
- var time_rangevue_type_script_lang_js_maxTimeOfDay = function maxTimeOfDay(date) {
- return Object(date_util_["modifyDate"])(MAX_TIME, date.getFullYear(), date.getMonth(), date.getDate());
- };
- // increase time by amount of milliseconds, but within the range of day
- var advanceTime = function advanceTime(date, amount) {
- return new Date(Math.min(date.getTime() + amount, time_rangevue_type_script_lang_js_maxTimeOfDay(date).getTime()));
- };
- /* harmony default export */ var time_rangevue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- components: { TimeSpinner: time_spinner },
- computed: {
- showSeconds: function showSeconds() {
- return (this.format || '').indexOf('ss') !== -1;
- },
- offset: function offset() {
- return this.showSeconds ? 11 : 8;
- },
- spinner: function spinner() {
- return this.selectionRange[0] < this.offset ? this.$refs.minSpinner : this.$refs.maxSpinner;
- },
- btnDisabled: function btnDisabled() {
- return this.minDate.getTime() > this.maxDate.getTime();
- },
- amPmMode: function amPmMode() {
- if ((this.format || '').indexOf('A') !== -1) return 'A';
- if ((this.format || '').indexOf('a') !== -1) return 'a';
- return '';
- }
- },
- data: function data() {
- return {
- popperClass: '',
- minDate: new Date(),
- maxDate: new Date(),
- value: [],
- oldValue: [new Date(), new Date()],
- defaultValue: null,
- format: 'HH:mm:ss',
- visible: false,
- selectionRange: [0, 2],
- arrowControl: false
- };
- },
- watch: {
- value: function value(_value) {
- if (Array.isArray(_value)) {
- this.minDate = new Date(_value[0]);
- this.maxDate = new Date(_value[1]);
- } else {
- if (Array.isArray(this.defaultValue)) {
- this.minDate = new Date(this.defaultValue[0]);
- this.maxDate = new Date(this.defaultValue[1]);
- } else if (this.defaultValue) {
- this.minDate = new Date(this.defaultValue);
- this.maxDate = advanceTime(new Date(this.defaultValue), 60 * 60 * 1000);
- } else {
- this.minDate = new Date();
- this.maxDate = advanceTime(new Date(), 60 * 60 * 1000);
- }
- }
- },
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.oldValue = this.value;
- this.$nextTick(function () {
- return _this.$refs.minSpinner.emitSelectRange('hours');
- });
- }
- }
- },
- methods: {
- handleClear: function handleClear() {
- this.$emit('pick', null);
- },
- handleCancel: function handleCancel() {
- this.$emit('pick', this.oldValue);
- },
- handleMinChange: function handleMinChange(date) {
- this.minDate = Object(date_util_["clearMilliseconds"])(date);
- this.handleChange();
- },
- handleMaxChange: function handleMaxChange(date) {
- this.maxDate = Object(date_util_["clearMilliseconds"])(date);
- this.handleChange();
- },
- handleChange: function handleChange() {
- if (this.isValidValue([this.minDate, this.maxDate])) {
- this.$refs.minSpinner.selectableRange = [[time_rangevue_type_script_lang_js_minTimeOfDay(this.minDate), this.maxDate]];
- this.$refs.maxSpinner.selectableRange = [[this.minDate, time_rangevue_type_script_lang_js_maxTimeOfDay(this.maxDate)]];
- this.$emit('pick', [this.minDate, this.maxDate], true);
- }
- },
- setMinSelectionRange: function setMinSelectionRange(start, end) {
- this.$emit('select-range', start, end, 'min');
- this.selectionRange = [start, end];
- },
- setMaxSelectionRange: function setMaxSelectionRange(start, end) {
- this.$emit('select-range', start, end, 'max');
- this.selectionRange = [start + this.offset, end + this.offset];
- },
- handleConfirm: function handleConfirm() {
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- var minSelectableRange = this.$refs.minSpinner.selectableRange;
- var maxSelectableRange = this.$refs.maxSpinner.selectableRange;
- this.minDate = Object(date_util_["limitTimeRange"])(this.minDate, minSelectableRange, this.format);
- this.maxDate = Object(date_util_["limitTimeRange"])(this.maxDate, maxSelectableRange, this.format);
- this.$emit('pick', [this.minDate, this.maxDate], visible);
- },
- adjustSpinners: function adjustSpinners() {
- this.$refs.minSpinner.adjustSpinners();
- this.$refs.maxSpinner.adjustSpinners();
- },
- changeSelectionRange: function changeSelectionRange(step) {
- var list = this.showSeconds ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
- var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
- var index = list.indexOf(this.selectionRange[0]);
- var next = (index + step + list.length) % list.length;
- var half = list.length / 2;
- if (next < half) {
- this.$refs.minSpinner.emitSelectRange(mapping[next]);
- } else {
- this.$refs.maxSpinner.emitSelectRange(mapping[next - half]);
- }
- },
- isValidValue: function isValidValue(date) {
- return Array.isArray(date) && Object(date_util_["timeWithinRange"])(this.minDate, this.$refs.minSpinner.selectableRange) && Object(date_util_["timeWithinRange"])(this.maxDate, this.$refs.maxSpinner.selectableRange);
- },
- handleKeydown: function handleKeydown(event) {
- var keyCode = event.keyCode;
- var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
- // Left or Right
- if (keyCode === 37 || keyCode === 39) {
- var step = mapping[keyCode];
- this.changeSelectionRange(step);
- event.preventDefault();
- return;
- }
- // Up or Down
- if (keyCode === 38 || keyCode === 40) {
- var _step = mapping[keyCode];
- this.spinner.scrollDown(_step);
- event.preventDefault();
- return;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue?vue&type=script&lang=js&
- /* harmony default export */ var panel_time_rangevue_type_script_lang_js_ = (time_rangevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue
- /* normalize component */
- var time_range_component = normalizeComponent(
- panel_time_rangevue_type_script_lang_js_,
- time_rangevue_type_template_id_fb28660e_render,
- time_rangevue_type_template_id_fb28660e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var time_range_api; }
- time_range_component.options.__file = "packages/date-picker/src/panel/time-range.vue"
- /* harmony default export */ var time_range = (time_range_component.exports);
- // CONCATENATED MODULE: ./packages/date-picker/src/picker/time-picker.js
- /* harmony default export */ var time_picker = ({
- mixins: [picker],
- name: 'ElTimePicker',
- props: {
- isRange: Boolean,
- arrowControl: Boolean
- },
- data: function data() {
- return {
- type: ''
- };
- },
- watch: {
- isRange: function isRange(_isRange) {
- if (this.picker) {
- this.unmountPicker();
- this.type = _isRange ? 'timerange' : 'time';
- this.panel = _isRange ? time_range : panel_time;
- this.mountPicker();
- } else {
- this.type = _isRange ? 'timerange' : 'time';
- this.panel = _isRange ? time_range : panel_time;
- }
- }
- },
- created: function created() {
- this.type = this.isRange ? 'timerange' : 'time';
- this.panel = this.isRange ? time_range : panel_time;
- }
- });
- // CONCATENATED MODULE: ./packages/time-picker/index.js
- /* istanbul ignore next */
- time_picker.install = function (Vue) {
- Vue.component(time_picker.name, time_picker);
- };
- /* harmony default export */ var packages_time_picker = (time_picker);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=52060272&
- var mainvue_type_template_id_52060272_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "span",
- [
- _c(
- "transition",
- {
- attrs: { name: _vm.transition },
- on: {
- "after-enter": _vm.handleAfterEnter,
- "after-leave": _vm.handleAfterLeave
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.disabled && _vm.showPopper,
- expression: "!disabled && showPopper"
- }
- ],
- ref: "popper",
- staticClass: "el-popover el-popper",
- class: [_vm.popperClass, _vm.content && "el-popover--plain"],
- style: { width: _vm.width + "px" },
- attrs: {
- role: "tooltip",
- id: _vm.tooltipId,
- "aria-hidden":
- _vm.disabled || !_vm.showPopper ? "true" : "false"
- }
- },
- [
- _vm.title
- ? _c("div", {
- staticClass: "el-popover__title",
- domProps: { textContent: _vm._s(_vm.title) }
- })
- : _vm._e(),
- _vm._t("default", [_vm._v(_vm._s(_vm.content))])
- ],
- 2
- )
- ]
- ),
- _vm._t("reference")
- ],
- 2
- )
- }
- var mainvue_type_template_id_52060272_staticRenderFns = []
- mainvue_type_template_id_52060272_render._withStripped = true
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=52060272&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
- name: 'ElPopover',
- mixins: [vue_popper_default.a],
- props: {
- trigger: {
- type: String,
- default: 'click',
- validator: function validator(value) {
- return ['click', 'focus', 'hover', 'manual'].indexOf(value) > -1;
- }
- },
- openDelay: {
- type: Number,
- default: 0
- },
- closeDelay: {
- type: Number,
- default: 200
- },
- title: String,
- disabled: Boolean,
- content: String,
- reference: {},
- popperClass: String,
- width: {},
- visibleArrow: {
- default: true
- },
- arrowOffset: {
- type: Number,
- default: 0
- },
- transition: {
- type: String,
- default: 'fade-in-linear'
- },
- tabindex: {
- type: Number,
- default: 0
- }
- },
- computed: {
- tooltipId: function tooltipId() {
- return 'el-popover-' + Object(util_["generateId"])();
- }
- },
- watch: {
- showPopper: function showPopper(val) {
- if (this.disabled) {
- return;
- }
- val ? this.$emit('show') : this.$emit('hide');
- }
- },
- mounted: function mounted() {
- var _this = this;
- var reference = this.referenceElm = this.reference || this.$refs.reference;
- var popper = this.popper || this.$refs.popper;
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
- reference = this.referenceElm = this.$slots.reference[0].elm;
- }
- // 可访问性
- if (reference) {
- Object(dom_["addClass"])(reference, 'el-popover__reference');
- reference.setAttribute('aria-describedby', this.tooltipId);
- reference.setAttribute('tabindex', this.tabindex); // tab序列
- popper.setAttribute('tabindex', 0);
- if (this.trigger !== 'click') {
- Object(dom_["on"])(reference, 'focusin', function () {
- _this.handleFocus();
- var instance = reference.__vue__;
- if (instance && typeof instance.focus === 'function') {
- instance.focus();
- }
- });
- Object(dom_["on"])(popper, 'focusin', this.handleFocus);
- Object(dom_["on"])(reference, 'focusout', this.handleBlur);
- Object(dom_["on"])(popper, 'focusout', this.handleBlur);
- }
- Object(dom_["on"])(reference, 'keydown', this.handleKeydown);
- Object(dom_["on"])(reference, 'click', this.handleClick);
- }
- if (this.trigger === 'click') {
- Object(dom_["on"])(reference, 'click', this.doToggle);
- Object(dom_["on"])(document, 'click', this.handleDocumentClick);
- } else if (this.trigger === 'hover') {
- Object(dom_["on"])(reference, 'mouseenter', this.handleMouseEnter);
- Object(dom_["on"])(popper, 'mouseenter', this.handleMouseEnter);
- Object(dom_["on"])(reference, 'mouseleave', this.handleMouseLeave);
- Object(dom_["on"])(popper, 'mouseleave', this.handleMouseLeave);
- } else if (this.trigger === 'focus') {
- if (this.tabindex < 0) {
- console.warn('[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key');
- }
- if (reference.querySelector('input, textarea')) {
- Object(dom_["on"])(reference, 'focusin', this.doShow);
- Object(dom_["on"])(reference, 'focusout', this.doClose);
- } else {
- Object(dom_["on"])(reference, 'mousedown', this.doShow);
- Object(dom_["on"])(reference, 'mouseup', this.doClose);
- }
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.cleanup();
- },
- deactivated: function deactivated() {
- this.cleanup();
- },
- methods: {
- doToggle: function doToggle() {
- this.showPopper = !this.showPopper;
- },
- doShow: function doShow() {
- this.showPopper = true;
- },
- doClose: function doClose() {
- this.showPopper = false;
- },
- handleFocus: function handleFocus() {
- Object(dom_["addClass"])(this.referenceElm, 'focusing');
- if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = true;
- },
- handleClick: function handleClick() {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- },
- handleBlur: function handleBlur() {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = false;
- },
- handleMouseEnter: function handleMouseEnter() {
- var _this2 = this;
- clearTimeout(this._timer);
- if (this.openDelay) {
- this._timer = setTimeout(function () {
- _this2.showPopper = true;
- }, this.openDelay);
- } else {
- this.showPopper = true;
- }
- },
- handleKeydown: function handleKeydown(ev) {
- if (ev.keyCode === 27 && this.trigger !== 'manual') {
- // esc
- this.doClose();
- }
- },
- handleMouseLeave: function handleMouseLeave() {
- var _this3 = this;
- clearTimeout(this._timer);
- if (this.closeDelay) {
- this._timer = setTimeout(function () {
- _this3.showPopper = false;
- }, this.closeDelay);
- } else {
- this.showPopper = false;
- }
- },
- handleDocumentClick: function handleDocumentClick(e) {
- var reference = this.reference || this.$refs.reference;
- var popper = this.popper || this.$refs.popper;
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
- reference = this.referenceElm = this.$slots.reference[0].elm;
- }
- if (!this.$el || !reference || this.$el.contains(e.target) || reference.contains(e.target) || !popper || popper.contains(e.target)) return;
- this.showPopper = false;
- },
- handleAfterEnter: function handleAfterEnter() {
- this.$emit('after-enter');
- },
- handleAfterLeave: function handleAfterLeave() {
- this.$emit('after-leave');
- this.doDestroy();
- },
- cleanup: function cleanup() {
- if (this.openDelay || this.closeDelay) {
- clearTimeout(this._timer);
- }
- }
- },
- destroyed: function destroyed() {
- var reference = this.reference;
- Object(dom_["off"])(reference, 'click', this.doToggle);
- Object(dom_["off"])(reference, 'mouseup', this.doClose);
- Object(dom_["off"])(reference, 'mousedown', this.doShow);
- Object(dom_["off"])(reference, 'focusin', this.doShow);
- Object(dom_["off"])(reference, 'focusout', this.doClose);
- Object(dom_["off"])(reference, 'mousedown', this.doShow);
- Object(dom_["off"])(reference, 'mouseup', this.doClose);
- Object(dom_["off"])(reference, 'mouseleave', this.handleMouseLeave);
- Object(dom_["off"])(reference, 'mouseenter', this.handleMouseEnter);
- Object(dom_["off"])(document, 'click', this.handleDocumentClick);
- }
- });
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/popover/src/main.vue
- /* normalize component */
- var main_component = normalizeComponent(
- src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_52060272_render,
- mainvue_type_template_id_52060272_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var main_api; }
- main_component.options.__file = "packages/popover/src/main.vue"
- /* harmony default export */ var main = (main_component.exports);
- // CONCATENATED MODULE: ./packages/popover/src/directive.js
- var getReference = function getReference(el, binding, vnode) {
- var _ref = binding.expression ? binding.value : binding.arg;
- var popper = vnode.context.$refs[_ref];
- if (popper) {
- if (Array.isArray(popper)) {
- popper[0].$refs.reference = el;
- } else {
- popper.$refs.reference = el;
- }
- }
- };
- /* harmony default export */ var directive = ({
- bind: function bind(el, binding, vnode) {
- getReference(el, binding, vnode);
- },
- inserted: function inserted(el, binding, vnode) {
- getReference(el, binding, vnode);
- }
- });
- // CONCATENATED MODULE: ./packages/popover/index.js
- external_vue_default.a.directive('popover', directive);
- /* istanbul ignore next */
- main.install = function (Vue) {
- Vue.directive('popover', directive);
- Vue.component(main.name, main);
- };
- main.directive = directive;
- /* harmony default export */ var popover = (main);
- // CONCATENATED MODULE: ./packages/tooltip/src/main.js
- /* harmony default export */ var src_main = ({
- name: 'ElTooltip',
- mixins: [vue_popper_default.a],
- props: {
- openDelay: {
- type: Number,
- default: 0
- },
- disabled: Boolean,
- manual: Boolean,
- effect: {
- type: String,
- default: 'dark'
- },
- arrowOffset: {
- type: Number,
- default: 0
- },
- popperClass: String,
- content: String,
- visibleArrow: {
- default: true
- },
- transition: {
- type: String,
- default: 'el-fade-in-linear'
- },
- popperOptions: {
- default: function _default() {
- return {
- boundariesPadding: 10,
- gpuAcceleration: false
- };
- }
- },
- enterable: {
- type: Boolean,
- default: true
- },
- hideAfter: {
- type: Number,
- default: 0
- },
- tabindex: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
- timeoutPending: null,
- focusing: false
- };
- },
- beforeCreate: function beforeCreate() {
- var _this = this;
- if (this.$isServer) return;
- this.popperVM = new external_vue_default.a({
- data: { node: '' },
- render: function render(h) {
- return this.node;
- }
- }).$mount();
- this.debounceClose = debounce_default()(200, function () {
- return _this.handleClosePopper();
- });
- },
- render: function render(h) {
- var _this2 = this;
- if (this.popperVM) {
- this.popperVM.node = h(
- 'transition',
- {
- attrs: {
- name: this.transition
- },
- on: {
- 'afterLeave': this.doDestroy
- }
- },
- [h(
- 'div',
- {
- on: {
- 'mouseleave': function mouseleave() {
- _this2.setExpectedState(false);_this2.debounceClose();
- },
- 'mouseenter': function mouseenter() {
- _this2.setExpectedState(true);
- }
- },
- ref: 'popper',
- attrs: { role: 'tooltip',
- id: this.tooltipId,
- 'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
- },
- directives: [{
- name: 'show',
- value: !this.disabled && this.showPopper
- }],
- 'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
- [this.$slots.content || this.content]
- )]
- );
- }
- var firstElement = this.getFirstElement();
- if (!firstElement) return null;
- var data = firstElement.data = firstElement.data || {};
- data.staticClass = this.addTooltipClass(data.staticClass);
- return firstElement;
- },
- mounted: function mounted() {
- var _this3 = this;
- this.referenceElm = this.$el;
- if (this.$el.nodeType === 1) {
- this.$el.setAttribute('aria-describedby', this.tooltipId);
- this.$el.setAttribute('tabindex', this.tabindex);
- Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
- Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
- Object(dom_["on"])(this.referenceElm, 'focus', function () {
- if (!_this3.$slots.default || !_this3.$slots.default.length) {
- _this3.handleFocus();
- return;
- }
- var instance = _this3.$slots.default[0].componentInstance;
- if (instance && instance.focus) {
- instance.focus();
- } else {
- _this3.handleFocus();
- }
- });
- Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
- Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
- }
- // fix issue https://github.com/ElemeFE/element/issues/14424
- if (this.value && this.popperVM) {
- this.popperVM.$nextTick(function () {
- if (_this3.value) {
- _this3.updatePopper();
- }
- });
- }
- },
- watch: {
- focusing: function focusing(val) {
- if (val) {
- Object(dom_["addClass"])(this.referenceElm, 'focusing');
- } else {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- }
- }
- },
- methods: {
- show: function show() {
- this.setExpectedState(true);
- this.handleShowPopper();
- },
- hide: function hide() {
- this.setExpectedState(false);
- this.debounceClose();
- },
- handleFocus: function handleFocus() {
- this.focusing = true;
- this.show();
- },
- handleBlur: function handleBlur() {
- this.focusing = false;
- this.hide();
- },
- removeFocusing: function removeFocusing() {
- this.focusing = false;
- },
- addTooltipClass: function addTooltipClass(prev) {
- if (!prev) {
- return 'el-tooltip';
- } else {
- return 'el-tooltip ' + prev.replace('el-tooltip', '');
- }
- },
- handleShowPopper: function handleShowPopper() {
- var _this4 = this;
- if (!this.expectedState || this.manual) return;
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this4.showPopper = true;
- }, this.openDelay);
- if (this.hideAfter > 0) {
- this.timeoutPending = setTimeout(function () {
- _this4.showPopper = false;
- }, this.hideAfter);
- }
- },
- handleClosePopper: function handleClosePopper() {
- if (this.enterable && this.expectedState || this.manual) return;
- clearTimeout(this.timeout);
- if (this.timeoutPending) {
- clearTimeout(this.timeoutPending);
- }
- this.showPopper = false;
- if (this.disabled) {
- this.doDestroy();
- }
- },
- setExpectedState: function setExpectedState(expectedState) {
- if (expectedState === false) {
- clearTimeout(this.timeoutPending);
- }
- this.expectedState = expectedState;
- },
- getFirstElement: function getFirstElement() {
- var slots = this.$slots.default;
- if (!Array.isArray(slots)) return null;
- var element = null;
- for (var index = 0; index < slots.length; index++) {
- if (slots[index] && slots[index].tag) {
- element = slots[index];
- };
- }
- return element;
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.popperVM && this.popperVM.$destroy();
- },
- destroyed: function destroyed() {
- var reference = this.referenceElm;
- if (reference.nodeType === 1) {
- Object(dom_["off"])(reference, 'mouseenter', this.show);
- Object(dom_["off"])(reference, 'mouseleave', this.hide);
- Object(dom_["off"])(reference, 'focus', this.handleFocus);
- Object(dom_["off"])(reference, 'blur', this.handleBlur);
- Object(dom_["off"])(reference, 'click', this.removeFocusing);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/tooltip/index.js
- /* istanbul ignore next */
- src_main.install = function (Vue) {
- Vue.component(src_main.name, src_main);
- };
- /* harmony default export */ var packages_tooltip = (src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=template&id=6b29b012&
- var mainvue_type_template_id_6b29b012_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "msgbox-fade" } }, [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-message-box__wrapper",
- attrs: {
- tabindex: "-1",
- role: "dialog",
- "aria-modal": "true",
- "aria-label": _vm.title || "dialog"
- },
- on: {
- click: function($event) {
- if ($event.target !== $event.currentTarget) {
- return null
- }
- return _vm.handleWrapperClick($event)
- }
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-message-box",
- class: [_vm.customClass, _vm.center && "el-message-box--center"]
- },
- [
- _vm.title !== null
- ? _c("div", { staticClass: "el-message-box__header" }, [
- _c("div", { staticClass: "el-message-box__title" }, [
- _vm.icon && _vm.center
- ? _c("div", {
- class: ["el-message-box__status", _vm.icon]
- })
- : _vm._e(),
- _c("span", [_vm._v(_vm._s(_vm.title))])
- ]),
- _vm.showClose
- ? _c(
- "button",
- {
- staticClass: "el-message-box__headerbtn",
- attrs: { type: "button", "aria-label": "Close" },
- on: {
- click: function($event) {
- _vm.handleAction(
- _vm.distinguishCancelAndClose
- ? "close"
- : "cancel"
- )
- },
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- _vm.handleAction(
- _vm.distinguishCancelAndClose
- ? "close"
- : "cancel"
- )
- }
- }
- },
- [
- _c("i", {
- staticClass: "el-message-box__close el-icon-close"
- })
- ]
- )
- : _vm._e()
- ])
- : _vm._e(),
- _c("div", { staticClass: "el-message-box__content" }, [
- _c("div", { staticClass: "el-message-box__container" }, [
- _vm.icon && !_vm.center && _vm.message !== ""
- ? _c("div", { class: ["el-message-box__status", _vm.icon] })
- : _vm._e(),
- _vm.message !== ""
- ? _c(
- "div",
- { staticClass: "el-message-box__message" },
- [
- _vm._t("default", [
- !_vm.dangerouslyUseHTMLString
- ? _c("p", [_vm._v(_vm._s(_vm.message))])
- : _c("p", {
- domProps: { innerHTML: _vm._s(_vm.message) }
- })
- ])
- ],
- 2
- )
- : _vm._e()
- ]),
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showInput,
- expression: "showInput"
- }
- ],
- staticClass: "el-message-box__input"
- },
- [
- _c("el-input", {
- ref: "input",
- attrs: {
- type: _vm.inputType,
- placeholder: _vm.inputPlaceholder
- },
- nativeOn: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- return _vm.handleInputEnter($event)
- }
- },
- model: {
- value: _vm.inputValue,
- callback: function($$v) {
- _vm.inputValue = $$v
- },
- expression: "inputValue"
- }
- }),
- _c(
- "div",
- {
- staticClass: "el-message-box__errormsg",
- style: {
- visibility: !!_vm.editorErrorMessage
- ? "visible"
- : "hidden"
- }
- },
- [_vm._v(_vm._s(_vm.editorErrorMessage))]
- )
- ],
- 1
- )
- ]),
- _c(
- "div",
- { staticClass: "el-message-box__btns" },
- [
- _vm.showCancelButton
- ? _c(
- "el-button",
- {
- class: [_vm.cancelButtonClasses],
- attrs: {
- loading: _vm.cancelButtonLoading,
- round: _vm.roundButton,
- size: "small"
- },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- _vm.handleAction("cancel")
- }
- },
- nativeOn: {
- click: function($event) {
- _vm.handleAction("cancel")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(
- _vm.cancelButtonText ||
- _vm.t("el.messagebox.cancel")
- ) +
- "\n "
- )
- ]
- )
- : _vm._e(),
- _c(
- "el-button",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showConfirmButton,
- expression: "showConfirmButton"
- }
- ],
- ref: "confirm",
- class: [_vm.confirmButtonClasses],
- attrs: {
- loading: _vm.confirmButtonLoading,
- round: _vm.roundButton,
- size: "small"
- },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- _vm.handleAction("confirm")
- }
- },
- nativeOn: {
- click: function($event) {
- _vm.handleAction("confirm")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(
- _vm.confirmButtonText ||
- _vm.t("el.messagebox.confirm")
- ) +
- "\n "
- )
- ]
- )
- ],
- 1
- )
- ]
- )
- ]
- )
- ])
- }
- var mainvue_type_template_id_6b29b012_staticRenderFns = []
- mainvue_type_template_id_6b29b012_render._withStripped = true
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=template&id=6b29b012&
- // EXTERNAL MODULE: external "element-ui/lib/utils/aria-dialog"
- var aria_dialog_ = __webpack_require__(39);
- var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var messageBox = void 0;
- var typeMap = {
- success: 'success',
- info: 'info',
- warning: 'warning',
- error: 'error'
- };
- /* harmony default export */ var message_box_src_mainvue_type_script_lang_js_ = ({
- mixins: [popup_default.a, locale_default.a],
- props: {
- modal: {
- default: true
- },
- lockScroll: {
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- closeOnClickModal: {
- default: true
- },
- closeOnPressEscape: {
- default: true
- },
- closeOnHashChange: {
- default: true
- },
- center: {
- default: false,
- type: Boolean
- },
- roundButton: {
- default: false,
- type: Boolean
- }
- },
- components: {
- ElInput: input_default.a,
- ElButton: button_default.a
- },
- computed: {
- icon: function icon() {
- var type = this.type,
- iconClass = this.iconClass;
- return iconClass || (type && typeMap[type] ? 'el-icon-' + typeMap[type] : '');
- },
- confirmButtonClasses: function confirmButtonClasses() {
- return 'el-button--primary ' + this.confirmButtonClass;
- },
- cancelButtonClasses: function cancelButtonClasses() {
- return '' + this.cancelButtonClass;
- }
- },
- methods: {
- getSafeClose: function getSafeClose() {
- var _this = this;
- var currentId = this.uid;
- return function () {
- _this.$nextTick(function () {
- if (currentId === _this.uid) _this.doClose();
- });
- };
- },
- doClose: function doClose() {
- var _this2 = this;
- if (!this.visible) return;
- this.visible = false;
- this._closing = true;
- this.onClose && this.onClose();
- messageBox.closeDialog(); // 解绑
- if (this.lockScroll) {
- setTimeout(this.restoreBodyStyle, 200);
- }
- this.opened = false;
- this.doAfterClose();
- setTimeout(function () {
- if (_this2.action) _this2.callback(_this2.action, _this2);
- });
- },
- handleWrapperClick: function handleWrapperClick() {
- if (this.closeOnClickModal) {
- this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel');
- }
- },
- handleInputEnter: function handleInputEnter() {
- if (this.inputType !== 'textarea') {
- return this.handleAction('confirm');
- }
- },
- handleAction: function handleAction(action) {
- if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
- return;
- }
- this.action = action;
- if (typeof this.beforeClose === 'function') {
- this.close = this.getSafeClose();
- this.beforeClose(action, this, this.close);
- } else {
- this.doClose();
- }
- },
- validate: function validate() {
- if (this.$type === 'prompt') {
- var inputPattern = this.inputPattern;
- if (inputPattern && !inputPattern.test(this.inputValue || '')) {
- this.editorErrorMessage = this.inputErrorMessage || Object(lib_locale_["t"])('el.messagebox.error');
- Object(dom_["addClass"])(this.getInputElement(), 'invalid');
- return false;
- }
- var inputValidator = this.inputValidator;
- if (typeof inputValidator === 'function') {
- var validateResult = inputValidator(this.inputValue);
- if (validateResult === false) {
- this.editorErrorMessage = this.inputErrorMessage || Object(lib_locale_["t"])('el.messagebox.error');
- Object(dom_["addClass"])(this.getInputElement(), 'invalid');
- return false;
- }
- if (typeof validateResult === 'string') {
- this.editorErrorMessage = validateResult;
- Object(dom_["addClass"])(this.getInputElement(), 'invalid');
- return false;
- }
- }
- }
- this.editorErrorMessage = '';
- Object(dom_["removeClass"])(this.getInputElement(), 'invalid');
- return true;
- },
- getFirstFocus: function getFirstFocus() {
- var btn = this.$el.querySelector('.el-message-box__btns .el-button');
- var title = this.$el.querySelector('.el-message-box__btns .el-message-box__title');
- return btn || title;
- },
- getInputElement: function getInputElement() {
- var inputRefs = this.$refs.input.$refs;
- return inputRefs.input || inputRefs.textarea;
- },
- handleClose: function handleClose() {
- this.handleAction('close');
- }
- },
- watch: {
- inputValue: {
- immediate: true,
- handler: function handler(val) {
- var _this3 = this;
- this.$nextTick(function (_) {
- if (_this3.$type === 'prompt' && val !== null) {
- _this3.validate();
- }
- });
- }
- },
- visible: function visible(val) {
- var _this4 = this;
- if (val) {
- this.uid++;
- if (this.$type === 'alert' || this.$type === 'confirm') {
- this.$nextTick(function () {
- _this4.$refs.confirm.$el.focus();
- });
- }
- this.focusAfterClosed = document.activeElement;
- messageBox = new aria_dialog_default.a(this.$el, this.focusAfterClosed, this.getFirstFocus());
- }
- // prompt
- if (this.$type !== 'prompt') return;
- if (val) {
- setTimeout(function () {
- if (_this4.$refs.input && _this4.$refs.input.$el) {
- _this4.getInputElement().focus();
- }
- }, 500);
- } else {
- this.editorErrorMessage = '';
- Object(dom_["removeClass"])(this.getInputElement(), 'invalid');
- }
- }
- },
- mounted: function mounted() {
- var _this5 = this;
- this.$nextTick(function () {
- if (_this5.closeOnHashChange) {
- window.addEventListener('hashchange', _this5.close);
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.closeOnHashChange) {
- window.removeEventListener('hashchange', this.close);
- }
- setTimeout(function () {
- messageBox.closeDialog();
- });
- },
- data: function data() {
- return {
- uid: 1,
- title: undefined,
- message: '',
- type: '',
- iconClass: '',
- customClass: '',
- showInput: false,
- inputValue: null,
- inputPlaceholder: '',
- inputType: 'text',
- inputPattern: null,
- inputValidator: null,
- inputErrorMessage: '',
- showConfirmButton: true,
- showCancelButton: false,
- action: '',
- confirmButtonText: '',
- cancelButtonText: '',
- confirmButtonLoading: false,
- cancelButtonLoading: false,
- confirmButtonClass: '',
- confirmButtonDisabled: false,
- cancelButtonClass: '',
- editorErrorMessage: null,
- callback: null,
- dangerouslyUseHTMLString: false,
- focusAfterClosed: null,
- isOnComposition: false,
- distinguishCancelAndClose: false
- };
- }
- });
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_message_box_src_mainvue_type_script_lang_js_ = (message_box_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue
- /* normalize component */
- var src_main_component = normalizeComponent(
- packages_message_box_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_6b29b012_render,
- mainvue_type_template_id_6b29b012_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_main_api; }
- src_main_component.options.__file = "packages/message-box/src/main.vue"
- /* harmony default export */ var message_box_src_main = (src_main_component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/utils/vdom"
- var vdom_ = __webpack_require__(23);
- // CONCATENATED MODULE: ./packages/message-box/src/main.js
- var main_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- var main_defaults = {
- title: null,
- message: '',
- type: '',
- iconClass: '',
- showInput: false,
- showClose: true,
- modalFade: true,
- lockScroll: true,
- closeOnClickModal: true,
- closeOnPressEscape: true,
- closeOnHashChange: true,
- inputValue: null,
- inputPlaceholder: '',
- inputType: 'text',
- inputPattern: null,
- inputValidator: null,
- inputErrorMessage: '',
- showConfirmButton: true,
- showCancelButton: false,
- confirmButtonPosition: 'right',
- confirmButtonHighlight: false,
- cancelButtonHighlight: false,
- confirmButtonText: '',
- cancelButtonText: '',
- confirmButtonClass: '',
- cancelButtonClass: '',
- customClass: '',
- beforeClose: null,
- dangerouslyUseHTMLString: false,
- center: false,
- roundButton: false,
- distinguishCancelAndClose: false
- };
- var MessageBoxConstructor = external_vue_default.a.extend(message_box_src_main);
- var currentMsg = void 0,
- main_instance = void 0;
- var msgQueue = [];
- var defaultCallback = function defaultCallback(action) {
- if (currentMsg) {
- var callback = currentMsg.callback;
- if (typeof callback === 'function') {
- if (main_instance.showInput) {
- callback(main_instance.inputValue, action);
- } else {
- callback(action);
- }
- }
- if (currentMsg.resolve) {
- if (action === 'confirm') {
- if (main_instance.showInput) {
- currentMsg.resolve({ value: main_instance.inputValue, action: action });
- } else {
- currentMsg.resolve(action);
- }
- } else if (currentMsg.reject && (action === 'cancel' || action === 'close')) {
- currentMsg.reject(action);
- }
- }
- }
- };
- var initInstance = function initInstance() {
- main_instance = new MessageBoxConstructor({
- el: document.createElement('div')
- });
- main_instance.callback = defaultCallback;
- };
- var main_showNextMsg = function showNextMsg() {
- if (!main_instance) {
- initInstance();
- }
- main_instance.action = '';
- if (!main_instance.visible || main_instance.closeTimer) {
- if (msgQueue.length > 0) {
- currentMsg = msgQueue.shift();
- var options = currentMsg.options;
- for (var prop in options) {
- if (options.hasOwnProperty(prop)) {
- main_instance[prop] = options[prop];
- }
- }
- if (options.callback === undefined) {
- main_instance.callback = defaultCallback;
- }
- var oldCb = main_instance.callback;
- main_instance.callback = function (action, instance) {
- oldCb(action, instance);
- showNextMsg();
- };
- if (Object(vdom_["isVNode"])(main_instance.message)) {
- main_instance.$slots.default = [main_instance.message];
- main_instance.message = null;
- } else {
- delete main_instance.$slots.default;
- }
- ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape', 'closeOnHashChange'].forEach(function (prop) {
- if (main_instance[prop] === undefined) {
- main_instance[prop] = true;
- }
- });
- document.body.appendChild(main_instance.$el);
- external_vue_default.a.nextTick(function () {
- main_instance.visible = true;
- });
- }
- }
- };
- var main_MessageBox = function MessageBox(options, callback) {
- if (external_vue_default.a.prototype.$isServer) return;
- if (typeof options === 'string' || Object(vdom_["isVNode"])(options)) {
- options = {
- message: options
- };
- if (typeof arguments[1] === 'string') {
- options.title = arguments[1];
- }
- } else if (options.callback && !callback) {
- callback = options.callback;
- }
- if (typeof Promise !== 'undefined') {
- return new Promise(function (resolve, reject) {
- // eslint-disable-line
- msgQueue.push({
- options: merge_default()({}, main_defaults, MessageBox.defaults, options),
- callback: callback,
- resolve: resolve,
- reject: reject
- });
- main_showNextMsg();
- });
- } else {
- msgQueue.push({
- options: merge_default()({}, main_defaults, MessageBox.defaults, options),
- callback: callback
- });
- main_showNextMsg();
- }
- };
- main_MessageBox.setDefaults = function (defaults) {
- main_MessageBox.defaults = defaults;
- };
- main_MessageBox.alert = function (message, title, options) {
- if ((typeof title === 'undefined' ? 'undefined' : main_typeof(title)) === 'object') {
- options = title;
- title = '';
- } else if (title === undefined) {
- title = '';
- }
- return main_MessageBox(merge_default()({
- title: title,
- message: message,
- $type: 'alert',
- closeOnPressEscape: false,
- closeOnClickModal: false
- }, options));
- };
- main_MessageBox.confirm = function (message, title, options) {
- if ((typeof title === 'undefined' ? 'undefined' : main_typeof(title)) === 'object') {
- options = title;
- title = '';
- } else if (title === undefined) {
- title = '';
- }
- return main_MessageBox(merge_default()({
- title: title,
- message: message,
- $type: 'confirm',
- showCancelButton: true
- }, options));
- };
- main_MessageBox.prompt = function (message, title, options) {
- if ((typeof title === 'undefined' ? 'undefined' : main_typeof(title)) === 'object') {
- options = title;
- title = '';
- } else if (title === undefined) {
- title = '';
- }
- return main_MessageBox(merge_default()({
- title: title,
- message: message,
- showCancelButton: true,
- showInput: true,
- $type: 'prompt'
- }, options));
- };
- main_MessageBox.close = function () {
- main_instance.doClose();
- main_instance.visible = false;
- msgQueue = [];
- currentMsg = null;
- };
- /* harmony default export */ var packages_message_box_src_main = (main_MessageBox);
- // CONCATENATED MODULE: ./packages/message-box/index.js
- /* harmony default export */ var message_box = (packages_message_box_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb.vue?vue&type=template&id=4b464c06&
- var breadcrumbvue_type_template_id_4b464c06_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-breadcrumb",
- attrs: { "aria-label": "Breadcrumb", role: "navigation" }
- },
- [_vm._t("default")],
- 2
- )
- }
- var breadcrumbvue_type_template_id_4b464c06_staticRenderFns = []
- breadcrumbvue_type_template_id_4b464c06_render._withStripped = true
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue?vue&type=template&id=4b464c06&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- /* harmony default export */ var breadcrumbvue_type_script_lang_js_ = ({
- name: 'ElBreadcrumb',
- props: {
- separator: {
- type: String,
- default: '/'
- },
- separatorClass: {
- type: String,
- default: ''
- }
- },
- provide: function provide() {
- return {
- elBreadcrumb: this
- };
- },
- mounted: function mounted() {
- var items = this.$el.querySelectorAll('.el-breadcrumb__item');
- if (items.length) {
- items[items.length - 1].setAttribute('aria-current', 'page');
- }
- }
- });
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_breadcrumbvue_type_script_lang_js_ = (breadcrumbvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue
- /* normalize component */
- var breadcrumb_component = normalizeComponent(
- src_breadcrumbvue_type_script_lang_js_,
- breadcrumbvue_type_template_id_4b464c06_render,
- breadcrumbvue_type_template_id_4b464c06_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var breadcrumb_api; }
- breadcrumb_component.options.__file = "packages/breadcrumb/src/breadcrumb.vue"
- /* harmony default export */ var breadcrumb = (breadcrumb_component.exports);
- // CONCATENATED MODULE: ./packages/breadcrumb/index.js
- /* istanbul ignore next */
- breadcrumb.install = function (Vue) {
- Vue.component(breadcrumb.name, breadcrumb);
- };
- /* harmony default export */ var packages_breadcrumb = (breadcrumb);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=fcf9eaac&
- var breadcrumb_itemvue_type_template_id_fcf9eaac_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("span", { staticClass: "el-breadcrumb__item" }, [
- _c(
- "span",
- {
- ref: "link",
- class: ["el-breadcrumb__inner", _vm.to ? "is-link" : ""],
- attrs: { role: "link" }
- },
- [_vm._t("default")],
- 2
- ),
- _vm.separatorClass
- ? _c("i", {
- staticClass: "el-breadcrumb__separator",
- class: _vm.separatorClass
- })
- : _c(
- "span",
- {
- staticClass: "el-breadcrumb__separator",
- attrs: { role: "presentation" }
- },
- [_vm._v(_vm._s(_vm.separator))]
- )
- ])
- }
- var breadcrumb_itemvue_type_template_id_fcf9eaac_staticRenderFns = []
- breadcrumb_itemvue_type_template_id_fcf9eaac_render._withStripped = true
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=fcf9eaac&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var breadcrumb_itemvue_type_script_lang_js_ = ({
- name: 'ElBreadcrumbItem',
- props: {
- to: {},
- replace: Boolean
- },
- data: function data() {
- return {
- separator: '',
- separatorClass: ''
- };
- },
- inject: ['elBreadcrumb'],
- mounted: function mounted() {
- var _this = this;
- this.separator = this.elBreadcrumb.separator;
- this.separatorClass = this.elBreadcrumb.separatorClass;
- var link = this.$refs.link;
- link.setAttribute('role', 'link');
- link.addEventListener('click', function (_) {
- var to = _this.to,
- $router = _this.$router;
- if (!to || !$router) return;
- _this.replace ? $router.replace(to) : $router.push(to);
- });
- }
- });
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_breadcrumb_itemvue_type_script_lang_js_ = (breadcrumb_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue
- /* normalize component */
- var breadcrumb_item_component = normalizeComponent(
- src_breadcrumb_itemvue_type_script_lang_js_,
- breadcrumb_itemvue_type_template_id_fcf9eaac_render,
- breadcrumb_itemvue_type_template_id_fcf9eaac_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var breadcrumb_item_api; }
- breadcrumb_item_component.options.__file = "packages/breadcrumb/src/breadcrumb-item.vue"
- /* harmony default export */ var breadcrumb_item = (breadcrumb_item_component.exports);
- // CONCATENATED MODULE: ./packages/breadcrumb-item/index.js
- /* istanbul ignore next */
- breadcrumb_item.install = function (Vue) {
- Vue.component(breadcrumb_item.name, breadcrumb_item);
- };
- /* harmony default export */ var packages_breadcrumb_item = (breadcrumb_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form.vue?vue&type=template&id=a1b5ff34&
- var formvue_type_template_id_a1b5ff34_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "form",
- {
- staticClass: "el-form",
- class: [
- _vm.labelPosition ? "el-form--label-" + _vm.labelPosition : "",
- { "el-form--inline": _vm.inline }
- ]
- },
- [_vm._t("default")],
- 2
- )
- }
- var formvue_type_template_id_a1b5ff34_staticRenderFns = []
- formvue_type_template_id_a1b5ff34_render._withStripped = true
- // CONCATENATED MODULE: ./packages/form/src/form.vue?vue&type=template&id=a1b5ff34&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var formvue_type_script_lang_js_ = ({
- name: 'ElForm',
- componentName: 'ElForm',
- provide: function provide() {
- return {
- elForm: this
- };
- },
- props: {
- model: Object,
- rules: Object,
- labelPosition: String,
- labelWidth: String,
- labelSuffix: {
- type: String,
- default: ''
- },
- inline: Boolean,
- inlineMessage: Boolean,
- statusIcon: Boolean,
- showMessage: {
- type: Boolean,
- default: true
- },
- size: String,
- disabled: Boolean,
- validateOnRuleChange: {
- type: Boolean,
- default: true
- },
- hideRequiredAsterisk: {
- type: Boolean,
- default: false
- }
- },
- watch: {
- rules: function rules() {
- // remove then add event listeners on form-item after form rules change
- this.fields.forEach(function (field) {
- field.removeValidateEvents();
- field.addValidateEvents();
- });
- if (this.validateOnRuleChange) {
- this.validate(function () {});
- }
- }
- },
- computed: {
- autoLabelWidth: function autoLabelWidth() {
- if (!this.potentialLabelWidthArr.length) return 0;
- var max = Math.max.apply(Math, this.potentialLabelWidthArr);
- return max ? max + 'px' : '';
- }
- },
- data: function data() {
- return {
- fields: [],
- potentialLabelWidthArr: [] // use this array to calculate auto width
- };
- },
- created: function created() {
- var _this = this;
- this.$on('el.form.addField', function (field) {
- if (field) {
- _this.fields.push(field);
- }
- });
- /* istanbul ignore next */
- this.$on('el.form.removeField', function (field) {
- if (field.prop) {
- _this.fields.splice(_this.fields.indexOf(field), 1);
- }
- });
- },
- methods: {
- resetFields: function resetFields() {
- if (!this.model) {
- console.warn('[Element Warn][Form]model is required for resetFields to work.');
- return;
- }
- this.fields.forEach(function (field) {
- field.resetField();
- });
- },
- clearValidate: function clearValidate() {
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {
- return props === field.prop;
- }) : this.fields.filter(function (field) {
- return props.indexOf(field.prop) > -1;
- }) : this.fields;
- fields.forEach(function (field) {
- field.clearValidate();
- });
- },
- validate: function validate(callback) {
- var _this2 = this;
- if (!this.model) {
- console.warn('[Element Warn][Form]model is required for validate to work!');
- return;
- }
- var promise = void 0;
- // if no callback, return promise
- if (typeof callback !== 'function' && window.Promise) {
- promise = new window.Promise(function (resolve, reject) {
- callback = function callback(valid) {
- valid ? resolve(valid) : reject(valid);
- };
- });
- }
- var valid = true;
- var count = 0;
- // 如果需要验证的fields为空,调用验证时立刻返回callback
- if (this.fields.length === 0 && callback) {
- callback(true);
- }
- var invalidFields = {};
- this.fields.forEach(function (field) {
- field.validate('', function (message, field) {
- if (message) {
- valid = false;
- }
- invalidFields = merge_default()({}, invalidFields, field);
- if (typeof callback === 'function' && ++count === _this2.fields.length) {
- callback(valid, invalidFields);
- }
- });
- });
- if (promise) {
- return promise;
- }
- },
- validateField: function validateField(props, cb) {
- props = [].concat(props);
- var fields = this.fields.filter(function (field) {
- return props.indexOf(field.prop) !== -1;
- });
- if (!fields.length) {
- console.warn('[Element Warn]please pass correct props!');
- return;
- }
- fields.forEach(function (field) {
- field.validate('', cb);
- });
- },
- getLabelWidthIndex: function getLabelWidthIndex(width) {
- var index = this.potentialLabelWidthArr.indexOf(width);
- // it's impossible
- if (index === -1) {
- throw new Error('[ElementForm]unpected width ', width);
- }
- return index;
- },
- registerLabelWidth: function registerLabelWidth(val, oldVal) {
- if (val && oldVal) {
- var index = this.getLabelWidthIndex(oldVal);
- this.potentialLabelWidthArr.splice(index, 1, val);
- } else if (val) {
- this.potentialLabelWidthArr.push(val);
- }
- },
- deregisterLabelWidth: function deregisterLabelWidth(val) {
- var index = this.getLabelWidthIndex(val);
- this.potentialLabelWidthArr.splice(index, 1);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/form/src/form.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_formvue_type_script_lang_js_ = (formvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/form/src/form.vue
- /* normalize component */
- var form_component = normalizeComponent(
- src_formvue_type_script_lang_js_,
- formvue_type_template_id_a1b5ff34_render,
- formvue_type_template_id_a1b5ff34_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var form_api; }
- form_component.options.__file = "packages/form/src/form.vue"
- /* harmony default export */ var src_form = (form_component.exports);
- // CONCATENATED MODULE: ./packages/form/index.js
- /* istanbul ignore next */
- src_form.install = function (Vue) {
- Vue.component(src_form.name, src_form);
- };
- /* harmony default export */ var packages_form = (src_form);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
- var form_itemvue_type_template_id_b6f3db6c_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-form-item",
- class: [
- {
- "el-form-item--feedback": _vm.elForm && _vm.elForm.statusIcon,
- "is-error": _vm.validateState === "error",
- "is-validating": _vm.validateState === "validating",
- "is-success": _vm.validateState === "success",
- "is-required": _vm.isRequired || _vm.required,
- "is-no-asterisk": _vm.elForm && _vm.elForm.hideRequiredAsterisk
- },
- _vm.sizeClass ? "el-form-item--" + _vm.sizeClass : ""
- ]
- },
- [
- _c(
- "label-wrap",
- {
- attrs: {
- "is-auto-width": _vm.labelStyle && _vm.labelStyle.width === "auto",
- "update-all": _vm.form.labelWidth === "auto"
- }
- },
- [
- _vm.label || _vm.$slots.label
- ? _c(
- "label",
- {
- staticClass: "el-form-item__label",
- style: _vm.labelStyle,
- attrs: { for: _vm.labelFor }
- },
- [
- _vm._t("label", [
- _vm._v(_vm._s(_vm.label + _vm.form.labelSuffix))
- ])
- ],
- 2
- )
- : _vm._e()
- ]
- ),
- _c(
- "div",
- { staticClass: "el-form-item__content", style: _vm.contentStyle },
- [
- _vm._t("default"),
- _c(
- "transition",
- { attrs: { name: "el-zoom-in-top" } },
- [
- _vm.validateState === "error" &&
- _vm.showMessage &&
- _vm.form.showMessage
- ? _vm._t(
- "error",
- [
- _c(
- "div",
- {
- staticClass: "el-form-item__error",
- class: {
- "el-form-item__error--inline":
- typeof _vm.inlineMessage === "boolean"
- ? _vm.inlineMessage
- : (_vm.elForm && _vm.elForm.inlineMessage) ||
- false
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.validateMessage) +
- "\n "
- )
- ]
- )
- ],
- { error: _vm.validateMessage }
- )
- : _vm._e()
- ],
- 2
- )
- ],
- 2
- )
- ],
- 1
- )
- }
- var form_itemvue_type_template_id_b6f3db6c_staticRenderFns = []
- form_itemvue_type_template_id_b6f3db6c_render._withStripped = true
- // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
- // EXTERNAL MODULE: external "async-validator"
- var external_async_validator_ = __webpack_require__(40);
- var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(external_async_validator_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/label-wrap.vue?vue&type=script&lang=js&
- /* harmony default export */ var label_wrapvue_type_script_lang_js_ = ({
- props: {
- isAutoWidth: Boolean,
- updateAll: Boolean
- },
- inject: ['elForm', 'elFormItem'],
- render: function render() {
- var h = arguments[0];
- var slots = this.$slots.default;
- if (!slots) return null;
- if (this.isAutoWidth) {
- var autoLabelWidth = this.elForm.autoLabelWidth;
- var style = {};
- if (autoLabelWidth && autoLabelWidth !== 'auto') {
- var marginLeft = parseInt(autoLabelWidth, 10) - this.computedWidth;
- if (marginLeft) {
- style.marginLeft = marginLeft + 'px';
- }
- }
- return h(
- 'div',
- { 'class': 'el-form-item__label-wrap', style: style },
- [slots]
- );
- } else {
- return slots[0];
- }
- },
- methods: {
- getLabelWidth: function getLabelWidth() {
- if (this.$el && this.$el.firstElementChild) {
- var computedWidth = window.getComputedStyle(this.$el.firstElementChild).width;
- return Math.ceil(parseFloat(computedWidth));
- } else {
- return 0;
- }
- },
- updateLabelWidth: function updateLabelWidth() {
- var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'update';
- if (this.$slots.default && this.isAutoWidth && this.$el.firstElementChild) {
- if (action === 'update') {
- this.computedWidth = this.getLabelWidth();
- } else if (action === 'remove') {
- this.elForm.deregisterLabelWidth(this.computedWidth);
- }
- }
- }
- },
- watch: {
- computedWidth: function computedWidth(val, oldVal) {
- if (this.updateAll) {
- this.elForm.registerLabelWidth(val, oldVal);
- this.elFormItem.updateComputedLabelWidth(val);
- }
- }
- },
- data: function data() {
- return {
- computedWidth: 0
- };
- },
- mounted: function mounted() {
- this.updateLabelWidth('update');
- },
- updated: function updated() {
- this.updateLabelWidth('update');
- },
- beforeDestroy: function beforeDestroy() {
- this.updateLabelWidth('remove');
- }
- });
- // CONCATENATED MODULE: ./packages/form/src/label-wrap.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_label_wrapvue_type_script_lang_js_ = (label_wrapvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/form/src/label-wrap.vue
- var label_wrap_render, label_wrap_staticRenderFns
- /* normalize component */
- var label_wrap_component = normalizeComponent(
- src_label_wrapvue_type_script_lang_js_,
- label_wrap_render,
- label_wrap_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var label_wrap_api; }
- label_wrap_component.options.__file = "packages/form/src/label-wrap.vue"
- /* harmony default export */ var label_wrap = (label_wrap_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var form_itemvue_type_script_lang_js_ = ({
- name: 'ElFormItem',
- componentName: 'ElFormItem',
- mixins: [emitter_default.a],
- provide: function provide() {
- return {
- elFormItem: this
- };
- },
- inject: ['elForm'],
- props: {
- label: String,
- labelWidth: String,
- prop: String,
- required: {
- type: Boolean,
- default: undefined
- },
- rules: [Object, Array],
- error: String,
- validateStatus: String,
- for: String,
- inlineMessage: {
- type: [String, Boolean],
- default: ''
- },
- showMessage: {
- type: Boolean,
- default: true
- },
- size: String
- },
- components: {
- // use this component to calculate auto width
- LabelWrap: label_wrap
- },
- watch: {
- error: {
- immediate: true,
- handler: function handler(value) {
- this.validateMessage = value;
- this.validateState = value ? 'error' : '';
- }
- },
- validateStatus: function validateStatus(value) {
- this.validateState = value;
- }
- },
- computed: {
- labelFor: function labelFor() {
- return this.for || this.prop;
- },
- labelStyle: function labelStyle() {
- var ret = {};
- if (this.form.labelPosition === 'top') return ret;
- var labelWidth = this.labelWidth || this.form.labelWidth;
- if (labelWidth) {
- ret.width = labelWidth;
- }
- return ret;
- },
- contentStyle: function contentStyle() {
- var ret = {};
- var label = this.label;
- if (this.form.labelPosition === 'top' || this.form.inline) return ret;
- if (!label && !this.labelWidth && this.isNested) return ret;
- var labelWidth = this.labelWidth || this.form.labelWidth;
- if (labelWidth === 'auto') {
- if (this.labelWidth === 'auto') {
- ret.marginLeft = this.computedLabelWidth;
- } else if (this.form.labelWidth === 'auto') {
- ret.marginLeft = this.elForm.autoLabelWidth;
- }
- } else {
- ret.marginLeft = labelWidth;
- }
- return ret;
- },
- form: function form() {
- var parent = this.$parent;
- var parentName = parent.$options.componentName;
- while (parentName !== 'ElForm') {
- if (parentName === 'ElFormItem') {
- this.isNested = true;
- }
- parent = parent.$parent;
- parentName = parent.$options.componentName;
- }
- return parent;
- },
- fieldValue: function fieldValue() {
- var model = this.form.model;
- if (!model || !this.prop) {
- return;
- }
- var path = this.prop;
- if (path.indexOf(':') !== -1) {
- path = path.replace(/:/, '.');
- }
- return Object(util_["getPropByPath"])(model, path, true).v;
- },
- isRequired: function isRequired() {
- var rules = this.getRules();
- var isRequired = false;
- if (rules && rules.length) {
- rules.every(function (rule) {
- if (rule.required) {
- isRequired = true;
- return false;
- }
- return true;
- });
- }
- return isRequired;
- },
- _formSize: function _formSize() {
- return this.elForm.size;
- },
- elFormItemSize: function elFormItemSize() {
- return this.size || this._formSize;
- },
- sizeClass: function sizeClass() {
- return this.elFormItemSize || (this.$ELEMENT || {}).size;
- }
- },
- data: function data() {
- return {
- validateState: '',
- validateMessage: '',
- validateDisabled: false,
- validator: {},
- isNested: false,
- computedLabelWidth: ''
- };
- },
- methods: {
- validate: function validate(trigger) {
- var _this = this;
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : util_["noop"];
- this.validateDisabled = false;
- var rules = this.getFilteredRule(trigger);
- if ((!rules || rules.length === 0) && this.required === undefined) {
- callback();
- return true;
- }
- this.validateState = 'validating';
- var descriptor = {};
- if (rules && rules.length > 0) {
- rules.forEach(function (rule) {
- delete rule.trigger;
- });
- }
- descriptor[this.prop] = rules;
- var validator = new external_async_validator_default.a(descriptor);
- var model = {};
- model[this.prop] = this.fieldValue;
- validator.validate(model, { firstFields: true }, function (errors, invalidFields) {
- _this.validateState = !errors ? 'success' : 'error';
- _this.validateMessage = errors ? errors[0].message : '';
- callback(_this.validateMessage, invalidFields);
- _this.elForm && _this.elForm.$emit('validate', _this.prop, !errors, _this.validateMessage || null);
- });
- },
- clearValidate: function clearValidate() {
- this.validateState = '';
- this.validateMessage = '';
- this.validateDisabled = false;
- },
- resetField: function resetField() {
- var _this2 = this;
- this.validateState = '';
- this.validateMessage = '';
- var model = this.form.model;
- var value = this.fieldValue;
- var path = this.prop;
- if (path.indexOf(':') !== -1) {
- path = path.replace(/:/, '.');
- }
- var prop = Object(util_["getPropByPath"])(model, path, true);
- this.validateDisabled = true;
- if (Array.isArray(value)) {
- prop.o[prop.k] = [].concat(this.initialValue);
- } else {
- prop.o[prop.k] = this.initialValue;
- }
- // reset validateDisabled after onFieldChange triggered
- this.$nextTick(function () {
- _this2.validateDisabled = false;
- });
- this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
- },
- getRules: function getRules() {
- var formRules = this.form.rules;
- var selfRules = this.rules;
- var requiredRule = this.required !== undefined ? { required: !!this.required } : [];
- var prop = Object(util_["getPropByPath"])(formRules, this.prop || '');
- formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
- return [].concat(selfRules || formRules || []).concat(requiredRule);
- },
- getFilteredRule: function getFilteredRule(trigger) {
- var rules = this.getRules();
- return rules.filter(function (rule) {
- if (!rule.trigger || trigger === '') return true;
- if (Array.isArray(rule.trigger)) {
- return rule.trigger.indexOf(trigger) > -1;
- } else {
- return rule.trigger === trigger;
- }
- }).map(function (rule) {
- return merge_default()({}, rule);
- });
- },
- onFieldBlur: function onFieldBlur() {
- this.validate('blur');
- },
- onFieldChange: function onFieldChange() {
- if (this.validateDisabled) {
- this.validateDisabled = false;
- return;
- }
- this.validate('change');
- },
- updateComputedLabelWidth: function updateComputedLabelWidth(width) {
- this.computedLabelWidth = width ? width + 'px' : '';
- },
- addValidateEvents: function addValidateEvents() {
- var rules = this.getRules();
- if (rules.length || this.required !== undefined) {
- this.$on('el.form.blur', this.onFieldBlur);
- this.$on('el.form.change', this.onFieldChange);
- }
- },
- removeValidateEvents: function removeValidateEvents() {
- this.$off();
- }
- },
- mounted: function mounted() {
- if (this.prop) {
- this.dispatch('ElForm', 'el.form.addField', [this]);
- var initialValue = this.fieldValue;
- if (Array.isArray(initialValue)) {
- initialValue = [].concat(initialValue);
- }
- Object.defineProperty(this, 'initialValue', {
- value: initialValue
- });
- this.addValidateEvents();
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.dispatch('ElForm', 'el.form.removeField', [this]);
- }
- });
- // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_form_itemvue_type_script_lang_js_ = (form_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/form/src/form-item.vue
- /* normalize component */
- var form_item_component = normalizeComponent(
- src_form_itemvue_type_script_lang_js_,
- form_itemvue_type_template_id_b6f3db6c_render,
- form_itemvue_type_template_id_b6f3db6c_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var form_item_api; }
- form_item_component.options.__file = "packages/form/src/form-item.vue"
- /* harmony default export */ var form_item = (form_item_component.exports);
- // CONCATENATED MODULE: ./packages/form-item/index.js
- /* istanbul ignore next */
- form_item.install = function (Vue) {
- Vue.component(form_item.name, form_item);
- };
- /* harmony default export */ var packages_form_item = (form_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=template&id=2031f33a&
- var tab_barvue_type_template_id_2031f33a_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", {
- staticClass: "el-tabs__active-bar",
- class: "is-" + _vm.rootTabs.tabPosition,
- style: _vm.barStyle
- })
- }
- var tab_barvue_type_template_id_2031f33a_staticRenderFns = []
- tab_barvue_type_template_id_2031f33a_render._withStripped = true
- // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=2031f33a&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js&
- //
- //
- //
- /* harmony default export */ var tab_barvue_type_script_lang_js_ = ({
- name: 'TabBar',
- props: {
- tabs: Array
- },
- inject: ['rootTabs'],
- computed: {
- barStyle: {
- get: function get() {
- var _this = this;
- var style = {};
- var offset = 0;
- var tabSize = 0;
- var sizeName = ['top', 'bottom'].indexOf(this.rootTabs.tabPosition) !== -1 ? 'width' : 'height';
- var sizeDir = sizeName === 'width' ? 'x' : 'y';
- var firstUpperCase = function firstUpperCase(str) {
- return str.toLowerCase().replace(/( |^)[a-z]/g, function (L) {
- return L.toUpperCase();
- });
- };
- this.tabs.every(function (tab, index) {
- var $el = Object(util_["arrayFind"])(_this.$parent.$refs.tabs || [], function (t) {
- return t.id.replace('tab-', '') === tab.paneName;
- });
- if (!$el) {
- return false;
- }
- if (!tab.active) {
- offset += $el['client' + firstUpperCase(sizeName)];
- return true;
- } else {
- tabSize = $el['client' + firstUpperCase(sizeName)];
- var tabStyles = window.getComputedStyle($el);
- if (sizeName === 'width' && _this.tabs.length > 1) {
- tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
- }
- if (sizeName === 'width') {
- offset += parseFloat(tabStyles.paddingLeft);
- }
- return false;
- }
- });
- var transform = 'translate' + firstUpperCase(sizeDir) + '(' + offset + 'px)';
- style[sizeName] = tabSize + 'px';
- style.transform = transform;
- style.msTransform = transform;
- style.webkitTransform = transform;
- return style;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tab_barvue_type_script_lang_js_ = (tab_barvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue
- /* normalize component */
- var tab_bar_component = normalizeComponent(
- src_tab_barvue_type_script_lang_js_,
- tab_barvue_type_template_id_2031f33a_render,
- tab_barvue_type_template_id_2031f33a_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tab_bar_api; }
- tab_bar_component.options.__file = "packages/tabs/src/tab-bar.vue"
- /* harmony default export */ var tab_bar = (tab_bar_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-nav.vue?vue&type=script&lang=js&
- function noop() {}
- var tab_navvue_type_script_lang_js_firstUpperCase = function firstUpperCase(str) {
- return str.toLowerCase().replace(/( |^)[a-z]/g, function (L) {
- return L.toUpperCase();
- });
- };
- /* harmony default export */ var tab_navvue_type_script_lang_js_ = ({
- name: 'TabNav',
- components: {
- TabBar: tab_bar
- },
- inject: ['rootTabs'],
- props: {
- panes: Array,
- currentName: String,
- editable: Boolean,
- onTabClick: {
- type: Function,
- default: noop
- },
- onTabRemove: {
- type: Function,
- default: noop
- },
- type: String,
- stretch: Boolean
- },
- data: function data() {
- return {
- scrollable: false,
- navOffset: 0,
- isFocus: false,
- focusable: true
- };
- },
- computed: {
- navStyle: function navStyle() {
- var dir = ['top', 'bottom'].indexOf(this.rootTabs.tabPosition) !== -1 ? 'X' : 'Y';
- return {
- transform: 'translate' + dir + '(-' + this.navOffset + 'px)'
- };
- },
- sizeName: function sizeName() {
- return ['top', 'bottom'].indexOf(this.rootTabs.tabPosition) !== -1 ? 'width' : 'height';
- }
- },
- methods: {
- scrollPrev: function scrollPrev() {
- var containerSize = this.$refs.navScroll['offset' + tab_navvue_type_script_lang_js_firstUpperCase(this.sizeName)];
- var currentOffset = this.navOffset;
- if (!currentOffset) return;
- var newOffset = currentOffset > containerSize ? currentOffset - containerSize : 0;
- this.navOffset = newOffset;
- },
- scrollNext: function scrollNext() {
- var navSize = this.$refs.nav['offset' + tab_navvue_type_script_lang_js_firstUpperCase(this.sizeName)];
- var containerSize = this.$refs.navScroll['offset' + tab_navvue_type_script_lang_js_firstUpperCase(this.sizeName)];
- var currentOffset = this.navOffset;
- if (navSize - currentOffset <= containerSize) return;
- var newOffset = navSize - currentOffset > containerSize * 2 ? currentOffset + containerSize : navSize - containerSize;
- this.navOffset = newOffset;
- },
- scrollToActiveTab: function scrollToActiveTab() {
- if (!this.scrollable) return;
- var nav = this.$refs.nav;
- var activeTab = this.$el.querySelector('.is-active');
- if (!activeTab) return;
- var navScroll = this.$refs.navScroll;
- var isHorizontal = ['top', 'bottom'].indexOf(this.rootTabs.tabPosition) !== -1;
- var activeTabBounding = activeTab.getBoundingClientRect();
- var navScrollBounding = navScroll.getBoundingClientRect();
- var maxOffset = isHorizontal ? nav.offsetWidth - navScrollBounding.width : nav.offsetHeight - navScrollBounding.height;
- var currentOffset = this.navOffset;
- var newOffset = currentOffset;
- if (isHorizontal) {
- if (activeTabBounding.left < navScrollBounding.left) {
- newOffset = currentOffset - (navScrollBounding.left - activeTabBounding.left);
- }
- if (activeTabBounding.right > navScrollBounding.right) {
- newOffset = currentOffset + activeTabBounding.right - navScrollBounding.right;
- }
- } else {
- if (activeTabBounding.top < navScrollBounding.top) {
- newOffset = currentOffset - (navScrollBounding.top - activeTabBounding.top);
- }
- if (activeTabBounding.bottom > navScrollBounding.bottom) {
- newOffset = currentOffset + (activeTabBounding.bottom - navScrollBounding.bottom);
- }
- }
- newOffset = Math.max(newOffset, 0);
- this.navOffset = Math.min(newOffset, maxOffset);
- },
- update: function update() {
- if (!this.$refs.nav) return;
- var sizeName = this.sizeName;
- var navSize = this.$refs.nav['offset' + tab_navvue_type_script_lang_js_firstUpperCase(sizeName)];
- var containerSize = this.$refs.navScroll['offset' + tab_navvue_type_script_lang_js_firstUpperCase(sizeName)];
- var currentOffset = this.navOffset;
- if (containerSize < navSize) {
- var _currentOffset = this.navOffset;
- this.scrollable = this.scrollable || {};
- this.scrollable.prev = _currentOffset;
- this.scrollable.next = _currentOffset + containerSize < navSize;
- if (navSize - _currentOffset < containerSize) {
- this.navOffset = navSize - containerSize;
- }
- } else {
- this.scrollable = false;
- if (currentOffset > 0) {
- this.navOffset = 0;
- }
- }
- },
- changeTab: function changeTab(e) {
- var keyCode = e.keyCode;
- var nextIndex = void 0;
- var currentIndex = void 0,
- tabList = void 0;
- if ([37, 38, 39, 40].indexOf(keyCode) !== -1) {
- // 左右上下键更换tab
- tabList = e.currentTarget.querySelectorAll('[role=tab]');
- currentIndex = Array.prototype.indexOf.call(tabList, e.target);
- } else {
- return;
- }
- if (keyCode === 37 || keyCode === 38) {
- // left
- if (currentIndex === 0) {
- // first
- nextIndex = tabList.length - 1;
- } else {
- nextIndex = currentIndex - 1;
- }
- } else {
- // right
- if (currentIndex < tabList.length - 1) {
- // not last
- nextIndex = currentIndex + 1;
- } else {
- nextIndex = 0;
- }
- }
- tabList[nextIndex].focus(); // 改变焦点元素
- tabList[nextIndex].click(); // 选中下一个tab
- this.setFocus();
- },
- setFocus: function setFocus() {
- if (this.focusable) {
- this.isFocus = true;
- }
- },
- removeFocus: function removeFocus() {
- this.isFocus = false;
- },
- visibilityChangeHandler: function visibilityChangeHandler() {
- var _this = this;
- var visibility = document.visibilityState;
- if (visibility === 'hidden') {
- this.focusable = false;
- } else if (visibility === 'visible') {
- setTimeout(function () {
- _this.focusable = true;
- }, 50);
- }
- },
- windowBlurHandler: function windowBlurHandler() {
- this.focusable = false;
- },
- windowFocusHandler: function windowFocusHandler() {
- var _this2 = this;
- setTimeout(function () {
- _this2.focusable = true;
- }, 50);
- }
- },
- updated: function updated() {
- this.update();
- },
- render: function render(h) {
- var _this3 = this;
- var type = this.type,
- panes = this.panes,
- editable = this.editable,
- stretch = this.stretch,
- onTabClick = this.onTabClick,
- onTabRemove = this.onTabRemove,
- navStyle = this.navStyle,
- scrollable = this.scrollable,
- scrollNext = this.scrollNext,
- scrollPrev = this.scrollPrev,
- changeTab = this.changeTab,
- setFocus = this.setFocus,
- removeFocus = this.removeFocus;
- var scrollBtn = scrollable ? [h(
- 'span',
- { 'class': ['el-tabs__nav-prev', scrollable.prev ? '' : 'is-disabled'], on: {
- 'click': scrollPrev
- }
- },
- [h('i', { 'class': 'el-icon-arrow-left' })]
- ), h(
- 'span',
- { 'class': ['el-tabs__nav-next', scrollable.next ? '' : 'is-disabled'], on: {
- 'click': scrollNext
- }
- },
- [h('i', { 'class': 'el-icon-arrow-right' })]
- )] : null;
- var tabs = this._l(panes, function (pane, index) {
- var _ref;
- var tabName = pane.name || pane.index || index;
- var closable = pane.isClosable || editable;
- pane.index = '' + index;
- var btnClose = closable ? h('span', { 'class': 'el-icon-close', on: {
- 'click': function click(ev) {
- onTabRemove(pane, ev);
- }
- }
- }) : null;
- var tabLabelContent = pane.$slots.label || pane.label;
- var tabindex = pane.active ? 0 : -1;
- return h(
- 'div',
- {
- 'class': (_ref = {
- 'el-tabs__item': true
- }, _ref['is-' + _this3.rootTabs.tabPosition] = true, _ref['is-active'] = pane.active, _ref['is-disabled'] = pane.disabled, _ref['is-closable'] = closable, _ref['is-focus'] = _this3.isFocus, _ref),
- attrs: { id: 'tab-' + tabName,
- 'aria-controls': 'pane-' + tabName,
- role: 'tab',
- 'aria-selected': pane.active,
- tabindex: tabindex
- },
- key: 'tab-' + tabName, ref: 'tabs', refInFor: true,
- on: {
- 'focus': function focus() {
- setFocus();
- },
- 'blur': function blur() {
- removeFocus();
- },
- 'click': function click(ev) {
- removeFocus();onTabClick(pane, tabName, ev);
- },
- 'keydown': function keydown(ev) {
- if (closable && (ev.keyCode === 46 || ev.keyCode === 8)) {
- onTabRemove(pane, ev);
- }
- }
- }
- },
- [tabLabelContent, btnClose]
- );
- });
- return h(
- 'div',
- { 'class': ['el-tabs__nav-wrap', scrollable ? 'is-scrollable' : '', 'is-' + this.rootTabs.tabPosition] },
- [scrollBtn, h(
- 'div',
- { 'class': ['el-tabs__nav-scroll'], ref: 'navScroll' },
- [h(
- 'div',
- {
- 'class': ['el-tabs__nav', 'is-' + this.rootTabs.tabPosition, stretch && ['top', 'bottom'].indexOf(this.rootTabs.tabPosition) !== -1 ? 'is-stretch' : ''],
- ref: 'nav',
- style: navStyle,
- attrs: { role: 'tablist'
- },
- on: {
- 'keydown': changeTab
- }
- },
- [!type ? h('tab-bar', {
- attrs: { tabs: panes }
- }) : null, tabs]
- )]
- )]
- );
- },
- mounted: function mounted() {
- var _this4 = this;
- Object(resize_event_["addResizeListener"])(this.$el, this.update);
- document.addEventListener('visibilitychange', this.visibilityChangeHandler);
- window.addEventListener('blur', this.windowBlurHandler);
- window.addEventListener('focus', this.windowFocusHandler);
- setTimeout(function () {
- _this4.scrollToActiveTab();
- }, 0);
- },
- beforeDestroy: function beforeDestroy() {
- if (this.$el && this.update) Object(resize_event_["removeResizeListener"])(this.$el, this.update);
- document.removeEventListener('visibilitychange', this.visibilityChangeHandler);
- window.removeEventListener('blur', this.windowBlurHandler);
- window.removeEventListener('focus', this.windowFocusHandler);
- }
- });
- // CONCATENATED MODULE: ./packages/tabs/src/tab-nav.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tab_navvue_type_script_lang_js_ = (tab_navvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tabs/src/tab-nav.vue
- var tab_nav_render, tab_nav_staticRenderFns
- /* normalize component */
- var tab_nav_component = normalizeComponent(
- src_tab_navvue_type_script_lang_js_,
- tab_nav_render,
- tab_nav_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tab_nav_api; }
- tab_nav_component.options.__file = "packages/tabs/src/tab-nav.vue"
- /* harmony default export */ var tab_nav = (tab_nav_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tabs.vue?vue&type=script&lang=js&
- /* harmony default export */ var tabsvue_type_script_lang_js_ = ({
- name: 'ElTabs',
- components: {
- TabNav: tab_nav
- },
- props: {
- type: String,
- activeName: String,
- closable: Boolean,
- addable: Boolean,
- value: {},
- editable: Boolean,
- tabPosition: {
- type: String,
- default: 'top'
- },
- beforeLeave: Function,
- stretch: Boolean
- },
- provide: function provide() {
- return {
- rootTabs: this
- };
- },
- data: function data() {
- return {
- currentName: this.value || this.activeName,
- panes: []
- };
- },
- watch: {
- activeName: function activeName(value) {
- this.setCurrentName(value);
- },
- value: function value(_value) {
- this.setCurrentName(_value);
- },
- currentName: function currentName(value) {
- var _this = this;
- if (this.$refs.nav) {
- this.$nextTick(function () {
- _this.$refs.nav.$nextTick(function (_) {
- _this.$refs.nav.scrollToActiveTab();
- });
- });
- }
- }
- },
- methods: {
- calcPaneInstances: function calcPaneInstances() {
- var _this2 = this;
- var isForceUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- if (this.$slots.default) {
- var paneSlots = this.$slots.default.filter(function (vnode) {
- return vnode.tag && vnode.componentOptions && vnode.componentOptions.Ctor.options.name === 'ElTabPane';
- });
- // update indeed
- var panes = paneSlots.map(function (_ref) {
- var componentInstance = _ref.componentInstance;
- return componentInstance;
- });
- var panesChanged = !(panes.length === this.panes.length && panes.every(function (pane, index) {
- return pane === _this2.panes[index];
- }));
- if (isForceUpdate || panesChanged) {
- this.panes = panes;
- }
- } else if (this.panes.length !== 0) {
- this.panes = [];
- }
- },
- handleTabClick: function handleTabClick(tab, tabName, event) {
- if (tab.disabled) return;
- this.setCurrentName(tabName);
- this.$emit('tab-click', tab, event);
- },
- handleTabRemove: function handleTabRemove(pane, ev) {
- if (pane.disabled) return;
- ev.stopPropagation();
- this.$emit('edit', pane.name, 'remove');
- this.$emit('tab-remove', pane.name);
- },
- handleTabAdd: function handleTabAdd() {
- this.$emit('edit', null, 'add');
- this.$emit('tab-add');
- },
- setCurrentName: function setCurrentName(value) {
- var _this3 = this;
- var changeCurrentName = function changeCurrentName() {
- _this3.currentName = value;
- _this3.$emit('input', value);
- };
- if (this.currentName !== value && this.beforeLeave) {
- var before = this.beforeLeave(value, this.currentName);
- if (before && before.then) {
- before.then(function () {
- changeCurrentName();
- _this3.$refs.nav && _this3.$refs.nav.removeFocus();
- }, function () {
- // https://github.com/ElemeFE/element/pull/14816
- // ignore promise rejection in `before-leave` hook
- });
- } else if (before !== false) {
- changeCurrentName();
- }
- } else {
- changeCurrentName();
- }
- }
- },
- render: function render(h) {
- var _ref2;
- var type = this.type,
- handleTabClick = this.handleTabClick,
- handleTabRemove = this.handleTabRemove,
- handleTabAdd = this.handleTabAdd,
- currentName = this.currentName,
- panes = this.panes,
- editable = this.editable,
- addable = this.addable,
- tabPosition = this.tabPosition,
- stretch = this.stretch;
- var newButton = editable || addable ? h(
- 'span',
- {
- 'class': 'el-tabs__new-tab',
- on: {
- 'click': handleTabAdd,
- 'keydown': function keydown(ev) {
- if (ev.keyCode === 13) {
- handleTabAdd();
- }
- }
- },
- attrs: {
- tabindex: '0'
- }
- },
- [h('i', { 'class': 'el-icon-plus' })]
- ) : null;
- var navData = {
- props: {
- currentName: currentName,
- onTabClick: handleTabClick,
- onTabRemove: handleTabRemove,
- editable: editable,
- type: type,
- panes: panes,
- stretch: stretch
- },
- ref: 'nav'
- };
- var header = h(
- 'div',
- { 'class': ['el-tabs__header', 'is-' + tabPosition] },
- [newButton, h('tab-nav', navData)]
- );
- var panels = h(
- 'div',
- { 'class': 'el-tabs__content' },
- [this.$slots.default]
- );
- return h(
- 'div',
- { 'class': (_ref2 = {
- 'el-tabs': true,
- 'el-tabs--card': type === 'card'
- }, _ref2['el-tabs--' + tabPosition] = true, _ref2['el-tabs--border-card'] = type === 'border-card', _ref2) },
- [tabPosition !== 'bottom' ? [header, panels] : [panels, header]]
- );
- },
- created: function created() {
- if (!this.currentName) {
- this.setCurrentName('0');
- }
- this.$on('tab-nav-update', this.calcPaneInstances.bind(null, true));
- },
- mounted: function mounted() {
- this.calcPaneInstances();
- },
- updated: function updated() {
- this.calcPaneInstances();
- }
- });
- // CONCATENATED MODULE: ./packages/tabs/src/tabs.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tabsvue_type_script_lang_js_ = (tabsvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tabs/src/tabs.vue
- var tabs_render, tabs_staticRenderFns
- /* normalize component */
- var tabs_component = normalizeComponent(
- src_tabsvue_type_script_lang_js_,
- tabs_render,
- tabs_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tabs_api; }
- tabs_component.options.__file = "packages/tabs/src/tabs.vue"
- /* harmony default export */ var tabs = (tabs_component.exports);
- // CONCATENATED MODULE: ./packages/tabs/index.js
- /* istanbul ignore next */
- tabs.install = function (Vue) {
- Vue.component(tabs.name, tabs);
- };
- /* harmony default export */ var packages_tabs = (tabs);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-pane.vue?vue&type=template&id=9145a070&
- var tab_panevue_type_template_id_9145a070_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return !_vm.lazy || _vm.loaded || _vm.active
- ? _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.active,
- expression: "active"
- }
- ],
- staticClass: "el-tab-pane",
- attrs: {
- role: "tabpanel",
- "aria-hidden": !_vm.active,
- id: "pane-" + _vm.paneName,
- "aria-labelledby": "tab-" + _vm.paneName
- }
- },
- [_vm._t("default")],
- 2
- )
- : _vm._e()
- }
- var tab_panevue_type_template_id_9145a070_staticRenderFns = []
- tab_panevue_type_template_id_9145a070_render._withStripped = true
- // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=template&id=9145a070&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var tab_panevue_type_script_lang_js_ = ({
- name: 'ElTabPane',
- componentName: 'ElTabPane',
- props: {
- label: String,
- labelContent: Function,
- name: String,
- closable: Boolean,
- disabled: Boolean,
- lazy: Boolean
- },
- data: function data() {
- return {
- index: null,
- loaded: false
- };
- },
- computed: {
- isClosable: function isClosable() {
- return this.closable || this.$parent.closable;
- },
- active: function active() {
- var active = this.$parent.currentName === (this.name || this.index);
- if (active) {
- this.loaded = true;
- }
- return active;
- },
- paneName: function paneName() {
- return this.name || this.index;
- }
- },
- updated: function updated() {
- this.$parent.$emit('tab-nav-update');
- }
- });
- // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tab_panevue_type_script_lang_js_ = (tab_panevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue
- /* normalize component */
- var tab_pane_component = normalizeComponent(
- src_tab_panevue_type_script_lang_js_,
- tab_panevue_type_template_id_9145a070_render,
- tab_panevue_type_template_id_9145a070_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tab_pane_api; }
- tab_pane_component.options.__file = "packages/tabs/src/tab-pane.vue"
- /* harmony default export */ var tab_pane = (tab_pane_component.exports);
- // CONCATENATED MODULE: ./packages/tab-pane/index.js
- /* istanbul ignore next */
- tab_pane.install = function (Vue) {
- Vue.component(tab_pane.name, tab_pane);
- };
- /* harmony default export */ var packages_tab_pane = (tab_pane);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tag/src/tag.vue?vue&type=script&lang=js&
- /* harmony default export */ var tagvue_type_script_lang_js_ = ({
- name: 'ElTag',
- props: {
- text: String,
- closable: Boolean,
- type: String,
- hit: Boolean,
- disableTransitions: Boolean,
- color: String,
- size: String,
- effect: {
- type: String,
- default: 'light',
- validator: function validator(val) {
- return ['dark', 'light', 'plain'].indexOf(val) !== -1;
- }
- }
- },
- methods: {
- handleClose: function handleClose(event) {
- event.stopPropagation();
- this.$emit('close', event);
- },
- handleClick: function handleClick(event) {
- this.$emit('click', event);
- }
- },
- computed: {
- tagSize: function tagSize() {
- return this.size || (this.$ELEMENT || {}).size;
- }
- },
- render: function render(h) {
- var type = this.type,
- tagSize = this.tagSize,
- hit = this.hit,
- effect = this.effect;
- var classes = ['el-tag', type ? 'el-tag--' + type : '', tagSize ? 'el-tag--' + tagSize : '', effect ? 'el-tag--' + effect : '', hit && 'is-hit'];
- var tagEl = h(
- 'span',
- {
- 'class': classes,
- style: { backgroundColor: this.color },
- on: {
- 'click': this.handleClick
- }
- },
- [this.$slots.default, this.closable && h('i', { 'class': 'el-tag__close el-icon-close', on: {
- 'click': this.handleClose
- }
- })]
- );
- return this.disableTransitions ? tagEl : h(
- 'transition',
- {
- attrs: { name: 'el-zoom-in-center' }
- },
- [tagEl]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/tag/src/tag.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tagvue_type_script_lang_js_ = (tagvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tag/src/tag.vue
- var tag_render, tag_staticRenderFns
- /* normalize component */
- var tag_component = normalizeComponent(
- src_tagvue_type_script_lang_js_,
- tag_render,
- tag_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tag_api; }
- tag_component.options.__file = "packages/tag/src/tag.vue"
- /* harmony default export */ var tag = (tag_component.exports);
- // CONCATENATED MODULE: ./packages/tag/index.js
- /* istanbul ignore next */
- tag.install = function (Vue) {
- Vue.component(tag.name, tag);
- };
- /* harmony default export */ var packages_tag = (tag);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree.vue?vue&type=template&id=547575a6&
- var treevue_type_template_id_547575a6_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-tree",
- class: {
- "el-tree--highlight-current": _vm.highlightCurrent,
- "is-dragging": !!_vm.dragState.draggingNode,
- "is-drop-not-allow": !_vm.dragState.allowDrop,
- "is-drop-inner": _vm.dragState.dropType === "inner"
- },
- attrs: { role: "tree" }
- },
- [
- _vm._l(_vm.root.childNodes, function(child) {
- return _c("el-tree-node", {
- key: _vm.getNodeKey(child),
- attrs: {
- node: child,
- props: _vm.props,
- "render-after-expand": _vm.renderAfterExpand,
- "show-checkbox": _vm.showCheckbox,
- "render-content": _vm.renderContent
- },
- on: { "node-expand": _vm.handleNodeExpand }
- })
- }),
- _vm.isEmpty
- ? _c("div", { staticClass: "el-tree__empty-block" }, [
- _c("span", { staticClass: "el-tree__empty-text" }, [
- _vm._v(_vm._s(_vm.emptyText))
- ])
- ])
- : _vm._e(),
- _c("div", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.dragState.showDropIndicator,
- expression: "dragState.showDropIndicator"
- }
- ],
- ref: "dropIndicator",
- staticClass: "el-tree__drop-indicator"
- })
- ],
- 2
- )
- }
- var treevue_type_template_id_547575a6_staticRenderFns = []
- treevue_type_template_id_547575a6_render._withStripped = true
- // CONCATENATED MODULE: ./packages/tree/src/tree.vue?vue&type=template&id=547575a6&
- // CONCATENATED MODULE: ./packages/tree/src/model/util.js
- var NODE_KEY = '$treeNodeId';
- var markNodeData = function markNodeData(node, data) {
- if (!data || data[NODE_KEY]) return;
- Object.defineProperty(data, NODE_KEY, {
- value: node.id,
- enumerable: false,
- configurable: false,
- writable: false
- });
- };
- var util_getNodeKey = function getNodeKey(key, data) {
- if (!key) return data[NODE_KEY];
- return data[key];
- };
- var findNearestComponent = function findNearestComponent(element, componentName) {
- var target = element;
- while (target && target.tagName !== 'BODY') {
- if (target.__vue__ && target.__vue__.$options.name === componentName) {
- return target.__vue__;
- }
- target = target.parentNode;
- }
- return null;
- };
- // CONCATENATED MODULE: ./packages/tree/src/model/node.js
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- function node_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var getChildState = function getChildState(node) {
- var all = true;
- var none = true;
- var allWithoutDisable = true;
- for (var i = 0, j = node.length; i < j; i++) {
- var n = node[i];
- if (n.checked !== true || n.indeterminate) {
- all = false;
- if (!n.disabled) {
- allWithoutDisable = false;
- }
- }
- if (n.checked !== false || n.indeterminate) {
- none = false;
- }
- }
- return { all: all, none: none, allWithoutDisable: allWithoutDisable, half: !all && !none };
- };
- var reInitChecked = function reInitChecked(node) {
- if (node.childNodes.length === 0) return;
- var _getChildState = getChildState(node.childNodes),
- all = _getChildState.all,
- none = _getChildState.none,
- half = _getChildState.half;
- if (all) {
- node.checked = true;
- node.indeterminate = false;
- } else if (half) {
- node.checked = false;
- node.indeterminate = true;
- } else if (none) {
- node.checked = false;
- node.indeterminate = false;
- }
- var parent = node.parent;
- if (!parent || parent.level === 0) return;
- if (!node.store.checkStrictly) {
- reInitChecked(parent);
- }
- };
- var getPropertyFromData = function getPropertyFromData(node, prop) {
- var props = node.store.props;
- var data = node.data || {};
- var config = props[prop];
- if (typeof config === 'function') {
- return config(data, node);
- } else if (typeof config === 'string') {
- return data[config];
- } else if (typeof config === 'undefined') {
- var dataProp = data[prop];
- return dataProp === undefined ? '' : dataProp;
- }
- };
- var nodeIdSeed = 0;
- var node_Node = function () {
- function Node(options) {
- node_classCallCheck(this, Node);
- this.id = nodeIdSeed++;
- this.text = null;
- this.checked = false;
- this.indeterminate = false;
- this.data = null;
- this.expanded = false;
- this.parent = null;
- this.visible = true;
- this.isCurrent = false;
- for (var name in options) {
- if (options.hasOwnProperty(name)) {
- this[name] = options[name];
- }
- }
- // internal
- this.level = 0;
- this.loaded = false;
- this.childNodes = [];
- this.loading = false;
- if (this.parent) {
- this.level = this.parent.level + 1;
- }
- var store = this.store;
- if (!store) {
- throw new Error('[Node]store is required!');
- }
- store.registerNode(this);
- var props = store.props;
- if (props && typeof props.isLeaf !== 'undefined') {
- var isLeaf = getPropertyFromData(this, 'isLeaf');
- if (typeof isLeaf === 'boolean') {
- this.isLeafByUser = isLeaf;
- }
- }
- if (store.lazy !== true && this.data) {
- this.setData(this.data);
- if (store.defaultExpandAll) {
- this.expanded = true;
- }
- } else if (this.level > 0 && store.lazy && store.defaultExpandAll) {
- this.expand();
- }
- if (!Array.isArray(this.data)) {
- markNodeData(this, this.data);
- }
- if (!this.data) return;
- var defaultExpandedKeys = store.defaultExpandedKeys;
- var key = store.key;
- if (key && defaultExpandedKeys && defaultExpandedKeys.indexOf(this.key) !== -1) {
- this.expand(null, store.autoExpandParent);
- }
- if (key && store.currentNodeKey !== undefined && this.key === store.currentNodeKey) {
- store.currentNode = this;
- store.currentNode.isCurrent = true;
- }
- if (store.lazy) {
- store._initDefaultCheckedNode(this);
- }
- this.updateLeafState();
- }
- Node.prototype.setData = function setData(data) {
- if (!Array.isArray(data)) {
- markNodeData(this, data);
- }
- this.data = data;
- this.childNodes = [];
- var children = void 0;
- if (this.level === 0 && this.data instanceof Array) {
- children = this.data;
- } else {
- children = getPropertyFromData(this, 'children') || [];
- }
- for (var i = 0, j = children.length; i < j; i++) {
- this.insertChild({ data: children[i] });
- }
- };
- Node.prototype.contains = function contains(target) {
- var deep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var walk = function walk(parent) {
- var children = parent.childNodes || [];
- var result = false;
- for (var i = 0, j = children.length; i < j; i++) {
- var child = children[i];
- if (child === target || deep && walk(child)) {
- result = true;
- break;
- }
- }
- return result;
- };
- return walk(this);
- };
- Node.prototype.remove = function remove() {
- var parent = this.parent;
- if (parent) {
- parent.removeChild(this);
- }
- };
- Node.prototype.insertChild = function insertChild(child, index, batch) {
- if (!child) throw new Error('insertChild error: child is required.');
- if (!(child instanceof Node)) {
- if (!batch) {
- var children = this.getChildren(true);
- if (children.indexOf(child.data) === -1) {
- if (typeof index === 'undefined' || index < 0) {
- children.push(child.data);
- } else {
- children.splice(index, 0, child.data);
- }
- }
- }
- merge_default()(child, {
- parent: this,
- store: this.store
- });
- child = new Node(child);
- }
- child.level = this.level + 1;
- if (typeof index === 'undefined' || index < 0) {
- this.childNodes.push(child);
- } else {
- this.childNodes.splice(index, 0, child);
- }
- this.updateLeafState();
- };
- Node.prototype.insertBefore = function insertBefore(child, ref) {
- var index = void 0;
- if (ref) {
- index = this.childNodes.indexOf(ref);
- }
- this.insertChild(child, index);
- };
- Node.prototype.insertAfter = function insertAfter(child, ref) {
- var index = void 0;
- if (ref) {
- index = this.childNodes.indexOf(ref);
- if (index !== -1) index += 1;
- }
- this.insertChild(child, index);
- };
- Node.prototype.removeChild = function removeChild(child) {
- var children = this.getChildren() || [];
- var dataIndex = children.indexOf(child.data);
- if (dataIndex > -1) {
- children.splice(dataIndex, 1);
- }
- var index = this.childNodes.indexOf(child);
- if (index > -1) {
- this.store && this.store.deregisterNode(child);
- child.parent = null;
- this.childNodes.splice(index, 1);
- }
- this.updateLeafState();
- };
- Node.prototype.removeChildByData = function removeChildByData(data) {
- var targetNode = null;
- for (var i = 0; i < this.childNodes.length; i++) {
- if (this.childNodes[i].data === data) {
- targetNode = this.childNodes[i];
- break;
- }
- }
- if (targetNode) {
- this.removeChild(targetNode);
- }
- };
- Node.prototype.expand = function expand(callback, expandParent) {
- var _this = this;
- var done = function done() {
- if (expandParent) {
- var parent = _this.parent;
- while (parent.level > 0) {
- parent.expanded = true;
- parent = parent.parent;
- }
- }
- _this.expanded = true;
- if (callback) callback();
- };
- if (this.shouldLoadData()) {
- this.loadData(function (data) {
- if (data instanceof Array) {
- if (_this.checked) {
- _this.setChecked(true, true);
- } else if (!_this.store.checkStrictly) {
- reInitChecked(_this);
- }
- done();
- }
- });
- } else {
- done();
- }
- };
- Node.prototype.doCreateChildren = function doCreateChildren(array) {
- var _this2 = this;
- var defaultProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- array.forEach(function (item) {
- _this2.insertChild(merge_default()({ data: item }, defaultProps), undefined, true);
- });
- };
- Node.prototype.collapse = function collapse() {
- this.expanded = false;
- };
- Node.prototype.shouldLoadData = function shouldLoadData() {
- return this.store.lazy === true && this.store.load && !this.loaded;
- };
- Node.prototype.updateLeafState = function updateLeafState() {
- if (this.store.lazy === true && this.loaded !== true && typeof this.isLeafByUser !== 'undefined') {
- this.isLeaf = this.isLeafByUser;
- return;
- }
- var childNodes = this.childNodes;
- if (!this.store.lazy || this.store.lazy === true && this.loaded === true) {
- this.isLeaf = !childNodes || childNodes.length === 0;
- return;
- }
- this.isLeaf = false;
- };
- Node.prototype.setChecked = function setChecked(value, deep, recursion, passValue) {
- var _this3 = this;
- this.indeterminate = value === 'half';
- this.checked = value === true;
- if (this.store.checkStrictly) return;
- if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
- var _getChildState2 = getChildState(this.childNodes),
- all = _getChildState2.all,
- allWithoutDisable = _getChildState2.allWithoutDisable;
- if (!this.isLeaf && !all && allWithoutDisable) {
- this.checked = false;
- value = false;
- }
- var handleDescendants = function handleDescendants() {
- if (deep) {
- var childNodes = _this3.childNodes;
- for (var i = 0, j = childNodes.length; i < j; i++) {
- var child = childNodes[i];
- passValue = passValue || value !== false;
- var isCheck = child.disabled ? child.checked : passValue;
- child.setChecked(isCheck, deep, true, passValue);
- }
- var _getChildState3 = getChildState(childNodes),
- half = _getChildState3.half,
- _all = _getChildState3.all;
- if (!_all) {
- _this3.checked = _all;
- _this3.indeterminate = half;
- }
- }
- };
- if (this.shouldLoadData()) {
- // Only work on lazy load data.
- this.loadData(function () {
- handleDescendants();
- reInitChecked(_this3);
- }, {
- checked: value !== false
- });
- return;
- } else {
- handleDescendants();
- }
- }
- var parent = this.parent;
- if (!parent || parent.level === 0) return;
- if (!recursion) {
- reInitChecked(parent);
- }
- };
- Node.prototype.getChildren = function getChildren() {
- var forceInit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- // this is data
- if (this.level === 0) return this.data;
- var data = this.data;
- if (!data) return null;
- var props = this.store.props;
- var children = 'children';
- if (props) {
- children = props.children || 'children';
- }
- if (data[children] === undefined) {
- data[children] = null;
- }
- if (forceInit && !data[children]) {
- data[children] = [];
- }
- return data[children];
- };
- Node.prototype.updateChildren = function updateChildren() {
- var _this4 = this;
- var newData = this.getChildren() || [];
- var oldData = this.childNodes.map(function (node) {
- return node.data;
- });
- var newDataMap = {};
- var newNodes = [];
- newData.forEach(function (item, index) {
- var key = item[NODE_KEY];
- var isNodeExists = !!key && Object(util_["arrayFindIndex"])(oldData, function (data) {
- return data[NODE_KEY] === key;
- }) >= 0;
- if (isNodeExists) {
- newDataMap[key] = { index: index, data: item };
- } else {
- newNodes.push({ index: index, data: item });
- }
- });
- if (!this.store.lazy) {
- oldData.forEach(function (item) {
- if (!newDataMap[item[NODE_KEY]]) _this4.removeChildByData(item);
- });
- }
- newNodes.forEach(function (_ref) {
- var index = _ref.index,
- data = _ref.data;
- _this4.insertChild({ data: data }, index);
- });
- this.updateLeafState();
- };
- Node.prototype.loadData = function loadData(callback) {
- var _this5 = this;
- var defaultProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (this.store.lazy === true && this.store.load && !this.loaded && (!this.loading || Object.keys(defaultProps).length)) {
- this.loading = true;
- var resolve = function resolve(children) {
- _this5.loaded = true;
- _this5.loading = false;
- _this5.childNodes = [];
- _this5.doCreateChildren(children, defaultProps);
- _this5.updateLeafState();
- if (callback) {
- callback.call(_this5, children);
- }
- };
- this.store.load(this, resolve);
- } else {
- if (callback) {
- callback.call(this);
- }
- }
- };
- _createClass(Node, [{
- key: 'label',
- get: function get() {
- return getPropertyFromData(this, 'label');
- }
- }, {
- key: 'key',
- get: function get() {
- var nodeKey = this.store.key;
- if (this.data) return this.data[nodeKey];
- return null;
- }
- }, {
- key: 'disabled',
- get: function get() {
- return getPropertyFromData(this, 'disabled');
- }
- }, {
- key: 'nextSibling',
- get: function get() {
- var parent = this.parent;
- if (parent) {
- var index = parent.childNodes.indexOf(this);
- if (index > -1) {
- return parent.childNodes[index + 1];
- }
- }
- return null;
- }
- }, {
- key: 'previousSibling',
- get: function get() {
- var parent = this.parent;
- if (parent) {
- var index = parent.childNodes.indexOf(this);
- if (index > -1) {
- return index > 0 ? parent.childNodes[index - 1] : null;
- }
- }
- return null;
- }
- }]);
- return Node;
- }();
- /* harmony default export */ var model_node = (node_Node);
- // CONCATENATED MODULE: ./packages/tree/src/model/tree-store.js
- var tree_store_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- function tree_store_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var tree_store_TreeStore = function () {
- function TreeStore(options) {
- var _this = this;
- tree_store_classCallCheck(this, TreeStore);
- this.currentNode = null;
- this.currentNodeKey = null;
- for (var option in options) {
- if (options.hasOwnProperty(option)) {
- this[option] = options[option];
- }
- }
- this.nodesMap = {};
- this.root = new model_node({
- data: this.data,
- store: this
- });
- if (this.lazy && this.load) {
- var loadFn = this.load;
- loadFn(this.root, function (data) {
- _this.root.doCreateChildren(data);
- _this._initDefaultCheckedNodes();
- });
- } else {
- this._initDefaultCheckedNodes();
- }
- }
- TreeStore.prototype.filter = function filter(value) {
- var filterNodeMethod = this.filterNodeMethod;
- var lazy = this.lazy;
- var traverse = function traverse(node) {
- var childNodes = node.root ? node.root.childNodes : node.childNodes;
- childNodes.forEach(function (child) {
- child.visible = filterNodeMethod.call(child, value, child.data, child);
- traverse(child);
- });
- if (!node.visible && childNodes.length) {
- var allHidden = true;
- allHidden = !childNodes.some(function (child) {
- return child.visible;
- });
- if (node.root) {
- node.root.visible = allHidden === false;
- } else {
- node.visible = allHidden === false;
- }
- }
- if (!value) return;
- if (node.visible && !node.isLeaf && !lazy) node.expand();
- };
- traverse(this);
- };
- TreeStore.prototype.setData = function setData(newVal) {
- var instanceChanged = newVal !== this.root.data;
- if (instanceChanged) {
- this.root.setData(newVal);
- this._initDefaultCheckedNodes();
- } else {
- this.root.updateChildren();
- }
- };
- TreeStore.prototype.getNode = function getNode(data) {
- if (data instanceof model_node) return data;
- var key = (typeof data === 'undefined' ? 'undefined' : tree_store_typeof(data)) !== 'object' ? data : util_getNodeKey(this.key, data);
- return this.nodesMap[key] || null;
- };
- TreeStore.prototype.insertBefore = function insertBefore(data, refData) {
- var refNode = this.getNode(refData);
- refNode.parent.insertBefore({ data: data }, refNode);
- };
- TreeStore.prototype.insertAfter = function insertAfter(data, refData) {
- var refNode = this.getNode(refData);
- refNode.parent.insertAfter({ data: data }, refNode);
- };
- TreeStore.prototype.remove = function remove(data) {
- var node = this.getNode(data);
- if (node && node.parent) {
- if (node === this.currentNode) {
- this.currentNode = null;
- }
- node.parent.removeChild(node);
- }
- };
- TreeStore.prototype.append = function append(data, parentData) {
- var parentNode = parentData ? this.getNode(parentData) : this.root;
- if (parentNode) {
- parentNode.insertChild({ data: data });
- }
- };
- TreeStore.prototype._initDefaultCheckedNodes = function _initDefaultCheckedNodes() {
- var _this2 = this;
- var defaultCheckedKeys = this.defaultCheckedKeys || [];
- var nodesMap = this.nodesMap;
- defaultCheckedKeys.forEach(function (checkedKey) {
- var node = nodesMap[checkedKey];
- if (node) {
- node.setChecked(true, !_this2.checkStrictly);
- }
- });
- };
- TreeStore.prototype._initDefaultCheckedNode = function _initDefaultCheckedNode(node) {
- var defaultCheckedKeys = this.defaultCheckedKeys || [];
- if (defaultCheckedKeys.indexOf(node.key) !== -1) {
- node.setChecked(true, !this.checkStrictly);
- }
- };
- TreeStore.prototype.setDefaultCheckedKey = function setDefaultCheckedKey(newVal) {
- if (newVal !== this.defaultCheckedKeys) {
- this.defaultCheckedKeys = newVal;
- this._initDefaultCheckedNodes();
- }
- };
- TreeStore.prototype.registerNode = function registerNode(node) {
- var key = this.key;
- if (!key || !node || !node.data) return;
- var nodeKey = node.key;
- if (nodeKey !== undefined) this.nodesMap[node.key] = node;
- };
- TreeStore.prototype.deregisterNode = function deregisterNode(node) {
- var _this3 = this;
- var key = this.key;
- if (!key || !node || !node.data) return;
- node.childNodes.forEach(function (child) {
- _this3.deregisterNode(child);
- });
- delete this.nodesMap[node.key];
- };
- TreeStore.prototype.getCheckedNodes = function getCheckedNodes() {
- var leafOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- var includeHalfChecked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var checkedNodes = [];
- var traverse = function traverse(node) {
- var childNodes = node.root ? node.root.childNodes : node.childNodes;
- childNodes.forEach(function (child) {
- if ((child.checked || includeHalfChecked && child.indeterminate) && (!leafOnly || leafOnly && child.isLeaf)) {
- checkedNodes.push(child.data);
- }
- traverse(child);
- });
- };
- traverse(this);
- return checkedNodes;
- };
- TreeStore.prototype.getCheckedKeys = function getCheckedKeys() {
- var _this4 = this;
- var leafOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- return this.getCheckedNodes(leafOnly).map(function (data) {
- return (data || {})[_this4.key];
- });
- };
- TreeStore.prototype.getHalfCheckedNodes = function getHalfCheckedNodes() {
- var nodes = [];
- var traverse = function traverse(node) {
- var childNodes = node.root ? node.root.childNodes : node.childNodes;
- childNodes.forEach(function (child) {
- if (child.indeterminate) {
- nodes.push(child.data);
- }
- traverse(child);
- });
- };
- traverse(this);
- return nodes;
- };
- TreeStore.prototype.getHalfCheckedKeys = function getHalfCheckedKeys() {
- var _this5 = this;
- return this.getHalfCheckedNodes().map(function (data) {
- return (data || {})[_this5.key];
- });
- };
- TreeStore.prototype._getAllNodes = function _getAllNodes() {
- var allNodes = [];
- var nodesMap = this.nodesMap;
- for (var nodeKey in nodesMap) {
- if (nodesMap.hasOwnProperty(nodeKey)) {
- allNodes.push(nodesMap[nodeKey]);
- }
- }
- return allNodes;
- };
- TreeStore.prototype.updateChildren = function updateChildren(key, data) {
- var node = this.nodesMap[key];
- if (!node) return;
- var childNodes = node.childNodes;
- for (var i = childNodes.length - 1; i >= 0; i--) {
- var child = childNodes[i];
- this.remove(child.data);
- }
- for (var _i = 0, j = data.length; _i < j; _i++) {
- var _child = data[_i];
- this.append(_child, node.data);
- }
- };
- TreeStore.prototype._setCheckedKeys = function _setCheckedKeys(key) {
- var leafOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var checkedKeys = arguments[2];
- var allNodes = this._getAllNodes().sort(function (a, b) {
- return b.level - a.level;
- });
- var cache = Object.create(null);
- var keys = Object.keys(checkedKeys);
- allNodes.forEach(function (node) {
- return node.setChecked(false, false);
- });
- for (var i = 0, j = allNodes.length; i < j; i++) {
- var node = allNodes[i];
- var nodeKey = node.data[key].toString();
- var checked = keys.indexOf(nodeKey) > -1;
- if (!checked) {
- if (node.checked && !cache[nodeKey]) {
- node.setChecked(false, false);
- }
- continue;
- }
- var parent = node.parent;
- while (parent && parent.level > 0) {
- cache[parent.data[key]] = true;
- parent = parent.parent;
- }
- if (node.isLeaf || this.checkStrictly) {
- node.setChecked(true, false);
- continue;
- }
- node.setChecked(true, true);
- if (leafOnly) {
- (function () {
- node.setChecked(false, false);
- var traverse = function traverse(node) {
- var childNodes = node.childNodes;
- childNodes.forEach(function (child) {
- if (!child.isLeaf) {
- child.setChecked(false, false);
- }
- traverse(child);
- });
- };
- traverse(node);
- })();
- }
- }
- };
- TreeStore.prototype.setCheckedNodes = function setCheckedNodes(array) {
- var leafOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var key = this.key;
- var checkedKeys = {};
- array.forEach(function (item) {
- checkedKeys[(item || {})[key]] = true;
- });
- this._setCheckedKeys(key, leafOnly, checkedKeys);
- };
- TreeStore.prototype.setCheckedKeys = function setCheckedKeys(keys) {
- var leafOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- this.defaultCheckedKeys = keys;
- var key = this.key;
- var checkedKeys = {};
- keys.forEach(function (key) {
- checkedKeys[key] = true;
- });
- this._setCheckedKeys(key, leafOnly, checkedKeys);
- };
- TreeStore.prototype.setDefaultExpandedKeys = function setDefaultExpandedKeys(keys) {
- var _this6 = this;
- keys = keys || [];
- this.defaultExpandedKeys = keys;
- keys.forEach(function (key) {
- var node = _this6.getNode(key);
- if (node) node.expand(null, _this6.autoExpandParent);
- });
- };
- TreeStore.prototype.setChecked = function setChecked(data, checked, deep) {
- var node = this.getNode(data);
- if (node) {
- node.setChecked(!!checked, deep);
- }
- };
- TreeStore.prototype.getCurrentNode = function getCurrentNode() {
- return this.currentNode;
- };
- TreeStore.prototype.setCurrentNode = function setCurrentNode(currentNode) {
- var prevCurrentNode = this.currentNode;
- if (prevCurrentNode) {
- prevCurrentNode.isCurrent = false;
- }
- this.currentNode = currentNode;
- this.currentNode.isCurrent = true;
- };
- TreeStore.prototype.setUserCurrentNode = function setUserCurrentNode(node) {
- var key = node[this.key];
- var currNode = this.nodesMap[key];
- this.setCurrentNode(currNode);
- };
- TreeStore.prototype.setCurrentNodeKey = function setCurrentNodeKey(key) {
- if (key === null || key === undefined) {
- this.currentNode && (this.currentNode.isCurrent = false);
- this.currentNode = null;
- return;
- }
- var node = this.getNode(key);
- if (node) {
- this.setCurrentNode(node);
- }
- };
- return TreeStore;
- }();
- /* harmony default export */ var tree_store = (tree_store_TreeStore);
- ;
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree-node.vue?vue&type=template&id=3ba3ef0e&
- var tree_nodevue_type_template_id_3ba3ef0e_render = function() {
- var this$1 = this
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.node.visible,
- expression: "node.visible"
- }
- ],
- ref: "node",
- staticClass: "el-tree-node",
- class: {
- "is-expanded": _vm.expanded,
- "is-current": _vm.node.isCurrent,
- "is-hidden": !_vm.node.visible,
- "is-focusable": !_vm.node.disabled,
- "is-checked": !_vm.node.disabled && _vm.node.checked
- },
- attrs: {
- role: "treeitem",
- tabindex: "-1",
- "aria-expanded": _vm.expanded,
- "aria-disabled": _vm.node.disabled,
- "aria-checked": _vm.node.checked,
- draggable: _vm.tree.draggable
- },
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.handleClick($event)
- },
- contextmenu: function($event) {
- return this$1.handleContextMenu($event)
- },
- dragstart: function($event) {
- $event.stopPropagation()
- return _vm.handleDragStart($event)
- },
- dragover: function($event) {
- $event.stopPropagation()
- return _vm.handleDragOver($event)
- },
- dragend: function($event) {
- $event.stopPropagation()
- return _vm.handleDragEnd($event)
- },
- drop: function($event) {
- $event.stopPropagation()
- return _vm.handleDrop($event)
- }
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-tree-node__content",
- style: {
- "padding-left": (_vm.node.level - 1) * _vm.tree.indent + "px"
- }
- },
- [
- _c("span", {
- class: [
- {
- "is-leaf": _vm.node.isLeaf,
- expanded: !_vm.node.isLeaf && _vm.expanded
- },
- "el-tree-node__expand-icon",
- _vm.tree.iconClass ? _vm.tree.iconClass : "el-icon-caret-right"
- ],
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.handleExpandIconClick($event)
- }
- }
- }),
- _vm.showCheckbox
- ? _c("el-checkbox", {
- attrs: {
- indeterminate: _vm.node.indeterminate,
- disabled: !!_vm.node.disabled
- },
- on: { change: _vm.handleCheckChange },
- nativeOn: {
- click: function($event) {
- $event.stopPropagation()
- }
- },
- model: {
- value: _vm.node.checked,
- callback: function($$v) {
- _vm.$set(_vm.node, "checked", $$v)
- },
- expression: "node.checked"
- }
- })
- : _vm._e(),
- _vm.node.loading
- ? _c("span", {
- staticClass: "el-tree-node__loading-icon el-icon-loading"
- })
- : _vm._e(),
- _c("node-content", { attrs: { node: _vm.node } })
- ],
- 1
- ),
- _c("el-collapse-transition", [
- !_vm.renderAfterExpand || _vm.childNodeRendered
- ? _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.expanded,
- expression: "expanded"
- }
- ],
- staticClass: "el-tree-node__children",
- attrs: { role: "group", "aria-expanded": _vm.expanded }
- },
- _vm._l(_vm.node.childNodes, function(child) {
- return _c("el-tree-node", {
- key: _vm.getNodeKey(child),
- attrs: {
- "render-content": _vm.renderContent,
- "render-after-expand": _vm.renderAfterExpand,
- "show-checkbox": _vm.showCheckbox,
- node: child
- },
- on: { "node-expand": _vm.handleChildNodeExpand }
- })
- }),
- 1
- )
- : _vm._e()
- ])
- ],
- 1
- )
- }
- var tree_nodevue_type_template_id_3ba3ef0e_staticRenderFns = []
- tree_nodevue_type_template_id_3ba3ef0e_render._withStripped = true
- // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue?vue&type=template&id=3ba3ef0e&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree-node.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var tree_nodevue_type_script_lang_js_ = ({
- name: 'ElTreeNode',
- componentName: 'ElTreeNode',
- mixins: [emitter_default.a],
- props: {
- node: {
- default: function _default() {
- return {};
- }
- },
- props: {},
- renderContent: Function,
- renderAfterExpand: {
- type: Boolean,
- default: true
- },
- showCheckbox: {
- type: Boolean,
- default: false
- }
- },
- components: {
- ElCollapseTransition: collapse_transition_default.a,
- ElCheckbox: checkbox_default.a,
- NodeContent: {
- props: {
- node: {
- required: true
- }
- },
- render: function render(h) {
- var parent = this.$parent;
- var tree = parent.tree;
- var node = this.node;
- var data = node.data,
- store = node.store;
- return parent.renderContent ? parent.renderContent.call(parent._renderProxy, h, { _self: tree.$vnode.context, node: node, data: data, store: store }) : tree.$scopedSlots.default ? tree.$scopedSlots.default({ node: node, data: data }) : h(
- 'span',
- { 'class': 'el-tree-node__label' },
- [node.label]
- );
- }
- }
- },
- data: function data() {
- return {
- tree: null,
- expanded: false,
- childNodeRendered: false,
- oldChecked: null,
- oldIndeterminate: null
- };
- },
- watch: {
- 'node.indeterminate': function nodeIndeterminate(val) {
- this.handleSelectChange(this.node.checked, val);
- },
- 'node.checked': function nodeChecked(val) {
- this.handleSelectChange(val, this.node.indeterminate);
- },
- 'node.expanded': function nodeExpanded(val) {
- var _this = this;
- this.$nextTick(function () {
- return _this.expanded = val;
- });
- if (val) {
- this.childNodeRendered = true;
- }
- }
- },
- methods: {
- getNodeKey: function getNodeKey(node) {
- return util_getNodeKey(this.tree.nodeKey, node.data);
- },
- handleSelectChange: function handleSelectChange(checked, indeterminate) {
- if (this.oldChecked !== checked && this.oldIndeterminate !== indeterminate) {
- this.tree.$emit('check-change', this.node.data, checked, indeterminate);
- }
- this.oldChecked = checked;
- this.indeterminate = indeterminate;
- },
- handleClick: function handleClick() {
- var store = this.tree.store;
- store.setCurrentNode(this.node);
- this.tree.$emit('current-change', store.currentNode ? store.currentNode.data : null, store.currentNode);
- this.tree.currentNode = this;
- if (this.tree.expandOnClickNode) {
- this.handleExpandIconClick();
- }
- if (this.tree.checkOnClickNode && !this.node.disabled) {
- this.handleCheckChange(null, {
- target: { checked: !this.node.checked }
- });
- }
- this.tree.$emit('node-click', this.node.data, this.node, this);
- },
- handleContextMenu: function handleContextMenu(event) {
- if (this.tree._events['node-contextmenu'] && this.tree._events['node-contextmenu'].length > 0) {
- event.stopPropagation();
- event.preventDefault();
- }
- this.tree.$emit('node-contextmenu', event, this.node.data, this.node, this);
- },
- handleExpandIconClick: function handleExpandIconClick() {
- if (this.node.isLeaf) return;
- if (this.expanded) {
- this.tree.$emit('node-collapse', this.node.data, this.node, this);
- this.node.collapse();
- } else {
- this.node.expand();
- this.$emit('node-expand', this.node.data, this.node, this);
- }
- },
- handleCheckChange: function handleCheckChange(value, ev) {
- var _this2 = this;
- this.node.setChecked(ev.target.checked, !this.tree.checkStrictly);
- this.$nextTick(function () {
- var store = _this2.tree.store;
- _this2.tree.$emit('check', _this2.node.data, {
- checkedNodes: store.getCheckedNodes(),
- checkedKeys: store.getCheckedKeys(),
- halfCheckedNodes: store.getHalfCheckedNodes(),
- halfCheckedKeys: store.getHalfCheckedKeys()
- });
- });
- },
- handleChildNodeExpand: function handleChildNodeExpand(nodeData, node, instance) {
- this.broadcast('ElTreeNode', 'tree-node-expand', node);
- this.tree.$emit('node-expand', nodeData, node, instance);
- },
- handleDragStart: function handleDragStart(event) {
- if (!this.tree.draggable) return;
- this.tree.$emit('tree-node-drag-start', event, this);
- },
- handleDragOver: function handleDragOver(event) {
- if (!this.tree.draggable) return;
- this.tree.$emit('tree-node-drag-over', event, this);
- event.preventDefault();
- },
- handleDrop: function handleDrop(event) {
- event.preventDefault();
- },
- handleDragEnd: function handleDragEnd(event) {
- if (!this.tree.draggable) return;
- this.tree.$emit('tree-node-drag-end', event, this);
- }
- },
- created: function created() {
- var _this3 = this;
- var parent = this.$parent;
- if (parent.isTree) {
- this.tree = parent;
- } else {
- this.tree = parent.tree;
- }
- var tree = this.tree;
- if (!tree) {
- console.warn('Can not find node\'s tree.');
- }
- var props = tree.props || {};
- var childrenKey = props['children'] || 'children';
- this.$watch('node.data.' + childrenKey, function () {
- _this3.node.updateChildren();
- });
- if (this.node.expanded) {
- this.expanded = true;
- this.childNodeRendered = true;
- }
- if (this.tree.accordion) {
- this.$on('tree-node-expand', function (node) {
- if (_this3.node !== node) {
- _this3.node.collapse();
- }
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tree_nodevue_type_script_lang_js_ = (tree_nodevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue
- /* normalize component */
- var tree_node_component = normalizeComponent(
- src_tree_nodevue_type_script_lang_js_,
- tree_nodevue_type_template_id_3ba3ef0e_render,
- tree_nodevue_type_template_id_3ba3ef0e_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tree_node_api; }
- tree_node_component.options.__file = "packages/tree/src/tree-node.vue"
- /* harmony default export */ var tree_node = (tree_node_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var treevue_type_script_lang_js_ = ({
- name: 'ElTree',
- mixins: [emitter_default.a],
- components: {
- ElTreeNode: tree_node
- },
- data: function data() {
- return {
- store: null,
- root: null,
- currentNode: null,
- treeItems: null,
- checkboxItems: [],
- dragState: {
- showDropIndicator: false,
- draggingNode: null,
- dropNode: null,
- allowDrop: true
- }
- };
- },
- props: {
- data: {
- type: Array
- },
- emptyText: {
- type: String,
- default: function _default() {
- return Object(lib_locale_["t"])('el.tree.emptyText');
- }
- },
- renderAfterExpand: {
- type: Boolean,
- default: true
- },
- nodeKey: String,
- checkStrictly: Boolean,
- defaultExpandAll: Boolean,
- expandOnClickNode: {
- type: Boolean,
- default: true
- },
- checkOnClickNode: Boolean,
- checkDescendants: {
- type: Boolean,
- default: false
- },
- autoExpandParent: {
- type: Boolean,
- default: true
- },
- defaultCheckedKeys: Array,
- defaultExpandedKeys: Array,
- currentNodeKey: [String, Number],
- renderContent: Function,
- showCheckbox: {
- type: Boolean,
- default: false
- },
- draggable: {
- type: Boolean,
- default: false
- },
- allowDrag: Function,
- allowDrop: Function,
- props: {
- default: function _default() {
- return {
- children: 'children',
- label: 'label',
- disabled: 'disabled'
- };
- }
- },
- lazy: {
- type: Boolean,
- default: false
- },
- highlightCurrent: Boolean,
- load: Function,
- filterNodeMethod: Function,
- accordion: Boolean,
- indent: {
- type: Number,
- default: 18
- },
- iconClass: String
- },
- computed: {
- children: {
- set: function set(value) {
- this.data = value;
- },
- get: function get() {
- return this.data;
- }
- },
- treeItemArray: function treeItemArray() {
- return Array.prototype.slice.call(this.treeItems);
- },
- isEmpty: function isEmpty() {
- var childNodes = this.root.childNodes;
- return !childNodes || childNodes.length === 0 || childNodes.every(function (_ref) {
- var visible = _ref.visible;
- return !visible;
- });
- }
- },
- watch: {
- defaultCheckedKeys: function defaultCheckedKeys(newVal) {
- this.store.setDefaultCheckedKey(newVal);
- },
- defaultExpandedKeys: function defaultExpandedKeys(newVal) {
- this.store.defaultExpandedKeys = newVal;
- this.store.setDefaultExpandedKeys(newVal);
- },
- data: function data(newVal) {
- this.store.setData(newVal);
- },
- checkboxItems: function checkboxItems(val) {
- Array.prototype.forEach.call(val, function (checkbox) {
- checkbox.setAttribute('tabindex', -1);
- });
- },
- checkStrictly: function checkStrictly(newVal) {
- this.store.checkStrictly = newVal;
- }
- },
- methods: {
- filter: function filter(value) {
- if (!this.filterNodeMethod) throw new Error('[Tree] filterNodeMethod is required when filter');
- this.store.filter(value);
- },
- getNodeKey: function getNodeKey(node) {
- return util_getNodeKey(this.nodeKey, node.data);
- },
- getNodePath: function getNodePath(data) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in getNodePath');
- var node = this.store.getNode(data);
- if (!node) return [];
- var path = [node.data];
- var parent = node.parent;
- while (parent && parent !== this.root) {
- path.push(parent.data);
- parent = parent.parent;
- }
- return path.reverse();
- },
- getCheckedNodes: function getCheckedNodes(leafOnly, includeHalfChecked) {
- return this.store.getCheckedNodes(leafOnly, includeHalfChecked);
- },
- getCheckedKeys: function getCheckedKeys(leafOnly) {
- return this.store.getCheckedKeys(leafOnly);
- },
- getCurrentNode: function getCurrentNode() {
- var currentNode = this.store.getCurrentNode();
- return currentNode ? currentNode.data : null;
- },
- getCurrentKey: function getCurrentKey() {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in getCurrentKey');
- var currentNode = this.getCurrentNode();
- return currentNode ? currentNode[this.nodeKey] : null;
- },
- setCheckedNodes: function setCheckedNodes(nodes, leafOnly) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCheckedNodes');
- this.store.setCheckedNodes(nodes, leafOnly);
- },
- setCheckedKeys: function setCheckedKeys(keys, leafOnly) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCheckedKeys');
- this.store.setCheckedKeys(keys, leafOnly);
- },
- setChecked: function setChecked(data, checked, deep) {
- this.store.setChecked(data, checked, deep);
- },
- getHalfCheckedNodes: function getHalfCheckedNodes() {
- return this.store.getHalfCheckedNodes();
- },
- getHalfCheckedKeys: function getHalfCheckedKeys() {
- return this.store.getHalfCheckedKeys();
- },
- setCurrentNode: function setCurrentNode(node) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCurrentNode');
- this.store.setUserCurrentNode(node);
- },
- setCurrentKey: function setCurrentKey(key) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCurrentKey');
- this.store.setCurrentNodeKey(key);
- },
- getNode: function getNode(data) {
- return this.store.getNode(data);
- },
- remove: function remove(data) {
- this.store.remove(data);
- },
- append: function append(data, parentNode) {
- this.store.append(data, parentNode);
- },
- insertBefore: function insertBefore(data, refNode) {
- this.store.insertBefore(data, refNode);
- },
- insertAfter: function insertAfter(data, refNode) {
- this.store.insertAfter(data, refNode);
- },
- handleNodeExpand: function handleNodeExpand(nodeData, node, instance) {
- this.broadcast('ElTreeNode', 'tree-node-expand', node);
- this.$emit('node-expand', nodeData, node, instance);
- },
- updateKeyChildren: function updateKeyChildren(key, data) {
- if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in updateKeyChild');
- this.store.updateChildren(key, data);
- },
- initTabIndex: function initTabIndex() {
- this.treeItems = this.$el.querySelectorAll('.is-focusable[role=treeitem]');
- this.checkboxItems = this.$el.querySelectorAll('input[type=checkbox]');
- var checkedItem = this.$el.querySelectorAll('.is-checked[role=treeitem]');
- if (checkedItem.length) {
- checkedItem[0].setAttribute('tabindex', 0);
- return;
- }
- this.treeItems[0] && this.treeItems[0].setAttribute('tabindex', 0);
- },
- handleKeydown: function handleKeydown(ev) {
- var currentItem = ev.target;
- if (currentItem.className.indexOf('el-tree-node') === -1) return;
- var keyCode = ev.keyCode;
- this.treeItems = this.$el.querySelectorAll('.is-focusable[role=treeitem]');
- var currentIndex = this.treeItemArray.indexOf(currentItem);
- var nextIndex = void 0;
- if ([38, 40].indexOf(keyCode) > -1) {
- // up、down
- ev.preventDefault();
- if (keyCode === 38) {
- // up
- nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
- } else {
- nextIndex = currentIndex < this.treeItemArray.length - 1 ? currentIndex + 1 : 0;
- }
- this.treeItemArray[nextIndex].focus(); // 选中
- }
- if ([37, 39].indexOf(keyCode) > -1) {
- // left、right 展开
- ev.preventDefault();
- currentItem.click(); // 选中
- }
- var hasInput = currentItem.querySelector('[type="checkbox"]');
- if ([13, 32].indexOf(keyCode) > -1 && hasInput) {
- // space enter选中checkbox
- ev.preventDefault();
- hasInput.click();
- }
- }
- },
- created: function created() {
- var _this = this;
- this.isTree = true;
- this.store = new tree_store({
- key: this.nodeKey,
- data: this.data,
- lazy: this.lazy,
- props: this.props,
- load: this.load,
- currentNodeKey: this.currentNodeKey,
- checkStrictly: this.checkStrictly,
- checkDescendants: this.checkDescendants,
- defaultCheckedKeys: this.defaultCheckedKeys,
- defaultExpandedKeys: this.defaultExpandedKeys,
- autoExpandParent: this.autoExpandParent,
- defaultExpandAll: this.defaultExpandAll,
- filterNodeMethod: this.filterNodeMethod
- });
- this.root = this.store.root;
- var dragState = this.dragState;
- this.$on('tree-node-drag-start', function (event, treeNode) {
- if (typeof _this.allowDrag === 'function' && !_this.allowDrag(treeNode.node)) {
- event.preventDefault();
- return false;
- }
- event.dataTransfer.effectAllowed = 'move';
- // wrap in try catch to address IE's error when first param is 'text/plain'
- try {
- // setData is required for draggable to work in FireFox
- // the content has to be '' so dragging a node out of the tree won't open a new tab in FireFox
- event.dataTransfer.setData('text/plain', '');
- } catch (e) {}
- dragState.draggingNode = treeNode;
- _this.$emit('node-drag-start', treeNode.node, event);
- });
- this.$on('tree-node-drag-over', function (event, treeNode) {
- var dropNode = findNearestComponent(event.target, 'ElTreeNode');
- var oldDropNode = dragState.dropNode;
- if (oldDropNode && oldDropNode !== dropNode) {
- Object(dom_["removeClass"])(oldDropNode.$el, 'is-drop-inner');
- }
- var draggingNode = dragState.draggingNode;
- if (!draggingNode || !dropNode) return;
- var dropPrev = true;
- var dropInner = true;
- var dropNext = true;
- var userAllowDropInner = true;
- if (typeof _this.allowDrop === 'function') {
- dropPrev = _this.allowDrop(draggingNode.node, dropNode.node, 'prev');
- userAllowDropInner = dropInner = _this.allowDrop(draggingNode.node, dropNode.node, 'inner');
- dropNext = _this.allowDrop(draggingNode.node, dropNode.node, 'next');
- }
- event.dataTransfer.dropEffect = dropInner ? 'move' : 'none';
- if ((dropPrev || dropInner || dropNext) && oldDropNode !== dropNode) {
- if (oldDropNode) {
- _this.$emit('node-drag-leave', draggingNode.node, oldDropNode.node, event);
- }
- _this.$emit('node-drag-enter', draggingNode.node, dropNode.node, event);
- }
- if (dropPrev || dropInner || dropNext) {
- dragState.dropNode = dropNode;
- }
- if (dropNode.node.nextSibling === draggingNode.node) {
- dropNext = false;
- }
- if (dropNode.node.previousSibling === draggingNode.node) {
- dropPrev = false;
- }
- if (dropNode.node.contains(draggingNode.node, false)) {
- dropInner = false;
- }
- if (draggingNode.node === dropNode.node || draggingNode.node.contains(dropNode.node)) {
- dropPrev = false;
- dropInner = false;
- dropNext = false;
- }
- var targetPosition = dropNode.$el.getBoundingClientRect();
- var treePosition = _this.$el.getBoundingClientRect();
- var dropType = void 0;
- var prevPercent = dropPrev ? dropInner ? 0.25 : dropNext ? 0.45 : 1 : -1;
- var nextPercent = dropNext ? dropInner ? 0.75 : dropPrev ? 0.55 : 0 : 1;
- var indicatorTop = -9999;
- var distance = event.clientY - targetPosition.top;
- if (distance < targetPosition.height * prevPercent) {
- dropType = 'before';
- } else if (distance > targetPosition.height * nextPercent) {
- dropType = 'after';
- } else if (dropInner) {
- dropType = 'inner';
- } else {
- dropType = 'none';
- }
- var iconPosition = dropNode.$el.querySelector('.el-tree-node__expand-icon').getBoundingClientRect();
- var dropIndicator = _this.$refs.dropIndicator;
- if (dropType === 'before') {
- indicatorTop = iconPosition.top - treePosition.top;
- } else if (dropType === 'after') {
- indicatorTop = iconPosition.bottom - treePosition.top;
- }
- dropIndicator.style.top = indicatorTop + 'px';
- dropIndicator.style.left = iconPosition.right - treePosition.left + 'px';
- if (dropType === 'inner') {
- Object(dom_["addClass"])(dropNode.$el, 'is-drop-inner');
- } else {
- Object(dom_["removeClass"])(dropNode.$el, 'is-drop-inner');
- }
- dragState.showDropIndicator = dropType === 'before' || dropType === 'after';
- dragState.allowDrop = dragState.showDropIndicator || userAllowDropInner;
- dragState.dropType = dropType;
- _this.$emit('node-drag-over', draggingNode.node, dropNode.node, event);
- });
- this.$on('tree-node-drag-end', function (event) {
- var draggingNode = dragState.draggingNode,
- dropType = dragState.dropType,
- dropNode = dragState.dropNode;
- event.preventDefault();
- event.dataTransfer.dropEffect = 'move';
- if (draggingNode && dropNode) {
- var draggingNodeCopy = { data: draggingNode.node.data };
- if (dropType !== 'none') {
- draggingNode.node.remove();
- }
- if (dropType === 'before') {
- dropNode.node.parent.insertBefore(draggingNodeCopy, dropNode.node);
- } else if (dropType === 'after') {
- dropNode.node.parent.insertAfter(draggingNodeCopy, dropNode.node);
- } else if (dropType === 'inner') {
- dropNode.node.insertChild(draggingNodeCopy);
- }
- if (dropType !== 'none') {
- _this.store.registerNode(draggingNodeCopy);
- }
- Object(dom_["removeClass"])(dropNode.$el, 'is-drop-inner');
- _this.$emit('node-drag-end', draggingNode.node, dropNode.node, dropType, event);
- if (dropType !== 'none') {
- _this.$emit('node-drop', draggingNode.node, dropNode.node, dropType, event);
- }
- }
- if (draggingNode && !dropNode) {
- _this.$emit('node-drag-end', draggingNode.node, null, dropType, event);
- }
- dragState.showDropIndicator = false;
- dragState.draggingNode = null;
- dragState.dropNode = null;
- dragState.allowDrop = true;
- });
- },
- mounted: function mounted() {
- this.initTabIndex();
- this.$el.addEventListener('keydown', this.handleKeydown);
- },
- updated: function updated() {
- this.treeItems = this.$el.querySelectorAll('[role=treeitem]');
- this.checkboxItems = this.$el.querySelectorAll('input[type=checkbox]');
- }
- });
- // CONCATENATED MODULE: ./packages/tree/src/tree.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_treevue_type_script_lang_js_ = (treevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/tree/src/tree.vue
- /* normalize component */
- var tree_component = normalizeComponent(
- src_treevue_type_script_lang_js_,
- treevue_type_template_id_547575a6_render,
- treevue_type_template_id_547575a6_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var tree_api; }
- tree_component.options.__file = "packages/tree/src/tree.vue"
- /* harmony default export */ var src_tree = (tree_component.exports);
- // CONCATENATED MODULE: ./packages/tree/index.js
- /* istanbul ignore next */
- src_tree.install = function (Vue) {
- Vue.component(src_tree.name, src_tree);
- };
- /* harmony default export */ var packages_tree = (src_tree);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
- var mainvue_type_template_id_6e53341b_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "el-alert-fade" } }, [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-alert",
- class: [
- _vm.typeClass,
- _vm.center ? "is-center" : "",
- "is-" + _vm.effect
- ],
- attrs: { role: "alert" }
- },
- [
- _vm.showIcon
- ? _c("i", {
- staticClass: "el-alert__icon",
- class: [_vm.iconClass, _vm.isBigIcon]
- })
- : _vm._e(),
- _c("div", { staticClass: "el-alert__content" }, [
- _vm.title || _vm.$slots.title
- ? _c(
- "span",
- { staticClass: "el-alert__title", class: [_vm.isBoldTitle] },
- [_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
- 2
- )
- : _vm._e(),
- _vm.$slots.default && !_vm.description
- ? _c(
- "p",
- { staticClass: "el-alert__description" },
- [_vm._t("default")],
- 2
- )
- : _vm._e(),
- _vm.description && !_vm.$slots.default
- ? _c("p", { staticClass: "el-alert__description" }, [
- _vm._v(_vm._s(_vm.description))
- ])
- : _vm._e(),
- _c(
- "i",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.closable,
- expression: "closable"
- }
- ],
- staticClass: "el-alert__closebtn",
- class: {
- "is-customed": _vm.closeText !== "",
- "el-icon-close": _vm.closeText === ""
- },
- on: {
- click: function($event) {
- _vm.close()
- }
- }
- },
- [_vm._v(_vm._s(_vm.closeText))]
- )
- ])
- ]
- )
- ])
- }
- var mainvue_type_template_id_6e53341b_staticRenderFns = []
- mainvue_type_template_id_6e53341b_render._withStripped = true
- // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var TYPE_CLASSES_MAP = {
- 'success': 'el-icon-success',
- 'warning': 'el-icon-warning',
- 'error': 'el-icon-error'
- };
- /* harmony default export */ var alert_src_mainvue_type_script_lang_js_ = ({
- name: 'ElAlert',
- props: {
- title: {
- type: String,
- default: ''
- },
- description: {
- type: String,
- default: ''
- },
- type: {
- type: String,
- default: 'info'
- },
- closable: {
- type: Boolean,
- default: true
- },
- closeText: {
- type: String,
- default: ''
- },
- showIcon: Boolean,
- center: Boolean,
- effect: {
- type: String,
- default: 'light',
- validator: function validator(value) {
- return ['light', 'dark'].indexOf(value) !== -1;
- }
- }
- },
- data: function data() {
- return {
- visible: true
- };
- },
- methods: {
- close: function close() {
- this.visible = false;
- this.$emit('close');
- }
- },
- computed: {
- typeClass: function typeClass() {
- return 'el-alert--' + this.type;
- },
- iconClass: function iconClass() {
- return TYPE_CLASSES_MAP[this.type] || 'el-icon-info';
- },
- isBigIcon: function isBigIcon() {
- return this.description || this.$slots.default ? 'is-big' : '';
- },
- isBoldTitle: function isBoldTitle() {
- return this.description || this.$slots.default ? 'is-bold' : '';
- }
- }
- });
- // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_alert_src_mainvue_type_script_lang_js_ = (alert_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/alert/src/main.vue
- /* normalize component */
- var alert_src_main_component = normalizeComponent(
- packages_alert_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_6e53341b_render,
- mainvue_type_template_id_6e53341b_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var alert_src_main_api; }
- alert_src_main_component.options.__file = "packages/alert/src/main.vue"
- /* harmony default export */ var alert_src_main = (alert_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/alert/index.js
- /* istanbul ignore next */
- alert_src_main.install = function (Vue) {
- Vue.component(alert_src_main.name, alert_src_main);
- };
- /* harmony default export */ var packages_alert = (alert_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/notification/src/main.vue?vue&type=template&id=43dbc3d8&
- var mainvue_type_template_id_43dbc3d8_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "el-notification-fade" } }, [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- class: ["el-notification", _vm.customClass, _vm.horizontalClass],
- style: _vm.positionStyle,
- attrs: { role: "alert" },
- on: {
- mouseenter: function($event) {
- _vm.clearTimer()
- },
- mouseleave: function($event) {
- _vm.startTimer()
- },
- click: _vm.click
- }
- },
- [
- _vm.type || _vm.iconClass
- ? _c("i", {
- staticClass: "el-notification__icon",
- class: [_vm.typeClass, _vm.iconClass]
- })
- : _vm._e(),
- _c(
- "div",
- {
- staticClass: "el-notification__group",
- class: { "is-with-icon": _vm.typeClass || _vm.iconClass }
- },
- [
- _c("h2", {
- staticClass: "el-notification__title",
- domProps: { textContent: _vm._s(_vm.title) }
- }),
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.message,
- expression: "message"
- }
- ],
- staticClass: "el-notification__content"
- },
- [
- _vm._t("default", [
- !_vm.dangerouslyUseHTMLString
- ? _c("p", [_vm._v(_vm._s(_vm.message))])
- : _c("p", { domProps: { innerHTML: _vm._s(_vm.message) } })
- ])
- ],
- 2
- ),
- _vm.showClose
- ? _c("div", {
- staticClass: "el-notification__closeBtn el-icon-close",
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.close($event)
- }
- }
- })
- : _vm._e()
- ]
- )
- ]
- )
- ])
- }
- var mainvue_type_template_id_43dbc3d8_staticRenderFns = []
- mainvue_type_template_id_43dbc3d8_render._withStripped = true
- // CONCATENATED MODULE: ./packages/notification/src/main.vue?vue&type=template&id=43dbc3d8&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/notification/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var mainvue_type_script_lang_js_typeMap = {
- success: 'success',
- info: 'info',
- warning: 'warning',
- error: 'error'
- };
- /* harmony default export */ var notification_src_mainvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- visible: false,
- title: '',
- message: '',
- duration: 4500,
- type: '',
- showClose: true,
- customClass: '',
- iconClass: '',
- onClose: null,
- onClick: null,
- closed: false,
- verticalOffset: 0,
- timer: null,
- dangerouslyUseHTMLString: false,
- position: 'top-right'
- };
- },
- computed: {
- typeClass: function typeClass() {
- return this.type && mainvue_type_script_lang_js_typeMap[this.type] ? 'el-icon-' + mainvue_type_script_lang_js_typeMap[this.type] : '';
- },
- horizontalClass: function horizontalClass() {
- return this.position.indexOf('right') > -1 ? 'right' : 'left';
- },
- verticalProperty: function verticalProperty() {
- return (/^top-/.test(this.position) ? 'top' : 'bottom'
- );
- },
- positionStyle: function positionStyle() {
- var _ref;
- return _ref = {}, _ref[this.verticalProperty] = this.verticalOffset + 'px', _ref;
- }
- },
- watch: {
- closed: function closed(newVal) {
- if (newVal) {
- this.visible = false;
- this.$el.addEventListener('transitionend', this.destroyElement);
- }
- }
- },
- methods: {
- destroyElement: function destroyElement() {
- this.$el.removeEventListener('transitionend', this.destroyElement);
- this.$destroy(true);
- this.$el.parentNode.removeChild(this.$el);
- },
- click: function click() {
- if (typeof this.onClick === 'function') {
- this.onClick();
- }
- },
- close: function close() {
- this.closed = true;
- if (typeof this.onClose === 'function') {
- this.onClose();
- }
- },
- clearTimer: function clearTimer() {
- clearTimeout(this.timer);
- },
- startTimer: function startTimer() {
- var _this = this;
- if (this.duration > 0) {
- this.timer = setTimeout(function () {
- if (!_this.closed) {
- _this.close();
- }
- }, this.duration);
- }
- },
- keydown: function keydown(e) {
- if (e.keyCode === 46 || e.keyCode === 8) {
- this.clearTimer(); // detele 取消倒计时
- } else if (e.keyCode === 27) {
- // esc关闭消息
- if (!this.closed) {
- this.close();
- }
- } else {
- this.startTimer(); // 恢复倒计时
- }
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- if (this.duration > 0) {
- this.timer = setTimeout(function () {
- if (!_this2.closed) {
- _this2.close();
- }
- }, this.duration);
- }
- document.addEventListener('keydown', this.keydown);
- },
- beforeDestroy: function beforeDestroy() {
- document.removeEventListener('keydown', this.keydown);
- }
- });
- // CONCATENATED MODULE: ./packages/notification/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_notification_src_mainvue_type_script_lang_js_ = (notification_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/notification/src/main.vue
- /* normalize component */
- var notification_src_main_component = normalizeComponent(
- packages_notification_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_43dbc3d8_render,
- mainvue_type_template_id_43dbc3d8_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var notification_src_main_api; }
- notification_src_main_component.options.__file = "packages/notification/src/main.vue"
- /* harmony default export */ var notification_src_main = (notification_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/notification/src/main.js
- var NotificationConstructor = external_vue_default.a.extend(notification_src_main);
- var src_main_instance = void 0;
- var instances = [];
- var seed = 1;
- var main_Notification = function Notification(options) {
- if (external_vue_default.a.prototype.$isServer) return;
- options = merge_default()({}, options);
- var userOnClose = options.onClose;
- var id = 'notification_' + seed++;
- var position = options.position || 'top-right';
- options.onClose = function () {
- Notification.close(id, userOnClose);
- };
- src_main_instance = new NotificationConstructor({
- data: options
- });
- if (Object(vdom_["isVNode"])(options.message)) {
- src_main_instance.$slots.default = [options.message];
- options.message = 'REPLACED_BY_VNODE';
- }
- src_main_instance.id = id;
- src_main_instance.$mount();
- document.body.appendChild(src_main_instance.$el);
- src_main_instance.visible = true;
- src_main_instance.dom = src_main_instance.$el;
- src_main_instance.dom.style.zIndex = popup_["PopupManager"].nextZIndex();
- var verticalOffset = options.offset || 0;
- instances.filter(function (item) {
- return item.position === position;
- }).forEach(function (item) {
- verticalOffset += item.$el.offsetHeight + 16;
- });
- verticalOffset += 16;
- src_main_instance.verticalOffset = verticalOffset;
- instances.push(src_main_instance);
- return src_main_instance;
- };
- ['success', 'warning', 'info', 'error'].forEach(function (type) {
- main_Notification[type] = function (options) {
- if (typeof options === 'string' || Object(vdom_["isVNode"])(options)) {
- options = {
- message: options
- };
- }
- options.type = type;
- return main_Notification(options);
- };
- });
- main_Notification.close = function (id, userOnClose) {
- var index = -1;
- var len = instances.length;
- var instance = instances.filter(function (instance, i) {
- if (instance.id === id) {
- index = i;
- return true;
- }
- return false;
- })[0];
- if (!instance) return;
- if (typeof userOnClose === 'function') {
- userOnClose(instance);
- }
- instances.splice(index, 1);
- if (len <= 1) return;
- var position = instance.position;
- var removedHeight = instance.dom.offsetHeight;
- for (var i = index; i < len - 1; i++) {
- if (instances[i].position === position) {
- instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
- }
- }
- };
- main_Notification.closeAll = function () {
- for (var i = instances.length - 1; i >= 0; i--) {
- instances[i].close();
- }
- };
- /* harmony default export */ var packages_notification_src_main = (main_Notification);
- // CONCATENATED MODULE: ./packages/notification/index.js
- /* harmony default export */ var notification = (packages_notification_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slider/src/main.vue?vue&type=template&id=32708644&
- var mainvue_type_template_id_32708644_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-slider",
- class: {
- "is-vertical": _vm.vertical,
- "el-slider--with-input": _vm.showInput
- },
- attrs: {
- role: "slider",
- "aria-valuemin": _vm.min,
- "aria-valuemax": _vm.max,
- "aria-orientation": _vm.vertical ? "vertical" : "horizontal",
- "aria-disabled": _vm.sliderDisabled
- }
- },
- [
- _vm.showInput && !_vm.range
- ? _c("el-input-number", {
- ref: "input",
- staticClass: "el-slider__input",
- attrs: {
- step: _vm.step,
- disabled: _vm.sliderDisabled,
- controls: _vm.showInputControls,
- min: _vm.min,
- max: _vm.max,
- debounce: _vm.debounce,
- size: _vm.inputSize
- },
- on: { change: _vm.emitChange },
- model: {
- value: _vm.firstValue,
- callback: function($$v) {
- _vm.firstValue = $$v
- },
- expression: "firstValue"
- }
- })
- : _vm._e(),
- _c(
- "div",
- {
- ref: "slider",
- staticClass: "el-slider__runway",
- class: { "show-input": _vm.showInput, disabled: _vm.sliderDisabled },
- style: _vm.runwayStyle,
- on: { click: _vm.onSliderClick }
- },
- [
- _c("div", { staticClass: "el-slider__bar", style: _vm.barStyle }),
- _c("slider-button", {
- ref: "button1",
- attrs: {
- vertical: _vm.vertical,
- "tooltip-class": _vm.tooltipClass
- },
- model: {
- value: _vm.firstValue,
- callback: function($$v) {
- _vm.firstValue = $$v
- },
- expression: "firstValue"
- }
- }),
- _vm.range
- ? _c("slider-button", {
- ref: "button2",
- attrs: {
- vertical: _vm.vertical,
- "tooltip-class": _vm.tooltipClass
- },
- model: {
- value: _vm.secondValue,
- callback: function($$v) {
- _vm.secondValue = $$v
- },
- expression: "secondValue"
- }
- })
- : _vm._e(),
- _vm._l(_vm.stops, function(item, key) {
- return _vm.showStops
- ? _c("div", {
- key: key,
- staticClass: "el-slider__stop",
- style: _vm.getStopStyle(item)
- })
- : _vm._e()
- }),
- _vm.markList.length > 0
- ? [
- _c(
- "div",
- _vm._l(_vm.markList, function(item, key) {
- return _c("div", {
- key: key,
- staticClass: "el-slider__stop el-slider__marks-stop",
- style: _vm.getStopStyle(item.position)
- })
- }),
- 0
- ),
- _c(
- "div",
- { staticClass: "el-slider__marks" },
- _vm._l(_vm.markList, function(item, key) {
- return _c("slider-marker", {
- key: key,
- style: _vm.getStopStyle(item.position),
- attrs: { mark: item.mark }
- })
- }),
- 1
- )
- ]
- : _vm._e()
- ],
- 2
- )
- ],
- 1
- )
- }
- var mainvue_type_template_id_32708644_staticRenderFns = []
- mainvue_type_template_id_32708644_render._withStripped = true
- // CONCATENATED MODULE: ./packages/slider/src/main.vue?vue&type=template&id=32708644&
- // EXTERNAL MODULE: external "element-ui/lib/input-number"
- var input_number_ = __webpack_require__(41);
- var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slider/src/button.vue?vue&type=template&id=e72d2ad2&
- var buttonvue_type_template_id_e72d2ad2_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- ref: "button",
- staticClass: "el-slider__button-wrapper",
- class: { hover: _vm.hovering, dragging: _vm.dragging },
- style: _vm.wrapperStyle,
- attrs: { tabindex: "0" },
- on: {
- mouseenter: _vm.handleMouseEnter,
- mouseleave: _vm.handleMouseLeave,
- mousedown: _vm.onButtonDown,
- touchstart: _vm.onButtonDown,
- focus: _vm.handleMouseEnter,
- blur: _vm.handleMouseLeave,
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "left", 37, $event.key, [
- "Left",
- "ArrowLeft"
- ])
- ) {
- return null
- }
- if ("button" in $event && $event.button !== 0) {
- return null
- }
- return _vm.onLeftKeyDown($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "right", 39, $event.key, [
- "Right",
- "ArrowRight"
- ])
- ) {
- return null
- }
- if ("button" in $event && $event.button !== 2) {
- return null
- }
- return _vm.onRightKeyDown($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.onLeftKeyDown($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.onRightKeyDown($event)
- }
- ]
- }
- },
- [
- _c(
- "el-tooltip",
- {
- ref: "tooltip",
- attrs: {
- placement: "top",
- "popper-class": _vm.tooltipClass,
- disabled: !_vm.showTooltip
- }
- },
- [
- _c("span", { attrs: { slot: "content" }, slot: "content" }, [
- _vm._v(_vm._s(_vm.formatValue))
- ]),
- _c("div", {
- staticClass: "el-slider__button",
- class: { hover: _vm.hovering, dragging: _vm.dragging }
- })
- ]
- )
- ],
- 1
- )
- }
- var buttonvue_type_template_id_e72d2ad2_staticRenderFns = []
- buttonvue_type_template_id_e72d2ad2_render._withStripped = true
- // CONCATENATED MODULE: ./packages/slider/src/button.vue?vue&type=template&id=e72d2ad2&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/slider/src/button.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var slider_src_buttonvue_type_script_lang_js_ = ({
- name: 'ElSliderButton',
- components: {
- ElTooltip: tooltip_default.a
- },
- props: {
- value: {
- type: Number,
- default: 0
- },
- vertical: {
- type: Boolean,
- default: false
- },
- tooltipClass: String
- },
- data: function data() {
- return {
- hovering: false,
- dragging: false,
- isClick: false,
- startX: 0,
- currentX: 0,
- startY: 0,
- currentY: 0,
- startPosition: 0,
- newPosition: null,
- oldValue: this.value
- };
- },
- computed: {
- disabled: function disabled() {
- return this.$parent.sliderDisabled;
- },
- max: function max() {
- return this.$parent.max;
- },
- min: function min() {
- return this.$parent.min;
- },
- step: function step() {
- return this.$parent.step;
- },
- showTooltip: function showTooltip() {
- return this.$parent.showTooltip;
- },
- precision: function precision() {
- return this.$parent.precision;
- },
- currentPosition: function currentPosition() {
- return (this.value - this.min) / (this.max - this.min) * 100 + '%';
- },
- enableFormat: function enableFormat() {
- return this.$parent.formatTooltip instanceof Function;
- },
- formatValue: function formatValue() {
- return this.enableFormat && this.$parent.formatTooltip(this.value) || this.value;
- },
- wrapperStyle: function wrapperStyle() {
- return this.vertical ? { bottom: this.currentPosition } : { left: this.currentPosition };
- }
- },
- watch: {
- dragging: function dragging(val) {
- this.$parent.dragging = val;
- }
- },
- methods: {
- displayTooltip: function displayTooltip() {
- this.$refs.tooltip && (this.$refs.tooltip.showPopper = true);
- },
- hideTooltip: function hideTooltip() {
- this.$refs.tooltip && (this.$refs.tooltip.showPopper = false);
- },
- handleMouseEnter: function handleMouseEnter() {
- this.hovering = true;
- this.displayTooltip();
- },
- handleMouseLeave: function handleMouseLeave() {
- this.hovering = false;
- this.hideTooltip();
- },
- onButtonDown: function onButtonDown(event) {
- if (this.disabled) return;
- event.preventDefault();
- this.onDragStart(event);
- window.addEventListener('mousemove', this.onDragging);
- window.addEventListener('touchmove', this.onDragging);
- window.addEventListener('mouseup', this.onDragEnd);
- window.addEventListener('touchend', this.onDragEnd);
- window.addEventListener('contextmenu', this.onDragEnd);
- },
- onLeftKeyDown: function onLeftKeyDown() {
- if (this.disabled) return;
- this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100;
- this.setPosition(this.newPosition);
- this.$parent.emitChange();
- },
- onRightKeyDown: function onRightKeyDown() {
- if (this.disabled) return;
- this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100;
- this.setPosition(this.newPosition);
- this.$parent.emitChange();
- },
- onDragStart: function onDragStart(event) {
- this.dragging = true;
- this.isClick = true;
- if (event.type === 'touchstart') {
- event.clientY = event.touches[0].clientY;
- event.clientX = event.touches[0].clientX;
- }
- if (this.vertical) {
- this.startY = event.clientY;
- } else {
- this.startX = event.clientX;
- }
- this.startPosition = parseFloat(this.currentPosition);
- this.newPosition = this.startPosition;
- },
- onDragging: function onDragging(event) {
- if (this.dragging) {
- this.isClick = false;
- this.displayTooltip();
- this.$parent.resetSize();
- var diff = 0;
- if (event.type === 'touchmove') {
- event.clientY = event.touches[0].clientY;
- event.clientX = event.touches[0].clientX;
- }
- if (this.vertical) {
- this.currentY = event.clientY;
- diff = (this.startY - this.currentY) / this.$parent.sliderSize * 100;
- } else {
- this.currentX = event.clientX;
- diff = (this.currentX - this.startX) / this.$parent.sliderSize * 100;
- }
- this.newPosition = this.startPosition + diff;
- this.setPosition(this.newPosition);
- }
- },
- onDragEnd: function onDragEnd() {
- var _this = this;
- if (this.dragging) {
- /*
- * 防止在 mouseup 后立即触发 click,导致滑块有几率产生一小段位移
- * 不使用 preventDefault 是因为 mouseup 和 click 没有注册在同一个 DOM 上
- */
- setTimeout(function () {
- _this.dragging = false;
- _this.hideTooltip();
- if (!_this.isClick) {
- _this.setPosition(_this.newPosition);
- _this.$parent.emitChange();
- }
- }, 0);
- window.removeEventListener('mousemove', this.onDragging);
- window.removeEventListener('touchmove', this.onDragging);
- window.removeEventListener('mouseup', this.onDragEnd);
- window.removeEventListener('touchend', this.onDragEnd);
- window.removeEventListener('contextmenu', this.onDragEnd);
- }
- },
- setPosition: function setPosition(newPosition) {
- var _this2 = this;
- if (newPosition === null || isNaN(newPosition)) return;
- if (newPosition < 0) {
- newPosition = 0;
- } else if (newPosition > 100) {
- newPosition = 100;
- }
- var lengthPerStep = 100 / ((this.max - this.min) / this.step);
- var steps = Math.round(newPosition / lengthPerStep);
- var value = steps * lengthPerStep * (this.max - this.min) * 0.01 + this.min;
- value = parseFloat(value.toFixed(this.precision));
- this.$emit('input', value);
- this.$nextTick(function () {
- _this2.displayTooltip();
- _this2.$refs.tooltip && _this2.$refs.tooltip.updatePopper();
- });
- if (!this.dragging && this.value !== this.oldValue) {
- this.oldValue = this.value;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/slider/src/button.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_slider_src_buttonvue_type_script_lang_js_ = (slider_src_buttonvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/slider/src/button.vue
- /* normalize component */
- var src_button_component = normalizeComponent(
- packages_slider_src_buttonvue_type_script_lang_js_,
- buttonvue_type_template_id_e72d2ad2_render,
- buttonvue_type_template_id_e72d2ad2_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_button_api; }
- src_button_component.options.__file = "packages/slider/src/button.vue"
- /* harmony default export */ var slider_src_button = (src_button_component.exports);
- // CONCATENATED MODULE: ./packages/slider/src/marker.js
- /* harmony default export */ var marker = ({
- name: 'ElMarker',
- props: {
- mark: {
- type: [String, Object]
- }
- },
- render: function render() {
- var h = arguments[0];
- var label = typeof this.mark === 'string' ? this.mark : this.mark.label;
- return h(
- 'div',
- { 'class': 'el-slider__marks-text', style: this.mark.style || {} },
- [label]
- );
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/slider/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var slider_src_mainvue_type_script_lang_js_ = ({
- name: 'ElSlider',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- }
- },
- props: {
- min: {
- type: Number,
- default: 0
- },
- max: {
- type: Number,
- default: 100
- },
- step: {
- type: Number,
- default: 1
- },
- value: {
- type: [Number, Array],
- default: 0
- },
- showInput: {
- type: Boolean,
- default: false
- },
- showInputControls: {
- type: Boolean,
- default: true
- },
- inputSize: {
- type: String,
- default: 'small'
- },
- showStops: {
- type: Boolean,
- default: false
- },
- showTooltip: {
- type: Boolean,
- default: true
- },
- formatTooltip: Function,
- disabled: {
- type: Boolean,
- default: false
- },
- range: {
- type: Boolean,
- default: false
- },
- vertical: {
- type: Boolean,
- default: false
- },
- height: {
- type: String
- },
- debounce: {
- type: Number,
- default: 300
- },
- label: {
- type: String
- },
- tooltipClass: String,
- marks: Object
- },
- components: {
- ElInputNumber: input_number_default.a,
- SliderButton: slider_src_button,
- SliderMarker: marker
- },
- data: function data() {
- return {
- firstValue: null,
- secondValue: null,
- oldValue: null,
- dragging: false,
- sliderSize: 1
- };
- },
- watch: {
- value: function value(val, oldVal) {
- if (this.dragging || Array.isArray(val) && Array.isArray(oldVal) && val.every(function (item, index) {
- return item === oldVal[index];
- })) {
- return;
- }
- this.setValues();
- },
- dragging: function dragging(val) {
- if (!val) {
- this.setValues();
- }
- },
- firstValue: function firstValue(val) {
- if (this.range) {
- this.$emit('input', [this.minValue, this.maxValue]);
- } else {
- this.$emit('input', val);
- }
- },
- secondValue: function secondValue() {
- if (this.range) {
- this.$emit('input', [this.minValue, this.maxValue]);
- }
- },
- min: function min() {
- this.setValues();
- },
- max: function max() {
- this.setValues();
- }
- },
- methods: {
- valueChanged: function valueChanged() {
- var _this = this;
- if (this.range) {
- return ![this.minValue, this.maxValue].every(function (item, index) {
- return item === _this.oldValue[index];
- });
- } else {
- return this.value !== this.oldValue;
- }
- },
- setValues: function setValues() {
- if (this.min > this.max) {
- console.error('[Element Error][Slider]min should not be greater than max.');
- return;
- }
- var val = this.value;
- if (this.range && Array.isArray(val)) {
- if (val[1] < this.min) {
- this.$emit('input', [this.min, this.min]);
- } else if (val[0] > this.max) {
- this.$emit('input', [this.max, this.max]);
- } else if (val[0] < this.min) {
- this.$emit('input', [this.min, val[1]]);
- } else if (val[1] > this.max) {
- this.$emit('input', [val[0], this.max]);
- } else {
- this.firstValue = val[0];
- this.secondValue = val[1];
- if (this.valueChanged()) {
- this.dispatch('ElFormItem', 'el.form.change', [this.minValue, this.maxValue]);
- this.oldValue = val.slice();
- }
- }
- } else if (!this.range && typeof val === 'number' && !isNaN(val)) {
- if (val < this.min) {
- this.$emit('input', this.min);
- } else if (val > this.max) {
- this.$emit('input', this.max);
- } else {
- this.firstValue = val;
- if (this.valueChanged()) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- this.oldValue = val;
- }
- }
- }
- },
- setPosition: function setPosition(percent) {
- var targetValue = this.min + percent * (this.max - this.min) / 100;
- if (!this.range) {
- this.$refs.button1.setPosition(percent);
- return;
- }
- var button = void 0;
- if (Math.abs(this.minValue - targetValue) < Math.abs(this.maxValue - targetValue)) {
- button = this.firstValue < this.secondValue ? 'button1' : 'button2';
- } else {
- button = this.firstValue > this.secondValue ? 'button1' : 'button2';
- }
- this.$refs[button].setPosition(percent);
- },
- onSliderClick: function onSliderClick(event) {
- if (this.sliderDisabled || this.dragging) return;
- this.resetSize();
- if (this.vertical) {
- var sliderOffsetBottom = this.$refs.slider.getBoundingClientRect().bottom;
- this.setPosition((sliderOffsetBottom - event.clientY) / this.sliderSize * 100);
- } else {
- var sliderOffsetLeft = this.$refs.slider.getBoundingClientRect().left;
- this.setPosition((event.clientX - sliderOffsetLeft) / this.sliderSize * 100);
- }
- this.emitChange();
- },
- resetSize: function resetSize() {
- if (this.$refs.slider) {
- this.sliderSize = this.$refs.slider['client' + (this.vertical ? 'Height' : 'Width')];
- }
- },
- emitChange: function emitChange() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.$emit('change', _this2.range ? [_this2.minValue, _this2.maxValue] : _this2.value);
- });
- },
- getStopStyle: function getStopStyle(position) {
- return this.vertical ? { 'bottom': position + '%' } : { 'left': position + '%' };
- }
- },
- computed: {
- stops: function stops() {
- var _this3 = this;
- if (!this.showStops || this.min > this.max) return [];
- if (this.step === 0) {
- false && false;
- return [];
- }
- var stopCount = (this.max - this.min) / this.step;
- var stepWidth = 100 * this.step / (this.max - this.min);
- var result = [];
- for (var i = 1; i < stopCount; i++) {
- result.push(i * stepWidth);
- }
- if (this.range) {
- return result.filter(function (step) {
- return step < 100 * (_this3.minValue - _this3.min) / (_this3.max - _this3.min) || step > 100 * (_this3.maxValue - _this3.min) / (_this3.max - _this3.min);
- });
- } else {
- return result.filter(function (step) {
- return step > 100 * (_this3.firstValue - _this3.min) / (_this3.max - _this3.min);
- });
- }
- },
- markList: function markList() {
- var _this4 = this;
- if (!this.marks) {
- return [];
- }
- var marksKeys = Object.keys(this.marks);
- return marksKeys.map(parseFloat).sort(function (a, b) {
- return a - b;
- }).filter(function (point) {
- return point <= _this4.max && point >= _this4.min;
- }).map(function (point) {
- return {
- point: point,
- position: (point - _this4.min) * 100 / (_this4.max - _this4.min),
- mark: _this4.marks[point]
- };
- });
- },
- minValue: function minValue() {
- return Math.min(this.firstValue, this.secondValue);
- },
- maxValue: function maxValue() {
- return Math.max(this.firstValue, this.secondValue);
- },
- barSize: function barSize() {
- return this.range ? 100 * (this.maxValue - this.minValue) / (this.max - this.min) + '%' : 100 * (this.firstValue - this.min) / (this.max - this.min) + '%';
- },
- barStart: function barStart() {
- return this.range ? 100 * (this.minValue - this.min) / (this.max - this.min) + '%' : '0%';
- },
- precision: function precision() {
- var precisions = [this.min, this.max, this.step].map(function (item) {
- var decimal = ('' + item).split('.')[1];
- return decimal ? decimal.length : 0;
- });
- return Math.max.apply(null, precisions);
- },
- runwayStyle: function runwayStyle() {
- return this.vertical ? { height: this.height } : {};
- },
- barStyle: function barStyle() {
- return this.vertical ? {
- height: this.barSize,
- bottom: this.barStart
- } : {
- width: this.barSize,
- left: this.barStart
- };
- },
- sliderDisabled: function sliderDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- mounted: function mounted() {
- var valuetext = void 0;
- if (this.range) {
- if (Array.isArray(this.value)) {
- this.firstValue = Math.max(this.min, this.value[0]);
- this.secondValue = Math.min(this.max, this.value[1]);
- } else {
- this.firstValue = this.min;
- this.secondValue = this.max;
- }
- this.oldValue = [this.firstValue, this.secondValue];
- valuetext = this.firstValue + '-' + this.secondValue;
- } else {
- if (typeof this.value !== 'number' || isNaN(this.value)) {
- this.firstValue = this.min;
- } else {
- this.firstValue = Math.min(this.max, Math.max(this.min, this.value));
- }
- this.oldValue = this.firstValue;
- valuetext = this.firstValue;
- }
- this.$el.setAttribute('aria-valuetext', valuetext);
- // label screen reader
- this.$el.setAttribute('aria-label', this.label ? this.label : 'slider between ' + this.min + ' and ' + this.max);
- this.resetSize();
- window.addEventListener('resize', this.resetSize);
- },
- beforeDestroy: function beforeDestroy() {
- window.removeEventListener('resize', this.resetSize);
- }
- });
- // CONCATENATED MODULE: ./packages/slider/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_slider_src_mainvue_type_script_lang_js_ = (slider_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/slider/src/main.vue
- /* normalize component */
- var slider_src_main_component = normalizeComponent(
- packages_slider_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_32708644_render,
- mainvue_type_template_id_32708644_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var slider_src_main_api; }
- slider_src_main_component.options.__file = "packages/slider/src/main.vue"
- /* harmony default export */ var slider_src_main = (slider_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/slider/index.js
- /* istanbul ignore next */
- slider_src_main.install = function (Vue) {
- Vue.component(slider_src_main.name, slider_src_main);
- };
- /* harmony default export */ var slider = (slider_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
- var loadingvue_type_template_id_eee0a7ac_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-loading-fade" },
- on: { "after-leave": _vm.handleAfterLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-loading-mask",
- class: [_vm.customClass, { "is-fullscreen": _vm.fullscreen }],
- style: { backgroundColor: _vm.background || "" }
- },
- [
- _c("div", { staticClass: "el-loading-spinner" }, [
- !_vm.spinner
- ? _c(
- "svg",
- {
- staticClass: "circular",
- attrs: { viewBox: "25 25 50 50" }
- },
- [
- _c("circle", {
- staticClass: "path",
- attrs: { cx: "50", cy: "50", r: "20", fill: "none" }
- })
- ]
- )
- : _c("i", { class: _vm.spinner }),
- _vm.text
- ? _c("p", { staticClass: "el-loading-text" }, [
- _vm._v(_vm._s(_vm.text))
- ])
- : _vm._e()
- ])
- ]
- )
- ]
- )
- }
- var loadingvue_type_template_id_eee0a7ac_staticRenderFns = []
- loadingvue_type_template_id_eee0a7ac_render._withStripped = true
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var loadingvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- text: null,
- spinner: null,
- background: null,
- fullscreen: true,
- visible: false,
- customClass: ''
- };
- },
- methods: {
- handleAfterLeave: function handleAfterLeave() {
- this.$emit('after-leave');
- },
- setText: function setText(text) {
- this.text = text;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_loadingvue_type_script_lang_js_ = (loadingvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue
- /* normalize component */
- var loading_component = normalizeComponent(
- src_loadingvue_type_script_lang_js_,
- loadingvue_type_template_id_eee0a7ac_render,
- loadingvue_type_template_id_eee0a7ac_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var loading_api; }
- loading_component.options.__file = "packages/loading/src/loading.vue"
- /* harmony default export */ var loading = (loading_component.exports);
- // EXTERNAL MODULE: external "element-ui/lib/utils/after-leave"
- var after_leave_ = __webpack_require__(33);
- var after_leave_default = /*#__PURE__*/__webpack_require__.n(after_leave_);
- // CONCATENATED MODULE: ./packages/loading/src/directive.js
- var Mask = external_vue_default.a.extend(loading);
- var loadingDirective = {};
- loadingDirective.install = function (Vue) {
- if (Vue.prototype.$isServer) return;
- var toggleLoading = function toggleLoading(el, binding) {
- if (binding.value) {
- Vue.nextTick(function () {
- if (binding.modifiers.fullscreen) {
- el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
- el.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
- el.maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
- Object(dom_["addClass"])(el.mask, 'is-fullscreen');
- insertDom(document.body, el, binding);
- } else {
- Object(dom_["removeClass"])(el.mask, 'is-fullscreen');
- if (binding.modifiers.body) {
- el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
- ['top', 'left'].forEach(function (property) {
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
- el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - parseInt(Object(dom_["getStyle"])(document.body, 'margin-' + property), 10) + 'px';
- });
- ['height', 'width'].forEach(function (property) {
- el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';
- });
- insertDom(document.body, el, binding);
- } else {
- el.originalPosition = Object(dom_["getStyle"])(el, 'position');
- insertDom(el, el, binding);
- }
- }
- });
- } else {
- after_leave_default()(el.instance, function (_) {
- if (!el.instance.hiding) return;
- el.domVisible = false;
- var target = binding.modifiers.fullscreen || binding.modifiers.body ? document.body : el;
- Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
- Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
- el.instance.hiding = false;
- }, 300, true);
- el.instance.visible = false;
- el.instance.hiding = true;
- }
- };
- var insertDom = function insertDom(parent, el, binding) {
- if (!el.domVisible && Object(dom_["getStyle"])(el, 'display') !== 'none' && Object(dom_["getStyle"])(el, 'visibility') !== 'hidden') {
- Object.keys(el.maskStyle).forEach(function (property) {
- el.mask.style[property] = el.maskStyle[property];
- });
- if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed') {
- Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
- }
- if (binding.modifiers.fullscreen && binding.modifiers.lock) {
- Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
- }
- el.domVisible = true;
- parent.appendChild(el.mask);
- Vue.nextTick(function () {
- if (el.instance.hiding) {
- el.instance.$emit('after-leave');
- } else {
- el.instance.visible = true;
- }
- });
- el.domInserted = true;
- } else if (el.domVisible && el.instance.hiding === true) {
- el.instance.visible = true;
- el.instance.hiding = false;
- }
- };
- Vue.directive('loading', {
- bind: function bind(el, binding, vnode) {
- var textExr = el.getAttribute('element-loading-text');
- var spinnerExr = el.getAttribute('element-loading-spinner');
- var backgroundExr = el.getAttribute('element-loading-background');
- var customClassExr = el.getAttribute('element-loading-custom-class');
- var vm = vnode.context;
- var mask = new Mask({
- el: document.createElement('div'),
- data: {
- text: vm && vm[textExr] || textExr,
- spinner: vm && vm[spinnerExr] || spinnerExr,
- background: vm && vm[backgroundExr] || backgroundExr,
- customClass: vm && vm[customClassExr] || customClassExr,
- fullscreen: !!binding.modifiers.fullscreen
- }
- });
- el.instance = mask;
- el.mask = mask.$el;
- el.maskStyle = {};
- binding.value && toggleLoading(el, binding);
- },
- update: function update(el, binding) {
- el.instance.setText(el.getAttribute('element-loading-text'));
- if (binding.oldValue !== binding.value) {
- toggleLoading(el, binding);
- }
- },
- unbind: function unbind(el, binding) {
- if (el.domInserted) {
- el.mask && el.mask.parentNode && el.mask.parentNode.removeChild(el.mask);
- toggleLoading(el, { value: false, modifiers: binding.modifiers });
- }
- el.instance && el.instance.$destroy();
- }
- });
- };
- /* harmony default export */ var src_directive = (loadingDirective);
- // CONCATENATED MODULE: ./packages/loading/src/index.js
- var LoadingConstructor = external_vue_default.a.extend(loading);
- var src_defaults = {
- text: null,
- fullscreen: true,
- body: false,
- lock: false,
- customClass: ''
- };
- var fullscreenLoading = void 0;
- LoadingConstructor.prototype.originalPosition = '';
- LoadingConstructor.prototype.originalOverflow = '';
- LoadingConstructor.prototype.close = function () {
- var _this = this;
- if (this.fullscreen) {
- fullscreenLoading = undefined;
- }
- after_leave_default()(this, function (_) {
- var target = _this.fullscreen || _this.body ? document.body : _this.target;
- Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
- Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
- if (_this.$el && _this.$el.parentNode) {
- _this.$el.parentNode.removeChild(_this.$el);
- }
- _this.$destroy();
- }, 300);
- this.visible = false;
- };
- var src_addStyle = function addStyle(options, parent, instance) {
- var maskStyle = {};
- if (options.fullscreen) {
- instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
- instance.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
- maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
- } else if (options.body) {
- instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
- ['top', 'left'].forEach(function (property) {
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
- maskStyle[property] = options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
- });
- ['height', 'width'].forEach(function (property) {
- maskStyle[property] = options.target.getBoundingClientRect()[property] + 'px';
- });
- } else {
- instance.originalPosition = Object(dom_["getStyle"])(parent, 'position');
- }
- Object.keys(maskStyle).forEach(function (property) {
- instance.$el.style[property] = maskStyle[property];
- });
- };
- var src_Loading = function Loading() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- if (external_vue_default.a.prototype.$isServer) return;
- options = merge_default()({}, src_defaults, options);
- if (typeof options.target === 'string') {
- options.target = document.querySelector(options.target);
- }
- options.target = options.target || document.body;
- if (options.target !== document.body) {
- options.fullscreen = false;
- } else {
- options.body = true;
- }
- if (options.fullscreen && fullscreenLoading) {
- return fullscreenLoading;
- }
- var parent = options.body ? document.body : options.target;
- var instance = new LoadingConstructor({
- el: document.createElement('div'),
- data: options
- });
- src_addStyle(options, parent, instance);
- if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed') {
- Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
- }
- if (options.fullscreen && options.lock) {
- Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
- }
- parent.appendChild(instance.$el);
- external_vue_default.a.nextTick(function () {
- instance.visible = true;
- });
- if (options.fullscreen) {
- fullscreenLoading = instance;
- }
- return instance;
- };
- /* harmony default export */ var src = (src_Loading);
- // CONCATENATED MODULE: ./packages/loading/index.js
- /* harmony default export */ var packages_loading = ({
- install: function install(Vue) {
- Vue.use(src_directive);
- Vue.prototype.$loading = src;
- },
- directive: src_directive,
- service: src
- });
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=cb3fe7f4&
- var iconvue_type_template_id_cb3fe7f4_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("i", { class: "el-icon-" + _vm.name })
- }
- var iconvue_type_template_id_cb3fe7f4_staticRenderFns = []
- iconvue_type_template_id_cb3fe7f4_render._withStripped = true
- // CONCATENATED MODULE: ./packages/icon/src/icon.vue?vue&type=template&id=cb3fe7f4&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/icon.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- /* harmony default export */ var iconvue_type_script_lang_js_ = ({
- name: 'ElIcon',
- props: {
- name: String
- }
- });
- // CONCATENATED MODULE: ./packages/icon/src/icon.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_iconvue_type_script_lang_js_ = (iconvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/icon/src/icon.vue
- /* normalize component */
- var icon_component = normalizeComponent(
- src_iconvue_type_script_lang_js_,
- iconvue_type_template_id_cb3fe7f4_render,
- iconvue_type_template_id_cb3fe7f4_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var icon_api; }
- icon_component.options.__file = "packages/icon/src/icon.vue"
- /* harmony default export */ var icon = (icon_component.exports);
- // CONCATENATED MODULE: ./packages/icon/index.js
- /* istanbul ignore next */
- icon.install = function (Vue) {
- Vue.component(icon.name, icon);
- };
- /* harmony default export */ var packages_icon = (icon);
- // CONCATENATED MODULE: ./packages/row/src/row.js
- /* harmony default export */ var src_row = ({
- name: 'ElRow',
- componentName: 'ElRow',
- props: {
- tag: {
- type: String,
- default: 'div'
- },
- gutter: Number,
- type: String,
- justify: {
- type: String,
- default: 'start'
- },
- align: {
- type: String,
- default: 'top'
- }
- },
- computed: {
- style: function style() {
- var ret = {};
- if (this.gutter) {
- ret.marginLeft = '-' + this.gutter / 2 + 'px';
- ret.marginRight = ret.marginLeft;
- }
- return ret;
- }
- },
- render: function render(h) {
- return h(this.tag, {
- class: ['el-row', this.justify !== 'start' ? 'is-justify-' + this.justify : '', this.align !== 'top' ? 'is-align-' + this.align : '', { 'el-row--flex': this.type === 'flex' }],
- style: this.style
- }, this.$slots.default);
- }
- });
- // CONCATENATED MODULE: ./packages/row/index.js
- /* istanbul ignore next */
- src_row.install = function (Vue) {
- Vue.component(src_row.name, src_row);
- };
- /* harmony default export */ var packages_row = (src_row);
- // CONCATENATED MODULE: ./packages/col/src/col.js
- var col_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- /* harmony default export */ var col = ({
- name: 'ElCol',
- props: {
- span: {
- type: Number,
- default: 24
- },
- tag: {
- type: String,
- default: 'div'
- },
- offset: Number,
- pull: Number,
- push: Number,
- xs: [Number, Object],
- sm: [Number, Object],
- md: [Number, Object],
- lg: [Number, Object],
- xl: [Number, Object]
- },
- computed: {
- gutter: function gutter() {
- var parent = this.$parent;
- while (parent && parent.$options.componentName !== 'ElRow') {
- parent = parent.$parent;
- }
- return parent ? parent.gutter : 0;
- }
- },
- render: function render(h) {
- var _this = this;
- var classList = [];
- var style = {};
- if (this.gutter) {
- style.paddingLeft = this.gutter / 2 + 'px';
- style.paddingRight = style.paddingLeft;
- }
- ['span', 'offset', 'pull', 'push'].forEach(function (prop) {
- if (_this[prop] || _this[prop] === 0) {
- classList.push(prop !== 'span' ? 'el-col-' + prop + '-' + _this[prop] : 'el-col-' + _this[prop]);
- }
- });
- ['xs', 'sm', 'md', 'lg', 'xl'].forEach(function (size) {
- if (typeof _this[size] === 'number') {
- classList.push('el-col-' + size + '-' + _this[size]);
- } else if (col_typeof(_this[size]) === 'object') {
- var props = _this[size];
- Object.keys(props).forEach(function (prop) {
- classList.push(prop !== 'span' ? 'el-col-' + size + '-' + prop + '-' + props[prop] : 'el-col-' + size + '-' + props[prop]);
- });
- }
- });
- return h(this.tag, {
- class: ['el-col', classList],
- style: style
- }, this.$slots.default);
- }
- });
- // CONCATENATED MODULE: ./packages/col/index.js
- /* istanbul ignore next */
- col.install = function (Vue) {
- Vue.component(col.name, col);
- };
- /* harmony default export */ var packages_col = (col);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=template&id=173fedf5&
- var upload_listvue_type_template_id_173fedf5_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition-group",
- {
- class: [
- "el-upload-list",
- "el-upload-list--" + _vm.listType,
- { "is-disabled": _vm.disabled }
- ],
- attrs: { tag: "ul", name: "el-list" }
- },
- _vm._l(_vm.files, function(file) {
- return _c(
- "li",
- {
- key: file.uid,
- class: [
- "el-upload-list__item",
- "is-" + file.status,
- _vm.focusing ? "focusing" : ""
- ],
- attrs: { tabindex: "0" },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
- "Backspace",
- "Delete",
- "Del"
- ])
- ) {
- return null
- }
- !_vm.disabled && _vm.$emit("remove", file)
- },
- focus: function($event) {
- _vm.focusing = true
- },
- blur: function($event) {
- _vm.focusing = false
- },
- click: function($event) {
- _vm.focusing = false
- }
- }
- },
- [
- _vm._t(
- "default",
- [
- file.status !== "uploading" &&
- ["picture-card", "picture"].indexOf(_vm.listType) > -1
- ? _c("img", {
- staticClass: "el-upload-list__item-thumbnail",
- attrs: { src: file.url, alt: "" }
- })
- : _vm._e(),
- _c(
- "a",
- {
- staticClass: "el-upload-list__item-name",
- on: {
- click: function($event) {
- _vm.handleClick(file)
- }
- }
- },
- [
- _c("i", { staticClass: "el-icon-document" }),
- _vm._v(_vm._s(file.name) + "\n ")
- ]
- ),
- _c(
- "label",
- { staticClass: "el-upload-list__item-status-label" },
- [
- _c("i", {
- class: {
- "el-icon-upload-success": true,
- "el-icon-circle-check": _vm.listType === "text",
- "el-icon-check":
- ["picture-card", "picture"].indexOf(_vm.listType) > -1
- }
- })
- ]
- ),
- !_vm.disabled
- ? _c("i", {
- staticClass: "el-icon-close",
- on: {
- click: function($event) {
- _vm.$emit("remove", file)
- }
- }
- })
- : _vm._e(),
- !_vm.disabled
- ? _c("i", { staticClass: "el-icon-close-tip" }, [
- _vm._v(_vm._s(_vm.t("el.upload.deleteTip")))
- ])
- : _vm._e(),
- file.status === "uploading"
- ? _c("el-progress", {
- attrs: {
- type: _vm.listType === "picture-card" ? "circle" : "line",
- "stroke-width": _vm.listType === "picture-card" ? 6 : 2,
- percentage: _vm.parsePercentage(file.percentage)
- }
- })
- : _vm._e(),
- _vm.listType === "picture-card"
- ? _c("span", { staticClass: "el-upload-list__item-actions" }, [
- _vm.handlePreview && _vm.listType === "picture-card"
- ? _c(
- "span",
- {
- staticClass: "el-upload-list__item-preview",
- on: {
- click: function($event) {
- _vm.handlePreview(file)
- }
- }
- },
- [_c("i", { staticClass: "el-icon-zoom-in" })]
- )
- : _vm._e(),
- !_vm.disabled
- ? _c(
- "span",
- {
- staticClass: "el-upload-list__item-delete",
- on: {
- click: function($event) {
- _vm.$emit("remove", file)
- }
- }
- },
- [_c("i", { staticClass: "el-icon-delete" })]
- )
- : _vm._e()
- ])
- : _vm._e()
- ],
- { file: file }
- )
- ],
- 2
- )
- }),
- 0
- )
- }
- var upload_listvue_type_template_id_173fedf5_staticRenderFns = []
- upload_listvue_type_template_id_173fedf5_render._withStripped = true
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=173fedf5&
- // EXTERNAL MODULE: external "element-ui/lib/progress"
- var progress_ = __webpack_require__(34);
- var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var upload_listvue_type_script_lang_js_ = ({
- name: 'ElUploadList',
- mixins: [locale_default.a],
- data: function data() {
- return {
- focusing: false
- };
- },
- components: { ElProgress: progress_default.a },
- props: {
- files: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- disabled: {
- type: Boolean,
- default: false
- },
- handlePreview: Function,
- listType: String
- },
- methods: {
- parsePercentage: function parsePercentage(val) {
- return parseInt(val, 10);
- },
- handleClick: function handleClick(file) {
- this.handlePreview && this.handlePreview(file);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_upload_listvue_type_script_lang_js_ = (upload_listvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue
- /* normalize component */
- var upload_list_component = normalizeComponent(
- src_upload_listvue_type_script_lang_js_,
- upload_listvue_type_template_id_173fedf5_render,
- upload_listvue_type_template_id_173fedf5_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var upload_list_api; }
- upload_list_component.options.__file = "packages/upload/src/upload-list.vue"
- /* harmony default export */ var upload_list = (upload_list_component.exports);
- // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
- var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(24);
- var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
- // CONCATENATED MODULE: ./packages/upload/src/ajax.js
- function getError(action, option, xhr) {
- var msg = void 0;
- if (xhr.response) {
- msg = '' + (xhr.response.error || xhr.response);
- } else if (xhr.responseText) {
- msg = '' + xhr.responseText;
- } else {
- msg = 'fail to post ' + action + ' ' + xhr.status;
- }
- var err = new Error(msg);
- err.status = xhr.status;
- err.method = 'post';
- err.url = action;
- return err;
- }
- function getBody(xhr) {
- var text = xhr.responseText || xhr.response;
- if (!text) {
- return text;
- }
- try {
- return JSON.parse(text);
- } catch (e) {
- return text;
- }
- }
- function upload(option) {
- if (typeof XMLHttpRequest === 'undefined') {
- return;
- }
- var xhr = new XMLHttpRequest();
- var action = option.action;
- if (xhr.upload) {
- xhr.upload.onprogress = function progress(e) {
- if (e.total > 0) {
- e.percent = e.loaded / e.total * 100;
- }
- option.onProgress(e);
- };
- }
- var formData = new FormData();
- if (option.data) {
- Object.keys(option.data).forEach(function (key) {
- formData.append(key, option.data[key]);
- });
- }
- formData.append(option.filename, option.file, option.file.name);
- xhr.onerror = function error(e) {
- option.onError(e);
- };
- xhr.onload = function onload() {
- if (xhr.status < 200 || xhr.status >= 300) {
- return option.onError(getError(action, option, xhr));
- }
- option.onSuccess(getBody(xhr));
- };
- xhr.open('post', action, true);
- if (option.withCredentials && 'withCredentials' in xhr) {
- xhr.withCredentials = true;
- }
- var headers = option.headers || {};
- for (var item in headers) {
- if (headers.hasOwnProperty(item) && headers[item] !== null) {
- xhr.setRequestHeader(item, headers[item]);
- }
- }
- xhr.send(formData);
- return xhr;
- }
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-dragger.vue?vue&type=template&id=7ebbf219&
- var upload_draggervue_type_template_id_7ebbf219_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-upload-dragger",
- class: {
- "is-dragover": _vm.dragover
- },
- on: {
- drop: function($event) {
- $event.preventDefault()
- return _vm.onDrop($event)
- },
- dragover: function($event) {
- $event.preventDefault()
- return _vm.onDragover($event)
- },
- dragleave: function($event) {
- $event.preventDefault()
- _vm.dragover = false
- }
- }
- },
- [_vm._t("default")],
- 2
- )
- }
- var upload_draggervue_type_template_id_7ebbf219_staticRenderFns = []
- upload_draggervue_type_template_id_7ebbf219_render._withStripped = true
- // CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue?vue&type=template&id=7ebbf219&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-dragger.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var upload_draggervue_type_script_lang_js_ = ({
- name: 'ElUploadDrag',
- props: {
- disabled: Boolean
- },
- inject: {
- uploader: {
- default: ''
- }
- },
- data: function data() {
- return {
- dragover: false
- };
- },
- methods: {
- onDragover: function onDragover() {
- if (!this.disabled) {
- this.dragover = true;
- }
- },
- onDrop: function onDrop(e) {
- if (this.disabled || !this.uploader) return;
- var accept = this.uploader.accept;
- this.dragover = false;
- if (!accept) {
- this.$emit('file', e.dataTransfer.files);
- return;
- }
- this.$emit('file', [].slice.call(e.dataTransfer.files).filter(function (file) {
- var type = file.type,
- name = file.name;
- var extension = name.indexOf('.') > -1 ? '.' + name.split('.').pop() : '';
- var baseType = type.replace(/\/.*$/, '');
- return accept.split(',').map(function (type) {
- return type.trim();
- }).filter(function (type) {
- return type;
- }).some(function (acceptedType) {
- if (/\..+$/.test(acceptedType)) {
- return extension === acceptedType;
- }
- if (/\/\*$/.test(acceptedType)) {
- return baseType === acceptedType.replace(/\/\*$/, '');
- }
- if (/^[^\/]+\/[^\/]+$/.test(acceptedType)) {
- return type === acceptedType;
- }
- return false;
- });
- }));
- }
- }
- });
- // CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_upload_draggervue_type_script_lang_js_ = (upload_draggervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue
- /* normalize component */
- var upload_dragger_component = normalizeComponent(
- src_upload_draggervue_type_script_lang_js_,
- upload_draggervue_type_template_id_7ebbf219_render,
- upload_draggervue_type_template_id_7ebbf219_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var upload_dragger_api; }
- upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vue"
- /* harmony default export */ var upload_dragger = (upload_dragger_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload.vue?vue&type=script&lang=js&
- /* harmony default export */ var uploadvue_type_script_lang_js_ = ({
- inject: ['uploader'],
- components: {
- UploadDragger: upload_dragger
- },
- props: {
- type: String,
- action: {
- type: String,
- required: true
- },
- name: {
- type: String,
- default: 'file'
- },
- data: Object,
- headers: Object,
- withCredentials: Boolean,
- multiple: Boolean,
- accept: String,
- onStart: Function,
- onProgress: Function,
- onSuccess: Function,
- onError: Function,
- beforeUpload: Function,
- drag: Boolean,
- onPreview: {
- type: Function,
- default: function _default() {}
- },
- onRemove: {
- type: Function,
- default: function _default() {}
- },
- fileList: Array,
- autoUpload: Boolean,
- listType: String,
- httpRequest: {
- type: Function,
- default: upload
- },
- disabled: Boolean,
- limit: Number,
- onExceed: Function
- },
- data: function data() {
- return {
- mouseover: false,
- reqs: {}
- };
- },
- methods: {
- isImage: function isImage(str) {
- return str.indexOf('image') !== -1;
- },
- handleChange: function handleChange(ev) {
- var files = ev.target.files;
- if (!files) return;
- this.uploadFiles(files);
- },
- uploadFiles: function uploadFiles(files) {
- var _this = this;
- if (this.limit && this.fileList.length + files.length > this.limit) {
- this.onExceed && this.onExceed(files, this.fileList);
- return;
- }
- var postFiles = Array.prototype.slice.call(files);
- if (!this.multiple) {
- postFiles = postFiles.slice(0, 1);
- }
- if (postFiles.length === 0) {
- return;
- }
- postFiles.forEach(function (rawFile) {
- _this.onStart(rawFile);
- if (_this.autoUpload) _this.upload(rawFile);
- });
- },
- upload: function upload(rawFile) {
- var _this2 = this;
- this.$refs.input.value = null;
- if (!this.beforeUpload) {
- return this.post(rawFile);
- }
- var before = this.beforeUpload(rawFile);
- if (before && before.then) {
- before.then(function (processedFile) {
- var fileType = Object.prototype.toString.call(processedFile);
- if (fileType === '[object File]' || fileType === '[object Blob]') {
- if (fileType === '[object Blob]') {
- processedFile = new File([processedFile], rawFile.name, {
- type: rawFile.type
- });
- }
- for (var p in rawFile) {
- if (rawFile.hasOwnProperty(p)) {
- processedFile[p] = rawFile[p];
- }
- }
- _this2.post(processedFile);
- } else {
- _this2.post(rawFile);
- }
- }, function () {
- _this2.onRemove(null, rawFile);
- });
- } else if (before !== false) {
- this.post(rawFile);
- } else {
- this.onRemove(null, rawFile);
- }
- },
- abort: function abort(file) {
- var reqs = this.reqs;
- if (file) {
- var uid = file;
- if (file.uid) uid = file.uid;
- if (reqs[uid]) {
- reqs[uid].abort();
- }
- } else {
- Object.keys(reqs).forEach(function (uid) {
- if (reqs[uid]) reqs[uid].abort();
- delete reqs[uid];
- });
- }
- },
- post: function post(rawFile) {
- var _this3 = this;
- var uid = rawFile.uid;
- var options = {
- headers: this.headers,
- withCredentials: this.withCredentials,
- file: rawFile,
- data: this.data,
- filename: this.name,
- action: this.action,
- onProgress: function onProgress(e) {
- _this3.onProgress(e, rawFile);
- },
- onSuccess: function onSuccess(res) {
- _this3.onSuccess(res, rawFile);
- delete _this3.reqs[uid];
- },
- onError: function onError(err) {
- _this3.onError(err, rawFile);
- delete _this3.reqs[uid];
- }
- };
- var req = this.httpRequest(options);
- this.reqs[uid] = req;
- if (req && req.then) {
- req.then(options.onSuccess, options.onError);
- }
- },
- handleClick: function handleClick() {
- if (!this.disabled) {
- this.$refs.input.value = null;
- this.$refs.input.click();
- }
- },
- handleKeydown: function handleKeydown(e) {
- if (e.target !== e.currentTarget) return;
- if (e.keyCode === 13 || e.keyCode === 32) {
- this.handleClick();
- }
- }
- },
- render: function render(h) {
- var handleClick = this.handleClick,
- drag = this.drag,
- name = this.name,
- handleChange = this.handleChange,
- multiple = this.multiple,
- accept = this.accept,
- listType = this.listType,
- uploadFiles = this.uploadFiles,
- disabled = this.disabled,
- handleKeydown = this.handleKeydown;
- var data = {
- class: {
- 'el-upload': true
- },
- on: {
- click: handleClick,
- keydown: handleKeydown
- }
- };
- data.class['el-upload--' + listType] = true;
- return h(
- 'div',
- external_babel_helper_vue_jsx_merge_props_default()([data, {
- attrs: { tabindex: '0' }
- }]),
- [drag ? h(
- 'upload-dragger',
- {
- attrs: { disabled: disabled },
- on: {
- 'file': uploadFiles
- }
- },
- [this.$slots.default]
- ) : this.$slots.default, h('input', { 'class': 'el-upload__input', attrs: { type: 'file', name: name, multiple: multiple, accept: accept },
- ref: 'input', on: {
- 'change': handleChange
- }
- })]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/upload/src/upload.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_uploadvue_type_script_lang_js_ = (uploadvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/upload/src/upload.vue
- var upload_render, upload_staticRenderFns
- /* normalize component */
- var upload_component = normalizeComponent(
- src_uploadvue_type_script_lang_js_,
- upload_render,
- upload_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var upload_api; }
- upload_component.options.__file = "packages/upload/src/upload.vue"
- /* harmony default export */ var src_upload = (upload_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/index.vue?vue&type=script&lang=js&
- function srcvue_type_script_lang_js_noop() {}
- /* harmony default export */ var srcvue_type_script_lang_js_ = ({
- name: 'ElUpload',
- mixins: [migrating_default.a],
- components: {
- ElProgress: progress_default.a,
- UploadList: upload_list,
- Upload: src_upload
- },
- provide: function provide() {
- return {
- uploader: this
- };
- },
- inject: {
- elForm: {
- default: ''
- }
- },
- props: {
- action: {
- type: String,
- required: true
- },
- headers: {
- type: Object,
- default: function _default() {
- return {};
- }
- },
- data: Object,
- multiple: Boolean,
- name: {
- type: String,
- default: 'file'
- },
- drag: Boolean,
- dragger: Boolean,
- withCredentials: Boolean,
- showFileList: {
- type: Boolean,
- default: true
- },
- accept: String,
- type: {
- type: String,
- default: 'select'
- },
- beforeUpload: Function,
- beforeRemove: Function,
- onRemove: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- },
- onChange: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- },
- onPreview: {
- type: Function
- },
- onSuccess: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- },
- onProgress: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- },
- onError: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- },
- fileList: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- autoUpload: {
- type: Boolean,
- default: true
- },
- listType: {
- type: String,
- default: 'text' // text,picture,picture-card
- },
- httpRequest: Function,
- disabled: Boolean,
- limit: Number,
- onExceed: {
- type: Function,
- default: srcvue_type_script_lang_js_noop
- }
- },
- data: function data() {
- return {
- uploadFiles: [],
- dragOver: false,
- draging: false,
- tempIndex: 1
- };
- },
- computed: {
- uploadDisabled: function uploadDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- watch: {
- listType: function listType(type) {
- if (type === 'picture-card' || type === 'picture') {
- this.uploadFiles = this.uploadFiles.map(function (file) {
- if (!file.url && file.raw) {
- try {
- file.url = URL.createObjectURL(file.raw);
- } catch (err) {
- console.error('[Element Error][Upload]', err);
- }
- }
- return file;
- });
- }
- },
- fileList: {
- immediate: true,
- handler: function handler(fileList) {
- var _this = this;
- this.uploadFiles = fileList.map(function (item) {
- item.uid = item.uid || Date.now() + _this.tempIndex++;
- item.status = item.status || 'success';
- return item;
- });
- }
- }
- },
- methods: {
- handleStart: function handleStart(rawFile) {
- rawFile.uid = Date.now() + this.tempIndex++;
- var file = {
- status: 'ready',
- name: rawFile.name,
- size: rawFile.size,
- percentage: 0,
- uid: rawFile.uid,
- raw: rawFile
- };
- if (this.listType === 'picture-card' || this.listType === 'picture') {
- try {
- file.url = URL.createObjectURL(rawFile);
- } catch (err) {
- console.error('[Element Error][Upload]', err);
- return;
- }
- }
- this.uploadFiles.push(file);
- this.onChange(file, this.uploadFiles);
- },
- handleProgress: function handleProgress(ev, rawFile) {
- var file = this.getFile(rawFile);
- this.onProgress(ev, file, this.uploadFiles);
- file.status = 'uploading';
- file.percentage = ev.percent || 0;
- },
- handleSuccess: function handleSuccess(res, rawFile) {
- var file = this.getFile(rawFile);
- if (file) {
- file.status = 'success';
- file.response = res;
- this.onSuccess(res, file, this.uploadFiles);
- this.onChange(file, this.uploadFiles);
- }
- },
- handleError: function handleError(err, rawFile) {
- var file = this.getFile(rawFile);
- var fileList = this.uploadFiles;
- file.status = 'fail';
- fileList.splice(fileList.indexOf(file), 1);
- this.onError(err, file, this.uploadFiles);
- this.onChange(file, this.uploadFiles);
- },
- handleRemove: function handleRemove(file, raw) {
- var _this2 = this;
- if (raw) {
- file = this.getFile(raw);
- }
- var doRemove = function doRemove() {
- _this2.abort(file);
- var fileList = _this2.uploadFiles;
- fileList.splice(fileList.indexOf(file), 1);
- _this2.onRemove(file, fileList);
- };
- if (!this.beforeRemove) {
- doRemove();
- } else if (typeof this.beforeRemove === 'function') {
- var before = this.beforeRemove(file, this.uploadFiles);
- if (before && before.then) {
- before.then(function () {
- doRemove();
- }, srcvue_type_script_lang_js_noop);
- } else if (before !== false) {
- doRemove();
- }
- }
- },
- getFile: function getFile(rawFile) {
- var fileList = this.uploadFiles;
- var target = void 0;
- fileList.every(function (item) {
- target = rawFile.uid === item.uid ? item : null;
- return !target;
- });
- return target;
- },
- abort: function abort(file) {
- this.$refs['upload-inner'].abort(file);
- },
- clearFiles: function clearFiles() {
- this.uploadFiles = [];
- },
- submit: function submit() {
- var _this3 = this;
- this.uploadFiles.filter(function (file) {
- return file.status === 'ready';
- }).forEach(function (file) {
- _this3.$refs['upload-inner'].upload(file.raw);
- });
- },
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'default-file-list': 'default-file-list is renamed to file-list.',
- 'show-upload-list': 'show-upload-list is renamed to show-file-list.',
- 'thumbnail-mode': 'thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan'
- }
- };
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.uploadFiles.forEach(function (file) {
- if (file.url && file.url.indexOf('blob:') === 0) {
- URL.revokeObjectURL(file.url);
- }
- });
- },
- render: function render(h) {
- var _this4 = this;
- var uploadList = void 0;
- if (this.showFileList) {
- uploadList = h(
- upload_list,
- {
- attrs: {
- disabled: this.uploadDisabled,
- listType: this.listType,
- files: this.uploadFiles,
- handlePreview: this.onPreview },
- on: {
- 'remove': this.handleRemove
- }
- },
- [function (props) {
- if (_this4.$scopedSlots.file) {
- return _this4.$scopedSlots.file({
- file: props.file
- });
- }
- }]
- );
- }
- var uploadData = {
- props: {
- type: this.type,
- drag: this.drag,
- action: this.action,
- multiple: this.multiple,
- 'before-upload': this.beforeUpload,
- 'with-credentials': this.withCredentials,
- headers: this.headers,
- name: this.name,
- data: this.data,
- accept: this.accept,
- fileList: this.uploadFiles,
- autoUpload: this.autoUpload,
- listType: this.listType,
- disabled: this.uploadDisabled,
- limit: this.limit,
- 'on-exceed': this.onExceed,
- 'on-start': this.handleStart,
- 'on-progress': this.handleProgress,
- 'on-success': this.handleSuccess,
- 'on-error': this.handleError,
- 'on-preview': this.onPreview,
- 'on-remove': this.handleRemove,
- 'http-request': this.httpRequest
- },
- ref: 'upload-inner'
- };
- var trigger = this.$slots.trigger || this.$slots.default;
- var uploadComponent = h(
- 'upload',
- uploadData,
- [trigger]
- );
- return h('div', [this.listType === 'picture-card' ? uploadList : '', this.$slots.trigger ? [uploadComponent, this.$slots.default] : uploadComponent, this.$slots.tip, this.listType !== 'picture-card' ? uploadList : '']);
- }
- });
- // CONCATENATED MODULE: ./packages/upload/src/index.vue?vue&type=script&lang=js&
- /* harmony default export */ var upload_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/upload/src/index.vue
- var src_render, src_staticRenderFns
- /* normalize component */
- var upload_src_component = normalizeComponent(
- upload_srcvue_type_script_lang_js_,
- src_render,
- src_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_api; }
- upload_src_component.options.__file = "packages/upload/src/index.vue"
- /* harmony default export */ var upload_src = (upload_src_component.exports);
- // CONCATENATED MODULE: ./packages/upload/index.js
- /* istanbul ignore next */
- upload_src.install = function (Vue) {
- Vue.component(upload_src.name, upload_src);
- };
- /* harmony default export */ var packages_upload = (upload_src);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
- var progressvue_type_template_id_229ee406_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-progress",
- class: [
- "el-progress--" + _vm.type,
- _vm.status ? "is-" + _vm.status : "",
- {
- "el-progress--without-text": !_vm.showText,
- "el-progress--text-inside": _vm.textInside
- }
- ],
- attrs: {
- role: "progressbar",
- "aria-valuenow": _vm.percentage,
- "aria-valuemin": "0",
- "aria-valuemax": "100"
- }
- },
- [
- _vm.type === "line"
- ? _c("div", { staticClass: "el-progress-bar" }, [
- _c(
- "div",
- {
- staticClass: "el-progress-bar__outer",
- style: { height: _vm.strokeWidth + "px" }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-progress-bar__inner",
- style: _vm.barStyle
- },
- [
- _vm.showText && _vm.textInside
- ? _c(
- "div",
- { staticClass: "el-progress-bar__innerText" },
- [_vm._v(_vm._s(_vm.content))]
- )
- : _vm._e()
- ]
- )
- ]
- )
- ])
- : _c(
- "div",
- {
- staticClass: "el-progress-circle",
- style: { height: _vm.width + "px", width: _vm.width + "px" }
- },
- [
- _c("svg", { attrs: { viewBox: "0 0 100 100" } }, [
- _c("path", {
- staticClass: "el-progress-circle__track",
- style: _vm.trailPathStyle,
- attrs: {
- d: _vm.trackPath,
- stroke: "#e5e9f2",
- "stroke-width": _vm.relativeStrokeWidth,
- fill: "none"
- }
- }),
- _c("path", {
- staticClass: "el-progress-circle__path",
- style: _vm.circlePathStyle,
- attrs: {
- d: _vm.trackPath,
- stroke: _vm.stroke,
- fill: "none",
- "stroke-linecap": _vm.strokeLinecap,
- "stroke-width": _vm.percentage ? _vm.relativeStrokeWidth : 0
- }
- })
- ])
- ]
- ),
- _vm.showText && !_vm.textInside
- ? _c(
- "div",
- {
- staticClass: "el-progress__text",
- style: { fontSize: _vm.progressTextSize + "px" }
- },
- [
- !_vm.status
- ? [_vm._v(_vm._s(_vm.content))]
- : _c("i", { class: _vm.iconClass })
- ],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var progressvue_type_template_id_229ee406_staticRenderFns = []
- progressvue_type_template_id_229ee406_render._withStripped = true
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var progressvue_type_script_lang_js_ = ({
- name: 'ElProgress',
- props: {
- type: {
- type: String,
- default: 'line',
- validator: function validator(val) {
- return ['line', 'circle', 'dashboard'].indexOf(val) > -1;
- }
- },
- percentage: {
- type: Number,
- default: 0,
- required: true,
- validator: function validator(val) {
- return val >= 0 && val <= 100;
- }
- },
- status: {
- type: String,
- validator: function validator(val) {
- return ['success', 'exception', 'warning'].indexOf(val) > -1;
- }
- },
- strokeWidth: {
- type: Number,
- default: 6
- },
- strokeLinecap: {
- type: String,
- default: 'round'
- },
- textInside: {
- type: Boolean,
- default: false
- },
- width: {
- type: Number,
- default: 126
- },
- showText: {
- type: Boolean,
- default: true
- },
- color: {
- type: [String, Array, Function],
- default: ''
- },
- format: Function
- },
- computed: {
- barStyle: function barStyle() {
- var style = {};
- style.width = this.percentage + '%';
- style.backgroundColor = this.getCurrentColor(this.percentage);
- return style;
- },
- relativeStrokeWidth: function relativeStrokeWidth() {
- return (this.strokeWidth / this.width * 100).toFixed(1);
- },
- radius: function radius() {
- if (this.type === 'circle' || this.type === 'dashboard') {
- return parseInt(50 - parseFloat(this.relativeStrokeWidth) / 2, 10);
- } else {
- return 0;
- }
- },
- trackPath: function trackPath() {
- var radius = this.radius;
- var isDashboard = this.type === 'dashboard';
- return '\n M 50 50\n m 0 ' + (isDashboard ? '' : '-') + radius + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '-' : '') + radius * 2 + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '' : '-') + radius * 2 + '\n ';
- },
- perimeter: function perimeter() {
- return 2 * Math.PI * this.radius;
- },
- rate: function rate() {
- return this.type === 'dashboard' ? 0.75 : 1;
- },
- strokeDashoffset: function strokeDashoffset() {
- var offset = -1 * this.perimeter * (1 - this.rate) / 2;
- return offset + 'px';
- },
- trailPathStyle: function trailPathStyle() {
- return {
- strokeDasharray: this.perimeter * this.rate + 'px, ' + this.perimeter + 'px',
- strokeDashoffset: this.strokeDashoffset
- };
- },
- circlePathStyle: function circlePathStyle() {
- return {
- strokeDasharray: this.perimeter * this.rate * (this.percentage / 100) + 'px, ' + this.perimeter + 'px',
- strokeDashoffset: this.strokeDashoffset,
- transition: 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease'
- };
- },
- stroke: function stroke() {
- var ret = void 0;
- if (this.color) {
- ret = this.getCurrentColor(this.percentage);
- } else {
- switch (this.status) {
- case 'success':
- ret = '#13ce66';
- break;
- case 'exception':
- ret = '#ff4949';
- break;
- case 'warning':
- ret = '#e6a23c';
- break;
- default:
- ret = '#20a0ff';
- }
- }
- return ret;
- },
- iconClass: function iconClass() {
- if (this.status === 'warning') {
- return 'el-icon-warning';
- }
- if (this.type === 'line') {
- return this.status === 'success' ? 'el-icon-circle-check' : 'el-icon-circle-close';
- } else {
- return this.status === 'success' ? 'el-icon-check' : 'el-icon-close';
- }
- },
- progressTextSize: function progressTextSize() {
- return this.type === 'line' ? 12 + this.strokeWidth * 0.4 : this.width * 0.111111 + 2;
- },
- content: function content() {
- if (typeof this.format === 'function') {
- return this.format(this.percentage) || '';
- } else {
- return this.percentage + '%';
- }
- }
- },
- methods: {
- getCurrentColor: function getCurrentColor(percentage) {
- if (typeof this.color === 'function') {
- return this.color(percentage);
- } else if (typeof this.color === 'string') {
- return this.color;
- } else {
- return this.getLevelColor(percentage);
- }
- },
- getLevelColor: function getLevelColor(percentage) {
- var colorArray = this.getColorArray().sort(function (a, b) {
- return a.percentage - b.percentage;
- });
- for (var i = 0; i < colorArray.length; i++) {
- if (colorArray[i].percentage > percentage) {
- return colorArray[i].color;
- }
- }
- return colorArray[colorArray.length - 1].color;
- },
- getColorArray: function getColorArray() {
- var color = this.color;
- var span = 100 / color.length;
- return color.map(function (seriesColor, index) {
- if (typeof seriesColor === 'string') {
- return {
- color: seriesColor,
- progress: (index + 1) * span
- };
- }
- return seriesColor;
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_progressvue_type_script_lang_js_ = (progressvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue
- /* normalize component */
- var progress_component = normalizeComponent(
- src_progressvue_type_script_lang_js_,
- progressvue_type_template_id_229ee406_render,
- progressvue_type_template_id_229ee406_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var progress_api; }
- progress_component.options.__file = "packages/progress/src/progress.vue"
- /* harmony default export */ var progress = (progress_component.exports);
- // CONCATENATED MODULE: ./packages/progress/index.js
- /* istanbul ignore next */
- progress.install = function (Vue) {
- Vue.component(progress.name, progress);
- };
- /* harmony default export */ var packages_progress = (progress);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/spinner/src/spinner.vue?vue&type=template&id=697b8538&
- var spinnervue_type_template_id_697b8538_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("span", { staticClass: "el-spinner" }, [
- _c(
- "svg",
- {
- staticClass: "el-spinner-inner",
- style: { width: _vm.radius / 2 + "px", height: _vm.radius / 2 + "px" },
- attrs: { viewBox: "0 0 50 50" }
- },
- [
- _c("circle", {
- staticClass: "path",
- attrs: {
- cx: "25",
- cy: "25",
- r: "20",
- fill: "none",
- stroke: _vm.strokeColor,
- "stroke-width": _vm.strokeWidth
- }
- })
- ]
- )
- ])
- }
- var spinnervue_type_template_id_697b8538_staticRenderFns = []
- spinnervue_type_template_id_697b8538_render._withStripped = true
- // CONCATENATED MODULE: ./packages/spinner/src/spinner.vue?vue&type=template&id=697b8538&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/spinner/src/spinner.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var spinnervue_type_script_lang_js_ = ({
- name: 'ElSpinner',
- props: {
- type: String,
- radius: {
- type: Number,
- default: 100
- },
- strokeWidth: {
- type: Number,
- default: 5
- },
- strokeColor: {
- type: String,
- default: '#efefef'
- }
- }
- });
- // CONCATENATED MODULE: ./packages/spinner/src/spinner.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_spinnervue_type_script_lang_js_ = (spinnervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/spinner/src/spinner.vue
- /* normalize component */
- var spinner_component = normalizeComponent(
- src_spinnervue_type_script_lang_js_,
- spinnervue_type_template_id_697b8538_render,
- spinnervue_type_template_id_697b8538_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var spinner_api; }
- spinner_component.options.__file = "packages/spinner/src/spinner.vue"
- /* harmony default export */ var spinner = (spinner_component.exports);
- // CONCATENATED MODULE: ./packages/spinner/index.js
- /* istanbul ignore next */
- spinner.install = function (Vue) {
- Vue.component(spinner.name, spinner);
- };
- /* harmony default export */ var packages_spinner = (spinner);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=template&id=455b9f60&
- var mainvue_type_template_id_455b9f60_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-message-fade" },
- on: { "after-leave": _vm.handleAfterLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- class: [
- "el-message",
- _vm.type && !_vm.iconClass ? "el-message--" + _vm.type : "",
- _vm.center ? "is-center" : "",
- _vm.showClose ? "is-closable" : "",
- _vm.customClass
- ],
- style: _vm.positionStyle,
- attrs: { role: "alert" },
- on: { mouseenter: _vm.clearTimer, mouseleave: _vm.startTimer }
- },
- [
- _vm.iconClass
- ? _c("i", { class: _vm.iconClass })
- : _c("i", { class: _vm.typeClass }),
- _vm._t("default", [
- !_vm.dangerouslyUseHTMLString
- ? _c("p", { staticClass: "el-message__content" }, [
- _vm._v(_vm._s(_vm.message))
- ])
- : _c("p", {
- staticClass: "el-message__content",
- domProps: { innerHTML: _vm._s(_vm.message) }
- })
- ]),
- _vm.showClose
- ? _c("i", {
- staticClass: "el-message__closeBtn el-icon-close",
- on: { click: _vm.close }
- })
- : _vm._e()
- ],
- 2
- )
- ]
- )
- }
- var mainvue_type_template_id_455b9f60_staticRenderFns = []
- mainvue_type_template_id_455b9f60_render._withStripped = true
- // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=template&id=455b9f60&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var src_mainvue_type_script_lang_js_typeMap = {
- success: 'success',
- info: 'info',
- warning: 'warning',
- error: 'error'
- };
- /* harmony default export */ var message_src_mainvue_type_script_lang_js_ = ({
- data: function data() {
- return {
- visible: false,
- message: '',
- duration: 3000,
- type: 'info',
- iconClass: '',
- customClass: '',
- onClose: null,
- showClose: false,
- closed: false,
- verticalOffset: 20,
- timer: null,
- dangerouslyUseHTMLString: false,
- center: false
- };
- },
- computed: {
- typeClass: function typeClass() {
- return this.type && !this.iconClass ? 'el-message__icon el-icon-' + src_mainvue_type_script_lang_js_typeMap[this.type] : '';
- },
- positionStyle: function positionStyle() {
- return {
- 'top': this.verticalOffset + 'px'
- };
- }
- },
- watch: {
- closed: function closed(newVal) {
- if (newVal) {
- this.visible = false;
- }
- }
- },
- methods: {
- handleAfterLeave: function handleAfterLeave() {
- this.$destroy(true);
- this.$el.parentNode.removeChild(this.$el);
- },
- close: function close() {
- this.closed = true;
- if (typeof this.onClose === 'function') {
- this.onClose(this);
- }
- },
- clearTimer: function clearTimer() {
- clearTimeout(this.timer);
- },
- startTimer: function startTimer() {
- var _this = this;
- if (this.duration > 0) {
- this.timer = setTimeout(function () {
- if (!_this.closed) {
- _this.close();
- }
- }, this.duration);
- }
- },
- keydown: function keydown(e) {
- if (e.keyCode === 27) {
- // esc关闭消息
- if (!this.closed) {
- this.close();
- }
- }
- }
- },
- mounted: function mounted() {
- this.startTimer();
- document.addEventListener('keydown', this.keydown);
- },
- beforeDestroy: function beforeDestroy() {
- document.removeEventListener('keydown', this.keydown);
- }
- });
- // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_message_src_mainvue_type_script_lang_js_ = (message_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/message/src/main.vue
- /* normalize component */
- var message_src_main_component = normalizeComponent(
- packages_message_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_455b9f60_render,
- mainvue_type_template_id_455b9f60_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var message_src_main_api; }
- message_src_main_component.options.__file = "packages/message/src/main.vue"
- /* harmony default export */ var message_src_main = (message_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/message/src/main.js
- var MessageConstructor = external_vue_default.a.extend(message_src_main);
- var message_src_main_instance = void 0;
- var main_instances = [];
- var main_seed = 1;
- var main_Message = function Message(options) {
- if (external_vue_default.a.prototype.$isServer) return;
- options = options || {};
- if (typeof options === 'string') {
- options = {
- message: options
- };
- }
- var userOnClose = options.onClose;
- var id = 'message_' + main_seed++;
- options.onClose = function () {
- Message.close(id, userOnClose);
- };
- message_src_main_instance = new MessageConstructor({
- data: options
- });
- message_src_main_instance.id = id;
- if (Object(vdom_["isVNode"])(message_src_main_instance.message)) {
- message_src_main_instance.$slots.default = [message_src_main_instance.message];
- message_src_main_instance.message = null;
- }
- message_src_main_instance.$mount();
- document.body.appendChild(message_src_main_instance.$el);
- var verticalOffset = options.offset || 20;
- main_instances.forEach(function (item) {
- verticalOffset += item.$el.offsetHeight + 16;
- });
- message_src_main_instance.verticalOffset = verticalOffset;
- message_src_main_instance.visible = true;
- message_src_main_instance.$el.style.zIndex = popup_["PopupManager"].nextZIndex();
- main_instances.push(message_src_main_instance);
- return message_src_main_instance;
- };
- ['success', 'warning', 'info', 'error'].forEach(function (type) {
- main_Message[type] = function (options) {
- if (typeof options === 'string') {
- options = {
- message: options
- };
- }
- options.type = type;
- return main_Message(options);
- };
- });
- main_Message.close = function (id, userOnClose) {
- var len = main_instances.length;
- var index = -1;
- var removedHeight = void 0;
- for (var i = 0; i < len; i++) {
- if (id === main_instances[i].id) {
- removedHeight = main_instances[i].$el.offsetHeight;
- index = i;
- if (typeof userOnClose === 'function') {
- userOnClose(main_instances[i]);
- }
- main_instances.splice(i, 1);
- break;
- }
- }
- if (len <= 1 || index === -1 || index > main_instances.length - 1) return;
- for (var _i = index; _i < len - 1; _i++) {
- var dom = main_instances[_i].$el;
- dom.style['top'] = parseInt(dom.style['top'], 10) - removedHeight - 16 + 'px';
- }
- };
- main_Message.closeAll = function () {
- for (var i = main_instances.length - 1; i >= 0; i--) {
- main_instances[i].close();
- }
- };
- /* harmony default export */ var packages_message_src_main = (main_Message);
- // CONCATENATED MODULE: ./packages/message/index.js
- /* harmony default export */ var packages_message = (packages_message_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/badge/src/main.vue?vue&type=template&id=7ccb6598&
- var mainvue_type_template_id_7ccb6598_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "el-badge" },
- [
- _vm._t("default"),
- _c("transition", { attrs: { name: "el-zoom-in-center" } }, [
- _c("sup", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value:
- !_vm.hidden && (_vm.content || _vm.content === 0 || _vm.isDot),
- expression: "!hidden && (content || content === 0 || isDot)"
- }
- ],
- staticClass: "el-badge__content",
- class: [
- "el-badge__content--" + _vm.type,
- {
- "is-fixed": _vm.$slots.default,
- "is-dot": _vm.isDot
- }
- ],
- domProps: { textContent: _vm._s(_vm.content) }
- })
- ])
- ],
- 2
- )
- }
- var mainvue_type_template_id_7ccb6598_staticRenderFns = []
- mainvue_type_template_id_7ccb6598_render._withStripped = true
- // CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=template&id=7ccb6598&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/badge/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var badge_src_mainvue_type_script_lang_js_ = ({
- name: 'ElBadge',
- props: {
- value: [String, Number],
- max: Number,
- isDot: Boolean,
- hidden: Boolean,
- type: {
- type: String,
- validator: function validator(val) {
- return ['primary', 'success', 'warning', 'info', 'danger'].indexOf(val) > -1;
- }
- }
- },
- computed: {
- content: function content() {
- if (this.isDot) return;
- var value = this.value;
- var max = this.max;
- if (typeof value === 'number' && typeof max === 'number') {
- return max < value ? max + '+' : value;
- }
- return value;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_badge_src_mainvue_type_script_lang_js_ = (badge_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/badge/src/main.vue
- /* normalize component */
- var badge_src_main_component = normalizeComponent(
- packages_badge_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_7ccb6598_render,
- mainvue_type_template_id_7ccb6598_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var badge_src_main_api; }
- badge_src_main_component.options.__file = "packages/badge/src/main.vue"
- /* harmony default export */ var badge_src_main = (badge_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/badge/index.js
- /* istanbul ignore next */
- badge_src_main.install = function (Vue) {
- Vue.component(badge_src_main.name, badge_src_main);
- };
- /* harmony default export */ var badge = (badge_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=59a4a40f&
- var mainvue_type_template_id_59a4a40f_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-card",
- class: _vm.shadow ? "is-" + _vm.shadow + "-shadow" : "is-always-shadow"
- },
- [
- _vm.$slots.header || _vm.header
- ? _c(
- "div",
- { staticClass: "el-card__header" },
- [_vm._t("header", [_vm._v(_vm._s(_vm.header))])],
- 2
- )
- : _vm._e(),
- _c(
- "div",
- { staticClass: "el-card__body", style: _vm.bodyStyle },
- [_vm._t("default")],
- 2
- )
- ]
- )
- }
- var mainvue_type_template_id_59a4a40f_staticRenderFns = []
- mainvue_type_template_id_59a4a40f_render._withStripped = true
- // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=template&id=59a4a40f&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var card_src_mainvue_type_script_lang_js_ = ({
- name: 'ElCard',
- props: {
- header: {},
- bodyStyle: {},
- shadow: {
- type: String
- }
- }
- });
- // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_card_src_mainvue_type_script_lang_js_ = (card_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/card/src/main.vue
- /* normalize component */
- var card_src_main_component = normalizeComponent(
- packages_card_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_59a4a40f_render,
- mainvue_type_template_id_59a4a40f_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var card_src_main_api; }
- card_src_main_component.options.__file = "packages/card/src/main.vue"
- /* harmony default export */ var card_src_main = (card_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/card/index.js
- /* istanbul ignore next */
- card_src_main.install = function (Vue) {
- Vue.component(card_src_main.name, card_src_main);
- };
- /* harmony default export */ var card = (card_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=template&id=ada57782&
- var mainvue_type_template_id_ada57782_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-rate",
- attrs: {
- role: "slider",
- "aria-valuenow": _vm.currentValue,
- "aria-valuetext": _vm.text,
- "aria-valuemin": "0",
- "aria-valuemax": _vm.max,
- tabindex: "0"
- },
- on: { keydown: _vm.handleKey }
- },
- [
- _vm._l(_vm.max, function(item, key) {
- return _c(
- "span",
- {
- key: key,
- staticClass: "el-rate__item",
- style: { cursor: _vm.rateDisabled ? "auto" : "pointer" },
- on: {
- mousemove: function($event) {
- _vm.setCurrentValue(item, $event)
- },
- mouseleave: _vm.resetCurrentValue,
- click: function($event) {
- _vm.selectValue(item)
- }
- }
- },
- [
- _c(
- "i",
- {
- staticClass: "el-rate__icon",
- class: [
- _vm.classes[item - 1],
- { hover: _vm.hoverIndex === item }
- ],
- style: _vm.getIconStyle(item)
- },
- [
- _vm.showDecimalIcon(item)
- ? _c("i", {
- staticClass: "el-rate__decimal",
- class: _vm.decimalIconClass,
- style: _vm.decimalStyle
- })
- : _vm._e()
- ]
- )
- ]
- )
- }),
- _vm.showText || _vm.showScore
- ? _c(
- "span",
- { staticClass: "el-rate__text", style: { color: _vm.textColor } },
- [_vm._v(_vm._s(_vm.text))]
- )
- : _vm._e()
- ],
- 2
- )
- }
- var mainvue_type_template_id_ada57782_staticRenderFns = []
- mainvue_type_template_id_ada57782_render._withStripped = true
- // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=template&id=ada57782&
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
- var types_ = __webpack_require__(18);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var rate_src_mainvue_type_script_lang_js_ = ({
- name: 'ElRate',
- mixins: [migrating_default.a],
- inject: {
- elForm: {
- default: ''
- }
- },
- data: function data() {
- return {
- pointerAtLeftHalf: true,
- currentValue: this.value,
- hoverIndex: -1
- };
- },
- props: {
- value: {
- type: Number,
- default: 0
- },
- lowThreshold: {
- type: Number,
- default: 2
- },
- highThreshold: {
- type: Number,
- default: 4
- },
- max: {
- type: Number,
- default: 5
- },
- colors: {
- type: [Array, Object],
- default: function _default() {
- return ['#F7BA2A', '#F7BA2A', '#F7BA2A'];
- }
- },
- voidColor: {
- type: String,
- default: '#C6D1DE'
- },
- disabledVoidColor: {
- type: String,
- default: '#EFF2F7'
- },
- iconClasses: {
- type: [Array, Object],
- default: function _default() {
- return ['el-icon-star-on', 'el-icon-star-on', 'el-icon-star-on'];
- }
- },
- voidIconClass: {
- type: String,
- default: 'el-icon-star-off'
- },
- disabledVoidIconClass: {
- type: String,
- default: 'el-icon-star-on'
- },
- disabled: {
- type: Boolean,
- default: false
- },
- allowHalf: {
- type: Boolean,
- default: false
- },
- showText: {
- type: Boolean,
- default: false
- },
- showScore: {
- type: Boolean,
- default: false
- },
- textColor: {
- type: String,
- default: '#1f2d3d'
- },
- texts: {
- type: Array,
- default: function _default() {
- return ['极差', '失望', '一般', '满意', '惊喜'];
- }
- },
- scoreTemplate: {
- type: String,
- default: '{value}'
- }
- },
- computed: {
- text: function text() {
- var result = '';
- if (this.showScore) {
- result = this.scoreTemplate.replace(/\{\s*value\s*\}/, this.rateDisabled ? this.value : this.currentValue);
- } else if (this.showText) {
- result = this.texts[Math.ceil(this.currentValue) - 1];
- }
- return result;
- },
- decimalStyle: function decimalStyle() {
- var width = '';
- if (this.rateDisabled) {
- width = this.valueDecimal + '%';
- } else if (this.allowHalf) {
- width = '50%';
- }
- return {
- color: this.activeColor,
- width: width
- };
- },
- valueDecimal: function valueDecimal() {
- return this.value * 100 - Math.floor(this.value) * 100;
- },
- classMap: function classMap() {
- var _ref;
- return Array.isArray(this.iconClasses) ? (_ref = {}, _ref[this.lowThreshold] = this.iconClasses[0], _ref[this.highThreshold] = { value: this.iconClasses[1], excluded: true }, _ref[this.max] = this.iconClasses[2], _ref) : this.iconClasses;
- },
- decimalIconClass: function decimalIconClass() {
- return this.getValueFromMap(this.value, this.classMap);
- },
- voidClass: function voidClass() {
- return this.rateDisabled ? this.disabledVoidIconClass : this.voidIconClass;
- },
- activeClass: function activeClass() {
- return this.getValueFromMap(this.currentValue, this.classMap);
- },
- colorMap: function colorMap() {
- var _ref2;
- return Array.isArray(this.colors) ? (_ref2 = {}, _ref2[this.lowThreshold] = this.colors[0], _ref2[this.highThreshold] = { value: this.colors[1], excluded: true }, _ref2[this.max] = this.colors[2], _ref2) : this.colors;
- },
- activeColor: function activeColor() {
- return this.getValueFromMap(this.currentValue, this.colorMap);
- },
- classes: function classes() {
- var result = [];
- var i = 0;
- var threshold = this.currentValue;
- if (this.allowHalf && this.currentValue !== Math.floor(this.currentValue)) {
- threshold--;
- }
- for (; i < threshold; i++) {
- result.push(this.activeClass);
- }
- for (; i < this.max; i++) {
- result.push(this.voidClass);
- }
- return result;
- },
- rateDisabled: function rateDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- watch: {
- value: function value(val) {
- this.currentValue = val;
- this.pointerAtLeftHalf = this.value !== Math.floor(this.value);
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'text-template': 'text-template is renamed to score-template.'
- }
- };
- },
- getValueFromMap: function getValueFromMap(value, map) {
- var matchedKeys = Object.keys(map).filter(function (key) {
- var val = map[key];
- var excluded = Object(types_["isObject"])(val) ? val.excluded : false;
- return excluded ? value < key : value <= key;
- }).sort(function (a, b) {
- return a - b;
- });
- var matchedValue = map[matchedKeys[0]];
- return Object(types_["isObject"])(matchedValue) ? matchedValue.value : matchedValue || '';
- },
- showDecimalIcon: function showDecimalIcon(item) {
- var showWhenDisabled = this.rateDisabled && this.valueDecimal > 0 && item - 1 < this.value && item > this.value;
- /* istanbul ignore next */
- var showWhenAllowHalf = this.allowHalf && this.pointerAtLeftHalf && item - 0.5 <= this.currentValue && item > this.currentValue;
- return showWhenDisabled || showWhenAllowHalf;
- },
- getIconStyle: function getIconStyle(item) {
- var voidColor = this.rateDisabled ? this.disabledVoidColor : this.voidColor;
- return {
- color: item <= this.currentValue ? this.activeColor : voidColor
- };
- },
- selectValue: function selectValue(value) {
- if (this.rateDisabled) {
- return;
- }
- if (this.allowHalf && this.pointerAtLeftHalf) {
- this.$emit('input', this.currentValue);
- this.$emit('change', this.currentValue);
- } else {
- this.$emit('input', value);
- this.$emit('change', value);
- }
- },
- handleKey: function handleKey(e) {
- if (this.rateDisabled) {
- return;
- }
- var currentValue = this.currentValue;
- var keyCode = e.keyCode;
- if (keyCode === 38 || keyCode === 39) {
- // left / down
- if (this.allowHalf) {
- currentValue += 0.5;
- } else {
- currentValue += 1;
- }
- e.stopPropagation();
- e.preventDefault();
- } else if (keyCode === 37 || keyCode === 40) {
- if (this.allowHalf) {
- currentValue -= 0.5;
- } else {
- currentValue -= 1;
- }
- e.stopPropagation();
- e.preventDefault();
- }
- currentValue = currentValue < 0 ? 0 : currentValue;
- currentValue = currentValue > this.max ? this.max : currentValue;
- this.$emit('input', currentValue);
- this.$emit('change', currentValue);
- },
- setCurrentValue: function setCurrentValue(value, event) {
- if (this.rateDisabled) {
- return;
- }
- /* istanbul ignore if */
- if (this.allowHalf) {
- var target = event.target;
- if (Object(dom_["hasClass"])(target, 'el-rate__item')) {
- target = target.querySelector('.el-rate__icon');
- }
- if (Object(dom_["hasClass"])(target, 'el-rate__decimal')) {
- target = target.parentNode;
- }
- this.pointerAtLeftHalf = event.offsetX * 2 <= target.clientWidth;
- this.currentValue = this.pointerAtLeftHalf ? value - 0.5 : value;
- } else {
- this.currentValue = value;
- }
- this.hoverIndex = value;
- },
- resetCurrentValue: function resetCurrentValue() {
- if (this.rateDisabled) {
- return;
- }
- if (this.allowHalf) {
- this.pointerAtLeftHalf = this.value !== Math.floor(this.value);
- }
- this.currentValue = this.value;
- this.hoverIndex = -1;
- }
- },
- created: function created() {
- if (!this.value) {
- this.$emit('input', 0);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_rate_src_mainvue_type_script_lang_js_ = (rate_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/rate/src/main.vue
- /* normalize component */
- var rate_src_main_component = normalizeComponent(
- packages_rate_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_ada57782_render,
- mainvue_type_template_id_ada57782_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var rate_src_main_api; }
- rate_src_main_component.options.__file = "packages/rate/src/main.vue"
- /* harmony default export */ var rate_src_main = (rate_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/rate/index.js
- /* istanbul ignore next */
- rate_src_main.install = function (Vue) {
- Vue.component(rate_src_main.name, rate_src_main);
- };
- /* harmony default export */ var rate = (rate_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/steps.vue?vue&type=template&id=3c6b6dc0&
- var stepsvue_type_template_id_3c6b6dc0_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-steps",
- class: [
- !_vm.simple && "el-steps--" + _vm.direction,
- _vm.simple && "el-steps--simple"
- ]
- },
- [_vm._t("default")],
- 2
- )
- }
- var stepsvue_type_template_id_3c6b6dc0_staticRenderFns = []
- stepsvue_type_template_id_3c6b6dc0_render._withStripped = true
- // CONCATENATED MODULE: ./packages/steps/src/steps.vue?vue&type=template&id=3c6b6dc0&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/steps.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var stepsvue_type_script_lang_js_ = ({
- name: 'ElSteps',
- mixins: [migrating_default.a],
- props: {
- space: [Number, String],
- active: Number,
- direction: {
- type: String,
- default: 'horizontal'
- },
- alignCenter: Boolean,
- simple: Boolean,
- finishStatus: {
- type: String,
- default: 'finish'
- },
- processStatus: {
- type: String,
- default: 'process'
- }
- },
- data: function data() {
- return {
- steps: [],
- stepOffset: 0
- };
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'center': 'center is removed.'
- }
- };
- }
- },
- watch: {
- active: function active(newVal, oldVal) {
- this.$emit('change', newVal, oldVal);
- },
- steps: function steps(_steps) {
- _steps.forEach(function (child, index) {
- child.index = index;
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/steps/src/steps.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_stepsvue_type_script_lang_js_ = (stepsvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/steps/src/steps.vue
- /* normalize component */
- var steps_component = normalizeComponent(
- src_stepsvue_type_script_lang_js_,
- stepsvue_type_template_id_3c6b6dc0_render,
- stepsvue_type_template_id_3c6b6dc0_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var steps_api; }
- steps_component.options.__file = "packages/steps/src/steps.vue"
- /* harmony default export */ var steps = (steps_component.exports);
- // CONCATENATED MODULE: ./packages/steps/index.js
- /* istanbul ignore next */
- steps.install = function (Vue) {
- Vue.component(steps.name, steps);
- };
- /* harmony default export */ var packages_steps = (steps);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/step.vue?vue&type=template&id=f414a87a&
- var stepvue_type_template_id_f414a87a_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-step",
- class: [
- !_vm.isSimple && "is-" + _vm.$parent.direction,
- _vm.isSimple && "is-simple",
- _vm.isLast && !_vm.space && !_vm.isCenter && "is-flex",
- _vm.isCenter && !_vm.isVertical && !_vm.isSimple && "is-center"
- ],
- style: _vm.style
- },
- [
- _c(
- "div",
- { staticClass: "el-step__head", class: "is-" + _vm.currentStatus },
- [
- _c(
- "div",
- {
- staticClass: "el-step__line",
- style: _vm.isLast
- ? ""
- : { marginRight: _vm.$parent.stepOffset + "px" }
- },
- [
- _c("i", {
- staticClass: "el-step__line-inner",
- style: _vm.lineStyle
- })
- ]
- ),
- _c(
- "div",
- {
- staticClass: "el-step__icon",
- class: "is-" + (_vm.icon ? "icon" : "text")
- },
- [
- _vm.currentStatus !== "success" && _vm.currentStatus !== "error"
- ? _vm._t("icon", [
- _vm.icon
- ? _c("i", {
- staticClass: "el-step__icon-inner",
- class: [_vm.icon]
- })
- : _vm._e(),
- !_vm.icon && !_vm.isSimple
- ? _c("div", { staticClass: "el-step__icon-inner" }, [
- _vm._v(_vm._s(_vm.index + 1))
- ])
- : _vm._e()
- ])
- : _c("i", {
- staticClass: "el-step__icon-inner is-status",
- class: [
- "el-icon-" +
- (_vm.currentStatus === "success" ? "check" : "close")
- ]
- })
- ],
- 2
- )
- ]
- ),
- _c("div", { staticClass: "el-step__main" }, [
- _c(
- "div",
- {
- ref: "title",
- staticClass: "el-step__title",
- class: ["is-" + _vm.currentStatus]
- },
- [_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
- 2
- ),
- _vm.isSimple
- ? _c("div", { staticClass: "el-step__arrow" })
- : _c(
- "div",
- {
- staticClass: "el-step__description",
- class: ["is-" + _vm.currentStatus]
- },
- [_vm._t("description", [_vm._v(_vm._s(_vm.description))])],
- 2
- )
- ])
- ]
- )
- }
- var stepvue_type_template_id_f414a87a_staticRenderFns = []
- stepvue_type_template_id_f414a87a_render._withStripped = true
- // CONCATENATED MODULE: ./packages/steps/src/step.vue?vue&type=template&id=f414a87a&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/step.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var stepvue_type_script_lang_js_ = ({
- name: 'ElStep',
- props: {
- title: String,
- icon: String,
- description: String,
- status: String
- },
- data: function data() {
- return {
- index: -1,
- lineStyle: {},
- internalStatus: ''
- };
- },
- beforeCreate: function beforeCreate() {
- this.$parent.steps.push(this);
- },
- beforeDestroy: function beforeDestroy() {
- var steps = this.$parent.steps;
- var index = steps.indexOf(this);
- if (index >= 0) {
- steps.splice(index, 1);
- }
- },
- computed: {
- currentStatus: function currentStatus() {
- return this.status || this.internalStatus;
- },
- prevStatus: function prevStatus() {
- var prevStep = this.$parent.steps[this.index - 1];
- return prevStep ? prevStep.currentStatus : 'wait';
- },
- isCenter: function isCenter() {
- return this.$parent.alignCenter;
- },
- isVertical: function isVertical() {
- return this.$parent.direction === 'vertical';
- },
- isSimple: function isSimple() {
- return this.$parent.simple;
- },
- isLast: function isLast() {
- var parent = this.$parent;
- return parent.steps[parent.steps.length - 1] === this;
- },
- stepsCount: function stepsCount() {
- return this.$parent.steps.length;
- },
- space: function space() {
- var isSimple = this.isSimple,
- space = this.$parent.space;
- return isSimple ? '' : space;
- },
- style: function style() {
- var style = {};
- var parent = this.$parent;
- var len = parent.steps.length;
- var space = typeof this.space === 'number' ? this.space + 'px' : this.space ? this.space : 100 / (len - (this.isCenter ? 0 : 1)) + '%';
- style.flexBasis = space;
- if (this.isVertical) return style;
- if (this.isLast) {
- style.maxWidth = 100 / this.stepsCount + '%';
- } else {
- style.marginRight = -this.$parent.stepOffset + 'px';
- }
- return style;
- }
- },
- methods: {
- updateStatus: function updateStatus(val) {
- var prevChild = this.$parent.$children[this.index - 1];
- if (val > this.index) {
- this.internalStatus = this.$parent.finishStatus;
- } else if (val === this.index && this.prevStatus !== 'error') {
- this.internalStatus = this.$parent.processStatus;
- } else {
- this.internalStatus = 'wait';
- }
- if (prevChild) prevChild.calcProgress(this.internalStatus);
- },
- calcProgress: function calcProgress(status) {
- var step = 100;
- var style = {};
- style.transitionDelay = 150 * this.index + 'ms';
- if (status === this.$parent.processStatus) {
- step = this.currentStatus !== 'error' ? 0 : 0;
- } else if (status === 'wait') {
- step = 0;
- style.transitionDelay = -150 * this.index + 'ms';
- }
- style.borderWidth = step && !this.isSimple ? '1px' : 0;
- this.$parent.direction === 'vertical' ? style.height = step + '%' : style.width = step + '%';
- this.lineStyle = style;
- }
- },
- mounted: function mounted() {
- var _this = this;
- var unwatch = this.$watch('index', function (val) {
- _this.$watch('$parent.active', _this.updateStatus, { immediate: true });
- _this.$watch('$parent.processStatus', function () {
- var activeIndex = _this.$parent.active;
- _this.updateStatus(activeIndex);
- }, { immediate: true });
- unwatch();
- });
- }
- });
- // CONCATENATED MODULE: ./packages/steps/src/step.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_stepvue_type_script_lang_js_ = (stepvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/steps/src/step.vue
- /* normalize component */
- var step_component = normalizeComponent(
- src_stepvue_type_script_lang_js_,
- stepvue_type_template_id_f414a87a_render,
- stepvue_type_template_id_f414a87a_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var step_api; }
- step_component.options.__file = "packages/steps/src/step.vue"
- /* harmony default export */ var step = (step_component.exports);
- // CONCATENATED MODULE: ./packages/step/index.js
- /* istanbul ignore next */
- step.install = function (Vue) {
- Vue.component(step.name, step);
- };
- /* harmony default export */ var packages_step = (step);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
- var mainvue_type_template_id_5d5d1482_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: _vm.carouselClasses,
- on: {
- mouseenter: function($event) {
- $event.stopPropagation()
- return _vm.handleMouseEnter($event)
- },
- mouseleave: function($event) {
- $event.stopPropagation()
- return _vm.handleMouseLeave($event)
- }
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-carousel__container",
- style: { height: _vm.height }
- },
- [
- _vm.arrowDisplay
- ? _c("transition", { attrs: { name: "carousel-arrow-left" } }, [
- _c(
- "button",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value:
- (_vm.arrow === "always" || _vm.hover) &&
- (_vm.loop || _vm.activeIndex > 0),
- expression:
- "(arrow === 'always' || hover) && (loop || activeIndex > 0)"
- }
- ],
- staticClass: "el-carousel__arrow el-carousel__arrow--left",
- attrs: { type: "button" },
- on: {
- mouseenter: function($event) {
- _vm.handleButtonEnter("left")
- },
- mouseleave: _vm.handleButtonLeave,
- click: function($event) {
- $event.stopPropagation()
- _vm.throttledArrowClick(_vm.activeIndex - 1)
- }
- }
- },
- [_c("i", { staticClass: "el-icon-arrow-left" })]
- )
- ])
- : _vm._e(),
- _vm.arrowDisplay
- ? _c("transition", { attrs: { name: "carousel-arrow-right" } }, [
- _c(
- "button",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value:
- (_vm.arrow === "always" || _vm.hover) &&
- (_vm.loop || _vm.activeIndex < _vm.items.length - 1),
- expression:
- "(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"
- }
- ],
- staticClass: "el-carousel__arrow el-carousel__arrow--right",
- attrs: { type: "button" },
- on: {
- mouseenter: function($event) {
- _vm.handleButtonEnter("right")
- },
- mouseleave: _vm.handleButtonLeave,
- click: function($event) {
- $event.stopPropagation()
- _vm.throttledArrowClick(_vm.activeIndex + 1)
- }
- }
- },
- [_c("i", { staticClass: "el-icon-arrow-right" })]
- )
- ])
- : _vm._e(),
- _vm._t("default")
- ],
- 2
- ),
- _vm.indicatorPosition !== "none"
- ? _c(
- "ul",
- { class: _vm.indicatorsClasses },
- _vm._l(_vm.items, function(item, index) {
- return _c(
- "li",
- {
- key: index,
- class: [
- "el-carousel__indicator",
- "el-carousel__indicator--" + _vm.direction,
- { "is-active": index === _vm.activeIndex }
- ],
- on: {
- mouseenter: function($event) {
- _vm.throttledIndicatorHover(index)
- },
- click: function($event) {
- $event.stopPropagation()
- _vm.handleIndicatorClick(index)
- }
- }
- },
- [
- _c("button", { staticClass: "el-carousel__button" }, [
- _vm.hasLabel
- ? _c("span", [_vm._v(_vm._s(item.label))])
- : _vm._e()
- ])
- ]
- )
- }),
- 0
- )
- : _vm._e()
- ]
- )
- }
- var mainvue_type_template_id_5d5d1482_staticRenderFns = []
- mainvue_type_template_id_5d5d1482_render._withStripped = true
- // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
- // EXTERNAL MODULE: external "throttle-debounce/throttle"
- var throttle_ = __webpack_require__(25);
- var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var carousel_src_mainvue_type_script_lang_js_ = ({
- name: 'ElCarousel',
- props: {
- initialIndex: {
- type: Number,
- default: 0
- },
- height: String,
- trigger: {
- type: String,
- default: 'hover'
- },
- autoplay: {
- type: Boolean,
- default: true
- },
- interval: {
- type: Number,
- default: 3000
- },
- indicatorPosition: String,
- indicator: {
- type: Boolean,
- default: true
- },
- arrow: {
- type: String,
- default: 'hover'
- },
- type: String,
- loop: {
- type: Boolean,
- default: true
- },
- direction: {
- type: String,
- default: 'horizontal',
- validator: function validator(val) {
- return ['horizontal', 'vertical'].indexOf(val) !== -1;
- }
- }
- },
- data: function data() {
- return {
- items: [],
- activeIndex: -1,
- containerWidth: 0,
- timer: null,
- hover: false
- };
- },
- computed: {
- arrowDisplay: function arrowDisplay() {
- return this.arrow !== 'never' && this.direction !== 'vertical';
- },
- hasLabel: function hasLabel() {
- return this.items.some(function (item) {
- return item.label.toString().length > 0;
- });
- },
- carouselClasses: function carouselClasses() {
- var classes = ['el-carousel', 'el-carousel--' + this.direction];
- if (this.type === 'card') {
- classes.push('el-carousel--card');
- }
- return classes;
- },
- indicatorsClasses: function indicatorsClasses() {
- var classes = ['el-carousel__indicators', 'el-carousel__indicators--' + this.direction];
- if (this.hasLabel) {
- classes.push('el-carousel__indicators--labels');
- }
- if (this.indicatorPosition === 'outside' || this.type === 'card') {
- classes.push('el-carousel__indicators--outside');
- }
- return classes;
- }
- },
- watch: {
- items: function items(val) {
- if (val.length > 0) this.setActiveItem(this.initialIndex);
- },
- activeIndex: function activeIndex(val, oldVal) {
- this.resetItemPosition(oldVal);
- if (oldVal > -1) {
- this.$emit('change', val, oldVal);
- }
- },
- autoplay: function autoplay(val) {
- val ? this.startTimer() : this.pauseTimer();
- },
- loop: function loop() {
- this.setActiveItem(this.activeIndex);
- }
- },
- methods: {
- handleMouseEnter: function handleMouseEnter() {
- this.hover = true;
- this.pauseTimer();
- },
- handleMouseLeave: function handleMouseLeave() {
- this.hover = false;
- this.startTimer();
- },
- itemInStage: function itemInStage(item, index) {
- var length = this.items.length;
- if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
- return 'left';
- } else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
- return 'right';
- }
- return false;
- },
- handleButtonEnter: function handleButtonEnter(arrow) {
- var _this = this;
- if (this.direction === 'vertical') return;
- this.items.forEach(function (item, index) {
- if (arrow === _this.itemInStage(item, index)) {
- item.hover = true;
- }
- });
- },
- handleButtonLeave: function handleButtonLeave() {
- if (this.direction === 'vertical') return;
- this.items.forEach(function (item) {
- item.hover = false;
- });
- },
- updateItems: function updateItems() {
- this.items = this.$children.filter(function (child) {
- return child.$options.name === 'ElCarouselItem';
- });
- },
- resetItemPosition: function resetItemPosition(oldIndex) {
- var _this2 = this;
- this.items.forEach(function (item, index) {
- item.translateItem(index, _this2.activeIndex, oldIndex);
- });
- },
- playSlides: function playSlides() {
- if (this.activeIndex < this.items.length - 1) {
- this.activeIndex++;
- } else if (this.loop) {
- this.activeIndex = 0;
- }
- },
- pauseTimer: function pauseTimer() {
- if (this.timer) {
- clearInterval(this.timer);
- this.timer = null;
- }
- },
- startTimer: function startTimer() {
- if (this.interval <= 0 || !this.autoplay || this.timer) return;
- this.timer = setInterval(this.playSlides, this.interval);
- },
- setActiveItem: function setActiveItem(index) {
- if (typeof index === 'string') {
- var filteredItems = this.items.filter(function (item) {
- return item.name === index;
- });
- if (filteredItems.length > 0) {
- index = this.items.indexOf(filteredItems[0]);
- }
- }
- index = Number(index);
- if (isNaN(index) || index !== Math.floor(index)) {
- console.warn('[Element Warn][Carousel]index must be an integer.');
- return;
- }
- var length = this.items.length;
- var oldIndex = this.activeIndex;
- if (index < 0) {
- this.activeIndex = this.loop ? length - 1 : 0;
- } else if (index >= length) {
- this.activeIndex = this.loop ? 0 : length - 1;
- } else {
- this.activeIndex = index;
- }
- if (oldIndex === this.activeIndex) {
- this.resetItemPosition(oldIndex);
- }
- },
- prev: function prev() {
- this.setActiveItem(this.activeIndex - 1);
- },
- next: function next() {
- this.setActiveItem(this.activeIndex + 1);
- },
- handleIndicatorClick: function handleIndicatorClick(index) {
- this.activeIndex = index;
- },
- handleIndicatorHover: function handleIndicatorHover(index) {
- if (this.trigger === 'hover' && index !== this.activeIndex) {
- this.activeIndex = index;
- }
- }
- },
- created: function created() {
- var _this3 = this;
- this.throttledArrowClick = throttle_default()(300, true, function (index) {
- _this3.setActiveItem(index);
- });
- this.throttledIndicatorHover = throttle_default()(300, function (index) {
- _this3.handleIndicatorHover(index);
- });
- },
- mounted: function mounted() {
- var _this4 = this;
- this.updateItems();
- this.$nextTick(function () {
- Object(resize_event_["addResizeListener"])(_this4.$el, _this4.resetItemPosition);
- if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
- _this4.activeIndex = _this4.initialIndex;
- }
- _this4.startTimer();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.$el) Object(resize_event_["removeResizeListener"])(this.$el, this.resetItemPosition);
- this.pauseTimer();
- }
- });
- // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_carousel_src_mainvue_type_script_lang_js_ = (carousel_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/carousel/src/main.vue
- /* normalize component */
- var carousel_src_main_component = normalizeComponent(
- packages_carousel_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_5d5d1482_render,
- mainvue_type_template_id_5d5d1482_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var carousel_src_main_api; }
- carousel_src_main_component.options.__file = "packages/carousel/src/main.vue"
- /* harmony default export */ var carousel_src_main = (carousel_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/carousel/index.js
- /* istanbul ignore next */
- carousel_src_main.install = function (Vue) {
- Vue.component(carousel_src_main.name, carousel_src_main);
- };
- /* harmony default export */ var carousel = (carousel_src_main);
- // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
- var BAR_MAP = {
- vertical: {
- offset: 'offsetHeight',
- scroll: 'scrollTop',
- scrollSize: 'scrollHeight',
- size: 'height',
- key: 'vertical',
- axis: 'Y',
- client: 'clientY',
- direction: 'top'
- },
- horizontal: {
- offset: 'offsetWidth',
- scroll: 'scrollLeft',
- scrollSize: 'scrollWidth',
- size: 'width',
- key: 'horizontal',
- axis: 'X',
- client: 'clientX',
- direction: 'left'
- }
- };
- function renderThumbStyle(_ref) {
- var move = _ref.move,
- size = _ref.size,
- bar = _ref.bar;
- var style = {};
- var translate = 'translate' + bar.axis + '(' + move + '%)';
- style[bar.size] = size;
- style.transform = translate;
- style.msTransform = translate;
- style.webkitTransform = translate;
- return style;
- };
- // CONCATENATED MODULE: ./packages/scrollbar/src/bar.js
- /* istanbul ignore next */
- /* harmony default export */ var src_bar = ({
- name: 'Bar',
- props: {
- vertical: Boolean,
- size: String,
- move: Number
- },
- computed: {
- bar: function bar() {
- return BAR_MAP[this.vertical ? 'vertical' : 'horizontal'];
- },
- wrap: function wrap() {
- return this.$parent.wrap;
- }
- },
- render: function render(h) {
- var size = this.size,
- move = this.move,
- bar = this.bar;
- return h(
- 'div',
- {
- 'class': ['el-scrollbar__bar', 'is-' + bar.key],
- on: {
- 'mousedown': this.clickTrackHandler
- }
- },
- [h('div', {
- ref: 'thumb',
- 'class': 'el-scrollbar__thumb',
- on: {
- 'mousedown': this.clickThumbHandler
- },
- style: renderThumbStyle({ size: size, move: move, bar: bar }) })]
- );
- },
- methods: {
- clickThumbHandler: function clickThumbHandler(e) {
- // prevent click event of right button
- if (e.ctrlKey || e.button === 2) {
- return;
- }
- this.startDrag(e);
- this[this.bar.axis] = e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]);
- },
- clickTrackHandler: function clickTrackHandler(e) {
- var offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
- var thumbHalf = this.$refs.thumb[this.bar.offset] / 2;
- var thumbPositionPercentage = (offset - thumbHalf) * 100 / this.$el[this.bar.offset];
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
- },
- startDrag: function startDrag(e) {
- e.stopImmediatePropagation();
- this.cursorDown = true;
- Object(dom_["on"])(document, 'mousemove', this.mouseMoveDocumentHandler);
- Object(dom_["on"])(document, 'mouseup', this.mouseUpDocumentHandler);
- document.onselectstart = function () {
- return false;
- };
- },
- mouseMoveDocumentHandler: function mouseMoveDocumentHandler(e) {
- if (this.cursorDown === false) return;
- var prevPage = this[this.bar.axis];
- if (!prevPage) return;
- var offset = (this.$el.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]) * -1;
- var thumbClickPosition = this.$refs.thumb[this.bar.offset] - prevPage;
- var thumbPositionPercentage = (offset - thumbClickPosition) * 100 / this.$el[this.bar.offset];
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
- },
- mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
- this.cursorDown = false;
- this[this.bar.axis] = 0;
- Object(dom_["off"])(document, 'mousemove', this.mouseMoveDocumentHandler);
- document.onselectstart = null;
- }
- },
- destroyed: function destroyed() {
- Object(dom_["off"])(document, 'mouseup', this.mouseUpDocumentHandler);
- }
- });
- // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
- // reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
- /* istanbul ignore next */
- /* harmony default export */ var scrollbar_src_main = ({
- name: 'ElScrollbar',
- components: { Bar: src_bar },
- props: {
- native: Boolean,
- wrapStyle: {},
- wrapClass: {},
- viewClass: {},
- viewStyle: {},
- noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
- tag: {
- type: String,
- default: 'div'
- }
- },
- data: function data() {
- return {
- sizeWidth: '0',
- sizeHeight: '0',
- moveX: 0,
- moveY: 0
- };
- },
- computed: {
- wrap: function wrap() {
- return this.$refs.wrap;
- }
- },
- render: function render(h) {
- var gutter = scrollbar_width_default()();
- var style = this.wrapStyle;
- if (gutter) {
- var gutterWith = '-' + gutter + 'px';
- var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
- if (Array.isArray(this.wrapStyle)) {
- style = Object(util_["toObject"])(this.wrapStyle);
- style.marginRight = style.marginBottom = gutterWith;
- } else if (typeof this.wrapStyle === 'string') {
- style += gutterStyle;
- } else {
- style = gutterStyle;
- }
- }
- var view = h(this.tag, {
- class: ['el-scrollbar__view', this.viewClass],
- style: this.viewStyle,
- ref: 'resize'
- }, this.$slots.default);
- var wrap = h(
- 'div',
- {
- ref: 'wrap',
- style: style,
- on: {
- 'scroll': this.handleScroll
- },
- 'class': [this.wrapClass, 'el-scrollbar__wrap', gutter ? '' : 'el-scrollbar__wrap--hidden-default'] },
- [[view]]
- );
- var nodes = void 0;
- if (!this.native) {
- nodes = [wrap, h(src_bar, {
- attrs: {
- move: this.moveX,
- size: this.sizeWidth }
- }), h(src_bar, {
- attrs: {
- vertical: true,
- move: this.moveY,
- size: this.sizeHeight }
- })];
- } else {
- nodes = [h(
- 'div',
- {
- ref: 'wrap',
- 'class': [this.wrapClass, 'el-scrollbar__wrap'],
- style: style },
- [[view]]
- )];
- }
- return h('div', { class: 'el-scrollbar' }, nodes);
- },
- methods: {
- handleScroll: function handleScroll() {
- var wrap = this.wrap;
- this.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
- this.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
- },
- update: function update() {
- var heightPercentage = void 0,
- widthPercentage = void 0;
- var wrap = this.wrap;
- if (!wrap) return;
- heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
- widthPercentage = wrap.clientWidth * 100 / wrap.scrollWidth;
- this.sizeHeight = heightPercentage < 100 ? heightPercentage + '%' : '';
- this.sizeWidth = widthPercentage < 100 ? widthPercentage + '%' : '';
- }
- },
- mounted: function mounted() {
- if (this.native) return;
- this.$nextTick(this.update);
- !this.noresize && Object(resize_event_["addResizeListener"])(this.$refs.resize, this.update);
- },
- beforeDestroy: function beforeDestroy() {
- if (this.native) return;
- !this.noresize && Object(resize_event_["removeResizeListener"])(this.$refs.resize, this.update);
- }
- });
- // CONCATENATED MODULE: ./packages/scrollbar/index.js
- /* istanbul ignore next */
- scrollbar_src_main.install = function (Vue) {
- Vue.component(scrollbar_src_main.name, scrollbar_src_main);
- };
- /* harmony default export */ var scrollbar = (scrollbar_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=template&id=1801ae19&
- var itemvue_type_template_id_1801ae19_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.ready,
- expression: "ready"
- }
- ],
- staticClass: "el-carousel__item",
- class: {
- "is-active": _vm.active,
- "el-carousel__item--card": _vm.$parent.type === "card",
- "is-in-stage": _vm.inStage,
- "is-hover": _vm.hover,
- "is-animating": _vm.animating
- },
- style: _vm.itemStyle,
- on: { click: _vm.handleItemClick }
- },
- [
- _vm.$parent.type === "card"
- ? _c("div", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.active,
- expression: "!active"
- }
- ],
- staticClass: "el-carousel__mask"
- })
- : _vm._e(),
- _vm._t("default")
- ],
- 2
- )
- }
- var itemvue_type_template_id_1801ae19_staticRenderFns = []
- itemvue_type_template_id_1801ae19_render._withStripped = true
- // CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=template&id=1801ae19&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var CARD_SCALE = 0.83;
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
- name: 'ElCarouselItem',
- props: {
- name: String,
- label: {
- type: [String, Number],
- default: ''
- }
- },
- data: function data() {
- return {
- hover: false,
- translate: 0,
- scale: 1,
- active: false,
- ready: false,
- inStage: false,
- animating: false
- };
- },
- methods: {
- processIndex: function processIndex(index, activeIndex, length) {
- if (activeIndex === 0 && index === length - 1) {
- return -1;
- } else if (activeIndex === length - 1 && index === 0) {
- return length;
- } else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {
- return length + 1;
- } else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {
- return -2;
- }
- return index;
- },
- calcCardTranslate: function calcCardTranslate(index, activeIndex) {
- var parentWidth = this.$parent.$el.offsetWidth;
- if (this.inStage) {
- return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
- } else if (index < activeIndex) {
- return -(1 + CARD_SCALE) * parentWidth / 4;
- } else {
- return (3 + CARD_SCALE) * parentWidth / 4;
- }
- },
- calcTranslate: function calcTranslate(index, activeIndex, isVertical) {
- var distance = this.$parent.$el[isVertical ? 'offsetHeight' : 'offsetWidth'];
- return distance * (index - activeIndex);
- },
- translateItem: function translateItem(index, activeIndex, oldIndex) {
- var parentType = this.$parent.type;
- var parentDirection = this.parentDirection;
- var length = this.$parent.items.length;
- if (parentType !== 'card' && oldIndex !== undefined) {
- this.animating = index === activeIndex || index === oldIndex;
- }
- if (index !== activeIndex && length > 2 && this.$parent.loop) {
- index = this.processIndex(index, activeIndex, length);
- }
- if (parentType === 'card') {
- if (parentDirection === 'vertical') {
- console.warn('[Element Warn][Carousel]vertical direction is not supported in card mode');
- }
- this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
- this.active = index === activeIndex;
- this.translate = this.calcCardTranslate(index, activeIndex);
- this.scale = this.active ? 1 : CARD_SCALE;
- } else {
- this.active = index === activeIndex;
- var isVertical = parentDirection === 'vertical';
- this.translate = this.calcTranslate(index, activeIndex, isVertical);
- }
- this.ready = true;
- },
- handleItemClick: function handleItemClick() {
- var parent = this.$parent;
- if (parent && parent.type === 'card') {
- var index = parent.items.indexOf(this);
- parent.setActiveItem(index);
- }
- }
- },
- computed: {
- parentDirection: function parentDirection() {
- return this.$parent.direction;
- },
- itemStyle: function itemStyle() {
- var translateType = this.parentDirection === 'vertical' ? 'translateY' : 'translateX';
- var value = translateType + '(' + this.translate + 'px) scale(' + this.scale + ')';
- var style = {
- transform: value
- };
- return Object(util_["autoprefixer"])(style);
- }
- },
- created: function created() {
- this.$parent && this.$parent.updateItems();
- },
- destroyed: function destroyed() {
- this.$parent && this.$parent.updateItems();
- }
- });
- // CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/carousel/src/item.vue
- /* normalize component */
- var item_component = normalizeComponent(
- src_itemvue_type_script_lang_js_,
- itemvue_type_template_id_1801ae19_render,
- itemvue_type_template_id_1801ae19_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var item_api; }
- item_component.options.__file = "packages/carousel/src/item.vue"
- /* harmony default export */ var src_item = (item_component.exports);
- // CONCATENATED MODULE: ./packages/carousel-item/index.js
- /* istanbul ignore next */
- src_item.install = function (Vue) {
- Vue.component(src_item.name, src_item);
- };
- /* harmony default export */ var carousel_item = (src_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse.vue?vue&type=template&id=461d57f4&
- var collapsevue_type_template_id_461d57f4_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-collapse",
- attrs: { role: "tablist", "aria-multiselectable": "true" }
- },
- [_vm._t("default")],
- 2
- )
- }
- var collapsevue_type_template_id_461d57f4_staticRenderFns = []
- collapsevue_type_template_id_461d57f4_render._withStripped = true
- // CONCATENATED MODULE: ./packages/collapse/src/collapse.vue?vue&type=template&id=461d57f4&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- /* harmony default export */ var collapsevue_type_script_lang_js_ = ({
- name: 'ElCollapse',
- componentName: 'ElCollapse',
- props: {
- accordion: Boolean,
- value: {
- type: [Array, String, Number],
- default: function _default() {
- return [];
- }
- }
- },
- data: function data() {
- return {
- activeNames: [].concat(this.value)
- };
- },
- provide: function provide() {
- return {
- collapse: this
- };
- },
- watch: {
- value: function value(_value) {
- this.activeNames = [].concat(_value);
- }
- },
- methods: {
- setActiveNames: function setActiveNames(activeNames) {
- activeNames = [].concat(activeNames);
- var value = this.accordion ? activeNames[0] : activeNames;
- this.activeNames = activeNames;
- this.$emit('input', value);
- this.$emit('change', value);
- },
- handleItemClick: function handleItemClick(item) {
- if (this.accordion) {
- this.setActiveNames((this.activeNames[0] || this.activeNames[0] === 0) && this.activeNames[0] === item.name ? '' : item.name);
- } else {
- var activeNames = this.activeNames.slice(0);
- var index = activeNames.indexOf(item.name);
- if (index > -1) {
- activeNames.splice(index, 1);
- } else {
- activeNames.push(item.name);
- }
- this.setActiveNames(activeNames);
- }
- }
- },
- created: function created() {
- this.$on('item-click', this.handleItemClick);
- }
- });
- // CONCATENATED MODULE: ./packages/collapse/src/collapse.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_collapsevue_type_script_lang_js_ = (collapsevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/collapse/src/collapse.vue
- /* normalize component */
- var collapse_component = normalizeComponent(
- src_collapsevue_type_script_lang_js_,
- collapsevue_type_template_id_461d57f4_render,
- collapsevue_type_template_id_461d57f4_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var collapse_api; }
- collapse_component.options.__file = "packages/collapse/src/collapse.vue"
- /* harmony default export */ var collapse = (collapse_component.exports);
- // CONCATENATED MODULE: ./packages/collapse/index.js
- /* istanbul ignore next */
- collapse.install = function (Vue) {
- Vue.component(collapse.name, collapse);
- };
- /* harmony default export */ var packages_collapse = (collapse);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse-item.vue?vue&type=template&id=2d05faac&
- var collapse_itemvue_type_template_id_2d05faac_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-collapse-item",
- class: { "is-active": _vm.isActive, "is-disabled": _vm.disabled }
- },
- [
- _c(
- "div",
- {
- attrs: {
- role: "tab",
- "aria-expanded": _vm.isActive,
- "aria-controls": "el-collapse-content-" + _vm.id,
- "aria-describedby": "el-collapse-content-" + _vm.id
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-collapse-item__header",
- class: {
- focusing: _vm.focusing,
- "is-active": _vm.isActive
- },
- attrs: {
- role: "button",
- id: "el-collapse-head-" + _vm.id,
- tabindex: _vm.disabled ? undefined : 0
- },
- on: {
- click: _vm.handleHeaderClick,
- keyup: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "space", 32, $event.key, [
- " ",
- "Spacebar"
- ]) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- $event.stopPropagation()
- return _vm.handleEnterClick($event)
- },
- focus: _vm.handleFocus,
- blur: function($event) {
- _vm.focusing = false
- }
- }
- },
- [
- _vm._t("title", [_vm._v(_vm._s(_vm.title))]),
- _c("i", {
- staticClass: "el-collapse-item__arrow el-icon-arrow-right",
- class: { "is-active": _vm.isActive }
- })
- ],
- 2
- )
- ]
- ),
- _c("el-collapse-transition", [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.isActive,
- expression: "isActive"
- }
- ],
- staticClass: "el-collapse-item__wrap",
- attrs: {
- role: "tabpanel",
- "aria-hidden": !_vm.isActive,
- "aria-labelledby": "el-collapse-head-" + _vm.id,
- id: "el-collapse-content-" + _vm.id
- }
- },
- [
- _c(
- "div",
- { staticClass: "el-collapse-item__content" },
- [_vm._t("default")],
- 2
- )
- ]
- )
- ])
- ],
- 1
- )
- }
- var collapse_itemvue_type_template_id_2d05faac_staticRenderFns = []
- collapse_itemvue_type_template_id_2d05faac_render._withStripped = true
- // CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue?vue&type=template&id=2d05faac&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse-item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var collapse_itemvue_type_script_lang_js_ = ({
- name: 'ElCollapseItem',
- componentName: 'ElCollapseItem',
- mixins: [emitter_default.a],
- components: { ElCollapseTransition: collapse_transition_default.a },
- data: function data() {
- return {
- contentWrapStyle: {
- height: 'auto',
- display: 'block'
- },
- contentHeight: 0,
- focusing: false,
- isClick: false,
- id: Object(util_["generateId"])()
- };
- },
- inject: ['collapse'],
- props: {
- title: String,
- name: {
- type: [String, Number],
- default: function _default() {
- return this._uid;
- }
- },
- disabled: Boolean
- },
- computed: {
- isActive: function isActive() {
- return this.collapse.activeNames.indexOf(this.name) > -1;
- }
- },
- methods: {
- handleFocus: function handleFocus() {
- var _this = this;
- setTimeout(function () {
- if (!_this.isClick) {
- _this.focusing = true;
- } else {
- _this.isClick = false;
- }
- }, 50);
- },
- handleHeaderClick: function handleHeaderClick() {
- if (this.disabled) return;
- this.dispatch('ElCollapse', 'item-click', this);
- this.focusing = false;
- this.isClick = true;
- },
- handleEnterClick: function handleEnterClick() {
- this.dispatch('ElCollapse', 'item-click', this);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_collapse_itemvue_type_script_lang_js_ = (collapse_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue
- /* normalize component */
- var collapse_item_component = normalizeComponent(
- src_collapse_itemvue_type_script_lang_js_,
- collapse_itemvue_type_template_id_2d05faac_render,
- collapse_itemvue_type_template_id_2d05faac_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var collapse_item_api; }
- collapse_item_component.options.__file = "packages/collapse/src/collapse-item.vue"
- /* harmony default export */ var collapse_item = (collapse_item_component.exports);
- // CONCATENATED MODULE: ./packages/collapse-item/index.js
- /* istanbul ignore next */
- collapse_item.install = function (Vue) {
- Vue.component(collapse_item.name, collapse_item);
- };
- /* harmony default export */ var packages_collapse_item = (collapse_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=032537a6&
- var cascadervue_type_template_id_032537a6_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: function() {
- return _vm.toggleDropDownVisible(false)
- },
- expression: "() => toggleDropDownVisible(false)"
- }
- ],
- ref: "reference",
- class: [
- "el-cascader",
- _vm.realSize && "el-cascader--" + _vm.realSize,
- { "is-disabled": _vm.isDisabled }
- ],
- on: {
- mouseenter: function($event) {
- _vm.inputHover = true
- },
- mouseleave: function($event) {
- _vm.inputHover = false
- },
- click: function() {
- return _vm.toggleDropDownVisible(_vm.readonly ? undefined : true)
- },
- keydown: _vm.handleKeyDown
- }
- },
- [
- _c(
- "el-input",
- {
- ref: "input",
- class: { "is-focus": _vm.dropDownVisible },
- attrs: {
- size: _vm.realSize,
- placeholder: _vm.placeholder,
- readonly: _vm.readonly,
- disabled: _vm.isDisabled,
- "validate-event": false
- },
- on: {
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- input: _vm.handleInput
- },
- model: {
- value: _vm.multiple ? _vm.presentText : _vm.inputValue,
- callback: function($$v) {
- _vm.multiple ? _vm.presentText : (_vm.inputValue = $$v)
- },
- expression: "multiple ? presentText : inputValue"
- }
- },
- [
- _c("template", { slot: "suffix" }, [
- _vm.clearBtnVisible
- ? _c("i", {
- key: "clear",
- staticClass: "el-input__icon el-icon-circle-close",
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.handleClear($event)
- }
- }
- })
- : _c("i", {
- key: "arrow-down",
- class: [
- "el-input__icon",
- "el-icon-arrow-down",
- _vm.dropDownVisible && "is-reverse"
- ],
- on: {
- click: function($event) {
- $event.stopPropagation()
- _vm.toggleDropDownVisible()
- }
- }
- })
- ])
- ],
- 2
- ),
- _vm.multiple
- ? _c(
- "div",
- { staticClass: "el-cascader__tags" },
- [
- _vm._l(_vm.presentTags, function(tag, index) {
- return _c(
- "el-tag",
- {
- key: tag.key,
- attrs: {
- type: "info",
- size: _vm.tagSize,
- hit: tag.hitState,
- closable: tag.closable,
- "disable-transitions": ""
- },
- on: {
- close: function($event) {
- _vm.deleteTag(index)
- }
- }
- },
- [_c("span", [_vm._v(_vm._s(tag.text))])]
- )
- }),
- _vm.filterable && !_vm.isDisabled
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model.trim",
- value: _vm.inputValue,
- expression: "inputValue",
- modifiers: { trim: true }
- }
- ],
- staticClass: "el-cascader__search-input",
- attrs: {
- type: "text",
- placeholder: _vm.presentTags.length ? "" : _vm.placeholder
- },
- domProps: { value: _vm.inputValue },
- on: {
- input: [
- function($event) {
- if ($event.target.composing) {
- return
- }
- _vm.inputValue = $event.target.value.trim()
- },
- function(e) {
- return _vm.handleInput(_vm.inputValue, e)
- }
- ],
- click: function($event) {
- $event.stopPropagation()
- _vm.toggleDropDownVisible(true)
- },
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "delete",
- [8, 46],
- $event.key,
- ["Backspace", "Delete", "Del"]
- )
- ) {
- return null
- }
- return _vm.handleDelete($event)
- },
- blur: function($event) {
- _vm.$forceUpdate()
- }
- }
- })
- : _vm._e()
- ],
- 2
- )
- : _vm._e(),
- _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: { "after-leave": _vm.handleDropdownLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.dropDownVisible,
- expression: "dropDownVisible"
- }
- ],
- ref: "popper",
- class: ["el-popper", "el-cascader__dropdown", _vm.popperClass]
- },
- [
- _c("el-cascader-panel", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.filtering,
- expression: "!filtering"
- }
- ],
- ref: "panel",
- attrs: {
- options: _vm.options,
- props: _vm.config,
- border: false,
- "render-label": _vm.$scopedSlots.default
- },
- on: {
- "expand-change": _vm.handleExpandChange,
- close: function($event) {
- _vm.toggleDropDownVisible(false)
- }
- },
- model: {
- value: _vm.checkedValue,
- callback: function($$v) {
- _vm.checkedValue = $$v
- },
- expression: "checkedValue"
- }
- }),
- _vm.filterable
- ? _c(
- "el-scrollbar",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.filtering,
- expression: "filtering"
- }
- ],
- ref: "suggestionPanel",
- staticClass: "el-cascader__suggestion-panel",
- attrs: {
- tag: "ul",
- "view-class": "el-cascader__suggestion-list"
- },
- nativeOn: {
- keydown: function($event) {
- return _vm.handleSuggestionKeyDown($event)
- }
- }
- },
- [
- _vm.suggestions.length
- ? _vm._l(_vm.suggestions, function(item, index) {
- return _c(
- "li",
- {
- key: item.uid,
- class: [
- "el-cascader__suggestion-item",
- item.checked && "is-checked"
- ],
- attrs: { tabindex: -1 },
- on: {
- click: function($event) {
- _vm.handleSuggestionClick(index)
- }
- }
- },
- [
- _c("span", [_vm._v(_vm._s(item.text))]),
- item.checked
- ? _c("i", { staticClass: "el-icon-check" })
- : _vm._e()
- ]
- )
- })
- : _vm._t("empty", [
- _c(
- "li",
- { staticClass: "el-cascader__empty-text" },
- [_vm._v(_vm._s(_vm.t("el.cascader.noMatch")))]
- )
- ])
- ],
- 2
- )
- : _vm._e()
- ],
- 1
- )
- ]
- )
- ],
- 1
- )
- }
- var cascadervue_type_template_id_032537a6_staticRenderFns = []
- cascadervue_type_template_id_032537a6_render._withStripped = true
- // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=032537a6&
- // EXTERNAL MODULE: external "element-ui/lib/cascader-panel"
- var cascader_panel_ = __webpack_require__(42);
- var cascader_panel_default = /*#__PURE__*/__webpack_require__.n(cascader_panel_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/aria-utils"
- var aria_utils_ = __webpack_require__(28);
- var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var KeyCode = aria_utils_default.a.keys;
- var MigratingProps = {
- expandTrigger: {
- newProp: 'expandTrigger',
- type: String
- },
- changeOnSelect: {
- newProp: 'checkStrictly',
- type: Boolean
- },
- hoverThreshold: {
- newProp: 'hoverThreshold',
- type: Number
- }
- };
- var PopperMixin = {
- props: {
- placement: {
- type: String,
- default: 'bottom-start'
- },
- appendToBody: vue_popper_default.a.props.appendToBody,
- visibleArrow: {
- type: Boolean,
- default: true
- },
- arrowOffset: vue_popper_default.a.props.arrowOffset,
- offset: vue_popper_default.a.props.offset,
- boundariesPadding: vue_popper_default.a.props.boundariesPadding,
- popperOptions: vue_popper_default.a.props.popperOptions
- },
- methods: vue_popper_default.a.methods,
- data: vue_popper_default.a.data,
- beforeDestroy: vue_popper_default.a.beforeDestroy
- };
- var InputSizeMap = {
- medium: 36,
- small: 32,
- mini: 28
- };
- /* harmony default export */ var cascadervue_type_script_lang_js_ = ({
- name: 'ElCascader',
- directives: { Clickoutside: clickoutside_default.a },
- mixins: [PopperMixin, emitter_default.a, locale_default.a, migrating_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- components: {
- ElInput: input_default.a,
- ElTag: tag_default.a,
- ElScrollbar: scrollbar_default.a,
- ElCascaderPanel: cascader_panel_default.a
- },
- props: {
- value: {},
- options: Array,
- props: Object,
- size: String,
- placeholder: {
- type: String,
- default: function _default() {
- return Object(lib_locale_["t"])('el.cascader.placeholder');
- }
- },
- disabled: Boolean,
- clearable: Boolean,
- filterable: Boolean,
- filterMethod: Function,
- separator: {
- type: String,
- default: ' / '
- },
- showAllLevels: {
- type: Boolean,
- default: true
- },
- collapseTags: Boolean,
- debounce: {
- type: Number,
- default: 300
- },
- beforeFilter: {
- type: Function,
- default: function _default() {
- return function () {};
- }
- },
- popperClass: String
- },
- data: function data() {
- return {
- dropDownVisible: false,
- checkedValue: this.value || null,
- inputHover: false,
- inputValue: null,
- presentText: null,
- presentTags: [],
- checkedNodes: [],
- filtering: false,
- suggestions: [],
- inputInitialHeight: 0,
- pressDeleteCount: 0
- };
- },
- computed: {
- realSize: function realSize() {
- var _elFormItemSize = (this.elFormItem || {}).elFormItemSize;
- return this.size || _elFormItemSize || (this.$ELEMENT || {}).size;
- },
- tagSize: function tagSize() {
- return ['small', 'mini'].indexOf(this.realSize) > -1 ? 'mini' : 'small';
- },
- isDisabled: function isDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- config: function config() {
- var config = this.props || {};
- var $attrs = this.$attrs;
- Object.keys(MigratingProps).forEach(function (oldProp) {
- var _MigratingProps$oldPr = MigratingProps[oldProp],
- newProp = _MigratingProps$oldPr.newProp,
- type = _MigratingProps$oldPr.type;
- var oldValue = $attrs[oldProp] || $attrs[Object(util_["kebabCase"])(oldProp)];
- if (Object(shared_["isDef"])(oldProp) && !Object(shared_["isDef"])(config[newProp])) {
- if (type === Boolean && oldValue === '') {
- oldValue = true;
- }
- config[newProp] = oldValue;
- }
- });
- return config;
- },
- multiple: function multiple() {
- return this.config.multiple;
- },
- leafOnly: function leafOnly() {
- return !this.config.checkStrictly;
- },
- readonly: function readonly() {
- return !this.filterable || this.multiple;
- },
- clearBtnVisible: function clearBtnVisible() {
- if (!this.clearable || this.isDisabled || this.filtering || !this.inputHover) {
- return false;
- }
- return this.multiple ? !!this.checkedNodes.filter(function (node) {
- return !node.isDisabled;
- }).length : !!this.presentText;
- },
- panel: function panel() {
- return this.$refs.panel;
- }
- },
- watch: {
- disabled: function disabled() {
- this.computePresentContent();
- },
- value: function value(val) {
- if (!Object(util_["isEqual"])(val, this.checkedValue)) {
- this.checkedValue = val;
- this.computePresentContent();
- }
- },
- checkedValue: function checkedValue(val) {
- var value = this.value,
- dropDownVisible = this.dropDownVisible;
- var _config = this.config,
- checkStrictly = _config.checkStrictly,
- multiple = _config.multiple;
- if (!Object(util_["isEqual"])(val, value) || Object(types_["isUndefined"])(value)) {
- this.computePresentContent();
- // hide dropdown when single mode
- if (!multiple && !checkStrictly && dropDownVisible) {
- this.toggleDropDownVisible(false);
- }
- this.$emit('input', val);
- this.$emit('change', val);
- this.dispatch('ElFormItem', 'el.form.change', [val]);
- }
- },
- options: {
- handler: function handler() {
- this.$nextTick(this.computePresentContent);
- },
- deep: true
- },
- presentText: function presentText(val) {
- this.inputValue = val;
- },
- presentTags: function presentTags(val, oldVal) {
- if (this.multiple && (val.length || oldVal.length)) {
- this.$nextTick(this.updateStyle);
- }
- },
- filtering: function filtering(val) {
- this.$nextTick(this.updatePopper);
- }
- },
- mounted: function mounted() {
- var _this = this;
- var input = this.$refs.input;
- if (input && input.$el) {
- this.inputInitialHeight = input.$el.offsetHeight || InputSizeMap[this.realSize] || 40;
- }
- if (!Object(util_["isEmpty"])(this.value)) {
- this.computePresentContent();
- }
- this.filterHandler = debounce_default()(this.debounce, function () {
- var inputValue = _this.inputValue;
- if (!inputValue) {
- _this.filtering = false;
- return;
- }
- var before = _this.beforeFilter(inputValue);
- if (before && before.then) {
- before.then(_this.getSuggestions);
- } else if (before !== false) {
- _this.getSuggestions();
- } else {
- _this.filtering = false;
- }
- });
- Object(resize_event_["addResizeListener"])(this.$el, this.updateStyle);
- },
- beforeDestroy: function beforeDestroy() {
- Object(resize_event_["removeResizeListener"])(this.$el, this.updateStyle);
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'expand-trigger': 'expand-trigger is removed, use `props.expandTrigger` instead.',
- 'change-on-select': 'change-on-select is removed, use `props.checkStrictly` instead.',
- 'hover-threshold': 'hover-threshold is removed, use `props.hoverThreshold` instead'
- },
- events: {
- 'active-item-change': 'active-item-change is renamed to expand-change'
- }
- };
- },
- toggleDropDownVisible: function toggleDropDownVisible(visible) {
- var _this2 = this;
- if (this.isDisabled) return;
- var dropDownVisible = this.dropDownVisible;
- var input = this.$refs.input;
- visible = Object(shared_["isDef"])(visible) ? visible : !dropDownVisible;
- if (visible !== dropDownVisible) {
- this.dropDownVisible = visible;
- if (visible) {
- this.$nextTick(function () {
- _this2.updatePopper();
- _this2.panel.scrollIntoView();
- });
- }
- input.$refs.input.setAttribute('aria-expanded', visible);
- this.$emit('visible-change', visible);
- }
- },
- handleDropdownLeave: function handleDropdownLeave() {
- this.filtering = false;
- this.inputValue = this.presentText;
- },
- handleKeyDown: function handleKeyDown(event) {
- switch (event.keyCode) {
- case KeyCode.enter:
- this.toggleDropDownVisible();
- break;
- case KeyCode.down:
- this.toggleDropDownVisible(true);
- this.focusFirstNode();
- event.preventDefault();
- break;
- case KeyCode.esc:
- case KeyCode.tab:
- this.toggleDropDownVisible(false);
- break;
- }
- },
- handleFocus: function handleFocus(e) {
- this.$emit('focus', e);
- },
- handleBlur: function handleBlur(e) {
- this.$emit('blur', e);
- },
- handleInput: function handleInput(val, event) {
- !this.dropDownVisible && this.toggleDropDownVisible(true);
- if (event && event.isComposing) return;
- if (val) {
- this.filterHandler();
- } else {
- this.filtering = false;
- }
- },
- handleClear: function handleClear() {
- this.presentText = '';
- this.panel.clearCheckedNodes();
- },
- handleExpandChange: function handleExpandChange(value) {
- this.$nextTick(this.updatePopper.bind(this));
- this.$emit('expand-change', value);
- this.$emit('active-item-change', value); // Deprecated
- },
- focusFirstNode: function focusFirstNode() {
- var _this3 = this;
- this.$nextTick(function () {
- var filtering = _this3.filtering;
- var _$refs = _this3.$refs,
- popper = _$refs.popper,
- suggestionPanel = _$refs.suggestionPanel;
- var firstNode = null;
- if (filtering && suggestionPanel) {
- firstNode = suggestionPanel.$el.querySelector('.el-cascader__suggestion-item');
- } else {
- var firstMenu = popper.querySelector('.el-cascader-menu');
- firstNode = firstMenu.querySelector('.el-cascader-node[tabindex="-1"]');
- }
- if (firstNode) {
- firstNode.focus();
- !filtering && firstNode.click();
- }
- });
- },
- computePresentContent: function computePresentContent() {
- var _this4 = this;
- // nextTick is required, because checked nodes may not change right now
- this.$nextTick(function () {
- if (_this4.config.multiple) {
- _this4.computePresentTags();
- _this4.presentText = _this4.presentTags.length ? ' ' : null;
- } else {
- _this4.computePresentText();
- }
- });
- },
- computePresentText: function computePresentText() {
- var checkedValue = this.checkedValue,
- config = this.config;
- if (!Object(util_["isEmpty"])(checkedValue)) {
- var node = this.panel.getNodeByValue(checkedValue);
- if (node && (config.checkStrictly || node.isLeaf)) {
- this.presentText = node.getText(this.showAllLevels, this.separator);
- return;
- }
- }
- this.presentText = null;
- },
- computePresentTags: function computePresentTags() {
- var isDisabled = this.isDisabled,
- leafOnly = this.leafOnly,
- showAllLevels = this.showAllLevels,
- separator = this.separator,
- collapseTags = this.collapseTags;
- var checkedNodes = this.getCheckedNodes(leafOnly);
- var tags = [];
- var genTag = function genTag(node) {
- return {
- node: node,
- key: node.uid,
- text: node.getText(showAllLevels, separator),
- hitState: false,
- closable: !isDisabled && !node.isDisabled
- };
- };
- if (checkedNodes.length) {
- var first = checkedNodes[0],
- rest = checkedNodes.slice(1);
- var restCount = rest.length;
- tags.push(genTag(first));
- if (restCount) {
- if (collapseTags) {
- tags.push({
- key: -1,
- text: '+ ' + restCount,
- closable: false
- });
- } else {
- rest.forEach(function (node) {
- return tags.push(genTag(node));
- });
- }
- }
- }
- this.checkedNodes = checkedNodes;
- this.presentTags = tags;
- },
- getSuggestions: function getSuggestions() {
- var _this5 = this;
- var filterMethod = this.filterMethod;
- if (!Object(types_["isFunction"])(filterMethod)) {
- filterMethod = function filterMethod(node, keyword) {
- return node.text.includes(keyword);
- };
- }
- var suggestions = this.panel.getFlattedNodes(this.leafOnly).filter(function (node) {
- if (node.isDisabled) return false;
- node.text = node.getText(_this5.showAllLevels, _this5.separator) || '';
- return filterMethod(node, _this5.inputValue);
- });
- if (this.multiple) {
- this.presentTags.forEach(function (tag) {
- tag.hitState = false;
- });
- } else {
- suggestions.forEach(function (node) {
- node.checked = Object(util_["isEqual"])(_this5.checkedValue, node.getValueByOption());
- });
- }
- this.filtering = true;
- this.suggestions = suggestions;
- this.$nextTick(this.updatePopper);
- },
- handleSuggestionKeyDown: function handleSuggestionKeyDown(event) {
- var keyCode = event.keyCode,
- target = event.target;
- switch (keyCode) {
- case KeyCode.enter:
- target.click();
- break;
- case KeyCode.up:
- var prev = target.previousElementSibling;
- prev && prev.focus();
- break;
- case KeyCode.down:
- var next = target.nextElementSibling;
- next && next.focus();
- break;
- case KeyCode.esc:
- case KeyCode.tab:
- this.toggleDropDownVisible(false);
- break;
- }
- },
- handleDelete: function handleDelete() {
- var inputValue = this.inputValue,
- pressDeleteCount = this.pressDeleteCount,
- presentTags = this.presentTags;
- var lastIndex = presentTags.length - 1;
- var lastTag = presentTags[lastIndex];
- this.pressDeleteCount = inputValue ? 0 : pressDeleteCount + 1;
- if (!lastTag) return;
- if (this.pressDeleteCount) {
- if (lastTag.hitState) {
- this.deleteTag(lastIndex);
- } else {
- lastTag.hitState = true;
- }
- }
- },
- handleSuggestionClick: function handleSuggestionClick(index) {
- var multiple = this.multiple;
- var targetNode = this.suggestions[index];
- if (multiple) {
- var checked = targetNode.checked;
- targetNode.doCheck(!checked);
- this.panel.calculateMultiCheckedValue();
- } else {
- this.checkedValue = targetNode.getValueByOption();
- this.toggleDropDownVisible(false);
- }
- },
- deleteTag: function deleteTag(index) {
- var checkedValue = this.checkedValue;
- var val = checkedValue[index];
- this.checkedValue = checkedValue.filter(function (n, i) {
- return i !== index;
- });
- this.$emit('remove-tag', val);
- },
- updateStyle: function updateStyle() {
- var $el = this.$el,
- inputInitialHeight = this.inputInitialHeight;
- if (this.$isServer || !$el) return;
- var suggestionPanel = this.$refs.suggestionPanel;
- var inputInner = $el.querySelector('.el-input__inner');
- if (!inputInner) return;
- var tags = $el.querySelector('.el-cascader__tags');
- var suggestionPanelEl = null;
- if (suggestionPanel && (suggestionPanelEl = suggestionPanel.$el)) {
- var suggestionList = suggestionPanelEl.querySelector('.el-cascader__suggestion-list');
- suggestionList.style.minWidth = inputInner.offsetWidth + 'px';
- }
- if (tags) {
- var offsetHeight = tags.offsetHeight;
- var height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px';
- inputInner.style.height = height;
- this.updatePopper();
- }
- },
- /**
- * public methods
- */
- getCheckedNodes: function getCheckedNodes(leafOnly) {
- return this.panel.getCheckedNodes(leafOnly);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascadervue_type_script_lang_js_ = (cascadervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue
- /* normalize component */
- var cascader_component = normalizeComponent(
- src_cascadervue_type_script_lang_js_,
- cascadervue_type_template_id_032537a6_render,
- cascadervue_type_template_id_032537a6_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_api; }
- cascader_component.options.__file = "packages/cascader/src/cascader.vue"
- /* harmony default export */ var cascader = (cascader_component.exports);
- // CONCATENATED MODULE: ./packages/cascader/index.js
- /* istanbul ignore next */
- cascader.install = function (Vue) {
- Vue.component(cascader.name, cascader);
- };
- /* harmony default export */ var packages_cascader = (cascader);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=template&id=55c8ade7&
- var mainvue_type_template_id_55c8ade7_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.hide,
- expression: "hide"
- }
- ],
- class: [
- "el-color-picker",
- _vm.colorDisabled ? "is-disabled" : "",
- _vm.colorSize ? "el-color-picker--" + _vm.colorSize : ""
- ]
- },
- [
- _vm.colorDisabled
- ? _c("div", { staticClass: "el-color-picker__mask" })
- : _vm._e(),
- _c(
- "div",
- {
- staticClass: "el-color-picker__trigger",
- on: { click: _vm.handleTrigger }
- },
- [
- _c(
- "span",
- {
- staticClass: "el-color-picker__color",
- class: { "is-alpha": _vm.showAlpha }
- },
- [
- _c("span", {
- staticClass: "el-color-picker__color-inner",
- style: {
- backgroundColor: _vm.displayedColor
- }
- }),
- !_vm.value && !_vm.showPanelColor
- ? _c("span", {
- staticClass: "el-color-picker__empty el-icon-close"
- })
- : _vm._e()
- ]
- ),
- _c("span", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.value || _vm.showPanelColor,
- expression: "value || showPanelColor"
- }
- ],
- staticClass: "el-color-picker__icon el-icon-arrow-down"
- })
- ]
- ),
- _c("picker-dropdown", {
- ref: "dropdown",
- class: ["el-color-picker__panel", _vm.popperClass || ""],
- attrs: {
- color: _vm.color,
- "show-alpha": _vm.showAlpha,
- predefine: _vm.predefine
- },
- on: { pick: _vm.confirmValue, clear: _vm.clearValue },
- model: {
- value: _vm.showPicker,
- callback: function($$v) {
- _vm.showPicker = $$v
- },
- expression: "showPicker"
- }
- })
- ],
- 1
- )
- }
- var mainvue_type_template_id_55c8ade7_staticRenderFns = []
- mainvue_type_template_id_55c8ade7_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/main.vue?vue&type=template&id=55c8ade7&
- // CONCATENATED MODULE: ./packages/color-picker/src/color.js
- var color_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- function color_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var hsv2hsl = function hsv2hsl(hue, sat, val) {
- return [hue, sat * val / ((hue = (2 - sat) * val) < 1 ? hue : 2 - hue) || 0, hue / 2];
- };
- // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
- // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
- var isOnePointZero = function isOnePointZero(n) {
- return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
- };
- var isPercentage = function isPercentage(n) {
- return typeof n === 'string' && n.indexOf('%') !== -1;
- };
- // Take input from [0, n] and return it as [0, 1]
- var bound01 = function bound01(value, max) {
- if (isOnePointZero(value)) value = '100%';
- var processPercent = isPercentage(value);
- value = Math.min(max, Math.max(0, parseFloat(value)));
- // Automatically convert percentage into number
- if (processPercent) {
- value = parseInt(value * max, 10) / 100;
- }
- // Handle floating point rounding errors
- if (Math.abs(value - max) < 0.000001) {
- return 1;
- }
- // Convert into [0, 1] range if it isn't already
- return value % max / parseFloat(max);
- };
- var INT_HEX_MAP = { 10: 'A', 11: 'B', 12: 'C', 13: 'D', 14: 'E', 15: 'F' };
- var toHex = function toHex(_ref) {
- var r = _ref.r,
- g = _ref.g,
- b = _ref.b;
- var hexOne = function hexOne(value) {
- value = Math.min(Math.round(value), 255);
- var high = Math.floor(value / 16);
- var low = value % 16;
- return '' + (INT_HEX_MAP[high] || high) + (INT_HEX_MAP[low] || low);
- };
- if (isNaN(r) || isNaN(g) || isNaN(b)) return '';
- return '#' + hexOne(r) + hexOne(g) + hexOne(b);
- };
- var HEX_INT_MAP = { A: 10, B: 11, C: 12, D: 13, E: 14, F: 15 };
- var parseHexChannel = function parseHexChannel(hex) {
- if (hex.length === 2) {
- return (HEX_INT_MAP[hex[0].toUpperCase()] || +hex[0]) * 16 + (HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1]);
- }
- return HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1];
- };
- var hsl2hsv = function hsl2hsv(hue, sat, light) {
- sat = sat / 100;
- light = light / 100;
- var smin = sat;
- var lmin = Math.max(light, 0.01);
- var sv = void 0;
- var v = void 0;
- light *= 2;
- sat *= light <= 1 ? light : 2 - light;
- smin *= lmin <= 1 ? lmin : 2 - lmin;
- v = (light + sat) / 2;
- sv = light === 0 ? 2 * smin / (lmin + smin) : 2 * sat / (light + sat);
- return {
- h: hue,
- s: sv * 100,
- v: v * 100
- };
- };
- // `rgbToHsv`
- // Converts an RGB color value to HSV
- // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
- // *Returns:* { h, s, v } in [0,1]
- var rgb2hsv = function rgb2hsv(r, g, b) {
- r = bound01(r, 255);
- g = bound01(g, 255);
- b = bound01(b, 255);
- var max = Math.max(r, g, b);
- var min = Math.min(r, g, b);
- var h = void 0,
- s = void 0;
- var v = max;
- var d = max - min;
- s = max === 0 ? 0 : d / max;
- if (max === min) {
- h = 0; // achromatic
- } else {
- switch (max) {
- case r:
- h = (g - b) / d + (g < b ? 6 : 0);
- break;
- case g:
- h = (b - r) / d + 2;
- break;
- case b:
- h = (r - g) / d + 4;
- break;
- }
- h /= 6;
- }
- return { h: h * 360, s: s * 100, v: v * 100 };
- };
- // `hsvToRgb`
- // Converts an HSV color value to RGB.
- // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
- // *Returns:* { r, g, b } in the set [0, 255]
- var hsv2rgb = function hsv2rgb(h, s, v) {
- h = bound01(h, 360) * 6;
- s = bound01(s, 100);
- v = bound01(v, 100);
- var i = Math.floor(h);
- var f = h - i;
- var p = v * (1 - s);
- var q = v * (1 - f * s);
- var t = v * (1 - (1 - f) * s);
- var mod = i % 6;
- var r = [v, q, p, p, t, v][mod];
- var g = [t, v, v, q, p, p][mod];
- var b = [p, p, t, v, v, q][mod];
- return {
- r: Math.round(r * 255),
- g: Math.round(g * 255),
- b: Math.round(b * 255)
- };
- };
- var Color = function () {
- function Color(options) {
- color_classCallCheck(this, Color);
- this._hue = 0;
- this._saturation = 100;
- this._value = 100;
- this._alpha = 100;
- this.enableAlpha = false;
- this.format = 'hex';
- this.value = '';
- options = options || {};
- for (var option in options) {
- if (options.hasOwnProperty(option)) {
- this[option] = options[option];
- }
- }
- this.doOnChange();
- }
- Color.prototype.set = function set(prop, value) {
- if (arguments.length === 1 && (typeof prop === 'undefined' ? 'undefined' : color_typeof(prop)) === 'object') {
- for (var p in prop) {
- if (prop.hasOwnProperty(p)) {
- this.set(p, prop[p]);
- }
- }
- return;
- }
- this['_' + prop] = value;
- this.doOnChange();
- };
- Color.prototype.get = function get(prop) {
- return this['_' + prop];
- };
- Color.prototype.toRgb = function toRgb() {
- return hsv2rgb(this._hue, this._saturation, this._value);
- };
- Color.prototype.fromString = function fromString(value) {
- var _this = this;
- if (!value) {
- this._hue = 0;
- this._saturation = 100;
- this._value = 100;
- this.doOnChange();
- return;
- }
- var fromHSV = function fromHSV(h, s, v) {
- _this._hue = Math.max(0, Math.min(360, h));
- _this._saturation = Math.max(0, Math.min(100, s));
- _this._value = Math.max(0, Math.min(100, v));
- _this.doOnChange();
- };
- if (value.indexOf('hsl') !== -1) {
- var parts = value.replace(/hsla|hsl|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
- return val !== '';
- }).map(function (val, index) {
- return index > 2 ? parseFloat(val) : parseInt(val, 10);
- });
- if (parts.length === 4) {
- this._alpha = Math.floor(parseFloat(parts[3]) * 100);
- } else if (parts.length === 3) {
- this._alpha = 100;
- }
- if (parts.length >= 3) {
- var _hsl2hsv = hsl2hsv(parts[0], parts[1], parts[2]),
- h = _hsl2hsv.h,
- s = _hsl2hsv.s,
- v = _hsl2hsv.v;
- fromHSV(h, s, v);
- }
- } else if (value.indexOf('hsv') !== -1) {
- var _parts = value.replace(/hsva|hsv|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
- return val !== '';
- }).map(function (val, index) {
- return index > 2 ? parseFloat(val) : parseInt(val, 10);
- });
- if (_parts.length === 4) {
- this._alpha = Math.floor(parseFloat(_parts[3]) * 100);
- } else if (_parts.length === 3) {
- this._alpha = 100;
- }
- if (_parts.length >= 3) {
- fromHSV(_parts[0], _parts[1], _parts[2]);
- }
- } else if (value.indexOf('rgb') !== -1) {
- var _parts2 = value.replace(/rgba|rgb|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
- return val !== '';
- }).map(function (val, index) {
- return index > 2 ? parseFloat(val) : parseInt(val, 10);
- });
- if (_parts2.length === 4) {
- this._alpha = Math.floor(parseFloat(_parts2[3]) * 100);
- } else if (_parts2.length === 3) {
- this._alpha = 100;
- }
- if (_parts2.length >= 3) {
- var _rgb2hsv = rgb2hsv(_parts2[0], _parts2[1], _parts2[2]),
- _h = _rgb2hsv.h,
- _s = _rgb2hsv.s,
- _v = _rgb2hsv.v;
- fromHSV(_h, _s, _v);
- }
- } else if (value.indexOf('#') !== -1) {
- var hex = value.replace('#', '').trim();
- if (!/^(?:[0-9a-fA-F]{3}){1,2}$/.test(hex)) return;
- var r = void 0,
- g = void 0,
- b = void 0;
- if (hex.length === 3) {
- r = parseHexChannel(hex[0] + hex[0]);
- g = parseHexChannel(hex[1] + hex[1]);
- b = parseHexChannel(hex[2] + hex[2]);
- } else if (hex.length === 6 || hex.length === 8) {
- r = parseHexChannel(hex.substring(0, 2));
- g = parseHexChannel(hex.substring(2, 4));
- b = parseHexChannel(hex.substring(4, 6));
- }
- if (hex.length === 8) {
- this._alpha = Math.floor(parseHexChannel(hex.substring(6)) / 255 * 100);
- } else if (hex.length === 3 || hex.length === 6) {
- this._alpha = 100;
- }
- var _rgb2hsv2 = rgb2hsv(r, g, b),
- _h2 = _rgb2hsv2.h,
- _s2 = _rgb2hsv2.s,
- _v2 = _rgb2hsv2.v;
- fromHSV(_h2, _s2, _v2);
- }
- };
- Color.prototype.compare = function compare(color) {
- return Math.abs(color._hue - this._hue) < 2 && Math.abs(color._saturation - this._saturation) < 1 && Math.abs(color._value - this._value) < 1 && Math.abs(color._alpha - this._alpha) < 1;
- };
- Color.prototype.doOnChange = function doOnChange() {
- var _hue = this._hue,
- _saturation = this._saturation,
- _value = this._value,
- _alpha = this._alpha,
- format = this.format;
- if (this.enableAlpha) {
- switch (format) {
- case 'hsl':
- var hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
- this.value = 'hsla(' + _hue + ', ' + Math.round(hsl[1] * 100) + '%, ' + Math.round(hsl[2] * 100) + '%, ' + _alpha / 100 + ')';
- break;
- case 'hsv':
- this.value = 'hsva(' + _hue + ', ' + Math.round(_saturation) + '%, ' + Math.round(_value) + '%, ' + _alpha / 100 + ')';
- break;
- default:
- var _hsv2rgb = hsv2rgb(_hue, _saturation, _value),
- r = _hsv2rgb.r,
- g = _hsv2rgb.g,
- b = _hsv2rgb.b;
- this.value = 'rgba(' + r + ', ' + g + ', ' + b + ', ' + _alpha / 100 + ')';
- }
- } else {
- switch (format) {
- case 'hsl':
- var _hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
- this.value = 'hsl(' + _hue + ', ' + Math.round(_hsl[1] * 100) + '%, ' + Math.round(_hsl[2] * 100) + '%)';
- break;
- case 'hsv':
- this.value = 'hsv(' + _hue + ', ' + Math.round(_saturation) + '%, ' + Math.round(_value) + '%)';
- break;
- case 'rgb':
- var _hsv2rgb2 = hsv2rgb(_hue, _saturation, _value),
- _r = _hsv2rgb2.r,
- _g = _hsv2rgb2.g,
- _b = _hsv2rgb2.b;
- this.value = 'rgb(' + _r + ', ' + _g + ', ' + _b + ')';
- break;
- default:
- this.value = toHex(hsv2rgb(_hue, _saturation, _value));
- }
- }
- };
- return Color;
- }();
- /* harmony default export */ var src_color = (Color);
- ;
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=06601625&
- var picker_dropdownvue_type_template_id_06601625_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.showPopper,
- expression: "showPopper"
- }
- ],
- staticClass: "el-color-dropdown"
- },
- [
- _c(
- "div",
- { staticClass: "el-color-dropdown__main-wrapper" },
- [
- _c("hue-slider", {
- ref: "hue",
- staticStyle: { float: "right" },
- attrs: { color: _vm.color, vertical: "" }
- }),
- _c("sv-panel", { ref: "sl", attrs: { color: _vm.color } })
- ],
- 1
- ),
- _vm.showAlpha
- ? _c("alpha-slider", { ref: "alpha", attrs: { color: _vm.color } })
- : _vm._e(),
- _vm.predefine
- ? _c("predefine", {
- attrs: { color: _vm.color, colors: _vm.predefine }
- })
- : _vm._e(),
- _c(
- "div",
- { staticClass: "el-color-dropdown__btns" },
- [
- _c(
- "span",
- { staticClass: "el-color-dropdown__value" },
- [
- _c("el-input", {
- attrs: { "validate-event": false, size: "mini" },
- on: { blur: _vm.handleConfirm },
- nativeOn: {
- keyup: function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- return _vm.handleConfirm($event)
- }
- },
- model: {
- value: _vm.customInput,
- callback: function($$v) {
- _vm.customInput = $$v
- },
- expression: "customInput"
- }
- })
- ],
- 1
- ),
- _c(
- "el-button",
- {
- staticClass: "el-color-dropdown__link-btn",
- attrs: { size: "mini", type: "text" },
- on: {
- click: function($event) {
- _vm.$emit("clear")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.colorpicker.clear")) +
- "\n "
- )
- ]
- ),
- _c(
- "el-button",
- {
- staticClass: "el-color-dropdown__btn",
- attrs: { plain: "", size: "mini" },
- on: { click: _vm.confirmValue }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.colorpicker.confirm")) +
- "\n "
- )
- ]
- )
- ],
- 1
- )
- ],
- 1
- )
- ]
- )
- }
- var picker_dropdownvue_type_template_id_06601625_staticRenderFns = []
- picker_dropdownvue_type_template_id_06601625_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=06601625&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=d8583596&
- var sv_panelvue_type_template_id_d8583596_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-color-svpanel",
- style: {
- backgroundColor: _vm.background
- }
- },
- [
- _c("div", { staticClass: "el-color-svpanel__white" }),
- _c("div", { staticClass: "el-color-svpanel__black" }),
- _c(
- "div",
- {
- staticClass: "el-color-svpanel__cursor",
- style: {
- top: _vm.cursorTop + "px",
- left: _vm.cursorLeft + "px"
- }
- },
- [_c("div")]
- )
- ]
- )
- }
- var sv_panelvue_type_template_id_d8583596_staticRenderFns = []
- sv_panelvue_type_template_id_d8583596_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=d8583596&
- // CONCATENATED MODULE: ./packages/color-picker/src/draggable.js
- var isDragging = false;
- /* harmony default export */ var draggable = (function (element, options) {
- if (external_vue_default.a.prototype.$isServer) return;
- var moveFn = function moveFn(event) {
- if (options.drag) {
- options.drag(event);
- }
- };
- var upFn = function upFn(event) {
- document.removeEventListener('mousemove', moveFn);
- document.removeEventListener('mouseup', upFn);
- document.onselectstart = null;
- document.ondragstart = null;
- isDragging = false;
- if (options.end) {
- options.end(event);
- }
- };
- element.addEventListener('mousedown', function (event) {
- if (isDragging) return;
- document.onselectstart = function () {
- return false;
- };
- document.ondragstart = function () {
- return false;
- };
- document.addEventListener('mousemove', moveFn);
- document.addEventListener('mouseup', upFn);
- isDragging = true;
- if (options.start) {
- options.start(event);
- }
- });
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var sv_panelvue_type_script_lang_js_ = ({
- name: 'el-sl-panel',
- props: {
- color: {
- required: true
- }
- },
- computed: {
- colorValue: function colorValue() {
- var hue = this.color.get('hue');
- var value = this.color.get('value');
- return { hue: hue, value: value };
- }
- },
- watch: {
- colorValue: function colorValue() {
- this.update();
- }
- },
- methods: {
- update: function update() {
- var saturation = this.color.get('saturation');
- var value = this.color.get('value');
- var el = this.$el;
- var width = el.clientWidth,
- height = el.clientHeight;
- this.cursorLeft = saturation * width / 100;
- this.cursorTop = (100 - value) * height / 100;
- this.background = 'hsl(' + this.color.get('hue') + ', 100%, 50%)';
- },
- handleDrag: function handleDrag(event) {
- var el = this.$el;
- var rect = el.getBoundingClientRect();
- var left = event.clientX - rect.left;
- var top = event.clientY - rect.top;
- left = Math.max(0, left);
- left = Math.min(left, rect.width);
- top = Math.max(0, top);
- top = Math.min(top, rect.height);
- this.cursorLeft = left;
- this.cursorTop = top;
- this.color.set({
- saturation: left / rect.width * 100,
- value: 100 - top / rect.height * 100
- });
- }
- },
- mounted: function mounted() {
- var _this = this;
- draggable(this.$el, {
- drag: function drag(event) {
- _this.handleDrag(event);
- },
- end: function end(event) {
- _this.handleDrag(event);
- }
- });
- this.update();
- },
- data: function data() {
- return {
- cursorTop: 0,
- cursorLeft: 0,
- background: 'hsl(0, 100%, 50%)'
- };
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_sv_panelvue_type_script_lang_js_ = (sv_panelvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue
- /* normalize component */
- var sv_panel_component = normalizeComponent(
- components_sv_panelvue_type_script_lang_js_,
- sv_panelvue_type_template_id_d8583596_render,
- sv_panelvue_type_template_id_d8583596_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var sv_panel_api; }
- sv_panel_component.options.__file = "packages/color-picker/src/components/sv-panel.vue"
- /* harmony default export */ var sv_panel = (sv_panel_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=5cdc43b1&
- var hue_slidervue_type_template_id_5cdc43b1_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-color-hue-slider",
- class: { "is-vertical": _vm.vertical }
- },
- [
- _c("div", {
- ref: "bar",
- staticClass: "el-color-hue-slider__bar",
- on: { click: _vm.handleClick }
- }),
- _c("div", {
- ref: "thumb",
- staticClass: "el-color-hue-slider__thumb",
- style: {
- left: _vm.thumbLeft + "px",
- top: _vm.thumbTop + "px"
- }
- })
- ]
- )
- }
- var hue_slidervue_type_template_id_5cdc43b1_staticRenderFns = []
- hue_slidervue_type_template_id_5cdc43b1_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=5cdc43b1&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var hue_slidervue_type_script_lang_js_ = ({
- name: 'el-color-hue-slider',
- props: {
- color: {
- required: true
- },
- vertical: Boolean
- },
- data: function data() {
- return {
- thumbLeft: 0,
- thumbTop: 0
- };
- },
- computed: {
- hueValue: function hueValue() {
- var hue = this.color.get('hue');
- return hue;
- }
- },
- watch: {
- hueValue: function hueValue() {
- this.update();
- }
- },
- methods: {
- handleClick: function handleClick(event) {
- var thumb = this.$refs.thumb;
- var target = event.target;
- if (target !== thumb) {
- this.handleDrag(event);
- }
- },
- handleDrag: function handleDrag(event) {
- var rect = this.$el.getBoundingClientRect();
- var thumb = this.$refs.thumb;
- var hue = void 0;
- if (!this.vertical) {
- var left = event.clientX - rect.left;
- left = Math.min(left, rect.width - thumb.offsetWidth / 2);
- left = Math.max(thumb.offsetWidth / 2, left);
- hue = Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 360);
- } else {
- var top = event.clientY - rect.top;
- top = Math.min(top, rect.height - thumb.offsetHeight / 2);
- top = Math.max(thumb.offsetHeight / 2, top);
- hue = Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 360);
- }
- this.color.set('hue', hue);
- },
- getThumbLeft: function getThumbLeft() {
- if (this.vertical) return 0;
- var el = this.$el;
- var hue = this.color.get('hue');
- if (!el) return 0;
- var thumb = this.$refs.thumb;
- return Math.round(hue * (el.offsetWidth - thumb.offsetWidth / 2) / 360);
- },
- getThumbTop: function getThumbTop() {
- if (!this.vertical) return 0;
- var el = this.$el;
- var hue = this.color.get('hue');
- if (!el) return 0;
- var thumb = this.$refs.thumb;
- return Math.round(hue * (el.offsetHeight - thumb.offsetHeight / 2) / 360);
- },
- update: function update() {
- this.thumbLeft = this.getThumbLeft();
- this.thumbTop = this.getThumbTop();
- }
- },
- mounted: function mounted() {
- var _this = this;
- var _$refs = this.$refs,
- bar = _$refs.bar,
- thumb = _$refs.thumb;
- var dragConfig = {
- drag: function drag(event) {
- _this.handleDrag(event);
- },
- end: function end(event) {
- _this.handleDrag(event);
- }
- };
- draggable(bar, dragConfig);
- draggable(thumb, dragConfig);
- this.update();
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_hue_slidervue_type_script_lang_js_ = (hue_slidervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue
- /* normalize component */
- var hue_slider_component = normalizeComponent(
- components_hue_slidervue_type_script_lang_js_,
- hue_slidervue_type_template_id_5cdc43b1_render,
- hue_slidervue_type_template_id_5cdc43b1_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var hue_slider_api; }
- hue_slider_component.options.__file = "packages/color-picker/src/components/hue-slider.vue"
- /* harmony default export */ var hue_slider = (hue_slider_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=068c66cb&
- var alpha_slidervue_type_template_id_068c66cb_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-color-alpha-slider",
- class: { "is-vertical": _vm.vertical }
- },
- [
- _c("div", {
- ref: "bar",
- staticClass: "el-color-alpha-slider__bar",
- style: {
- background: _vm.background
- },
- on: { click: _vm.handleClick }
- }),
- _c("div", {
- ref: "thumb",
- staticClass: "el-color-alpha-slider__thumb",
- style: {
- left: _vm.thumbLeft + "px",
- top: _vm.thumbTop + "px"
- }
- })
- ]
- )
- }
- var alpha_slidervue_type_template_id_068c66cb_staticRenderFns = []
- alpha_slidervue_type_template_id_068c66cb_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=068c66cb&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var alpha_slidervue_type_script_lang_js_ = ({
- name: 'el-color-alpha-slider',
- props: {
- color: {
- required: true
- },
- vertical: Boolean
- },
- watch: {
- 'color._alpha': function color_alpha() {
- this.update();
- },
- 'color.value': function colorValue() {
- this.update();
- }
- },
- methods: {
- handleClick: function handleClick(event) {
- var thumb = this.$refs.thumb;
- var target = event.target;
- if (target !== thumb) {
- this.handleDrag(event);
- }
- },
- handleDrag: function handleDrag(event) {
- var rect = this.$el.getBoundingClientRect();
- var thumb = this.$refs.thumb;
- if (!this.vertical) {
- var left = event.clientX - rect.left;
- left = Math.max(thumb.offsetWidth / 2, left);
- left = Math.min(left, rect.width - thumb.offsetWidth / 2);
- this.color.set('alpha', Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 100));
- } else {
- var top = event.clientY - rect.top;
- top = Math.max(thumb.offsetHeight / 2, top);
- top = Math.min(top, rect.height - thumb.offsetHeight / 2);
- this.color.set('alpha', Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 100));
- }
- },
- getThumbLeft: function getThumbLeft() {
- if (this.vertical) return 0;
- var el = this.$el;
- var alpha = this.color._alpha;
- if (!el) return 0;
- var thumb = this.$refs.thumb;
- return Math.round(alpha * (el.offsetWidth - thumb.offsetWidth / 2) / 100);
- },
- getThumbTop: function getThumbTop() {
- if (!this.vertical) return 0;
- var el = this.$el;
- var alpha = this.color._alpha;
- if (!el) return 0;
- var thumb = this.$refs.thumb;
- return Math.round(alpha * (el.offsetHeight - thumb.offsetHeight / 2) / 100);
- },
- getBackground: function getBackground() {
- if (this.color && this.color.value) {
- var _color$toRgb = this.color.toRgb(),
- r = _color$toRgb.r,
- g = _color$toRgb.g,
- b = _color$toRgb.b;
- return 'linear-gradient(to right, rgba(' + r + ', ' + g + ', ' + b + ', 0) 0%, rgba(' + r + ', ' + g + ', ' + b + ', 1) 100%)';
- }
- return null;
- },
- update: function update() {
- this.thumbLeft = this.getThumbLeft();
- this.thumbTop = this.getThumbTop();
- this.background = this.getBackground();
- }
- },
- data: function data() {
- return {
- thumbLeft: 0,
- thumbTop: 0,
- background: null
- };
- },
- mounted: function mounted() {
- var _this = this;
- var _$refs = this.$refs,
- bar = _$refs.bar,
- thumb = _$refs.thumb;
- var dragConfig = {
- drag: function drag(event) {
- _this.handleDrag(event);
- },
- end: function end(event) {
- _this.handleDrag(event);
- }
- };
- draggable(bar, dragConfig);
- draggable(thumb, dragConfig);
- this.update();
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_alpha_slidervue_type_script_lang_js_ = (alpha_slidervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue
- /* normalize component */
- var alpha_slider_component = normalizeComponent(
- components_alpha_slidervue_type_script_lang_js_,
- alpha_slidervue_type_template_id_068c66cb_render,
- alpha_slidervue_type_template_id_068c66cb_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var alpha_slider_api; }
- alpha_slider_component.options.__file = "packages/color-picker/src/components/alpha-slider.vue"
- /* harmony default export */ var alpha_slider = (alpha_slider_component.exports);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=template&id=06e03093&
- var predefinevue_type_template_id_06e03093_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-color-predefine" }, [
- _c(
- "div",
- { staticClass: "el-color-predefine__colors" },
- _vm._l(_vm.rgbaColors, function(item, index) {
- return _c(
- "div",
- {
- key: _vm.colors[index],
- staticClass: "el-color-predefine__color-selector",
- class: { selected: item.selected, "is-alpha": item._alpha < 100 },
- on: {
- click: function($event) {
- _vm.handleSelect(index)
- }
- }
- },
- [_c("div", { style: { "background-color": item.value } })]
- )
- }),
- 0
- )
- ])
- }
- var predefinevue_type_template_id_06e03093_staticRenderFns = []
- predefinevue_type_template_id_06e03093_render._withStripped = true
- // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue?vue&type=template&id=06e03093&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var predefinevue_type_script_lang_js_ = ({
- props: {
- colors: { type: Array, required: true },
- color: { required: true }
- },
- data: function data() {
- return {
- rgbaColors: this.parseColors(this.colors, this.color)
- };
- },
- methods: {
- handleSelect: function handleSelect(index) {
- this.color.fromString(this.colors[index]);
- },
- parseColors: function parseColors(colors, color) {
- return colors.map(function (value) {
- var c = new src_color();
- c.enableAlpha = true;
- c.format = 'rgba';
- c.fromString(value);
- c.selected = c.value === color.value;
- return c;
- });
- }
- },
- watch: {
- '$parent.currentColor': function $parentCurrentColor(val) {
- var color = new src_color();
- color.fromString(val);
- this.rgbaColors.forEach(function (item) {
- item.selected = color.compare(item);
- });
- },
- colors: function colors(newVal) {
- this.rgbaColors = this.parseColors(newVal, this.color);
- },
- color: function color(newVal) {
- this.rgbaColors = this.parseColors(this.colors, newVal);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_predefinevue_type_script_lang_js_ = (predefinevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue
- /* normalize component */
- var predefine_component = normalizeComponent(
- components_predefinevue_type_script_lang_js_,
- predefinevue_type_template_id_06e03093_render,
- predefinevue_type_template_id_06e03093_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var predefine_api; }
- predefine_component.options.__file = "packages/color-picker/src/components/predefine.vue"
- /* harmony default export */ var predefine = (predefine_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var picker_dropdownvue_type_script_lang_js_ = ({
- name: 'el-color-picker-dropdown',
- mixins: [vue_popper_default.a, locale_default.a],
- components: {
- SvPanel: sv_panel,
- HueSlider: hue_slider,
- AlphaSlider: alpha_slider,
- ElInput: input_default.a,
- ElButton: button_default.a,
- Predefine: predefine
- },
- props: {
- color: {
- required: true
- },
- showAlpha: Boolean,
- predefine: Array
- },
- data: function data() {
- return {
- customInput: ''
- };
- },
- computed: {
- currentColor: function currentColor() {
- var parent = this.$parent;
- return !parent.value && !parent.showPanelColor ? '' : parent.color.value;
- }
- },
- methods: {
- confirmValue: function confirmValue() {
- this.$emit('pick');
- },
- handleConfirm: function handleConfirm() {
- this.color.fromString(this.customInput);
- }
- },
- mounted: function mounted() {
- this.$parent.popperElm = this.popperElm = this.$el;
- this.referenceElm = this.$parent.$el;
- },
- watch: {
- showPopper: function showPopper(val) {
- var _this = this;
- if (val === true) {
- this.$nextTick(function () {
- var _$refs = _this.$refs,
- sl = _$refs.sl,
- hue = _$refs.hue,
- alpha = _$refs.alpha;
- sl && sl.update();
- hue && hue.update();
- alpha && alpha.update();
- });
- }
- },
- currentColor: {
- immediate: true,
- handler: function handler(val) {
- this.customInput = val;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_picker_dropdownvue_type_script_lang_js_ = (picker_dropdownvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue
- /* normalize component */
- var picker_dropdown_component = normalizeComponent(
- components_picker_dropdownvue_type_script_lang_js_,
- picker_dropdownvue_type_template_id_06601625_render,
- picker_dropdownvue_type_template_id_06601625_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var picker_dropdown_api; }
- picker_dropdown_component.options.__file = "packages/color-picker/src/components/picker-dropdown.vue"
- /* harmony default export */ var picker_dropdown = (picker_dropdown_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var color_picker_src_mainvue_type_script_lang_js_ = ({
- name: 'ElColorPicker',
- mixins: [emitter_default.a],
- props: {
- value: String,
- showAlpha: Boolean,
- colorFormat: String,
- disabled: Boolean,
- size: String,
- popperClass: String,
- predefine: Array
- },
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- directives: { Clickoutside: clickoutside_default.a },
- computed: {
- displayedColor: function displayedColor() {
- if (!this.value && !this.showPanelColor) {
- return 'transparent';
- }
- return this.displayedRgb(this.color, this.showAlpha);
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- colorSize: function colorSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- colorDisabled: function colorDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- }
- },
- watch: {
- value: function value(val) {
- if (!val) {
- this.showPanelColor = false;
- } else if (val && val !== this.color.value) {
- this.color.fromString(val);
- }
- },
- color: {
- deep: true,
- handler: function handler() {
- this.showPanelColor = true;
- }
- },
- displayedColor: function displayedColor(val) {
- if (!this.showPicker) return;
- var currentValueColor = new src_color({
- enableAlpha: this.showAlpha,
- format: this.colorFormat
- });
- currentValueColor.fromString(this.value);
- var currentValueColorRgb = this.displayedRgb(currentValueColor, this.showAlpha);
- if (val !== currentValueColorRgb) {
- this.$emit('active-change', val);
- }
- }
- },
- methods: {
- handleTrigger: function handleTrigger() {
- if (this.colorDisabled) return;
- this.showPicker = !this.showPicker;
- },
- confirmValue: function confirmValue() {
- var value = this.color.value;
- this.$emit('input', value);
- this.$emit('change', value);
- this.dispatch('ElFormItem', 'el.form.change', value);
- this.showPicker = false;
- },
- clearValue: function clearValue() {
- this.$emit('input', null);
- this.$emit('change', null);
- if (this.value !== null) {
- this.dispatch('ElFormItem', 'el.form.change', null);
- }
- this.showPanelColor = false;
- this.showPicker = false;
- this.resetColor();
- },
- hide: function hide() {
- this.showPicker = false;
- this.resetColor();
- },
- resetColor: function resetColor() {
- var _this = this;
- this.$nextTick(function (_) {
- if (_this.value) {
- _this.color.fromString(_this.value);
- } else {
- _this.showPanelColor = false;
- }
- });
- },
- displayedRgb: function displayedRgb(color, showAlpha) {
- if (!(color instanceof src_color)) {
- throw Error('color should be instance of Color Class');
- }
- var _color$toRgb = color.toRgb(),
- r = _color$toRgb.r,
- g = _color$toRgb.g,
- b = _color$toRgb.b;
- return showAlpha ? 'rgba(' + r + ', ' + g + ', ' + b + ', ' + color.get('alpha') / 100 + ')' : 'rgb(' + r + ', ' + g + ', ' + b + ')';
- }
- },
- mounted: function mounted() {
- var value = this.value;
- if (value) {
- this.color.fromString(value);
- }
- this.popperElm = this.$refs.dropdown.$el;
- },
- data: function data() {
- var color = new src_color({
- enableAlpha: this.showAlpha,
- format: this.colorFormat
- });
- return {
- color: color,
- showPicker: false,
- showPanelColor: false
- };
- },
- components: {
- PickerDropdown: picker_dropdown
- }
- });
- // CONCATENATED MODULE: ./packages/color-picker/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_color_picker_src_mainvue_type_script_lang_js_ = (color_picker_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/color-picker/src/main.vue
- /* normalize component */
- var color_picker_src_main_component = normalizeComponent(
- packages_color_picker_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_55c8ade7_render,
- mainvue_type_template_id_55c8ade7_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var color_picker_src_main_api; }
- color_picker_src_main_component.options.__file = "packages/color-picker/src/main.vue"
- /* harmony default export */ var color_picker_src_main = (color_picker_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/color-picker/index.js
- /* istanbul ignore next */
- color_picker_src_main.install = function (Vue) {
- Vue.component(color_picker_src_main.name, color_picker_src_main);
- };
- /* harmony default export */ var color_picker = (color_picker_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=template&id=5c654dd8&
- var mainvue_type_template_id_5c654dd8_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "el-transfer" },
- [
- _c(
- "transfer-panel",
- _vm._b(
- {
- ref: "leftPanel",
- attrs: {
- data: _vm.sourceData,
- title: _vm.titles[0] || _vm.t("el.transfer.titles.0"),
- "default-checked": _vm.leftDefaultChecked,
- placeholder:
- _vm.filterPlaceholder || _vm.t("el.transfer.filterPlaceholder")
- },
- on: { "checked-change": _vm.onSourceCheckedChange }
- },
- "transfer-panel",
- _vm.$props,
- false
- ),
- [_vm._t("left-footer")],
- 2
- ),
- _c(
- "div",
- { staticClass: "el-transfer__buttons" },
- [
- _c(
- "el-button",
- {
- class: [
- "el-transfer__button",
- _vm.hasButtonTexts ? "is-with-texts" : ""
- ],
- attrs: {
- type: "primary",
- disabled: _vm.rightChecked.length === 0
- },
- nativeOn: {
- click: function($event) {
- return _vm.addToLeft($event)
- }
- }
- },
- [
- _c("i", { staticClass: "el-icon-arrow-left" }),
- _vm.buttonTexts[0] !== undefined
- ? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[0]))])
- : _vm._e()
- ]
- ),
- _c(
- "el-button",
- {
- class: [
- "el-transfer__button",
- _vm.hasButtonTexts ? "is-with-texts" : ""
- ],
- attrs: {
- type: "primary",
- disabled: _vm.leftChecked.length === 0
- },
- nativeOn: {
- click: function($event) {
- return _vm.addToRight($event)
- }
- }
- },
- [
- _vm.buttonTexts[1] !== undefined
- ? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[1]))])
- : _vm._e(),
- _c("i", { staticClass: "el-icon-arrow-right" })
- ]
- )
- ],
- 1
- ),
- _c(
- "transfer-panel",
- _vm._b(
- {
- ref: "rightPanel",
- attrs: {
- data: _vm.targetData,
- title: _vm.titles[1] || _vm.t("el.transfer.titles.1"),
- "default-checked": _vm.rightDefaultChecked,
- placeholder:
- _vm.filterPlaceholder || _vm.t("el.transfer.filterPlaceholder")
- },
- on: { "checked-change": _vm.onTargetCheckedChange }
- },
- "transfer-panel",
- _vm.$props,
- false
- ),
- [_vm._t("right-footer")],
- 2
- )
- ],
- 1
- )
- }
- var mainvue_type_template_id_5c654dd8_staticRenderFns = []
- mainvue_type_template_id_5c654dd8_render._withStripped = true
- // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=template&id=5c654dd8&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=template&id=2ddab8bd&
- var transfer_panelvue_type_template_id_2ddab8bd_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-transfer-panel" }, [
- _c(
- "p",
- { staticClass: "el-transfer-panel__header" },
- [
- _c(
- "el-checkbox",
- {
- attrs: { indeterminate: _vm.isIndeterminate },
- on: { change: _vm.handleAllCheckedChange },
- model: {
- value: _vm.allChecked,
- callback: function($$v) {
- _vm.allChecked = $$v
- },
- expression: "allChecked"
- }
- },
- [
- _vm._v("\n " + _vm._s(_vm.title) + "\n "),
- _c("span", [_vm._v(_vm._s(_vm.checkedSummary))])
- ]
- )
- ],
- 1
- ),
- _c(
- "div",
- {
- class: [
- "el-transfer-panel__body",
- _vm.hasFooter ? "is-with-footer" : ""
- ]
- },
- [
- _vm.filterable
- ? _c(
- "el-input",
- {
- staticClass: "el-transfer-panel__filter",
- attrs: { size: "small", placeholder: _vm.placeholder },
- nativeOn: {
- mouseenter: function($event) {
- _vm.inputHover = true
- },
- mouseleave: function($event) {
- _vm.inputHover = false
- }
- },
- model: {
- value: _vm.query,
- callback: function($$v) {
- _vm.query = $$v
- },
- expression: "query"
- }
- },
- [
- _c("i", {
- class: ["el-input__icon", "el-icon-" + _vm.inputIcon],
- attrs: { slot: "prefix" },
- on: { click: _vm.clearQuery },
- slot: "prefix"
- })
- ]
- )
- : _vm._e(),
- _c(
- "el-checkbox-group",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.hasNoMatch && _vm.data.length > 0,
- expression: "!hasNoMatch && data.length > 0"
- }
- ],
- staticClass: "el-transfer-panel__list",
- class: { "is-filterable": _vm.filterable },
- model: {
- value: _vm.checked,
- callback: function($$v) {
- _vm.checked = $$v
- },
- expression: "checked"
- }
- },
- _vm._l(_vm.filteredData, function(item) {
- return _c(
- "el-checkbox",
- {
- key: item[_vm.keyProp],
- staticClass: "el-transfer-panel__item",
- attrs: {
- label: item[_vm.keyProp],
- disabled: item[_vm.disabledProp]
- }
- },
- [_c("option-content", { attrs: { option: item } })],
- 1
- )
- }),
- 1
- ),
- _c(
- "p",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.hasNoMatch,
- expression: "hasNoMatch"
- }
- ],
- staticClass: "el-transfer-panel__empty"
- },
- [_vm._v(_vm._s(_vm.t("el.transfer.noMatch")))]
- ),
- _c(
- "p",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.data.length === 0 && !_vm.hasNoMatch,
- expression: "data.length === 0 && !hasNoMatch"
- }
- ],
- staticClass: "el-transfer-panel__empty"
- },
- [_vm._v(_vm._s(_vm.t("el.transfer.noData")))]
- )
- ],
- 1
- ),
- _vm.hasFooter
- ? _c(
- "p",
- { staticClass: "el-transfer-panel__footer" },
- [_vm._t("default")],
- 2
- )
- : _vm._e()
- ])
- }
- var transfer_panelvue_type_template_id_2ddab8bd_staticRenderFns = []
- transfer_panelvue_type_template_id_2ddab8bd_render._withStripped = true
- // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=template&id=2ddab8bd&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var transfer_panelvue_type_script_lang_js_ = ({
- mixins: [locale_default.a],
- name: 'ElTransferPanel',
- componentName: 'ElTransferPanel',
- components: {
- ElCheckboxGroup: checkbox_group_default.a,
- ElCheckbox: checkbox_default.a,
- ElInput: input_default.a,
- OptionContent: {
- props: {
- option: Object
- },
- render: function render(h) {
- var getParent = function getParent(vm) {
- if (vm.$options.componentName === 'ElTransferPanel') {
- return vm;
- } else if (vm.$parent) {
- return getParent(vm.$parent);
- } else {
- return vm;
- }
- };
- var panel = getParent(this);
- var transfer = panel.$parent || panel;
- return panel.renderContent ? panel.renderContent(h, this.option) : transfer.$scopedSlots.default ? transfer.$scopedSlots.default({ option: this.option }) : h('span', [this.option[panel.labelProp] || this.option[panel.keyProp]]);
- }
- }
- },
- props: {
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- renderContent: Function,
- placeholder: String,
- title: String,
- filterable: Boolean,
- format: Object,
- filterMethod: Function,
- defaultChecked: Array,
- props: Object
- },
- data: function data() {
- return {
- checked: [],
- allChecked: false,
- query: '',
- inputHover: false,
- checkChangeByUser: true
- };
- },
- watch: {
- checked: function checked(val, oldVal) {
- this.updateAllChecked();
- if (this.checkChangeByUser) {
- var movedKeys = val.concat(oldVal).filter(function (v) {
- return val.indexOf(v) === -1 || oldVal.indexOf(v) === -1;
- });
- this.$emit('checked-change', val, movedKeys);
- } else {
- this.$emit('checked-change', val);
- this.checkChangeByUser = true;
- }
- },
- data: function data() {
- var _this = this;
- var checked = [];
- var filteredDataKeys = this.filteredData.map(function (item) {
- return item[_this.keyProp];
- });
- this.checked.forEach(function (item) {
- if (filteredDataKeys.indexOf(item) > -1) {
- checked.push(item);
- }
- });
- this.checkChangeByUser = false;
- this.checked = checked;
- },
- checkableData: function checkableData() {
- this.updateAllChecked();
- },
- defaultChecked: {
- immediate: true,
- handler: function handler(val, oldVal) {
- var _this2 = this;
- if (oldVal && val.length === oldVal.length && val.every(function (item) {
- return oldVal.indexOf(item) > -1;
- })) return;
- var checked = [];
- var checkableDataKeys = this.checkableData.map(function (item) {
- return item[_this2.keyProp];
- });
- val.forEach(function (item) {
- if (checkableDataKeys.indexOf(item) > -1) {
- checked.push(item);
- }
- });
- this.checkChangeByUser = false;
- this.checked = checked;
- }
- }
- },
- computed: {
- filteredData: function filteredData() {
- var _this3 = this;
- return this.data.filter(function (item) {
- if (typeof _this3.filterMethod === 'function') {
- return _this3.filterMethod(_this3.query, item);
- } else {
- var label = item[_this3.labelProp] || item[_this3.keyProp].toString();
- return label.toLowerCase().indexOf(_this3.query.toLowerCase()) > -1;
- }
- });
- },
- checkableData: function checkableData() {
- var _this4 = this;
- return this.filteredData.filter(function (item) {
- return !item[_this4.disabledProp];
- });
- },
- checkedSummary: function checkedSummary() {
- var checkedLength = this.checked.length;
- var dataLength = this.data.length;
- var _format = this.format,
- noChecked = _format.noChecked,
- hasChecked = _format.hasChecked;
- if (noChecked && hasChecked) {
- return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) : noChecked.replace(/\${total}/g, dataLength);
- } else {
- return checkedLength + '/' + dataLength;
- }
- },
- isIndeterminate: function isIndeterminate() {
- var checkedLength = this.checked.length;
- return checkedLength > 0 && checkedLength < this.checkableData.length;
- },
- hasNoMatch: function hasNoMatch() {
- return this.query.length > 0 && this.filteredData.length === 0;
- },
- inputIcon: function inputIcon() {
- return this.query.length > 0 && this.inputHover ? 'circle-close' : 'search';
- },
- labelProp: function labelProp() {
- return this.props.label || 'label';
- },
- keyProp: function keyProp() {
- return this.props.key || 'key';
- },
- disabledProp: function disabledProp() {
- return this.props.disabled || 'disabled';
- },
- hasFooter: function hasFooter() {
- return !!this.$slots.default;
- }
- },
- methods: {
- updateAllChecked: function updateAllChecked() {
- var _this5 = this;
- var checkableDataKeys = this.checkableData.map(function (item) {
- return item[_this5.keyProp];
- });
- this.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every(function (item) {
- return _this5.checked.indexOf(item) > -1;
- });
- },
- handleAllCheckedChange: function handleAllCheckedChange(value) {
- var _this6 = this;
- this.checked = value ? this.checkableData.map(function (item) {
- return item[_this6.keyProp];
- }) : [];
- },
- clearQuery: function clearQuery() {
- if (this.inputIcon === 'circle-close') {
- this.query = '';
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_transfer_panelvue_type_script_lang_js_ = (transfer_panelvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue
- /* normalize component */
- var transfer_panel_component = normalizeComponent(
- src_transfer_panelvue_type_script_lang_js_,
- transfer_panelvue_type_template_id_2ddab8bd_render,
- transfer_panelvue_type_template_id_2ddab8bd_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var transfer_panel_api; }
- transfer_panel_component.options.__file = "packages/transfer/src/transfer-panel.vue"
- /* harmony default export */ var transfer_panel = (transfer_panel_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var transfer_src_mainvue_type_script_lang_js_ = ({
- name: 'ElTransfer',
- mixins: [emitter_default.a, locale_default.a, migrating_default.a],
- components: {
- TransferPanel: transfer_panel,
- ElButton: button_default.a
- },
- props: {
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- titles: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- buttonTexts: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- filterPlaceholder: {
- type: String,
- default: ''
- },
- filterMethod: Function,
- leftDefaultChecked: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- rightDefaultChecked: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- renderContent: Function,
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- format: {
- type: Object,
- default: function _default() {
- return {};
- }
- },
- filterable: Boolean,
- props: {
- type: Object,
- default: function _default() {
- return {
- label: 'label',
- key: 'key',
- disabled: 'disabled'
- };
- }
- },
- targetOrder: {
- type: String,
- default: 'original'
- }
- },
- data: function data() {
- return {
- leftChecked: [],
- rightChecked: []
- };
- },
- computed: {
- dataObj: function dataObj() {
- var key = this.props.key;
- return this.data.reduce(function (o, cur) {
- return (o[cur[key]] = cur) && o;
- }, {});
- },
- sourceData: function sourceData() {
- var _this = this;
- return this.data.filter(function (item) {
- return _this.value.indexOf(item[_this.props.key]) === -1;
- });
- },
- targetData: function targetData() {
- var _this2 = this;
- if (this.targetOrder === 'original') {
- return this.data.filter(function (item) {
- return _this2.value.indexOf(item[_this2.props.key]) > -1;
- });
- } else {
- return this.value.reduce(function (arr, cur) {
- var val = _this2.dataObj[cur];
- if (val) {
- arr.push(val);
- }
- return arr;
- }, []);
- }
- },
- hasButtonTexts: function hasButtonTexts() {
- return this.buttonTexts.length === 2;
- }
- },
- watch: {
- value: function value(val) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'footer-format': 'footer-format is renamed to format.'
- }
- };
- },
- onSourceCheckedChange: function onSourceCheckedChange(val, movedKeys) {
- this.leftChecked = val;
- if (movedKeys === undefined) return;
- this.$emit('left-check-change', val, movedKeys);
- },
- onTargetCheckedChange: function onTargetCheckedChange(val, movedKeys) {
- this.rightChecked = val;
- if (movedKeys === undefined) return;
- this.$emit('right-check-change', val, movedKeys);
- },
- addToLeft: function addToLeft() {
- var currentValue = this.value.slice();
- this.rightChecked.forEach(function (item) {
- var index = currentValue.indexOf(item);
- if (index > -1) {
- currentValue.splice(index, 1);
- }
- });
- this.$emit('input', currentValue);
- this.$emit('change', currentValue, 'left', this.rightChecked);
- },
- addToRight: function addToRight() {
- var _this3 = this;
- var currentValue = this.value.slice();
- var itemsToBeMoved = [];
- var key = this.props.key;
- this.data.forEach(function (item) {
- var itemKey = item[key];
- if (_this3.leftChecked.indexOf(itemKey) > -1 && _this3.value.indexOf(itemKey) === -1) {
- itemsToBeMoved.push(itemKey);
- }
- });
- currentValue = this.targetOrder === 'unshift' ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
- this.$emit('input', currentValue);
- this.$emit('change', currentValue, 'right', this.leftChecked);
- },
- clearQuery: function clearQuery(which) {
- if (which === 'left') {
- this.$refs.leftPanel.query = '';
- } else if (which === 'right') {
- this.$refs.rightPanel.query = '';
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_transfer_src_mainvue_type_script_lang_js_ = (transfer_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/transfer/src/main.vue
- /* normalize component */
- var transfer_src_main_component = normalizeComponent(
- packages_transfer_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_5c654dd8_render,
- mainvue_type_template_id_5c654dd8_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var transfer_src_main_api; }
- transfer_src_main_component.options.__file = "packages/transfer/src/main.vue"
- /* harmony default export */ var transfer_src_main = (transfer_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/transfer/index.js
- /* istanbul ignore next */
- transfer_src_main.install = function (Vue) {
- Vue.component(transfer_src_main.name, transfer_src_main);
- };
- /* harmony default export */ var transfer = (transfer_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
- var mainvue_type_template_id_5bf181d4_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "section",
- { staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
- [_vm._t("default")],
- 2
- )
- }
- var mainvue_type_template_id_5bf181d4_staticRenderFns = []
- mainvue_type_template_id_5bf181d4_render._withStripped = true
- // CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var container_src_mainvue_type_script_lang_js_ = ({
- name: 'ElContainer',
- componentName: 'ElContainer',
- props: {
- direction: String
- },
- computed: {
- isVertical: function isVertical() {
- if (this.direction === 'vertical') {
- return true;
- } else if (this.direction === 'horizontal') {
- return false;
- }
- return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
- var tag = vnode.componentOptions && vnode.componentOptions.tag;
- return tag === 'el-header' || tag === 'el-footer';
- }) : false;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_container_src_mainvue_type_script_lang_js_ = (container_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/container/src/main.vue
- /* normalize component */
- var container_src_main_component = normalizeComponent(
- packages_container_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_5bf181d4_render,
- mainvue_type_template_id_5bf181d4_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var container_src_main_api; }
- container_src_main_component.options.__file = "packages/container/src/main.vue"
- /* harmony default export */ var container_src_main = (container_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/container/index.js
- /* istanbul ignore next */
- container_src_main.install = function (Vue) {
- Vue.component(container_src_main.name, container_src_main);
- };
- /* harmony default export */ var packages_container = (container_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/header/src/main.vue?vue&type=template&id=2b296ab2&
- var mainvue_type_template_id_2b296ab2_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "header",
- { staticClass: "el-header", style: { height: _vm.height } },
- [_vm._t("default")],
- 2
- )
- }
- var mainvue_type_template_id_2b296ab2_staticRenderFns = []
- mainvue_type_template_id_2b296ab2_render._withStripped = true
- // CONCATENATED MODULE: ./packages/header/src/main.vue?vue&type=template&id=2b296ab2&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/header/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var header_src_mainvue_type_script_lang_js_ = ({
- name: 'ElHeader',
- componentName: 'ElHeader',
- props: {
- height: {
- type: String,
- default: '60px'
- }
- }
- });
- // CONCATENATED MODULE: ./packages/header/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_header_src_mainvue_type_script_lang_js_ = (header_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/header/src/main.vue
- /* normalize component */
- var header_src_main_component = normalizeComponent(
- packages_header_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_2b296ab2_render,
- mainvue_type_template_id_2b296ab2_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var header_src_main_api; }
- header_src_main_component.options.__file = "packages/header/src/main.vue"
- /* harmony default export */ var header_src_main = (header_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/header/index.js
- /* istanbul ignore next */
- header_src_main.install = function (Vue) {
- Vue.component(header_src_main.name, header_src_main);
- };
- /* harmony default export */ var header = (header_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
- var mainvue_type_template_id_03411dbf_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "aside",
- { staticClass: "el-aside", style: { width: _vm.width } },
- [_vm._t("default")],
- 2
- )
- }
- var mainvue_type_template_id_03411dbf_staticRenderFns = []
- mainvue_type_template_id_03411dbf_render._withStripped = true
- // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var aside_src_mainvue_type_script_lang_js_ = ({
- name: 'ElAside',
- componentName: 'ElAside',
- props: {
- width: {
- type: String,
- default: '300px'
- }
- }
- });
- // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_aside_src_mainvue_type_script_lang_js_ = (aside_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/aside/src/main.vue
- /* normalize component */
- var aside_src_main_component = normalizeComponent(
- packages_aside_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_03411dbf_render,
- mainvue_type_template_id_03411dbf_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var aside_src_main_api; }
- aside_src_main_component.options.__file = "packages/aside/src/main.vue"
- /* harmony default export */ var aside_src_main = (aside_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/aside/index.js
- /* istanbul ignore next */
- aside_src_main.install = function (Vue) {
- Vue.component(aside_src_main.name, aside_src_main);
- };
- /* harmony default export */ var aside = (aside_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
- var mainvue_type_template_id_2a3a7406_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("main", { staticClass: "el-main" }, [_vm._t("default")], 2)
- }
- var mainvue_type_template_id_2a3a7406_staticRenderFns = []
- mainvue_type_template_id_2a3a7406_render._withStripped = true
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var main_src_mainvue_type_script_lang_js_ = ({
- name: 'ElMain',
- componentName: 'ElMain'
- });
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_main_src_mainvue_type_script_lang_js_ = (main_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/main/src/main.vue
- /* normalize component */
- var main_src_main_component = normalizeComponent(
- packages_main_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_2a3a7406_render,
- mainvue_type_template_id_2a3a7406_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var main_src_main_api; }
- main_src_main_component.options.__file = "packages/main/src/main.vue"
- /* harmony default export */ var main_src_main = (main_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/main/index.js
- /* istanbul ignore next */
- main_src_main.install = function (Vue) {
- Vue.component(main_src_main.name, main_src_main);
- };
- /* harmony default export */ var packages_main = (main_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/footer/src/main.vue?vue&type=template&id=80210338&
- var mainvue_type_template_id_80210338_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "footer",
- { staticClass: "el-footer", style: { height: _vm.height } },
- [_vm._t("default")],
- 2
- )
- }
- var mainvue_type_template_id_80210338_staticRenderFns = []
- mainvue_type_template_id_80210338_render._withStripped = true
- // CONCATENATED MODULE: ./packages/footer/src/main.vue?vue&type=template&id=80210338&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/footer/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var footer_src_mainvue_type_script_lang_js_ = ({
- name: 'ElFooter',
- componentName: 'ElFooter',
- props: {
- height: {
- type: String,
- default: '60px'
- }
- }
- });
- // CONCATENATED MODULE: ./packages/footer/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_footer_src_mainvue_type_script_lang_js_ = (footer_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/footer/src/main.vue
- /* normalize component */
- var footer_src_main_component = normalizeComponent(
- packages_footer_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_80210338_render,
- mainvue_type_template_id_80210338_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var footer_src_main_api; }
- footer_src_main_component.options.__file = "packages/footer/src/main.vue"
- /* harmony default export */ var footer_src_main = (footer_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/footer/index.js
- /* istanbul ignore next */
- footer_src_main.install = function (Vue) {
- Vue.component(footer_src_main.name, footer_src_main);
- };
- /* harmony default export */ var footer = (footer_src_main);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var timeline_src_mainvue_type_script_lang_js_ = ({
- name: 'ElTimeline',
- props: {
- reverse: {
- type: Boolean,
- default: false
- }
- },
- provide: function provide() {
- return {
- timeline: this
- };
- },
- render: function render() {
- var h = arguments[0];
- var reverse = this.reverse;
- var classes = {
- 'el-timeline': true,
- 'is-reverse': reverse
- };
- var slots = this.$slots.default || [];
- if (reverse) {
- slots = slots.reverse();
- }
- return h(
- 'ul',
- { 'class': classes },
- [slots]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/timeline/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_timeline_src_mainvue_type_script_lang_js_ = (timeline_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/timeline/src/main.vue
- var main_render, main_staticRenderFns
- /* normalize component */
- var timeline_src_main_component = normalizeComponent(
- packages_timeline_src_mainvue_type_script_lang_js_,
- main_render,
- main_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var timeline_src_main_api; }
- timeline_src_main_component.options.__file = "packages/timeline/src/main.vue"
- /* harmony default export */ var timeline_src_main = (timeline_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/timeline/index.js
- /* istanbul ignore next */
- timeline_src_main.install = function (Vue) {
- Vue.component(timeline_src_main.name, timeline_src_main);
- };
- /* harmony default export */ var timeline = (timeline_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/src/item.vue?vue&type=template&id=61a69e50&
- var itemvue_type_template_id_61a69e50_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("li", { staticClass: "el-timeline-item" }, [
- _c("div", { staticClass: "el-timeline-item__tail" }),
- !_vm.$slots.dot
- ? _c(
- "div",
- {
- staticClass: "el-timeline-item__node",
- class: [
- "el-timeline-item__node--" + (_vm.size || ""),
- "el-timeline-item__node--" + (_vm.type || "")
- ],
- style: {
- backgroundColor: _vm.color
- }
- },
- [
- _vm.icon
- ? _c("i", {
- staticClass: "el-timeline-item__icon",
- class: _vm.icon
- })
- : _vm._e()
- ]
- )
- : _vm._e(),
- _vm.$slots.dot
- ? _c("div", { staticClass: "el-timeline-item__dot" }, [_vm._t("dot")], 2)
- : _vm._e(),
- _c("div", { staticClass: "el-timeline-item__wrapper" }, [
- !_vm.hideTimestamp && _vm.placement === "top"
- ? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
- _vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")
- ])
- : _vm._e(),
- _c(
- "div",
- { staticClass: "el-timeline-item__content" },
- [_vm._t("default")],
- 2
- ),
- !_vm.hideTimestamp && _vm.placement === "bottom"
- ? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
- _vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")
- ])
- : _vm._e()
- ])
- ])
- }
- var itemvue_type_template_id_61a69e50_staticRenderFns = []
- itemvue_type_template_id_61a69e50_render._withStripped = true
- // CONCATENATED MODULE: ./packages/timeline/src/item.vue?vue&type=template&id=61a69e50&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/src/item.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var timeline_src_itemvue_type_script_lang_js_ = ({
- name: 'ElTimelineItem',
- inject: ['timeline'],
- props: {
- timestamp: String,
- hideTimestamp: {
- type: Boolean,
- default: false
- },
- placement: {
- type: String,
- default: 'bottom'
- },
- type: String,
- color: String,
- size: {
- type: String,
- default: 'normal'
- },
- icon: String
- }
- });
- // CONCATENATED MODULE: ./packages/timeline/src/item.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_timeline_src_itemvue_type_script_lang_js_ = (timeline_src_itemvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/timeline/src/item.vue
- /* normalize component */
- var src_item_component = normalizeComponent(
- packages_timeline_src_itemvue_type_script_lang_js_,
- itemvue_type_template_id_61a69e50_render,
- itemvue_type_template_id_61a69e50_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_item_api; }
- src_item_component.options.__file = "packages/timeline/src/item.vue"
- /* harmony default export */ var timeline_src_item = (src_item_component.exports);
- // CONCATENATED MODULE: ./packages/timeline-item/index.js
- /* istanbul ignore next */
- timeline_src_item.install = function (Vue) {
- Vue.component(timeline_src_item.name, timeline_src_item);
- };
- /* harmony default export */ var timeline_item = (timeline_src_item);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
- var mainvue_type_template_id_01cf3b65_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "a",
- _vm._b(
- {
- class: [
- "el-link",
- _vm.type ? "el-link--" + _vm.type : "",
- _vm.disabled && "is-disabled",
- _vm.underline && !_vm.disabled && "is-underline"
- ],
- attrs: { href: _vm.disabled ? null : _vm.href },
- on: { click: _vm.handleClick }
- },
- "a",
- _vm.$attrs,
- false
- ),
- [
- _vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(),
- _vm.$slots.default
- ? _c("span", { staticClass: "el-link--inner" }, [_vm._t("default")], 2)
- : _vm._e(),
- _vm.$slots.icon ? [_vm.$slots.icon ? _vm._t("icon") : _vm._e()] : _vm._e()
- ],
- 2
- )
- }
- var mainvue_type_template_id_01cf3b65_staticRenderFns = []
- mainvue_type_template_id_01cf3b65_render._withStripped = true
- // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var link_src_mainvue_type_script_lang_js_ = ({
- name: 'ElLink',
- props: {
- type: {
- type: String,
- default: 'default'
- },
- underline: {
- type: Boolean,
- default: true
- },
- disabled: Boolean,
- href: String,
- icon: String
- },
- methods: {
- handleClick: function handleClick(event) {
- if (!this.disabled) {
- if (!this.href) {
- this.$emit('click', event);
- }
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_link_src_mainvue_type_script_lang_js_ = (link_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/link/src/main.vue
- /* normalize component */
- var link_src_main_component = normalizeComponent(
- packages_link_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_01cf3b65_render,
- mainvue_type_template_id_01cf3b65_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var link_src_main_api; }
- link_src_main_component.options.__file = "packages/link/src/main.vue"
- /* harmony default export */ var link_src_main = (link_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/link/index.js
- /* istanbul ignore next */
- link_src_main.install = function (Vue) {
- Vue.component(link_src_main.name, link_src_main);
- };
- /* harmony default export */ var packages_link = (link_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/divider/src/main.vue?vue&type=template&id=7fa02a7e&functional=true&
- var mainvue_type_template_id_7fa02a7e_functional_true_render = function(_h, _vm) {
- var _c = _vm._c
- return _c(
- "div",
- _vm._g(
- _vm._b(
- {
- class: [
- _vm.data.staticClass,
- "el-divider",
- "el-divider--" + _vm.props.direction
- ]
- },
- "div",
- _vm.data.attrs,
- false
- ),
- _vm.listeners
- ),
- [
- _vm.slots().default && _vm.props.direction !== "vertical"
- ? _c(
- "div",
- { class: ["el-divider__text", "is-" + _vm.props.contentPosition] },
- [_vm._t("default")],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var mainvue_type_template_id_7fa02a7e_functional_true_staticRenderFns = []
- mainvue_type_template_id_7fa02a7e_functional_true_render._withStripped = true
- // CONCATENATED MODULE: ./packages/divider/src/main.vue?vue&type=template&id=7fa02a7e&functional=true&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/divider/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var divider_src_mainvue_type_script_lang_js_ = ({
- name: 'ElDivider',
- props: {
- direction: {
- type: String,
- default: 'horizontal',
- validator: function validator(val) {
- return ['horizontal', 'vertical'].indexOf(val) !== -1;
- }
- },
- contentPosition: {
- type: String,
- default: 'center',
- validator: function validator(val) {
- return ['left', 'center', 'right'].indexOf(val) !== -1;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/divider/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_divider_src_mainvue_type_script_lang_js_ = (divider_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/divider/src/main.vue
- /* normalize component */
- var divider_src_main_component = normalizeComponent(
- packages_divider_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_7fa02a7e_functional_true_render,
- mainvue_type_template_id_7fa02a7e_functional_true_staticRenderFns,
- true,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var divider_src_main_api; }
- divider_src_main_component.options.__file = "packages/divider/src/main.vue"
- /* harmony default export */ var divider_src_main = (divider_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/divider/index.js
- /* istanbul ignore next */
- divider_src_main.install = function (Vue) {
- Vue.component(divider_src_main.name, divider_src_main);
- };
- /* harmony default export */ var divider = (divider_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=template&id=44d84a7c&
- var mainvue_type_template_id_44d84a7c_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "el-image" },
- [
- _vm.loading
- ? _vm._t("placeholder", [
- _c("div", { staticClass: "el-image__placeholder" })
- ])
- : _vm.error
- ? _vm._t("error", [
- _c("div", { staticClass: "el-image__error" }, [
- _vm._v(_vm._s(_vm.t("el.image.error")))
- ])
- ])
- : _c(
- "img",
- _vm._g(
- _vm._b(
- {
- staticClass: "el-image__inner",
- class: {
- "el-image__inner--center": _vm.alignCenter,
- "el-image__preview": _vm.preview
- },
- style: _vm.imageStyle,
- attrs: { src: _vm.src },
- on: { click: _vm.clickHandler }
- },
- "img",
- _vm.$attrs,
- false
- ),
- _vm.$listeners
- )
- ),
- _vm.preview
- ? [
- _vm.showViewer
- ? _c("image-viewer", {
- attrs: {
- "z-index": _vm.zIndex,
- "initial-index": _vm.imageIndex,
- "on-close": _vm.closeViewer,
- "url-list": _vm.previewSrcList
- }
- })
- : _vm._e()
- ]
- : _vm._e()
- ],
- 2
- )
- }
- var mainvue_type_template_id_44d84a7c_staticRenderFns = []
- mainvue_type_template_id_44d84a7c_render._withStripped = true
- // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=template&id=44d84a7c&
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=template&id=5e73b307&
- var image_viewervue_type_template_id_5e73b307_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "viewer-fade" } }, [
- _c(
- "div",
- {
- ref: "el-image-viewer__wrapper",
- staticClass: "el-image-viewer__wrapper",
- style: { "z-index": _vm.zIndex },
- attrs: { tabindex: "-1" }
- },
- [
- _c("div", { staticClass: "el-image-viewer__mask" }),
- _c(
- "span",
- {
- staticClass: "el-image-viewer__btn el-image-viewer__close",
- on: { click: _vm.hide }
- },
- [_c("i", { staticClass: "el-icon-circle-close" })]
- ),
- !_vm.isSingle
- ? [
- _c(
- "span",
- {
- staticClass: "el-image-viewer__btn el-image-viewer__prev",
- class: { "is-disabled": !_vm.infinite && _vm.isFirst },
- on: { click: _vm.prev }
- },
- [_c("i", { staticClass: "el-icon-arrow-left" })]
- ),
- _c(
- "span",
- {
- staticClass: "el-image-viewer__btn el-image-viewer__next",
- class: { "is-disabled": !_vm.infinite && _vm.isLast },
- on: { click: _vm.next }
- },
- [_c("i", { staticClass: "el-icon-arrow-right" })]
- )
- ]
- : _vm._e(),
- _c(
- "div",
- { staticClass: "el-image-viewer__btn el-image-viewer__actions" },
- [
- _c("div", { staticClass: "el-image-viewer__actions__inner" }, [
- _c("i", {
- staticClass: "el-icon-zoom-out",
- on: {
- click: function($event) {
- _vm.handleActions("zoomOut")
- }
- }
- }),
- _c("i", {
- staticClass: "el-icon-zoom-in",
- on: {
- click: function($event) {
- _vm.handleActions("zoomIn")
- }
- }
- }),
- _c("i", { staticClass: "el-image-viewer__actions__divider" }),
- _c("i", { class: _vm.mode.icon, on: { click: _vm.toggleMode } }),
- _c("i", { staticClass: "el-image-viewer__actions__divider" }),
- _c("i", {
- staticClass: "el-icon-refresh-left",
- on: {
- click: function($event) {
- _vm.handleActions("anticlocelise")
- }
- }
- }),
- _c("i", {
- staticClass: "el-icon-refresh-right",
- on: {
- click: function($event) {
- _vm.handleActions("clocelise")
- }
- }
- })
- ])
- ]
- ),
- _c(
- "div",
- { staticClass: "el-image-viewer__canvas" },
- _vm._l(_vm.urlList, function(url, i) {
- return i === _vm.index
- ? _c("img", {
- key: url,
- ref: "img",
- refInFor: true,
- staticClass: "el-image-viewer__img",
- style: _vm.imgStyle,
- attrs: { src: _vm.currentImg },
- on: {
- load: _vm.handleImgLoad,
- error: _vm.handleImgError,
- mousedown: _vm.handleMouseDown
- }
- })
- : _vm._e()
- }),
- 0
- )
- ],
- 2
- )
- ])
- }
- var image_viewervue_type_template_id_5e73b307_staticRenderFns = []
- image_viewervue_type_template_id_5e73b307_render._withStripped = true
- // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=template&id=5e73b307&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=script&lang=js&
- var image_viewervue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var Mode = {
- CONTAIN: {
- name: 'contain',
- icon: 'el-icon-full-screen'
- },
- ORIGINAL: {
- name: 'original',
- icon: 'el-icon-c-scale-to-original'
- }
- };
- var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mousewheel';
- /* harmony default export */ var image_viewervue_type_script_lang_js_ = ({
- name: 'elImageViewer',
- props: {
- urlList: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- zIndex: {
- type: Number,
- default: 2000
- },
- onSwitch: {
- type: Function,
- default: function _default() {}
- },
- onClose: {
- type: Function,
- default: function _default() {}
- },
- initialIndex: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- index: this.initialIndex,
- isShow: false,
- infinite: true,
- loading: false,
- mode: Mode.CONTAIN,
- transform: {
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- }
- };
- },
- computed: {
- isSingle: function isSingle() {
- return this.urlList.length <= 1;
- },
- isFirst: function isFirst() {
- return this.index === 0;
- },
- isLast: function isLast() {
- return this.index === this.urlList.length - 1;
- },
- currentImg: function currentImg() {
- return this.urlList[this.index];
- },
- imgStyle: function imgStyle() {
- var _transform = this.transform,
- scale = _transform.scale,
- deg = _transform.deg,
- offsetX = _transform.offsetX,
- offsetY = _transform.offsetY,
- enableTransition = _transform.enableTransition;
- var style = {
- transform: 'scale(' + scale + ') rotate(' + deg + 'deg)',
- transition: enableTransition ? 'transform .3s' : '',
- 'margin-left': offsetX + 'px',
- 'margin-top': offsetY + 'px'
- };
- if (this.mode === Mode.CONTAIN) {
- style.maxWidth = style.maxHeight = '100%';
- }
- return style;
- }
- },
- watch: {
- index: {
- handler: function handler(val) {
- this.reset();
- this.onSwitch(val);
- }
- },
- currentImg: function currentImg(val) {
- var _this = this;
- this.$nextTick(function (_) {
- var $img = _this.$refs.img[0];
- if (!$img.complete) {
- _this.loading = true;
- }
- });
- }
- },
- methods: {
- hide: function hide() {
- this.deviceSupportUninstall();
- this.onClose();
- },
- deviceSupportInstall: function deviceSupportInstall() {
- var _this2 = this;
- this._keyDownHandler = Object(util_["rafThrottle"])(function (e) {
- var keyCode = e.keyCode;
- switch (keyCode) {
- // ESC
- case 27:
- _this2.hide();
- break;
- // SPACE
- case 32:
- _this2.toggleMode();
- break;
- // LEFT_ARROW
- case 37:
- _this2.prev();
- break;
- // UP_ARROW
- case 38:
- _this2.handleActions('zoomIn');
- break;
- // RIGHT_ARROW
- case 39:
- _this2.next();
- break;
- // DOWN_ARROW
- case 40:
- _this2.handleActions('zoomOut');
- break;
- }
- });
- this._mouseWheelHandler = Object(util_["rafThrottle"])(function (e) {
- var delta = e.wheelDelta ? e.wheelDelta : -e.detail;
- if (delta > 0) {
- _this2.handleActions('zoomIn', {
- zoomRate: 0.015,
- enableTransition: false
- });
- } else {
- _this2.handleActions('zoomOut', {
- zoomRate: 0.015,
- enableTransition: false
- });
- }
- });
- Object(dom_["on"])(document, 'keydown', this._keyDownHandler);
- Object(dom_["on"])(document, mousewheelEventName, this._mouseWheelHandler);
- },
- deviceSupportUninstall: function deviceSupportUninstall() {
- Object(dom_["off"])(document, 'keydown', this._keyDownHandler);
- Object(dom_["off"])(document, mousewheelEventName, this._mouseWheelHandler);
- this._keyDownHandler = null;
- this._mouseWheelHandler = null;
- },
- handleImgLoad: function handleImgLoad(e) {
- this.loading = false;
- },
- handleImgError: function handleImgError(e) {
- this.loading = false;
- e.target.alt = '加载失败';
- },
- handleMouseDown: function handleMouseDown(e) {
- var _this3 = this;
- if (this.loading || e.button !== 0) return;
- var _transform2 = this.transform,
- offsetX = _transform2.offsetX,
- offsetY = _transform2.offsetY;
- var startX = e.pageX;
- var startY = e.pageY;
- this._dragHandler = Object(util_["rafThrottle"])(function (ev) {
- _this3.transform.offsetX = offsetX + ev.pageX - startX;
- _this3.transform.offsetY = offsetY + ev.pageY - startY;
- });
- Object(dom_["on"])(document, 'mousemove', this._dragHandler);
- Object(dom_["on"])(document, 'mouseup', function (ev) {
- Object(dom_["off"])(document, 'mousemove', _this3._dragHandler);
- });
- e.preventDefault();
- },
- reset: function reset() {
- this.transform = {
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- };
- },
- toggleMode: function toggleMode() {
- if (this.loading) return;
- var modeNames = Object.keys(Mode);
- var modeValues = Object.values(Mode);
- var index = modeValues.indexOf(this.mode);
- var nextIndex = (index + 1) % modeNames.length;
- this.mode = Mode[modeNames[nextIndex]];
- this.reset();
- },
- prev: function prev() {
- if (this.isFirst && !this.infinite) return;
- var len = this.urlList.length;
- this.index = (this.index - 1 + len) % len;
- },
- next: function next() {
- if (this.isLast && !this.infinite) return;
- var len = this.urlList.length;
- this.index = (this.index + 1) % len;
- },
- handleActions: function handleActions(action) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (this.loading) return;
- var _zoomRate$rotateDeg$e = image_viewervue_type_script_lang_js_extends({
- zoomRate: 0.2,
- rotateDeg: 90,
- enableTransition: true
- }, options),
- zoomRate = _zoomRate$rotateDeg$e.zoomRate,
- rotateDeg = _zoomRate$rotateDeg$e.rotateDeg,
- enableTransition = _zoomRate$rotateDeg$e.enableTransition;
- var transform = this.transform;
- switch (action) {
- case 'zoomOut':
- if (transform.scale > 0.2) {
- transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3));
- }
- break;
- case 'zoomIn':
- transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3));
- break;
- case 'clocelise':
- transform.deg += rotateDeg;
- break;
- case 'anticlocelise':
- transform.deg -= rotateDeg;
- break;
- }
- transform.enableTransition = enableTransition;
- }
- },
- mounted: function mounted() {
- this.deviceSupportInstall();
- // add tabindex then wrapper can be focusable via Javascript
- // focus wrapper so arrow key can't cause inner scroll behavior underneath
- this.$refs['el-image-viewer__wrapper'].focus();
- }
- });
- // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_image_viewervue_type_script_lang_js_ = (image_viewervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue
- /* normalize component */
- var image_viewer_component = normalizeComponent(
- src_image_viewervue_type_script_lang_js_,
- image_viewervue_type_template_id_5e73b307_render,
- image_viewervue_type_template_id_5e73b307_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var image_viewer_api; }
- image_viewer_component.options.__file = "packages/image/src/image-viewer.vue"
- /* harmony default export */ var image_viewer = (image_viewer_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var isSupportObjectFit = function isSupportObjectFit() {
- return document.documentElement.style.objectFit !== undefined;
- };
- var ObjectFit = {
- NONE: 'none',
- CONTAIN: 'contain',
- COVER: 'cover',
- FILL: 'fill',
- SCALE_DOWN: 'scale-down'
- };
- var prevOverflow = '';
- /* harmony default export */ var image_src_mainvue_type_script_lang_js_ = ({
- name: 'ElImage',
- mixins: [locale_default.a],
- inheritAttrs: false,
- components: {
- ImageViewer: image_viewer
- },
- props: {
- src: String,
- fit: String,
- lazy: Boolean,
- scrollContainer: {},
- previewSrcList: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- zIndex: {
- type: Number,
- default: 2000
- }
- },
- data: function data() {
- return {
- loading: true,
- error: false,
- show: !this.lazy,
- imageWidth: 0,
- imageHeight: 0,
- showViewer: false
- };
- },
- computed: {
- imageStyle: function imageStyle() {
- var fit = this.fit;
- if (!this.$isServer && fit) {
- return isSupportObjectFit() ? { 'object-fit': fit } : this.getImageStyle(fit);
- }
- return {};
- },
- alignCenter: function alignCenter() {
- return !this.$isServer && !isSupportObjectFit() && this.fit !== ObjectFit.FILL;
- },
- preview: function preview() {
- var previewSrcList = this.previewSrcList;
- return Array.isArray(previewSrcList) && previewSrcList.length > 0;
- },
- imageIndex: function imageIndex() {
- var previewIndex = 0;
- var srcIndex = this.previewSrcList.indexOf(this.src);
- if (srcIndex >= 0) {
- previewIndex = srcIndex;
- }
- return previewIndex;
- }
- },
- watch: {
- src: function src(val) {
- this.show && this.loadImage();
- },
- show: function show(val) {
- val && this.loadImage();
- }
- },
- mounted: function mounted() {
- if (this.lazy) {
- this.addLazyLoadListener();
- } else {
- this.loadImage();
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.lazy && this.removeLazyLoadListener();
- },
- methods: {
- loadImage: function loadImage() {
- var _this = this;
- if (this.$isServer) return;
- // reset status
- this.loading = true;
- this.error = false;
- var img = new Image();
- img.onload = function (e) {
- return _this.handleLoad(e, img);
- };
- img.onerror = this.handleError.bind(this);
- // bind html attrs
- // so it can behave consistently
- Object.keys(this.$attrs).forEach(function (key) {
- var value = _this.$attrs[key];
- img.setAttribute(key, value);
- });
- img.src = this.src;
- },
- handleLoad: function handleLoad(e, img) {
- this.imageWidth = img.width;
- this.imageHeight = img.height;
- this.loading = false;
- this.error = false;
- },
- handleError: function handleError(e) {
- this.loading = false;
- this.error = true;
- this.$emit('error', e);
- },
- handleLazyLoad: function handleLazyLoad() {
- if (Object(dom_["isInContainer"])(this.$el, this._scrollContainer)) {
- this.show = true;
- this.removeLazyLoadListener();
- }
- },
- addLazyLoadListener: function addLazyLoadListener() {
- if (this.$isServer) return;
- var scrollContainer = this.scrollContainer;
- var _scrollContainer = null;
- if (Object(types_["isHtmlElement"])(scrollContainer)) {
- _scrollContainer = scrollContainer;
- } else if (Object(types_["isString"])(scrollContainer)) {
- _scrollContainer = document.querySelector(scrollContainer);
- } else {
- _scrollContainer = Object(dom_["getScrollContainer"])(this.$el);
- }
- if (_scrollContainer) {
- this._scrollContainer = _scrollContainer;
- this._lazyLoadHandler = throttle_default()(200, this.handleLazyLoad);
- Object(dom_["on"])(_scrollContainer, 'scroll', this._lazyLoadHandler);
- this.handleLazyLoad();
- }
- },
- removeLazyLoadListener: function removeLazyLoadListener() {
- var _scrollContainer = this._scrollContainer,
- _lazyLoadHandler = this._lazyLoadHandler;
- if (this.$isServer || !_scrollContainer || !_lazyLoadHandler) return;
- Object(dom_["off"])(_scrollContainer, 'scroll', _lazyLoadHandler);
- this._scrollContainer = null;
- this._lazyLoadHandler = null;
- },
- /**
- * simulate object-fit behavior to compatible with IE11 and other browsers which not support object-fit
- */
- getImageStyle: function getImageStyle(fit) {
- var imageWidth = this.imageWidth,
- imageHeight = this.imageHeight;
- var _$el = this.$el,
- containerWidth = _$el.clientWidth,
- containerHeight = _$el.clientHeight;
- if (!imageWidth || !imageHeight || !containerWidth || !containerHeight) return {};
- var vertical = imageWidth / imageHeight < 1;
- if (fit === ObjectFit.SCALE_DOWN) {
- var isSmaller = imageWidth < containerWidth && imageHeight < containerHeight;
- fit = isSmaller ? ObjectFit.NONE : ObjectFit.CONTAIN;
- }
- switch (fit) {
- case ObjectFit.NONE:
- return { width: 'auto', height: 'auto' };
- case ObjectFit.CONTAIN:
- return vertical ? { width: 'auto' } : { height: 'auto' };
- case ObjectFit.COVER:
- return vertical ? { height: 'auto' } : { width: 'auto' };
- default:
- return {};
- }
- },
- clickHandler: function clickHandler() {
- // don't show viewer when preview is false
- if (!this.preview) {
- return;
- }
- // prevent body scroll
- prevOverflow = document.body.style.overflow;
- document.body.style.overflow = 'hidden';
- this.showViewer = true;
- },
- closeViewer: function closeViewer() {
- document.body.style.overflow = prevOverflow;
- this.showViewer = false;
- }
- }
- });
- // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_image_src_mainvue_type_script_lang_js_ = (image_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/image/src/main.vue
- /* normalize component */
- var image_src_main_component = normalizeComponent(
- packages_image_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_44d84a7c_render,
- mainvue_type_template_id_44d84a7c_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var image_src_main_api; }
- image_src_main_component.options.__file = "packages/image/src/main.vue"
- /* harmony default export */ var image_src_main = (image_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/image/index.js
- /* istanbul ignore next */
- image_src_main.install = function (Vue) {
- Vue.component(image_src_main.name, image_src_main);
- };
- /* harmony default export */ var packages_image = (image_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=6d9756be&
- var mainvue_type_template_id_6d9756be_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-calendar" }, [
- _c("div", { staticClass: "el-calendar__header" }, [
- _c("div", { staticClass: "el-calendar__title" }, [
- _vm._v("\n " + _vm._s(_vm.i18nDate) + "\n ")
- ]),
- _vm.validatedRange.length === 0
- ? _c(
- "div",
- { staticClass: "el-calendar__button-group" },
- [
- _c(
- "el-button-group",
- [
- _c(
- "el-button",
- {
- attrs: { type: "plain", size: "mini" },
- on: {
- click: function($event) {
- _vm.selectDate("prev-month")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.prevMonth")) +
- "\n "
- )
- ]
- ),
- _c(
- "el-button",
- {
- attrs: { type: "plain", size: "mini" },
- on: {
- click: function($event) {
- _vm.selectDate("today")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.today")) +
- "\n "
- )
- ]
- ),
- _c(
- "el-button",
- {
- attrs: { type: "plain", size: "mini" },
- on: {
- click: function($event) {
- _vm.selectDate("next-month")
- }
- }
- },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.t("el.datepicker.nextMonth")) +
- "\n "
- )
- ]
- )
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ]),
- _vm.validatedRange.length === 0
- ? _c(
- "div",
- { key: "no-range", staticClass: "el-calendar__body" },
- [
- _c("date-table", {
- attrs: {
- date: _vm.date,
- "selected-day": _vm.realSelectedDay,
- "first-day-of-week": _vm.realFirstDayOfWeek
- },
- on: { pick: _vm.pickDay }
- })
- ],
- 1
- )
- : _c(
- "div",
- { key: "has-range", staticClass: "el-calendar__body" },
- _vm._l(_vm.validatedRange, function(range, index) {
- return _c("date-table", {
- key: index,
- attrs: {
- date: range[0],
- "selected-day": _vm.realSelectedDay,
- range: range,
- "hide-header": index !== 0,
- "first-day-of-week": _vm.realFirstDayOfWeek
- },
- on: { pick: _vm.pickDay }
- })
- }),
- 1
- )
- ])
- }
- var mainvue_type_template_id_6d9756be_staticRenderFns = []
- mainvue_type_template_id_6d9756be_render._withStripped = true
- // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=6d9756be&
- // EXTERNAL MODULE: external "element-ui/lib/utils/date"
- var date_ = __webpack_require__(20);
- var date_default = /*#__PURE__*/__webpack_require__.n(date_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/date-table.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_date_tablevue_type_script_lang_js_ = ({
- props: {
- selectedDay: String, // formated date yyyy-MM-dd
- range: {
- type: Array,
- validator: function validator(val) {
- if (!(val && val.length)) return true;
- var start = val[0],
- end = val[1];
- return Object(date_util_["validateRangeInOneMonth"])(start, end);
- }
- },
- date: Date,
- hideHeader: Boolean,
- firstDayOfWeek: Number
- },
- inject: ['elCalendar'],
- data: function data() {
- return {
- WEEK_DAYS: Object(date_util_["getI18nSettings"])().dayNames
- };
- },
- methods: {
- toNestedArr: function toNestedArr(days) {
- return Object(date_util_["range"])(days.length / 7).map(function (_, index) {
- var start = index * 7;
- return days.slice(start, start + 7);
- });
- },
- getFormateDate: function getFormateDate(day, type) {
- if (!day || ['prev', 'current', 'next'].indexOf(type) === -1) {
- throw new Error('invalid day or type');
- }
- var prefix = this.curMonthDatePrefix;
- if (type === 'prev') {
- prefix = this.prevMonthDatePrefix;
- } else if (type === 'next') {
- prefix = this.nextMonthDatePrefix;
- }
- day = ('00' + day).slice(-2);
- return prefix + '-' + day;
- },
- getCellClass: function getCellClass(_ref) {
- var text = _ref.text,
- type = _ref.type;
- var classes = [type];
- if (type === 'current') {
- var date = this.getFormateDate(text, type);
- if (date === this.selectedDay) {
- classes.push('is-selected');
- }
- if (date === this.formatedToday) {
- classes.push('is-today');
- }
- }
- return classes;
- },
- pickDay: function pickDay(_ref2) {
- var text = _ref2.text,
- type = _ref2.type;
- var date = this.getFormateDate(text, type);
- this.$emit('pick', date);
- },
- cellRenderProxy: function cellRenderProxy(_ref3) {
- var text = _ref3.text,
- type = _ref3.type;
- var h = this.$createElement;
- var render = this.elCalendar.$scopedSlots.dateCell;
- if (!render) return h('span', [text]);
- var day = this.getFormateDate(text, type);
- var date = new Date(day);
- var data = {
- isSelected: this.selectedDay === day,
- type: type + '-month',
- day: day
- };
- return render({ date: date, data: data });
- }
- },
- computed: {
- prevMonthDatePrefix: function prevMonthDatePrefix() {
- var temp = new Date(this.date.getTime());
- temp.setDate(0);
- return date_default.a.format(temp, 'yyyy-MM');
- },
- curMonthDatePrefix: function curMonthDatePrefix() {
- return date_default.a.format(this.date, 'yyyy-MM');
- },
- nextMonthDatePrefix: function nextMonthDatePrefix() {
- var temp = new Date(this.date.getFullYear(), this.date.getMonth() + 1, 1);
- return date_default.a.format(temp, 'yyyy-MM');
- },
- formatedToday: function formatedToday() {
- return this.elCalendar.formatedToday;
- },
- isInRange: function isInRange() {
- return this.range && this.range.length;
- },
- rows: function rows() {
- var days = [];
- // if range exists, should render days in range.
- if (this.isInRange) {
- var _range = this.range,
- start = _range[0],
- end = _range[1];
- var currentMonthRange = Object(date_util_["range"])(end.getDate() - start.getDate() + 1).map(function (_, index) {
- return {
- text: start.getDate() + index,
- type: 'current'
- };
- });
- var remaining = currentMonthRange.length % 7;
- remaining = remaining === 0 ? 0 : 7 - remaining;
- var nextMonthRange = Object(date_util_["range"])(remaining).map(function (_, index) {
- return {
- text: index + 1,
- type: 'next'
- };
- });
- days = currentMonthRange.concat(nextMonthRange);
- } else {
- var date = this.date;
- var firstDay = Object(date_util_["getFirstDayOfMonth"])(date);
- firstDay = firstDay === 0 ? 7 : firstDay;
- var firstDayOfWeek = typeof this.firstDayOfWeek === 'number' ? this.firstDayOfWeek : 1;
- var prevMonthDays = Object(date_util_["getPrevMonthLastDays"])(date, firstDay - firstDayOfWeek).map(function (day) {
- return {
- text: day,
- type: 'prev'
- };
- });
- var currentMonthDays = Object(date_util_["getMonthDays"])(date).map(function (day) {
- return {
- text: day,
- type: 'current'
- };
- });
- days = [].concat(prevMonthDays, currentMonthDays);
- var nextMonthDays = Object(date_util_["range"])(42 - days.length).map(function (_, index) {
- return {
- text: index + 1,
- type: 'next'
- };
- });
- days = days.concat(nextMonthDays);
- }
- return this.toNestedArr(days);
- },
- weekDays: function weekDays() {
- var start = this.firstDayOfWeek;
- var WEEK_DAYS = this.WEEK_DAYS;
- if (typeof start !== 'number' || start === 0) {
- return WEEK_DAYS.slice();
- } else {
- return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start));
- }
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var thead = this.hideHeader ? null : h('thead', [this.weekDays.map(function (day) {
- return h(
- 'th',
- { key: day },
- [day]
- );
- })]);
- return h(
- 'table',
- {
- 'class': {
- 'el-calendar-table': true,
- 'is-range': this.isInRange
- },
- attrs: { cellspacing: '0',
- cellpadding: '0' }
- },
- [thead, h('tbody', [this.rows.map(function (row, index) {
- return h(
- 'tr',
- {
- 'class': {
- 'el-calendar-table__row': true,
- 'el-calendar-table__row--hide-border': index === 0 && _this.hideHeader
- },
- key: index },
- [row.map(function (cell, key) {
- return h(
- 'td',
- { key: key,
- 'class': _this.getCellClass(cell),
- on: {
- 'click': _this.pickDay.bind(_this, cell)
- }
- },
- [h(
- 'div',
- { 'class': 'el-calendar-day' },
- [_this.cellRenderProxy(cell)]
- )]
- );
- })]
- );
- })])]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/calendar/src/date-table.vue?vue&type=script&lang=js&
- /* harmony default export */ var calendar_src_date_tablevue_type_script_lang_js_ = (src_date_tablevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/calendar/src/date-table.vue
- var date_table_render, date_table_staticRenderFns
- /* normalize component */
- var src_date_table_component = normalizeComponent(
- calendar_src_date_tablevue_type_script_lang_js_,
- date_table_render,
- date_table_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var src_date_table_api; }
- src_date_table_component.options.__file = "packages/calendar/src/date-table.vue"
- /* harmony default export */ var src_date_table = (src_date_table_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var validTypes = ['prev-month', 'today', 'next-month'];
- var weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
- var oneDay = 86400000;
- /* harmony default export */ var calendar_src_mainvue_type_script_lang_js_ = ({
- name: 'ElCalendar',
- mixins: [locale_default.a],
- components: {
- DateTable: src_date_table,
- ElButton: button_default.a,
- ElButtonGroup: button_group_default.a
- },
- props: {
- value: [Date, String, Number],
- range: {
- type: Array,
- validator: function validator(range) {
- if (Array.isArray(range)) {
- return range.length === 2 && range.every(function (item) {
- return typeof item === 'string' || typeof item === 'number' || item instanceof Date;
- });
- } else {
- return true;
- }
- }
- },
- firstDayOfWeek: {
- type: Number,
- default: 1
- }
- },
- provide: function provide() {
- return {
- elCalendar: this
- };
- },
- methods: {
- pickDay: function pickDay(day) {
- this.realSelectedDay = day;
- },
- selectDate: function selectDate(type) {
- if (validTypes.indexOf(type) === -1) {
- throw new Error('invalid type ' + type);
- }
- var day = '';
- if (type === 'prev-month') {
- day = this.prevMonthDatePrefix + '-01';
- } else if (type === 'next-month') {
- day = this.nextMonthDatePrefix + '-01';
- } else {
- day = this.formatedToday;
- }
- if (day === this.formatedDate) return;
- this.pickDay(day);
- },
- toDate: function toDate(val) {
- if (!val) {
- throw new Error('invalid val');
- }
- return val instanceof Date ? val : new Date(val);
- },
- rangeValidator: function rangeValidator(date, isStart) {
- var firstDayOfWeek = this.realFirstDayOfWeek;
- var expected = isStart ? firstDayOfWeek : firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;
- var message = (isStart ? 'start' : 'end') + ' of range should be ' + weekDays[expected] + '.';
- if (date.getDay() !== expected) {
- console.warn('[ElementCalendar]', message, 'Invalid range will be ignored.');
- return false;
- }
- return true;
- }
- },
- computed: {
- prevMonthDatePrefix: function prevMonthDatePrefix() {
- var temp = new Date(this.date.getTime());
- temp.setDate(0);
- return date_default.a.format(temp, 'yyyy-MM');
- },
- curMonthDatePrefix: function curMonthDatePrefix() {
- return date_default.a.format(this.date, 'yyyy-MM');
- },
- nextMonthDatePrefix: function nextMonthDatePrefix() {
- var temp = new Date(this.date.getFullYear(), this.date.getMonth() + 1, 1);
- return date_default.a.format(temp, 'yyyy-MM');
- },
- formatedDate: function formatedDate() {
- return date_default.a.format(this.date, 'yyyy-MM-dd');
- },
- i18nDate: function i18nDate() {
- var year = this.date.getFullYear();
- var month = this.date.getMonth() + 1;
- return year + ' ' + this.t('el.datepicker.year') + ' ' + this.t('el.datepicker.month' + month);
- },
- formatedToday: function formatedToday() {
- return date_default.a.format(this.now, 'yyyy-MM-dd');
- },
- realSelectedDay: {
- get: function get() {
- if (!this.value) return this.selectedDay;
- return this.formatedDate;
- },
- set: function set(val) {
- this.selectedDay = val;
- var date = new Date(val);
- this.$emit('input', date);
- }
- },
- date: function date() {
- if (!this.value) {
- if (this.realSelectedDay) {
- var d = this.selectedDay.split('-');
- return new Date(d[0], d[1] - 1, d[2]);
- } else if (this.validatedRange.length) {
- return this.validatedRange[0][0];
- }
- return this.now;
- } else {
- return this.toDate(this.value);
- }
- },
- // if range is valid, we get a two-digit array
- validatedRange: function validatedRange() {
- var _this = this;
- var range = this.range;
- if (!range) return [];
- range = range.reduce(function (prev, val, index) {
- var date = _this.toDate(val);
- if (_this.rangeValidator(date, index === 0)) {
- prev = prev.concat(date);
- }
- return prev;
- }, []);
- if (range.length === 2) {
- var _range = range,
- start = _range[0],
- end = _range[1];
- if (start > end) {
- console.warn('[ElementCalendar]end time should be greater than start time');
- return [];
- }
- // start time and end time in one month
- if (Object(date_util_["validateRangeInOneMonth"])(start, end)) {
- return [[start, end]];
- }
- var data = [];
- var startDay = new Date(start.getFullYear(), start.getMonth() + 1, 1);
- var lastDay = this.toDate(startDay.getTime() - oneDay);
- if (!Object(date_util_["validateRangeInOneMonth"])(startDay, end)) {
- console.warn('[ElementCalendar]start time and end time interval must not exceed two months');
- return [];
- }
- // 第一个月的时间范围
- data.push([start, lastDay]);
- // 下一月的时间范围,需要计算一下该月的第一个周起始日
- var firstDayOfWeek = this.realFirstDayOfWeek;
- var nextMontFirstDay = startDay.getDay();
- var interval = 0;
- if (nextMontFirstDay !== firstDayOfWeek) {
- if (firstDayOfWeek === 0) {
- interval = 7 - nextMontFirstDay;
- } else {
- interval = firstDayOfWeek - nextMontFirstDay;
- interval = interval > 0 ? interval : 7 + interval;
- }
- }
- startDay = this.toDate(startDay.getTime() + interval * oneDay);
- if (startDay.getDate() < end.getDate()) {
- data.push([startDay, end]);
- }
- return data;
- }
- return [];
- },
- realFirstDayOfWeek: function realFirstDayOfWeek() {
- if (this.firstDayOfWeek < 1 || this.firstDayOfWeek > 6) {
- return 0;
- }
- return Math.floor(this.firstDayOfWeek);
- }
- },
- data: function data() {
- return {
- selectedDay: '',
- now: new Date()
- };
- }
- });
- // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_calendar_src_mainvue_type_script_lang_js_ = (calendar_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/calendar/src/main.vue
- /* normalize component */
- var calendar_src_main_component = normalizeComponent(
- packages_calendar_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_6d9756be_render,
- mainvue_type_template_id_6d9756be_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var calendar_src_main_api; }
- calendar_src_main_component.options.__file = "packages/calendar/src/main.vue"
- /* harmony default export */ var calendar_src_main = (calendar_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/calendar/index.js
- /* istanbul ignore next */
- calendar_src_main.install = function (Vue) {
- Vue.component(calendar_src_main.name, calendar_src_main);
- };
- /* harmony default export */ var calendar = (calendar_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/backtop/src/main.vue?vue&type=template&id=257dd4a9&
- var mainvue_type_template_id_257dd4a9_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("transition", { attrs: { name: "el-fade-in" } }, [
- _vm.visible
- ? _c(
- "div",
- {
- staticClass: "el-backtop",
- style: {
- right: _vm.styleRight,
- bottom: _vm.styleBottom
- },
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.handleClick($event)
- }
- }
- },
- [
- _vm._t("default", [_c("el-icon", { attrs: { name: "caret-top" } })])
- ],
- 2
- )
- : _vm._e()
- ])
- }
- var mainvue_type_template_id_257dd4a9_staticRenderFns = []
- mainvue_type_template_id_257dd4a9_render._withStripped = true
- // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=template&id=257dd4a9&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/backtop/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var cubic = function cubic(value) {
- return Math.pow(value, 3);
- };
- var easeInOutCubic = function easeInOutCubic(value) {
- return value < 0.5 ? cubic(value * 2) / 2 : 1 - cubic((1 - value) * 2) / 2;
- };
- /* harmony default export */ var backtop_src_mainvue_type_script_lang_js_ = ({
- name: 'ElBacktop',
- props: {
- visibilityHeight: {
- type: Number,
- default: 200
- },
- target: [String],
- right: {
- type: Number,
- default: 40
- },
- bottom: {
- type: Number,
- default: 40
- }
- },
- data: function data() {
- return {
- el: null,
- container: null,
- visible: false
- };
- },
- computed: {
- styleBottom: function styleBottom() {
- return this.bottom + 'px';
- },
- styleRight: function styleRight() {
- return this.right + 'px';
- }
- },
- mounted: function mounted() {
- this.init();
- this.throttledScrollHandler = throttle_default()(300, this.onScroll);
- this.container.addEventListener('scroll', this.throttledScrollHandler);
- },
- methods: {
- init: function init() {
- this.container = document;
- this.el = document.documentElement;
- if (this.target) {
- this.el = document.querySelector(this.target);
- if (!this.el) {
- throw new Error('target is not existed: ' + this.target);
- }
- this.container = this.el;
- }
- },
- onScroll: function onScroll() {
- var scrollTop = this.el.scrollTop;
- this.visible = scrollTop >= this.visibilityHeight;
- },
- handleClick: function handleClick(e) {
- this.scrollToTop();
- this.$emit('click', e);
- },
- scrollToTop: function scrollToTop() {
- var el = this.el;
- var beginTime = Date.now();
- var beginValue = el.scrollTop;
- var rAF = window.requestAnimationFrame || function (func) {
- return setTimeout(func, 16);
- };
- var frameFunc = function frameFunc() {
- var progress = (Date.now() - beginTime) / 500;
- if (progress < 1) {
- el.scrollTop = beginValue * (1 - easeInOutCubic(progress));
- rAF(frameFunc);
- } else {
- el.scrollTop = 0;
- }
- };
- rAF(frameFunc);
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.container.removeEventListener('scroll', this.throttledScrollHandler);
- }
- });
- // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_backtop_src_mainvue_type_script_lang_js_ = (backtop_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/backtop/src/main.vue
- /* normalize component */
- var backtop_src_main_component = normalizeComponent(
- packages_backtop_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_257dd4a9_render,
- mainvue_type_template_id_257dd4a9_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var backtop_src_main_api; }
- backtop_src_main_component.options.__file = "packages/backtop/src/main.vue"
- /* harmony default export */ var backtop_src_main = (backtop_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/backtop/index.js
- /* istanbul ignore next */
- backtop_src_main.install = function (Vue) {
- Vue.component(backtop_src_main.name, backtop_src_main);
- };
- /* harmony default export */ var backtop = (backtop_src_main);
- // CONCATENATED MODULE: ./packages/infinite-scroll/src/main.js
- var getStyleComputedProperty = function getStyleComputedProperty(element, property) {
- if (element === window) {
- element = document.documentElement;
- }
- if (element.nodeType !== 1) {
- return [];
- }
- // NOTE: 1 DOM access here
- var css = window.getComputedStyle(element, null);
- return property ? css[property] : css;
- };
- var entries = function entries(obj) {
- return Object.keys(obj || {}).map(function (key) {
- return [key, obj[key]];
- });
- };
- var getPositionSize = function getPositionSize(el, prop) {
- return el === window || el === document ? document.documentElement[prop] : el[prop];
- };
- var getOffsetHeight = function getOffsetHeight(el) {
- return getPositionSize(el, 'offsetHeight');
- };
- var getClientHeight = function getClientHeight(el) {
- return getPositionSize(el, 'clientHeight');
- };
- var scope = 'ElInfiniteScroll';
- var attributes = {
- delay: {
- type: Number,
- default: 200
- },
- distance: {
- type: Number,
- default: 0
- },
- disabled: {
- type: Boolean,
- default: false
- },
- immediate: {
- type: Boolean,
- default: true
- }
- };
- var main_getScrollOptions = function getScrollOptions(el, vm) {
- if (!Object(types_["isHtmlElement"])(el)) return {};
- return entries(attributes).reduce(function (map, _ref) {
- var key = _ref[0],
- option = _ref[1];
- var type = option.type,
- defaultValue = option.default;
- var value = el.getAttribute('infinite-scroll-' + key);
- value = Object(types_["isUndefined"])(vm[value]) ? value : vm[value];
- switch (type) {
- case Number:
- value = Number(value);
- value = Number.isNaN(value) ? defaultValue : value;
- break;
- case Boolean:
- value = Object(types_["isDefined"])(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
- break;
- default:
- value = type(value);
- }
- map[key] = value;
- return map;
- }, {});
- };
- var getElementTop = function getElementTop(el) {
- return el.getBoundingClientRect().top;
- };
- var main_handleScroll = function handleScroll(cb) {
- var _scope = this[scope],
- el = _scope.el,
- vm = _scope.vm,
- container = _scope.container,
- observer = _scope.observer;
- var _getScrollOptions = main_getScrollOptions(el, vm),
- distance = _getScrollOptions.distance,
- disabled = _getScrollOptions.disabled;
- if (disabled) return;
- var containerInfo = container.getBoundingClientRect();
- if (!containerInfo.width && !containerInfo.height) return;
- var shouldTrigger = false;
- if (container === el) {
- // be aware of difference between clientHeight & offsetHeight & window.getComputedStyle().height
- var scrollBottom = container.scrollTop + getClientHeight(container);
- shouldTrigger = container.scrollHeight - scrollBottom <= distance;
- } else {
- var heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
- var offsetHeight = getOffsetHeight(container);
- var borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
- shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
- }
- if (shouldTrigger && Object(types_["isFunction"])(cb)) {
- cb.call(vm);
- } else if (observer) {
- observer.disconnect();
- this[scope].observer = null;
- }
- };
- /* harmony default export */ var infinite_scroll_src_main = ({
- name: 'InfiniteScroll',
- inserted: function inserted(el, binding, vnode) {
- var cb = binding.value;
- var vm = vnode.context;
- // only include vertical scroll
- var container = Object(dom_["getScrollContainer"])(el, true);
- var _getScrollOptions2 = main_getScrollOptions(el, vm),
- delay = _getScrollOptions2.delay,
- immediate = _getScrollOptions2.immediate;
- var onScroll = debounce_default()(delay, main_handleScroll.bind(el, cb));
- el[scope] = { el: el, vm: vm, container: container, onScroll: onScroll };
- if (container) {
- container.addEventListener('scroll', onScroll);
- if (immediate) {
- var observer = el[scope].observer = new MutationObserver(onScroll);
- observer.observe(container, { childList: true, subtree: true });
- onScroll();
- }
- }
- },
- unbind: function unbind(el) {
- var _el$scope = el[scope],
- container = _el$scope.container,
- onScroll = _el$scope.onScroll;
- if (container) {
- container.removeEventListener('scroll', onScroll);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/infinite-scroll/index.js
- /* istanbul ignore next */
- infinite_scroll_src_main.install = function (Vue) {
- Vue.directive(infinite_scroll_src_main.name, infinite_scroll_src_main);
- };
- /* harmony default export */ var infinite_scroll = (infinite_scroll_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/page-header/src/main.vue?vue&type=template&id=5070954c&
- var mainvue_type_template_id_5070954c_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "el-page-header" }, [
- _c(
- "div",
- {
- staticClass: "el-page-header__left",
- on: {
- click: function($event) {
- _vm.$emit("back")
- }
- }
- },
- [
- _c("i", { staticClass: "el-icon-back" }),
- _c(
- "div",
- { staticClass: "el-page-header__title" },
- [_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
- 2
- )
- ]
- ),
- _c(
- "div",
- { staticClass: "el-page-header__content" },
- [_vm._t("content", [_vm._v(_vm._s(_vm.content))])],
- 2
- )
- ])
- }
- var mainvue_type_template_id_5070954c_staticRenderFns = []
- mainvue_type_template_id_5070954c_render._withStripped = true
- // CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=template&id=5070954c&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/page-header/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var page_header_src_mainvue_type_script_lang_js_ = ({
- name: 'ElPageHeader',
- props: {
- title: {
- type: String,
- default: function _default() {
- return Object(lib_locale_["t"])('el.pageHeader.title');
- }
- },
- content: String
- }
- });
- // CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_page_header_src_mainvue_type_script_lang_js_ = (page_header_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/page-header/src/main.vue
- /* normalize component */
- var page_header_src_main_component = normalizeComponent(
- packages_page_header_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_5070954c_render,
- mainvue_type_template_id_5070954c_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var page_header_src_main_api; }
- page_header_src_main_component.options.__file = "packages/page-header/src/main.vue"
- /* harmony default export */ var page_header_src_main = (page_header_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/page-header/index.js
- /* istanbul ignore next */
- page_header_src_main.install = function (Vue) {
- Vue.component(page_header_src_main.name, page_header_src_main);
- };
- /* harmony default export */ var page_header = (page_header_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
- var cascader_panelvue_type_template_id_34932346_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: ["el-cascader-panel", _vm.border && "is-bordered"],
- on: { keydown: _vm.handleKeyDown }
- },
- _vm._l(_vm.menus, function(menu, index) {
- return _c("cascader-menu", {
- key: index,
- ref: "menu",
- refInFor: true,
- attrs: { index: index, nodes: menu }
- })
- }),
- 1
- )
- }
- var cascader_panelvue_type_template_id_34932346_staticRenderFns = []
- cascader_panelvue_type_template_id_34932346_render._withStripped = true
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
- // EXTERNAL MODULE: external "element-ui/lib/radio"
- var radio_ = __webpack_require__(43);
- var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
- var stopPropagation = function stopPropagation(e) {
- return e.stopPropagation();
- };
- /* harmony default export */ var cascader_nodevue_type_script_lang_js_ = ({
- inject: ['panel'],
- components: {
- ElCheckbox: checkbox_default.a,
- ElRadio: radio_default.a
- },
- props: {
- node: {
- required: true
- },
- nodeId: String
- },
- computed: {
- config: function config() {
- return this.panel.config;
- },
- isLeaf: function isLeaf() {
- return this.node.isLeaf;
- },
- isDisabled: function isDisabled() {
- return this.node.isDisabled;
- },
- checkedValue: function checkedValue() {
- return this.panel.checkedValue;
- },
- isChecked: function isChecked() {
- return this.node.isSameNode(this.checkedValue);
- },
- inActivePath: function inActivePath() {
- return this.isInPath(this.panel.activePath);
- },
- inCheckedPath: function inCheckedPath() {
- var _this = this;
- if (!this.config.checkStrictly) return false;
- return this.panel.checkedNodePaths.some(function (checkedPath) {
- return _this.isInPath(checkedPath);
- });
- },
- value: function value() {
- return this.node.getValueByOption();
- }
- },
- methods: {
- handleExpand: function handleExpand() {
- var _this2 = this;
- var panel = this.panel,
- node = this.node,
- isDisabled = this.isDisabled,
- config = this.config;
- var multiple = config.multiple,
- checkStrictly = config.checkStrictly;
- if (!checkStrictly && isDisabled || node.loading) return;
- if (config.lazy && !node.loaded) {
- panel.lazyLoad(node, function () {
- // do not use cached leaf value here, invoke this.isLeaf to get new value.
- var isLeaf = _this2.isLeaf;
- if (!isLeaf) _this2.handleExpand();
- if (multiple) {
- // if leaf sync checked state, else clear checked state
- var checked = isLeaf ? node.checked : false;
- _this2.handleMultiCheckChange(checked);
- }
- });
- } else {
- panel.handleExpand(node);
- }
- },
- handleCheckChange: function handleCheckChange() {
- var panel = this.panel,
- value = this.value,
- node = this.node;
- panel.handleCheckChange(value);
- panel.handleExpand(node);
- },
- handleMultiCheckChange: function handleMultiCheckChange(checked) {
- this.node.doCheck(checked);
- this.panel.calculateMultiCheckedValue();
- },
- isInPath: function isInPath(pathNodes) {
- var node = this.node;
- var selectedPathNode = pathNodes[node.level - 1] || {};
- return selectedPathNode.uid === node.uid;
- },
- renderPrefix: function renderPrefix(h) {
- var isLeaf = this.isLeaf,
- isChecked = this.isChecked,
- config = this.config;
- var checkStrictly = config.checkStrictly,
- multiple = config.multiple;
- if (multiple) {
- return this.renderCheckbox(h);
- } else if (checkStrictly) {
- return this.renderRadio(h);
- } else if (isLeaf && isChecked) {
- return this.renderCheckIcon(h);
- }
- return null;
- },
- renderPostfix: function renderPostfix(h) {
- var node = this.node,
- isLeaf = this.isLeaf;
- if (node.loading) {
- return this.renderLoadingIcon(h);
- } else if (!isLeaf) {
- return this.renderExpandIcon(h);
- }
- return null;
- },
- renderCheckbox: function renderCheckbox(h) {
- var node = this.node,
- config = this.config,
- isDisabled = this.isDisabled;
- var events = {
- on: { change: this.handleMultiCheckChange },
- nativeOn: {}
- };
- if (config.checkStrictly) {
- // when every node is selectable, click event should not trigger expand event.
- events.nativeOn.click = stopPropagation;
- }
- return h('el-checkbox', external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- value: node.checked,
- indeterminate: node.indeterminate,
- disabled: isDisabled
- }
- }, events]));
- },
- renderRadio: function renderRadio(h) {
- var checkedValue = this.checkedValue,
- value = this.value,
- isDisabled = this.isDisabled;
- // to keep same reference if value cause radio's checked state is calculated by reference comparision;
- if (Object(util_["isEqual"])(value, checkedValue)) {
- value = checkedValue;
- }
- return h(
- 'el-radio',
- {
- attrs: {
- value: checkedValue,
- label: value,
- disabled: isDisabled
- },
- on: {
- 'change': this.handleCheckChange
- },
- nativeOn: {
- 'click': stopPropagation
- }
- },
- [h('span')]
- );
- },
- renderCheckIcon: function renderCheckIcon(h) {
- return h('i', { 'class': 'el-icon-check el-cascader-node__prefix' });
- },
- renderLoadingIcon: function renderLoadingIcon(h) {
- return h('i', { 'class': 'el-icon-loading el-cascader-node__postfix' });
- },
- renderExpandIcon: function renderExpandIcon(h) {
- return h('i', { 'class': 'el-icon-arrow-right el-cascader-node__postfix' });
- },
- renderContent: function renderContent(h) {
- var panel = this.panel,
- node = this.node;
- var render = panel.renderLabelFn;
- var vnode = render ? render({ node: node, data: node.data }) : null;
- return h(
- 'span',
- { 'class': 'el-cascader-node__label' },
- [vnode || node.label]
- );
- }
- },
- render: function render(h) {
- var _this3 = this;
- var inActivePath = this.inActivePath,
- inCheckedPath = this.inCheckedPath,
- isChecked = this.isChecked,
- isLeaf = this.isLeaf,
- isDisabled = this.isDisabled,
- config = this.config,
- nodeId = this.nodeId;
- var expandTrigger = config.expandTrigger,
- checkStrictly = config.checkStrictly,
- multiple = config.multiple;
- var disabled = !checkStrictly && isDisabled;
- var events = { on: {} };
- if (expandTrigger === 'click') {
- events.on.click = this.handleExpand;
- } else {
- events.on.mouseenter = function (e) {
- _this3.handleExpand();
- _this3.$emit('expand', e);
- };
- events.on.focus = function (e) {
- _this3.handleExpand();
- _this3.$emit('expand', e);
- };
- }
- if (isLeaf && !isDisabled && !checkStrictly && !multiple) {
- events.on.click = this.handleCheckChange;
- }
- return h(
- 'li',
- external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- role: 'menuitem',
- id: nodeId,
- 'aria-expanded': inActivePath,
- tabindex: disabled ? null : -1
- },
- 'class': {
- 'el-cascader-node': true,
- 'is-selectable': checkStrictly,
- 'in-active-path': inActivePath,
- 'in-checked-path': inCheckedPath,
- 'is-active': isChecked,
- 'is-disabled': disabled
- }
- }, events]),
- [this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_nodevue_type_script_lang_js_ = (cascader_nodevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue
- var cascader_node_render, cascader_node_staticRenderFns
- /* normalize component */
- var cascader_node_component = normalizeComponent(
- src_cascader_nodevue_type_script_lang_js_,
- cascader_node_render,
- cascader_node_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_node_api; }
- cascader_node_component.options.__file = "packages/cascader-panel/src/cascader-node.vue"
- /* harmony default export */ var cascader_node = (cascader_node_component.exports);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var cascader_menuvue_type_script_lang_js_ = ({
- name: 'ElCascaderMenu',
- mixins: [locale_default.a],
- inject: ['panel'],
- components: {
- ElScrollbar: scrollbar_default.a,
- CascaderNode: cascader_node
- },
- props: {
- nodes: {
- type: Array,
- required: true
- },
- index: Number
- },
- data: function data() {
- return {
- activeNode: null,
- hoverTimer: null,
- id: Object(util_["generateId"])()
- };
- },
- computed: {
- isEmpty: function isEmpty() {
- return !this.nodes.length;
- },
- menuId: function menuId() {
- return 'cascader-menu-' + this.id + '-' + this.index;
- }
- },
- methods: {
- handleExpand: function handleExpand(e) {
- this.activeNode = e.target;
- },
- handleMouseMove: function handleMouseMove(e) {
- var activeNode = this.activeNode,
- hoverTimer = this.hoverTimer;
- var hoverZone = this.$refs.hoverZone;
- if (!activeNode || !hoverZone) return;
- if (activeNode.contains(e.target)) {
- clearTimeout(hoverTimer);
- var _$el$getBoundingClien = this.$el.getBoundingClientRect(),
- left = _$el$getBoundingClien.left;
- var startX = e.clientX - left;
- var _$el = this.$el,
- offsetWidth = _$el.offsetWidth,
- offsetHeight = _$el.offsetHeight;
- var top = activeNode.offsetTop;
- var bottom = top + activeNode.offsetHeight;
- hoverZone.innerHTML = '\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + top + ' L' + offsetWidth + ' 0 V' + top + ' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + bottom + ' L' + offsetWidth + ' ' + offsetHeight + ' V' + bottom + ' Z" />\n ';
- } else if (!hoverTimer) {
- this.hoverTimer = setTimeout(this.clearHoverZone, this.panel.config.hoverThreshold);
- }
- },
- clearHoverZone: function clearHoverZone() {
- var hoverZone = this.$refs.hoverZone;
- if (!hoverZone) return;
- hoverZone.innerHTML = '';
- },
- renderEmptyText: function renderEmptyText(h) {
- return h(
- 'div',
- { 'class': 'el-cascader-menu__empty-text' },
- [this.t('el.cascader.noData')]
- );
- },
- renderNodeList: function renderNodeList(h) {
- var menuId = this.menuId;
- var isHoverMenu = this.panel.isHoverMenu;
- var events = { on: {} };
- if (isHoverMenu) {
- events.on.expand = this.handleExpand;
- }
- var nodes = this.nodes.map(function (node, index) {
- var hasChildren = node.hasChildren;
- return h('cascader-node', external_babel_helper_vue_jsx_merge_props_default()([{
- key: node.uid,
- attrs: { node: node,
- 'node-id': menuId + '-' + index,
- 'aria-haspopup': hasChildren,
- 'aria-owns': hasChildren ? menuId : null
- }
- }, events]));
- });
- return [].concat(nodes, [isHoverMenu ? h('svg', { ref: 'hoverZone', 'class': 'el-cascader-menu__hover-zone' }) : null]);
- }
- },
- render: function render(h) {
- var isEmpty = this.isEmpty,
- menuId = this.menuId;
- var events = { nativeOn: {} };
- // optimize hover to expand experience (#8010)
- if (this.panel.isHoverMenu) {
- events.nativeOn.mousemove = this.handleMouseMove;
- // events.nativeOn.mouseleave = this.clearHoverZone;
- }
- return h(
- 'el-scrollbar',
- external_babel_helper_vue_jsx_merge_props_default()([{
- attrs: {
- tag: 'ul',
- role: 'menu',
- id: menuId,
- 'wrap-class': 'el-cascader-menu__wrap',
- 'view-class': {
- 'el-cascader-menu__list': true,
- 'is-empty': isEmpty
- }
- },
- 'class': 'el-cascader-menu' }, events]),
- [isEmpty ? this.renderEmptyText(h) : this.renderNodeList(h)]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_menuvue_type_script_lang_js_ = (cascader_menuvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue
- var cascader_menu_render, cascader_menu_staticRenderFns
- /* normalize component */
- var cascader_menu_component = normalizeComponent(
- src_cascader_menuvue_type_script_lang_js_,
- cascader_menu_render,
- cascader_menu_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_menu_api; }
- cascader_menu_component.options.__file = "packages/cascader-panel/src/cascader-menu.vue"
- /* harmony default export */ var cascader_menu = (cascader_menu_component.exports);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/node.js
- var node_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- function src_node_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var uid = 0;
- var src_node_Node = function () {
- function Node(data, config, parentNode) {
- src_node_classCallCheck(this, Node);
- this.data = data;
- this.config = config;
- this.parent = parentNode || null;
- this.level = !this.parent ? 1 : this.parent.level + 1;
- this.uid = uid++;
- this.initState();
- this.initChildren();
- }
- Node.prototype.initState = function initState() {
- var _config = this.config,
- valueKey = _config.value,
- labelKey = _config.label;
- this.value = this.data[valueKey];
- this.label = this.data[labelKey];
- this.pathNodes = this.calculatePathNodes();
- this.path = this.pathNodes.map(function (node) {
- return node.value;
- });
- this.pathLabels = this.pathNodes.map(function (node) {
- return node.label;
- });
- // lazy load
- this.loading = false;
- this.loaded = false;
- };
- Node.prototype.initChildren = function initChildren() {
- var _this = this;
- var config = this.config;
- var childrenKey = config.children;
- var childrenData = this.data[childrenKey];
- this.hasChildren = Array.isArray(childrenData);
- this.children = (childrenData || []).map(function (child) {
- return new Node(child, config, _this);
- });
- };
- Node.prototype.calculatePathNodes = function calculatePathNodes() {
- var nodes = [this];
- var parent = this.parent;
- while (parent) {
- nodes.unshift(parent);
- parent = parent.parent;
- }
- return nodes;
- };
- Node.prototype.getPath = function getPath() {
- return this.path;
- };
- Node.prototype.getValue = function getValue() {
- return this.value;
- };
- Node.prototype.getValueByOption = function getValueByOption() {
- return this.config.emitPath ? this.getPath() : this.getValue();
- };
- Node.prototype.getText = function getText(allLevels, separator) {
- return allLevels ? this.pathLabels.join(separator) : this.label;
- };
- Node.prototype.isSameNode = function isSameNode(checkedValue) {
- var value = this.getValueByOption();
- return this.config.multiple && Array.isArray(checkedValue) ? checkedValue.some(function (val) {
- return Object(util_["isEqual"])(val, value);
- }) : Object(util_["isEqual"])(checkedValue, value);
- };
- Node.prototype.broadcast = function broadcast(event) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- var handlerName = 'onParent' + Object(util_["capitalize"])(event);
- this.children.forEach(function (child) {
- if (child) {
- // bottom up
- child.broadcast.apply(child, [event].concat(args));
- child[handlerName] && child[handlerName].apply(child, args);
- }
- });
- };
- Node.prototype.emit = function emit(event) {
- var parent = this.parent;
- var handlerName = 'onChild' + Object(util_["capitalize"])(event);
- if (parent) {
- for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
- parent[handlerName] && parent[handlerName].apply(parent, args);
- parent.emit.apply(parent, [event].concat(args));
- }
- };
- Node.prototype.onParentCheck = function onParentCheck(checked) {
- if (!this.isDisabled) {
- this.setCheckState(checked);
- }
- };
- Node.prototype.onChildCheck = function onChildCheck() {
- var children = this.children;
- var validChildren = children.filter(function (child) {
- return !child.isDisabled;
- });
- var checked = validChildren.length ? validChildren.every(function (child) {
- return child.checked;
- }) : false;
- this.setCheckState(checked);
- };
- Node.prototype.setCheckState = function setCheckState(checked) {
- var totalNum = this.children.length;
- var checkedNum = this.children.reduce(function (c, p) {
- var num = p.checked ? 1 : p.indeterminate ? 0.5 : 0;
- return c + num;
- }, 0);
- this.checked = checked;
- this.indeterminate = checkedNum !== totalNum && checkedNum > 0;
- };
- Node.prototype.syncCheckState = function syncCheckState(checkedValue) {
- var value = this.getValueByOption();
- var checked = this.isSameNode(checkedValue, value);
- this.doCheck(checked);
- };
- Node.prototype.doCheck = function doCheck(checked) {
- if (this.checked !== checked) {
- if (this.config.checkStrictly) {
- this.checked = checked;
- } else {
- // bottom up to unify the calculation of the indeterminate state
- this.broadcast('check', checked);
- this.setCheckState(checked);
- this.emit('check');
- }
- }
- };
- node_createClass(Node, [{
- key: 'isDisabled',
- get: function get() {
- var data = this.data,
- parent = this.parent,
- config = this.config;
- var disabledKey = config.disabled;
- var checkStrictly = config.checkStrictly;
- return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
- }
- }, {
- key: 'isLeaf',
- get: function get() {
- var data = this.data,
- loaded = this.loaded,
- hasChildren = this.hasChildren,
- children = this.children;
- var _config2 = this.config,
- lazy = _config2.lazy,
- leafKey = _config2.leaf;
- if (lazy) {
- var isLeaf = Object(shared_["isDef"])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
- this.hasChildren = !isLeaf;
- return isLeaf;
- }
- return !hasChildren;
- }
- }]);
- return Node;
- }();
- /* harmony default export */ var src_node = (src_node_Node);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/store.js
- function store_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var flatNodes = function flatNodes(data, leafOnly) {
- return data.reduce(function (res, node) {
- if (node.isLeaf) {
- res.push(node);
- } else {
- !leafOnly && res.push(node);
- res = res.concat(flatNodes(node.children, leafOnly));
- }
- return res;
- }, []);
- };
- var store_Store = function () {
- function Store(data, config) {
- store_classCallCheck(this, Store);
- this.config = config;
- this.initNodes(data);
- }
- Store.prototype.initNodes = function initNodes(data) {
- var _this = this;
- data = Object(util_["coerceTruthyValueToArray"])(data);
- this.nodes = data.map(function (nodeData) {
- return new src_node(nodeData, _this.config);
- });
- this.flattedNodes = this.getFlattedNodes(false, false);
- this.leafNodes = this.getFlattedNodes(true, false);
- };
- Store.prototype.appendNode = function appendNode(nodeData, parentNode) {
- var node = new src_node(nodeData, this.config, parentNode);
- var children = parentNode ? parentNode.children : this.nodes;
- children.push(node);
- };
- Store.prototype.appendNodes = function appendNodes(nodeDataList, parentNode) {
- var _this2 = this;
- nodeDataList = Object(util_["coerceTruthyValueToArray"])(nodeDataList);
- nodeDataList.forEach(function (nodeData) {
- return _this2.appendNode(nodeData, parentNode);
- });
- };
- Store.prototype.getNodes = function getNodes() {
- return this.nodes;
- };
- Store.prototype.getFlattedNodes = function getFlattedNodes(leafOnly) {
- var cached = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var cachedNodes = leafOnly ? this.leafNodes : this.flattedNodes;
- return cached ? cachedNodes : flatNodes(this.nodes, leafOnly);
- };
- Store.prototype.getNodeByValue = function getNodeByValue(value) {
- if (value) {
- var nodes = this.getFlattedNodes(false, !this.config.lazy).filter(function (node) {
- return Object(util_["valueEquals"])(node.path, value) || node.value === value;
- });
- return nodes && nodes.length ? nodes[0] : null;
- }
- return null;
- };
- return Store;
- }();
- /* harmony default export */ var cascader_panel_src_store = (store_Store);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
- var cascader_panelvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var cascader_panelvue_type_script_lang_js_KeyCode = aria_utils_default.a.keys;
- var DefaultProps = {
- expandTrigger: 'click', // or hover
- multiple: false,
- checkStrictly: false, // whether all nodes can be selected
- emitPath: true, // wether to emit an array of all levels value in which node is located
- lazy: false,
- lazyLoad: util_["noop"],
- value: 'value',
- label: 'label',
- children: 'children',
- leaf: 'leaf',
- disabled: 'disabled',
- hoverThreshold: 500
- };
- var cascader_panelvue_type_script_lang_js_isLeaf = function isLeaf(el) {
- return !el.getAttribute('aria-owns');
- };
- var getSibling = function getSibling(el, distance) {
- var parentNode = el.parentNode;
- if (parentNode) {
- var siblings = parentNode.querySelectorAll('.el-cascader-node[tabindex="-1"]');
- var index = Array.prototype.indexOf.call(siblings, el);
- return siblings[index + distance] || null;
- }
- return null;
- };
- var getMenuIndex = function getMenuIndex(el, distance) {
- if (!el) return;
- var pieces = el.id.split('-');
- return Number(pieces[pieces.length - 2]);
- };
- var focusNode = function focusNode(el) {
- if (!el) return;
- el.focus();
- !cascader_panelvue_type_script_lang_js_isLeaf(el) && el.click();
- };
- var checkNode = function checkNode(el) {
- if (!el) return;
- var input = el.querySelector('input');
- if (input) {
- input.click();
- } else if (cascader_panelvue_type_script_lang_js_isLeaf(el)) {
- el.click();
- }
- };
- /* harmony default export */ var cascader_panelvue_type_script_lang_js_ = ({
- name: 'ElCascaderPanel',
- components: {
- CascaderMenu: cascader_menu
- },
- props: {
- value: {},
- options: Array,
- props: Object,
- border: {
- type: Boolean,
- default: true
- },
- renderLabel: Function
- },
- provide: function provide() {
- return {
- panel: this
- };
- },
- data: function data() {
- return {
- checkedValue: null,
- checkedNodePaths: [],
- store: [],
- menus: [],
- activePath: [],
- loadCount: 0
- };
- },
- computed: {
- config: function config() {
- return merge_default()(cascader_panelvue_type_script_lang_js_extends({}, DefaultProps), this.props || {});
- },
- multiple: function multiple() {
- return this.config.multiple;
- },
- checkStrictly: function checkStrictly() {
- return this.config.checkStrictly;
- },
- leafOnly: function leafOnly() {
- return !this.checkStrictly;
- },
- isHoverMenu: function isHoverMenu() {
- return this.config.expandTrigger === 'hover';
- },
- renderLabelFn: function renderLabelFn() {
- return this.renderLabel || this.$scopedSlots.default;
- }
- },
- watch: {
- options: {
- handler: function handler() {
- this.initStore();
- },
- immediate: true,
- deep: true
- },
- value: function value() {
- this.syncCheckedValue();
- this.checkStrictly && this.calculateCheckedNodePaths();
- },
- checkedValue: function checkedValue(val) {
- if (!Object(util_["isEqual"])(val, this.value)) {
- this.checkStrictly && this.calculateCheckedNodePaths();
- this.$emit('input', val);
- this.$emit('change', val);
- }
- }
- },
- mounted: function mounted() {
- if (!Object(util_["isEmpty"])(this.value)) {
- this.syncCheckedValue();
- }
- },
- methods: {
- initStore: function initStore() {
- var config = this.config,
- options = this.options;
- if (config.lazy && Object(util_["isEmpty"])(options)) {
- this.lazyLoad();
- } else {
- this.store = new cascader_panel_src_store(options, config);
- this.menus = [this.store.getNodes()];
- this.syncMenuState();
- }
- },
- syncCheckedValue: function syncCheckedValue() {
- var value = this.value,
- checkedValue = this.checkedValue;
- if (!Object(util_["isEqual"])(value, checkedValue)) {
- this.checkedValue = value;
- this.syncMenuState();
- }
- },
- syncMenuState: function syncMenuState() {
- var multiple = this.multiple,
- checkStrictly = this.checkStrictly;
- this.syncActivePath();
- multiple && this.syncMultiCheckState();
- checkStrictly && this.calculateCheckedNodePaths();
- this.$nextTick(this.scrollIntoView);
- },
- syncMultiCheckState: function syncMultiCheckState() {
- var _this = this;
- var nodes = this.getFlattedNodes(this.leafOnly);
- nodes.forEach(function (node) {
- node.syncCheckState(_this.checkedValue);
- });
- },
- syncActivePath: function syncActivePath() {
- var _this2 = this;
- var store = this.store,
- multiple = this.multiple,
- activePath = this.activePath,
- checkedValue = this.checkedValue;
- if (!Object(util_["isEmpty"])(activePath)) {
- var nodes = activePath.map(function (node) {
- return _this2.getNodeByValue(node.getValue());
- });
- this.expandNodes(nodes);
- } else if (!Object(util_["isEmpty"])(checkedValue)) {
- var value = multiple ? checkedValue[0] : checkedValue;
- var checkedNode = this.getNodeByValue(value) || {};
- var _nodes = (checkedNode.pathNodes || []).slice(0, -1);
- this.expandNodes(_nodes);
- } else {
- this.activePath = [];
- this.menus = [store.getNodes()];
- }
- },
- expandNodes: function expandNodes(nodes) {
- var _this3 = this;
- nodes.forEach(function (node) {
- return _this3.handleExpand(node, true /* silent */);
- });
- },
- calculateCheckedNodePaths: function calculateCheckedNodePaths() {
- var _this4 = this;
- var checkedValue = this.checkedValue,
- multiple = this.multiple;
- var checkedValues = multiple ? Object(util_["coerceTruthyValueToArray"])(checkedValue) : [checkedValue];
- this.checkedNodePaths = checkedValues.map(function (v) {
- var checkedNode = _this4.getNodeByValue(v);
- return checkedNode ? checkedNode.pathNodes : [];
- });
- },
- handleKeyDown: function handleKeyDown(e) {
- var target = e.target,
- keyCode = e.keyCode;
- switch (keyCode) {
- case cascader_panelvue_type_script_lang_js_KeyCode.up:
- var prev = getSibling(target, -1);
- focusNode(prev);
- break;
- case cascader_panelvue_type_script_lang_js_KeyCode.down:
- var next = getSibling(target, 1);
- focusNode(next);
- break;
- case cascader_panelvue_type_script_lang_js_KeyCode.left:
- var preMenu = this.$refs.menu[getMenuIndex(target) - 1];
- if (preMenu) {
- var expandedNode = preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
- focusNode(expandedNode);
- }
- break;
- case cascader_panelvue_type_script_lang_js_KeyCode.right:
- var nextMenu = this.$refs.menu[getMenuIndex(target) + 1];
- if (nextMenu) {
- var firstNode = nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
- focusNode(firstNode);
- }
- break;
- case cascader_panelvue_type_script_lang_js_KeyCode.enter:
- checkNode(target);
- break;
- case cascader_panelvue_type_script_lang_js_KeyCode.esc:
- case cascader_panelvue_type_script_lang_js_KeyCode.tab:
- this.$emit('close');
- break;
- default:
- return;
- }
- },
- handleExpand: function handleExpand(node, silent) {
- var activePath = this.activePath;
- var level = node.level;
- var path = activePath.slice(0, level - 1);
- var menus = this.menus.slice(0, level);
- if (!node.isLeaf) {
- path.push(node);
- menus.push(node.children);
- }
- this.activePath = path;
- this.menus = menus;
- if (!silent) {
- var pathValues = path.map(function (node) {
- return node.getValue();
- });
- var activePathValues = activePath.map(function (node) {
- return node.getValue();
- });
- if (!Object(util_["valueEquals"])(pathValues, activePathValues)) {
- this.$emit('active-item-change', pathValues); // Deprecated
- this.$emit('expand-change', pathValues);
- }
- }
- },
- handleCheckChange: function handleCheckChange(value) {
- this.checkedValue = value;
- },
- lazyLoad: function lazyLoad(node, onFullfiled) {
- var _this5 = this;
- var config = this.config;
- if (!node) {
- node = node || { root: true, level: 0 };
- this.store = new cascader_panel_src_store([], config);
- this.menus = [this.store.getNodes()];
- }
- node.loading = true;
- var resolve = function resolve(dataList) {
- var parent = node.root ? null : node;
- dataList && dataList.length && _this5.store.appendNodes(dataList, parent);
- node.loading = false;
- node.loaded = true;
- // dispose default value on lazy load mode
- if (Array.isArray(_this5.checkedValue)) {
- var nodeValue = _this5.checkedValue[_this5.loadCount++];
- var valueKey = _this5.config.value;
- var leafKey = _this5.config.leaf;
- if (Array.isArray(dataList) && dataList.filter(function (item) {
- return item[valueKey] === nodeValue;
- }).length > 0) {
- var checkedNode = _this5.store.getNodeByValue(nodeValue);
- if (!checkedNode.data[leafKey]) {
- _this5.lazyLoad(checkedNode, function () {
- _this5.handleExpand(checkedNode);
- });
- }
- if (_this5.loadCount === _this5.checkedValue.length) {
- _this5.$parent.computePresentText();
- }
- }
- }
- onFullfiled && onFullfiled(dataList);
- };
- config.lazyLoad(node, resolve);
- },
- /**
- * public methods
- */
- calculateMultiCheckedValue: function calculateMultiCheckedValue() {
- this.checkedValue = this.getCheckedNodes(this.leafOnly).map(function (node) {
- return node.getValueByOption();
- });
- },
- scrollIntoView: function scrollIntoView() {
- if (this.$isServer) return;
- var menus = this.$refs.menu || [];
- menus.forEach(function (menu) {
- var menuElement = menu.$el;
- if (menuElement) {
- var container = menuElement.querySelector('.el-scrollbar__wrap');
- var activeNode = menuElement.querySelector('.el-cascader-node.is-active') || menuElement.querySelector('.el-cascader-node.in-active-path');
- scroll_into_view_default()(container, activeNode);
- }
- });
- },
- getNodeByValue: function getNodeByValue(val) {
- return this.store.getNodeByValue(val);
- },
- getFlattedNodes: function getFlattedNodes(leafOnly) {
- var cached = !this.config.lazy;
- return this.store.getFlattedNodes(leafOnly, cached);
- },
- getCheckedNodes: function getCheckedNodes(leafOnly) {
- var checkedValue = this.checkedValue,
- multiple = this.multiple;
- if (multiple) {
- var nodes = this.getFlattedNodes(leafOnly);
- return nodes.filter(function (node) {
- return node.checked;
- });
- } else {
- return Object(util_["isEmpty"])(checkedValue) ? [] : [this.getNodeByValue(checkedValue)];
- }
- },
- clearCheckedNodes: function clearCheckedNodes() {
- var config = this.config,
- leafOnly = this.leafOnly;
- var multiple = config.multiple,
- emitPath = config.emitPath;
- if (multiple) {
- this.getCheckedNodes(leafOnly).filter(function (node) {
- return !node.isDisabled;
- }).forEach(function (node) {
- return node.doCheck(false);
- });
- this.calculateMultiCheckedValue();
- } else {
- this.checkedValue = emitPath ? [] : null;
- }
- }
- }
- });
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_cascader_panelvue_type_script_lang_js_ = (cascader_panelvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue
- /* normalize component */
- var cascader_panel_component = normalizeComponent(
- src_cascader_panelvue_type_script_lang_js_,
- cascader_panelvue_type_template_id_34932346_render,
- cascader_panelvue_type_template_id_34932346_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var cascader_panel_api; }
- cascader_panel_component.options.__file = "packages/cascader-panel/src/cascader-panel.vue"
- /* harmony default export */ var cascader_panel = (cascader_panel_component.exports);
- // CONCATENATED MODULE: ./packages/cascader-panel/index.js
- /* istanbul ignore next */
- cascader_panel.install = function (Vue) {
- Vue.component(cascader_panel.name, cascader_panel);
- };
- /* harmony default export */ var packages_cascader_panel = (cascader_panel);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/avatar/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var avatar_src_mainvue_type_script_lang_js_ = ({
- name: 'ElAvatar',
- props: {
- size: {
- type: [Number, String],
- validator: function validator(val) {
- if (typeof val === 'string') {
- return ['large', 'medium', 'small'].includes(val);
- }
- return typeof val === 'number';
- }
- },
- shape: {
- type: String,
- default: 'circle',
- validator: function validator(val) {
- return ['circle', 'square'].includes(val);
- }
- },
- icon: String,
- src: String,
- alt: String,
- srcSet: String,
- error: Function,
- fit: {
- type: String,
- default: 'cover'
- }
- },
- data: function data() {
- return {
- isImageExist: true
- };
- },
- computed: {
- avatarClass: function avatarClass() {
- var size = this.size,
- icon = this.icon,
- shape = this.shape;
- var classList = ['el-avatar'];
- if (size && typeof size === 'string') {
- classList.push('el-avatar--' + size);
- }
- if (icon) {
- classList.push('el-avatar--icon');
- }
- if (shape) {
- classList.push('el-avatar--' + shape);
- }
- return classList.join(' ');
- }
- },
- methods: {
- handleError: function handleError() {
- var error = this.error;
- var errorFlag = error ? error() : undefined;
- if (errorFlag !== false) {
- this.isImageExist = false;
- }
- },
- renderAvatar: function renderAvatar() {
- var h = this.$createElement;
- var icon = this.icon,
- src = this.src,
- alt = this.alt,
- isImageExist = this.isImageExist,
- srcSet = this.srcSet,
- fit = this.fit;
- if (isImageExist && src) {
- return h('img', {
- attrs: {
- src: src,
- alt: alt,
- srcSet: srcSet
- },
- on: {
- 'error': this.handleError
- },
- style: { 'object-fit': fit } });
- }
- if (icon) {
- return h('i', { 'class': icon });
- }
- return this.$slots.default;
- }
- },
- render: function render() {
- var h = arguments[0];
- var avatarClass = this.avatarClass,
- size = this.size;
- var sizeStyle = typeof size === 'number' ? {
- height: size + 'px',
- width: size + 'px',
- lineHeight: size + 'px'
- } : {};
- return h(
- 'span',
- { 'class': avatarClass, style: sizeStyle },
- [this.renderAvatar()]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/avatar/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_avatar_src_mainvue_type_script_lang_js_ = (avatar_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/avatar/src/main.vue
- var src_main_render, src_main_staticRenderFns
- /* normalize component */
- var avatar_src_main_component = normalizeComponent(
- packages_avatar_src_mainvue_type_script_lang_js_,
- src_main_render,
- src_main_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var avatar_src_main_api; }
- avatar_src_main_component.options.__file = "packages/avatar/src/main.vue"
- /* harmony default export */ var avatar_src_main = (avatar_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/avatar/index.js
- /* istanbul ignore next */
- avatar_src_main.install = function (Vue) {
- Vue.component(avatar_src_main.name, avatar_src_main);
- };
- /* harmony default export */ var avatar = (avatar_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/drawer/src/main.vue?vue&type=template&id=a4885264&
- var mainvue_type_template_id_a4885264_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "transition",
- {
- attrs: { name: "el-drawer-fade" },
- on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-drawer__wrapper",
- attrs: { tabindex: "-1" }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-drawer__container",
- class: _vm.visible && "el-drawer__open",
- attrs: { role: "document", tabindex: "-1" },
- on: {
- click: function($event) {
- if ($event.target !== $event.currentTarget) {
- return null
- }
- return _vm.handleWrapperClick($event)
- }
- }
- },
- [
- _c(
- "div",
- {
- ref: "drawer",
- staticClass: "el-drawer",
- class: [_vm.direction, _vm.customClass],
- style: _vm.isHorizontal
- ? "width: " + _vm.size
- : "height: " + _vm.size,
- attrs: {
- "aria-modal": "true",
- "aria-labelledby": "el-drawer__title",
- "aria-label": _vm.title,
- role: "dialog",
- tabindex: "-1"
- }
- },
- [
- _vm.withHeader
- ? _c(
- "header",
- {
- staticClass: "el-drawer__header",
- attrs: { id: "el-drawer__title" }
- },
- [
- _vm._t("title", [
- _c(
- "span",
- {
- attrs: {
- role: "heading",
- tabindex: "0",
- title: _vm.title
- }
- },
- [_vm._v(_vm._s(_vm.title))]
- )
- ]),
- _vm.showClose
- ? _c(
- "button",
- {
- staticClass: "el-drawer__close-btn",
- attrs: {
- "aria-label":
- "close " + (_vm.title || "drawer"),
- type: "button"
- },
- on: { click: _vm.closeDrawer }
- },
- [
- _c("i", {
- staticClass:
- "el-dialog__close el-icon el-icon-close"
- })
- ]
- )
- : _vm._e()
- ],
- 2
- )
- : _vm._e(),
- _vm.rendered
- ? _c(
- "section",
- { staticClass: "el-drawer__body" },
- [_vm._t("default")],
- 2
- )
- : _vm._e()
- ]
- )
- ]
- )
- ]
- )
- ]
- )
- }
- var mainvue_type_template_id_a4885264_staticRenderFns = []
- mainvue_type_template_id_a4885264_render._withStripped = true
- // CONCATENATED MODULE: ./packages/drawer/src/main.vue?vue&type=template&id=a4885264&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/drawer/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var drawer_src_mainvue_type_script_lang_js_ = ({
- name: 'ElDrawer',
- mixins: [popup_default.a, emitter_default.a],
- props: {
- appendToBody: {
- type: Boolean,
- default: false
- },
- beforeClose: {
- type: Function
- },
- customClass: {
- type: String,
- default: ''
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- destroyOnClose: {
- type: Boolean,
- default: false
- },
- modal: {
- type: Boolean,
- default: true
- },
- direction: {
- type: String,
- default: 'rtl',
- validator: function validator(val) {
- return ['ltr', 'rtl', 'ttb', 'btt'].indexOf(val) !== -1;
- }
- },
- modalAppendToBody: {
- type: Boolean,
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- size: {
- type: String,
- default: '30%'
- },
- title: {
- type: String,
- default: ''
- },
- visible: {
- type: Boolean
- },
- wrapperClosable: {
- type: Boolean,
- default: true
- },
- withHeader: {
- type: Boolean,
- default: true
- }
- },
- computed: {
- isHorizontal: function isHorizontal() {
- return this.direction === 'rtl' || this.direction === 'ltr';
- }
- },
- data: function data() {
- return {
- closed: false,
- prevActiveElement: null
- };
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.closed = false;
- this.$emit('open');
- if (this.appendToBody) {
- document.body.appendChild(this.$el);
- }
- this.prevActiveElement = document.activeElement;
- this.$nextTick(function () {
- aria_utils_default.a.focusFirstDescendant(_this.$refs.drawer);
- });
- } else {
- if (!this.closed) this.$emit('close');
- this.$nextTick(function () {
- if (_this.prevActiveElement) {
- _this.prevActiveElement.focus();
- }
- });
- }
- }
- },
- methods: {
- afterEnter: function afterEnter() {
- this.$emit('opened');
- },
- afterLeave: function afterLeave() {
- this.$emit('closed');
- },
- hide: function hide(cancel) {
- if (cancel !== false) {
- this.$emit('update:visible', false);
- this.$emit('close');
- if (this.destroyOnClose === true) {
- this.rendered = false;
- }
- this.closed = true;
- }
- },
- handleWrapperClick: function handleWrapperClick() {
- if (this.wrapperClosable) {
- this.closeDrawer();
- }
- },
- closeDrawer: function closeDrawer() {
- if (typeof this.beforeClose === 'function') {
- this.beforeClose(this.hide);
- } else {
- this.hide();
- }
- },
- handleClose: function handleClose() {
- // This method here will be called by PopupManger, when the `closeOnPressEscape` was set to true
- // pressing `ESC` will call this method, and also close the drawer.
- // This method also calls `beforeClose` if there was one.
- this.closeDrawer();
- }
- },
- mounted: function mounted() {
- if (this.visible) {
- this.rendered = true;
- this.open();
- }
- },
- destroyed: function destroyed() {
- // if appendToBody is true, remove DOM node after destroy
- if (this.appendToBody && this.$el && this.$el.parentNode) {
- this.$el.parentNode.removeChild(this.$el);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/drawer/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_drawer_src_mainvue_type_script_lang_js_ = (drawer_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/drawer/src/main.vue
- /* normalize component */
- var drawer_src_main_component = normalizeComponent(
- packages_drawer_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_a4885264_render,
- mainvue_type_template_id_a4885264_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var drawer_src_main_api; }
- drawer_src_main_component.options.__file = "packages/drawer/src/main.vue"
- /* harmony default export */ var drawer_src_main = (drawer_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/drawer/index.js
- /* istanbul ignore next */
- drawer_src_main.install = function (Vue) {
- Vue.component(drawer_src_main.name, drawer_src_main);
- };
- /* harmony default export */ var drawer = (drawer_src_main);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=template&id=048de730&
- var mainvue_type_template_id_048de730_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "el-popover",
- _vm._b(
- {
- attrs: { trigger: "click" },
- model: {
- value: _vm.visible,
- callback: function($$v) {
- _vm.visible = $$v
- },
- expression: "visible"
- }
- },
- "el-popover",
- _vm.$attrs,
- false
- ),
- [
- _c("div", { staticClass: "el-popconfirm" }, [
- _c("p", { staticClass: "el-popconfirm__main" }, [
- !_vm.hideIcon
- ? _c("i", {
- staticClass: "el-popconfirm__icon",
- class: _vm.icon,
- style: { color: _vm.iconColor }
- })
- : _vm._e(),
- _vm._v("\n " + _vm._s(_vm.title) + "\n ")
- ]),
- _c(
- "div",
- { staticClass: "el-popconfirm__action" },
- [
- _c(
- "el-button",
- {
- attrs: { size: "mini", type: _vm.cancelButtonType },
- on: { click: _vm.cancel }
- },
- [_vm._v("\n " + _vm._s(_vm.cancelButtonText) + "\n ")]
- ),
- _c(
- "el-button",
- {
- attrs: { size: "mini", type: _vm.confirmButtonType },
- on: { click: _vm.confirm }
- },
- [
- _vm._v(
- "\n " + _vm._s(_vm.confirmButtonText) + "\n "
- )
- ]
- )
- ],
- 1
- )
- ]),
- _vm._t("reference", null, { slot: "reference" })
- ],
- 2
- )
- }
- var mainvue_type_template_id_048de730_staticRenderFns = []
- mainvue_type_template_id_048de730_render._withStripped = true
- // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=048de730&
- // EXTERNAL MODULE: external "element-ui/lib/popover"
- var popover_ = __webpack_require__(44);
- var popover_default = /*#__PURE__*/__webpack_require__.n(popover_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var popconfirm_src_mainvue_type_script_lang_js_ = ({
- name: 'ElPopconfirm',
- props: {
- title: {
- type: String
- },
- confirmButtonText: {
- type: String,
- default: Object(lib_locale_["t"])('el.popconfirm.confirmButtonText')
- },
- cancelButtonText: {
- type: String,
- default: Object(lib_locale_["t"])('el.popconfirm.cancelButtonText')
- },
- confirmButtonType: {
- type: String,
- default: 'primary'
- },
- cancelButtonType: {
- type: String,
- default: 'text'
- },
- icon: {
- type: String,
- default: 'el-icon-question'
- },
- iconColor: {
- type: String,
- default: '#f90'
- },
- hideIcon: {
- type: Boolean,
- default: false
- }
- },
- components: {
- ElPopover: popover_default.a,
- ElButton: button_default.a
- },
- data: function data() {
- return {
- visible: false
- };
- },
- methods: {
- confirm: function confirm() {
- this.visible = false;
- this.$emit('onConfirm');
- },
- cancel: function cancel() {
- this.visible = false;
- this.$emit('onCancel');
- }
- }
- });
- // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var packages_popconfirm_src_mainvue_type_script_lang_js_ = (popconfirm_src_mainvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue
- /* normalize component */
- var popconfirm_src_main_component = normalizeComponent(
- packages_popconfirm_src_mainvue_type_script_lang_js_,
- mainvue_type_template_id_048de730_render,
- mainvue_type_template_id_048de730_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var popconfirm_src_main_api; }
- popconfirm_src_main_component.options.__file = "packages/popconfirm/src/main.vue"
- /* harmony default export */ var popconfirm_src_main = (popconfirm_src_main_component.exports);
- // CONCATENATED MODULE: ./packages/popconfirm/index.js
- /* istanbul ignore next */
- popconfirm_src_main.install = function (Vue) {
- Vue.component(popconfirm_src_main.name, popconfirm_src_main);
- };
- /* harmony default export */ var popconfirm = (popconfirm_src_main);
- // CONCATENATED MODULE: ./src/index.js
- /* Automatically generated by './build/bin/build-entry.js' */
- var components = [packages_pagination, dialog, packages_autocomplete, packages_dropdown, packages_dropdown_menu, packages_dropdown_item, packages_menu, packages_submenu, packages_menu_item, packages_menu_item_group, packages_input, packages_input_number, packages_radio, packages_radio_group, packages_radio_button, packages_checkbox, packages_checkbox_button, packages_checkbox_group, packages_switch, packages_select, packages_option, packages_option_group, packages_button, packages_button_group, packages_table, packages_table_column, packages_date_picker, packages_time_select, packages_time_picker, popover, packages_tooltip, packages_breadcrumb, packages_breadcrumb_item, packages_form, packages_form_item, packages_tabs, packages_tab_pane, packages_tag, packages_tree, packages_alert, slider, packages_icon, packages_row, packages_col, packages_upload, packages_progress, packages_spinner, badge, card, rate, packages_steps, packages_step, carousel, scrollbar, carousel_item, packages_collapse, packages_collapse_item, packages_cascader, color_picker, transfer, packages_container, header, aside, packages_main, footer, timeline, timeline_item, packages_link, divider, packages_image, calendar, backtop, page_header, packages_cascader_panel, avatar, drawer, popconfirm, collapse_transition_default.a];
- var src_install = function install(Vue) {
- var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- lib_locale_default.a.use(opts.locale);
- lib_locale_default.a.i18n(opts.i18n);
- components.forEach(function (component) {
- Vue.component(component.name, component);
- });
- Vue.use(infinite_scroll);
- Vue.use(packages_loading.directive);
- Vue.prototype.$ELEMENT = {
- size: opts.size || '',
- zIndex: opts.zIndex || 2000
- };
- Vue.prototype.$loading = packages_loading.service;
- Vue.prototype.$msgbox = message_box;
- Vue.prototype.$alert = message_box.alert;
- Vue.prototype.$confirm = message_box.confirm;
- Vue.prototype.$prompt = message_box.prompt;
- Vue.prototype.$notify = notification;
- Vue.prototype.$message = packages_message;
- };
- /* istanbul ignore if */
- if (typeof window !== 'undefined' && window.Vue) {
- src_install(window.Vue);
- }
- /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
- version: '2.13.2',
- locale: lib_locale_default.a.use,
- i18n: lib_locale_default.a.i18n,
- install: src_install,
- CollapseTransition: collapse_transition_default.a,
- Loading: packages_loading,
- Pagination: packages_pagination,
- Dialog: dialog,
- Autocomplete: packages_autocomplete,
- Dropdown: packages_dropdown,
- DropdownMenu: packages_dropdown_menu,
- DropdownItem: packages_dropdown_item,
- Menu: packages_menu,
- Submenu: packages_submenu,
- MenuItem: packages_menu_item,
- MenuItemGroup: packages_menu_item_group,
- Input: packages_input,
- InputNumber: packages_input_number,
- Radio: packages_radio,
- RadioGroup: packages_radio_group,
- RadioButton: packages_radio_button,
- Checkbox: packages_checkbox,
- CheckboxButton: packages_checkbox_button,
- CheckboxGroup: packages_checkbox_group,
- Switch: packages_switch,
- Select: packages_select,
- Option: packages_option,
- OptionGroup: packages_option_group,
- Button: packages_button,
- ButtonGroup: packages_button_group,
- Table: packages_table,
- TableColumn: packages_table_column,
- DatePicker: packages_date_picker,
- TimeSelect: packages_time_select,
- TimePicker: packages_time_picker,
- Popover: popover,
- Tooltip: packages_tooltip,
- MessageBox: message_box,
- Breadcrumb: packages_breadcrumb,
- BreadcrumbItem: packages_breadcrumb_item,
- Form: packages_form,
- FormItem: packages_form_item,
- Tabs: packages_tabs,
- TabPane: packages_tab_pane,
- Tag: packages_tag,
- Tree: packages_tree,
- Alert: packages_alert,
- Notification: notification,
- Slider: slider,
- Icon: packages_icon,
- Row: packages_row,
- Col: packages_col,
- Upload: packages_upload,
- Progress: packages_progress,
- Spinner: packages_spinner,
- Message: packages_message,
- Badge: badge,
- Card: card,
- Rate: rate,
- Steps: packages_steps,
- Step: packages_step,
- Carousel: carousel,
- Scrollbar: scrollbar,
- CarouselItem: carousel_item,
- Collapse: packages_collapse,
- CollapseItem: packages_collapse_item,
- Cascader: packages_cascader,
- ColorPicker: color_picker,
- Transfer: transfer,
- Container: packages_container,
- Header: header,
- Aside: aside,
- Main: packages_main,
- Footer: footer,
- Timeline: timeline,
- TimelineItem: timeline_item,
- Link: packages_link,
- Divider: divider,
- Image: packages_image,
- Calendar: calendar,
- Backtop: backtop,
- InfiniteScroll: infinite_scroll,
- PageHeader: page_header,
- CascaderPanel: packages_cascader_panel,
- Avatar: avatar,
- Drawer: drawer,
- Popconfirm: popconfirm
- });
- /***/ })
- /******/ ])["default"];
- /***/ }),
- /***/ "./node_modules/element-ui/lib/input-number.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/input-number.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 114);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 10:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/input */ "./node_modules/element-ui/lib/input.js");
- /***/ }),
- /***/ 114:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: [
- "el-input-number",
- _vm.inputNumberSize ? "el-input-number--" + _vm.inputNumberSize : "",
- { "is-disabled": _vm.inputNumberDisabled },
- { "is-without-controls": !_vm.controls },
- { "is-controls-right": _vm.controlsAtRight }
- ],
- on: {
- dragstart: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _vm.controls
- ? _c(
- "span",
- {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.decrease,
- expression: "decrease"
- }
- ],
- staticClass: "el-input-number__decrease",
- class: { "is-disabled": _vm.minDisabled },
- attrs: { role: "button" },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.decrease($event)
- }
- }
- },
- [
- _c("i", {
- class:
- "el-icon-" + (_vm.controlsAtRight ? "arrow-down" : "minus")
- })
- ]
- )
- : _vm._e(),
- _vm.controls
- ? _c(
- "span",
- {
- directives: [
- {
- name: "repeat-click",
- rawName: "v-repeat-click",
- value: _vm.increase,
- expression: "increase"
- }
- ],
- staticClass: "el-input-number__increase",
- class: { "is-disabled": _vm.maxDisabled },
- attrs: { role: "button" },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- return _vm.increase($event)
- }
- }
- },
- [
- _c("i", {
- class: "el-icon-" + (_vm.controlsAtRight ? "arrow-up" : "plus")
- })
- ]
- )
- : _vm._e(),
- _c("el-input", {
- ref: "input",
- attrs: {
- value: _vm.displayValue,
- placeholder: _vm.placeholder,
- disabled: _vm.inputNumberDisabled,
- size: _vm.inputNumberSize,
- max: _vm.max,
- min: _vm.min,
- name: _vm.name,
- label: _vm.label
- },
- on: {
- blur: _vm.handleBlur,
- focus: _vm.handleFocus,
- input: _vm.handleInput,
- change: _vm.handleInputChange
- },
- nativeOn: {
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.increase($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.decrease($event)
- }
- ]
- }
- })
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
- // EXTERNAL MODULE: external "element-ui/lib/input"
- var input_ = __webpack_require__(10);
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
- var focus_ = __webpack_require__(22);
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
- // EXTERNAL MODULE: ./src/directives/repeat-click.js
- var repeat_click = __webpack_require__(30);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var input_numbervue_type_script_lang_js_ = ({
- name: 'ElInputNumber',
- mixins: [focus_default()('input')],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- directives: {
- repeatClick: repeat_click["a" /* default */]
- },
- components: {
- ElInput: input_default.a
- },
- props: {
- step: {
- type: Number,
- default: 1
- },
- stepStrictly: {
- type: Boolean,
- default: false
- },
- max: {
- type: Number,
- default: Infinity
- },
- min: {
- type: Number,
- default: -Infinity
- },
- value: {},
- disabled: Boolean,
- size: String,
- controls: {
- type: Boolean,
- default: true
- },
- controlsPosition: {
- type: String,
- default: ''
- },
- name: String,
- label: String,
- placeholder: String,
- precision: {
- type: Number,
- validator: function validator(val) {
- return val >= 0 && val === parseInt(val, 10);
- }
- }
- },
- data: function data() {
- return {
- currentValue: 0,
- userInput: null
- };
- },
- watch: {
- value: {
- immediate: true,
- handler: function handler(value) {
- var newVal = value === undefined ? value : Number(value);
- if (newVal !== undefined) {
- if (isNaN(newVal)) {
- return;
- }
- if (this.stepStrictly) {
- var stepPrecision = this.getPrecision(this.step);
- var precisionFactor = Math.pow(10, stepPrecision);
- newVal = Math.round(newVal / this.step) * precisionFactor * this.step / precisionFactor;
- }
- if (this.precision !== undefined) {
- newVal = this.toPrecision(newVal, this.precision);
- }
- }
- if (newVal >= this.max) newVal = this.max;
- if (newVal <= this.min) newVal = this.min;
- this.currentValue = newVal;
- this.userInput = null;
- this.$emit('input', newVal);
- }
- }
- },
- computed: {
- minDisabled: function minDisabled() {
- return this._decrease(this.value, this.step) < this.min;
- },
- maxDisabled: function maxDisabled() {
- return this._increase(this.value, this.step) > this.max;
- },
- numPrecision: function numPrecision() {
- var value = this.value,
- step = this.step,
- getPrecision = this.getPrecision,
- precision = this.precision;
- var stepPrecision = getPrecision(step);
- if (precision !== undefined) {
- if (stepPrecision > precision) {
- console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');
- }
- return precision;
- } else {
- return Math.max(getPrecision(value), stepPrecision);
- }
- },
- controlsAtRight: function controlsAtRight() {
- return this.controls && this.controlsPosition === 'right';
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- inputNumberSize: function inputNumberSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- inputNumberDisabled: function inputNumberDisabled() {
- return this.disabled || !!(this.elForm || {}).disabled;
- },
- displayValue: function displayValue() {
- if (this.userInput !== null) {
- return this.userInput;
- }
- var currentValue = this.currentValue;
- if (typeof currentValue === 'number') {
- if (this.stepStrictly) {
- var stepPrecision = this.getPrecision(this.step);
- var precisionFactor = Math.pow(10, stepPrecision);
- currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;
- }
- if (this.precision !== undefined) {
- currentValue = currentValue.toFixed(this.precision);
- }
- }
- return currentValue;
- }
- },
- methods: {
- toPrecision: function toPrecision(num, precision) {
- if (precision === undefined) precision = this.numPrecision;
- return parseFloat(Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision));
- },
- getPrecision: function getPrecision(value) {
- if (value === undefined) return 0;
- var valueString = value.toString();
- var dotPosition = valueString.indexOf('.');
- var precision = 0;
- if (dotPosition !== -1) {
- precision = valueString.length - dotPosition - 1;
- }
- return precision;
- },
- _increase: function _increase(val, step) {
- if (typeof val !== 'number' && val !== undefined) return this.currentValue;
- var precisionFactor = Math.pow(10, this.numPrecision);
- // Solve the accuracy problem of JS decimal calculation by converting the value to integer.
- return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);
- },
- _decrease: function _decrease(val, step) {
- if (typeof val !== 'number' && val !== undefined) return this.currentValue;
- var precisionFactor = Math.pow(10, this.numPrecision);
- return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);
- },
- increase: function increase() {
- if (this.inputNumberDisabled || this.maxDisabled) return;
- var value = this.value || 0;
- var newVal = this._increase(value, this.step);
- this.setCurrentValue(newVal);
- },
- decrease: function decrease() {
- if (this.inputNumberDisabled || this.minDisabled) return;
- var value = this.value || 0;
- var newVal = this._decrease(value, this.step);
- this.setCurrentValue(newVal);
- },
- handleBlur: function handleBlur(event) {
- this.$emit('blur', event);
- },
- handleFocus: function handleFocus(event) {
- this.$emit('focus', event);
- },
- setCurrentValue: function setCurrentValue(newVal) {
- var oldVal = this.currentValue;
- if (typeof newVal === 'number' && this.precision !== undefined) {
- newVal = this.toPrecision(newVal, this.precision);
- }
- if (newVal >= this.max) newVal = this.max;
- if (newVal <= this.min) newVal = this.min;
- if (oldVal === newVal) return;
- this.userInput = null;
- this.$emit('input', newVal);
- this.$emit('change', newVal, oldVal);
- this.currentValue = newVal;
- },
- handleInput: function handleInput(value) {
- this.userInput = value;
- },
- handleInputChange: function handleInputChange(value) {
- var newVal = value === '' ? undefined : Number(value);
- if (!isNaN(newVal) || value === '') {
- this.setCurrentValue(newVal);
- }
- this.userInput = null;
- },
- select: function select() {
- this.$refs.input.select();
- }
- },
- mounted: function mounted() {
- var innerInput = this.$refs.input.$refs.input;
- innerInput.setAttribute('role', 'spinbutton');
- innerInput.setAttribute('aria-valuemax', this.max);
- innerInput.setAttribute('aria-valuemin', this.min);
- innerInput.setAttribute('aria-valuenow', this.currentValue);
- innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
- },
- updated: function updated() {
- if (!this.$refs || !this.$refs.input) return;
- var innerInput = this.$refs.input.$refs.input;
- innerInput.setAttribute('aria-valuenow', this.currentValue);
- }
- });
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_input_numbervue_type_script_lang_js_ = (input_numbervue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_input_numbervue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/input-number/src/input-number.vue"
- /* harmony default export */ var input_number = (component.exports);
- // CONCATENATED MODULE: ./packages/input-number/index.js
- /* istanbul ignore next */
- input_number.install = function (Vue) {
- Vue.component(input_number.name, input_number);
- };
- /* harmony default export */ var packages_input_number = __webpack_exports__["default"] = (input_number);
- /***/ }),
- /***/ 2:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- /***/ }),
- /***/ 22:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/focus */ "./node_modules/element-ui/lib/mixins/focus.js");
- /***/ }),
- /***/ 30:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
- /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony default export */ __webpack_exports__["a"] = ({
- bind: function bind(el, binding, vnode) {
- var interval = null;
- var startTime = void 0;
- var handler = function handler() {
- return vnode.context[binding.expression].apply();
- };
- var clear = function clear() {
- if (Date.now() - startTime < 100) {
- handler();
- }
- clearInterval(interval);
- interval = null;
- };
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
- if (e.button !== 0) return;
- startTime = Date.now();
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
- clearInterval(interval);
- interval = setInterval(handler, 100);
- });
- }
- });
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/input.js":
- /*!**********************************************!*\
- !*** ./node_modules/element-ui/lib/input.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 76);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 11:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/migrating */ "./node_modules/element-ui/lib/mixins/migrating.js");
- /***/ }),
- /***/ 21:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "./node_modules/element-ui/lib/utils/shared.js");
- /***/ }),
- /***/ 4:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /***/ 76:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- class: [
- _vm.type === "textarea" ? "el-textarea" : "el-input",
- _vm.inputSize ? "el-input--" + _vm.inputSize : "",
- {
- "is-disabled": _vm.inputDisabled,
- "is-exceed": _vm.inputExceed,
- "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
- "el-input-group--append": _vm.$slots.append,
- "el-input-group--prepend": _vm.$slots.prepend,
- "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
- "el-input--suffix":
- _vm.$slots.suffix ||
- _vm.suffixIcon ||
- _vm.clearable ||
- _vm.showPassword
- }
- ],
- on: {
- mouseenter: function($event) {
- _vm.hovering = true
- },
- mouseleave: function($event) {
- _vm.hovering = false
- }
- }
- },
- [
- _vm.type !== "textarea"
- ? [
- _vm.$slots.prepend
- ? _c(
- "div",
- { staticClass: "el-input-group__prepend" },
- [_vm._t("prepend")],
- 2
- )
- : _vm._e(),
- _vm.type !== "textarea"
- ? _c(
- "input",
- _vm._b(
- {
- ref: "input",
- staticClass: "el-input__inner",
- attrs: {
- tabindex: _vm.tabindex,
- type: _vm.showPassword
- ? _vm.passwordVisible
- ? "text"
- : "password"
- : _vm.type,
- disabled: _vm.inputDisabled,
- readonly: _vm.readonly,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- "aria-label": _vm.label
- },
- on: {
- compositionstart: _vm.handleCompositionStart,
- compositionupdate: _vm.handleCompositionUpdate,
- compositionend: _vm.handleCompositionEnd,
- input: _vm.handleInput,
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- change: _vm.handleChange
- }
- },
- "input",
- _vm.$attrs,
- false
- )
- )
- : _vm._e(),
- _vm.$slots.prefix || _vm.prefixIcon
- ? _c(
- "span",
- { staticClass: "el-input__prefix" },
- [
- _vm._t("prefix"),
- _vm.prefixIcon
- ? _c("i", {
- staticClass: "el-input__icon",
- class: _vm.prefixIcon
- })
- : _vm._e()
- ],
- 2
- )
- : _vm._e(),
- _vm.getSuffixVisible()
- ? _c("span", { staticClass: "el-input__suffix" }, [
- _c(
- "span",
- { staticClass: "el-input__suffix-inner" },
- [
- !_vm.showClear ||
- !_vm.showPwdVisible ||
- !_vm.isWordLimitVisible
- ? [
- _vm._t("suffix"),
- _vm.suffixIcon
- ? _c("i", {
- staticClass: "el-input__icon",
- class: _vm.suffixIcon
- })
- : _vm._e()
- ]
- : _vm._e(),
- _vm.showClear
- ? _c("i", {
- staticClass:
- "el-input__icon el-icon-circle-close el-input__clear",
- on: {
- mousedown: function($event) {
- $event.preventDefault()
- },
- click: _vm.clear
- }
- })
- : _vm._e(),
- _vm.showPwdVisible
- ? _c("i", {
- staticClass:
- "el-input__icon el-icon-view el-input__clear",
- on: { click: _vm.handlePasswordVisible }
- })
- : _vm._e(),
- _vm.isWordLimitVisible
- ? _c("span", { staticClass: "el-input__count" }, [
- _c(
- "span",
- { staticClass: "el-input__count-inner" },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.textLength) +
- "/" +
- _vm._s(_vm.upperLimit) +
- "\n "
- )
- ]
- )
- ])
- : _vm._e()
- ],
- 2
- ),
- _vm.validateState
- ? _c("i", {
- staticClass: "el-input__icon",
- class: ["el-input__validateIcon", _vm.validateIcon]
- })
- : _vm._e()
- ])
- : _vm._e(),
- _vm.$slots.append
- ? _c(
- "div",
- { staticClass: "el-input-group__append" },
- [_vm._t("append")],
- 2
- )
- : _vm._e()
- ]
- : _c(
- "textarea",
- _vm._b(
- {
- ref: "textarea",
- staticClass: "el-textarea__inner",
- style: _vm.textareaStyle,
- attrs: {
- tabindex: _vm.tabindex,
- disabled: _vm.inputDisabled,
- readonly: _vm.readonly,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- "aria-label": _vm.label
- },
- on: {
- compositionstart: _vm.handleCompositionStart,
- compositionupdate: _vm.handleCompositionUpdate,
- compositionend: _vm.handleCompositionEnd,
- input: _vm.handleInput,
- focus: _vm.handleFocus,
- blur: _vm.handleBlur,
- change: _vm.handleChange
- }
- },
- "textarea",
- _vm.$attrs,
- false
- )
- ),
- _vm.isWordLimitVisible && _vm.type === "textarea"
- ? _c("span", { staticClass: "el-input__count" }, [
- _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))
- ])
- : _vm._e()
- ],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
- var migrating_ = __webpack_require__(11);
- var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
- // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
- var hiddenTextarea = void 0;
- var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
- var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
- function calculateNodeStyling(targetElement) {
- var style = window.getComputedStyle(targetElement);
- var boxSizing = style.getPropertyValue('box-sizing');
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
- var contextStyle = CONTEXT_STYLE.map(function (name) {
- return name + ':' + style.getPropertyValue(name);
- }).join(';');
- return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
- }
- function calcTextareaHeight(targetElement) {
- var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
- if (!hiddenTextarea) {
- hiddenTextarea = document.createElement('textarea');
- document.body.appendChild(hiddenTextarea);
- }
- var _calculateNodeStyling = calculateNodeStyling(targetElement),
- paddingSize = _calculateNodeStyling.paddingSize,
- borderSize = _calculateNodeStyling.borderSize,
- boxSizing = _calculateNodeStyling.boxSizing,
- contextStyle = _calculateNodeStyling.contextStyle;
- hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
- var height = hiddenTextarea.scrollHeight;
- var result = {};
- if (boxSizing === 'border-box') {
- height = height + borderSize;
- } else if (boxSizing === 'content-box') {
- height = height - paddingSize;
- }
- hiddenTextarea.value = '';
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
- if (minRows !== null) {
- var minHeight = singleRowHeight * minRows;
- if (boxSizing === 'border-box') {
- minHeight = minHeight + paddingSize + borderSize;
- }
- height = Math.max(minHeight, height);
- result.minHeight = minHeight + 'px';
- }
- if (maxRows !== null) {
- var maxHeight = singleRowHeight * maxRows;
- if (boxSizing === 'border-box') {
- maxHeight = maxHeight + paddingSize + borderSize;
- }
- height = Math.min(maxHeight, height);
- }
- result.height = height + 'px';
- hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
- hiddenTextarea = null;
- return result;
- };
- // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
- var merge_ = __webpack_require__(9);
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
- var shared_ = __webpack_require__(21);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var inputvue_type_script_lang_js_ = ({
- name: 'ElInput',
- componentName: 'ElInput',
- mixins: [emitter_default.a, migrating_default.a],
- inheritAttrs: false,
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- data: function data() {
- return {
- textareaCalcStyle: {},
- hovering: false,
- focused: false,
- isComposing: false,
- passwordVisible: false
- };
- },
- props: {
- value: [String, Number],
- size: String,
- resize: String,
- form: String,
- disabled: Boolean,
- readonly: Boolean,
- type: {
- type: String,
- default: 'text'
- },
- autosize: {
- type: [Boolean, Object],
- default: false
- },
- autocomplete: {
- type: String,
- default: 'off'
- },
- /** @Deprecated in next major version */
- autoComplete: {
- type: String,
- validator: function validator(val) {
- false && false;
- return true;
- }
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- suffixIcon: String,
- prefixIcon: String,
- label: String,
- clearable: {
- type: Boolean,
- default: false
- },
- showPassword: {
- type: Boolean,
- default: false
- },
- showWordLimit: {
- type: Boolean,
- default: false
- },
- tabindex: String
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- validateState: function validateState() {
- return this.elFormItem ? this.elFormItem.validateState : '';
- },
- needStatusIcon: function needStatusIcon() {
- return this.elForm ? this.elForm.statusIcon : false;
- },
- validateIcon: function validateIcon() {
- return {
- validating: 'el-icon-loading',
- success: 'el-icon-circle-check',
- error: 'el-icon-circle-close'
- }[this.validateState];
- },
- textareaStyle: function textareaStyle() {
- return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
- },
- inputSize: function inputSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- inputDisabled: function inputDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- nativeInputValue: function nativeInputValue() {
- return this.value === null || this.value === undefined ? '' : String(this.value);
- },
- showClear: function showClear() {
- return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
- },
- showPwdVisible: function showPwdVisible() {
- return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
- },
- isWordLimitVisible: function isWordLimitVisible() {
- return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
- },
- upperLimit: function upperLimit() {
- return this.$attrs.maxlength;
- },
- textLength: function textLength() {
- if (typeof this.value === 'number') {
- return String(this.value).length;
- }
- return (this.value || '').length;
- },
- inputExceed: function inputExceed() {
- // show exceed style if length of initial value greater then maxlength
- return this.isWordLimitVisible && this.textLength > this.upperLimit;
- }
- },
- watch: {
- value: function value(val) {
- this.$nextTick(this.resizeTextarea);
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.change', [val]);
- }
- },
- // native input value is set explicitly
- // do not use v-model / :value in template
- // see: https://github.com/ElemeFE/element/issues/14521
- nativeInputValue: function nativeInputValue() {
- this.setNativeInputValue();
- },
- // when change between <input> and <textarea>,
- // update DOM dependent value and styles
- // https://github.com/ElemeFE/element/issues/14857
- type: function type() {
- var _this = this;
- this.$nextTick(function () {
- _this.setNativeInputValue();
- _this.resizeTextarea();
- _this.updateIconOffset();
- });
- }
- },
- methods: {
- focus: function focus() {
- this.getInput().focus();
- },
- blur: function blur() {
- this.getInput().blur();
- },
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {
- 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
- 'on-icon-click': 'on-icon-click is removed.'
- },
- events: {
- 'click': 'click is removed.'
- }
- };
- },
- handleBlur: function handleBlur(event) {
- this.focused = false;
- this.$emit('blur', event);
- if (this.validateEvent) {
- this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
- }
- },
- select: function select() {
- this.getInput().select();
- },
- resizeTextarea: function resizeTextarea() {
- if (this.$isServer) return;
- var autosize = this.autosize,
- type = this.type;
- if (type !== 'textarea') return;
- if (!autosize) {
- this.textareaCalcStyle = {
- minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
- };
- return;
- }
- var minRows = autosize.minRows;
- var maxRows = autosize.maxRows;
- this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
- },
- setNativeInputValue: function setNativeInputValue() {
- var input = this.getInput();
- if (!input) return;
- if (input.value === this.nativeInputValue) return;
- input.value = this.nativeInputValue;
- },
- handleFocus: function handleFocus(event) {
- this.focused = true;
- this.$emit('focus', event);
- },
- handleCompositionStart: function handleCompositionStart() {
- this.isComposing = true;
- },
- handleCompositionUpdate: function handleCompositionUpdate(event) {
- var text = event.target.value;
- var lastCharacter = text[text.length - 1] || '';
- this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
- },
- handleCompositionEnd: function handleCompositionEnd(event) {
- if (this.isComposing) {
- this.isComposing = false;
- this.handleInput(event);
- }
- },
- handleInput: function handleInput(event) {
- // should not emit input during composition
- // see: https://github.com/ElemeFE/element/issues/10516
- if (this.isComposing) return;
- // hack for https://github.com/ElemeFE/element/issues/8548
- // should remove the following line when we don't support IE
- if (event.target.value === this.nativeInputValue) return;
- this.$emit('input', event.target.value);
- // ensure native input value is controlled
- // see: https://github.com/ElemeFE/element/issues/12850
- this.$nextTick(this.setNativeInputValue);
- },
- handleChange: function handleChange(event) {
- this.$emit('change', event.target.value);
- },
- calcIconOffset: function calcIconOffset(place) {
- var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
- if (!elList.length) return;
- var el = null;
- for (var i = 0; i < elList.length; i++) {
- if (elList[i].parentNode === this.$el) {
- el = elList[i];
- break;
- }
- }
- if (!el) return;
- var pendantMap = {
- suffix: 'append',
- prefix: 'prepend'
- };
- var pendant = pendantMap[place];
- if (this.$slots[pendant]) {
- el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
- } else {
- el.removeAttribute('style');
- }
- },
- updateIconOffset: function updateIconOffset() {
- this.calcIconOffset('prefix');
- this.calcIconOffset('suffix');
- },
- clear: function clear() {
- this.$emit('input', '');
- this.$emit('change', '');
- this.$emit('clear');
- },
- handlePasswordVisible: function handlePasswordVisible() {
- this.passwordVisible = !this.passwordVisible;
- this.focus();
- },
- getInput: function getInput() {
- return this.$refs.input || this.$refs.textarea;
- },
- getSuffixVisible: function getSuffixVisible() {
- return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
- }
- },
- created: function created() {
- this.$on('inputSelect', this.select);
- },
- mounted: function mounted() {
- this.setNativeInputValue();
- this.resizeTextarea();
- this.updateIconOffset();
- },
- updated: function updated() {
- this.$nextTick(this.updateIconOffset);
- }
- });
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/input/src/input.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_inputvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/input/src/input.vue"
- /* harmony default export */ var input = (component.exports);
- // CONCATENATED MODULE: ./packages/input/index.js
- /* istanbul ignore next */
- input.install = function (Vue) {
- Vue.component(input.name, input);
- };
- /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
- /***/ }),
- /***/ 9:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/merge */ "./node_modules/element-ui/lib/utils/merge.js");
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/locale/format.js":
- /*!******************************************************!*\
- !*** ./node_modules/element-ui/lib/locale/format.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- exports.default = function (Vue) {
- /**
- * template
- *
- * @param {String} string
- * @param {Array} ...args
- * @return {String}
- */
- function template(string) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- if (args.length === 1 && _typeof(args[0]) === 'object') {
- args = args[0];
- }
- if (!args || !args.hasOwnProperty) {
- args = {};
- }
- return string.replace(RE_NARGS, function (match, prefix, i, index) {
- var result = void 0;
- if (string[index - 1] === '{' && string[index + match.length] === '}') {
- return i;
- } else {
- result = (0, _util.hasOwn)(args, i) ? args[i] : null;
- if (result === null || result === undefined) {
- return '';
- }
- return result;
- }
- });
- }
- return template;
- };
- var _util = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
- /**
- * String format template
- * - Inspired:
- * https://github.com/Matt-Esch/string-template/index.js
- */
- /***/ }),
- /***/ "./node_modules/element-ui/lib/locale/index.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/locale/index.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.i18n = exports.use = exports.t = undefined;
- var _zhCN = __webpack_require__(/*! element-ui/lib/locale/lang/zh-CN */ "./node_modules/element-ui/lib/locale/lang/zh-CN.js");
- var _zhCN2 = _interopRequireDefault(_zhCN);
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _deepmerge = __webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js");
- var _deepmerge2 = _interopRequireDefault(_deepmerge);
- var _format = __webpack_require__(/*! ./format */ "./node_modules/element-ui/lib/locale/format.js");
- var _format2 = _interopRequireDefault(_format);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var format = (0, _format2.default)(_vue2.default);
- var lang = _zhCN2.default;
- var merged = false;
- var i18nHandler = function i18nHandler() {
- var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;
- if (typeof vuei18n === 'function' && !!_vue2.default.locale) {
- if (!merged) {
- merged = true;
- _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, { clone: true }));
- }
- return vuei18n.apply(this, arguments);
- }
- };
- var t = exports.t = function t(path, options) {
- var value = i18nHandler.apply(this, arguments);
- if (value !== null && value !== undefined) return value;
- var array = path.split('.');
- var current = lang;
- for (var i = 0, j = array.length; i < j; i++) {
- var property = array[i];
- value = current[property];
- if (i === j - 1) return format(value, options);
- if (!value) return '';
- current = value;
- }
- return '';
- };
- var use = exports.use = function use(l) {
- lang = l || lang;
- };
- var i18n = exports.i18n = function i18n(fn) {
- i18nHandler = fn || i18nHandler;
- };
- exports.default = { use: use, t: t, i18n: i18n };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/locale/lang/zh-CN.js":
- /*!**********************************************************!*\
- !*** ./node_modules/element-ui/lib/locale/lang/zh-CN.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = {
- el: {
- colorpicker: {
- confirm: '确定',
- clear: '清空'
- },
- datepicker: {
- now: '此刻',
- today: '今天',
- cancel: '取消',
- clear: '清空',
- confirm: '确定',
- selectDate: '选择日期',
- selectTime: '选择时间',
- startDate: '开始日期',
- startTime: '开始时间',
- endDate: '结束日期',
- endTime: '结束时间',
- prevYear: '前一年',
- nextYear: '后一年',
- prevMonth: '上个月',
- nextMonth: '下个月',
- year: '年',
- month1: '1 月',
- month2: '2 月',
- month3: '3 月',
- month4: '4 月',
- month5: '5 月',
- month6: '6 月',
- month7: '7 月',
- month8: '8 月',
- month9: '9 月',
- month10: '10 月',
- month11: '11 月',
- month12: '12 月',
- // week: '周次',
- weeks: {
- sun: '日',
- mon: '一',
- tue: '二',
- wed: '三',
- thu: '四',
- fri: '五',
- sat: '六'
- },
- months: {
- jan: '一月',
- feb: '二月',
- mar: '三月',
- apr: '四月',
- may: '五月',
- jun: '六月',
- jul: '七月',
- aug: '八月',
- sep: '九月',
- oct: '十月',
- nov: '十一月',
- dec: '十二月'
- }
- },
- select: {
- loading: '加载中',
- noMatch: '无匹配数据',
- noData: '无数据',
- placeholder: '请选择'
- },
- cascader: {
- noMatch: '无匹配数据',
- loading: '加载中',
- placeholder: '请选择',
- noData: '暂无数据'
- },
- pagination: {
- goto: '前往',
- pagesize: '条/页',
- total: '共 {total} 条',
- pageClassifier: '页'
- },
- messagebox: {
- title: '提示',
- confirm: '确定',
- cancel: '取消',
- error: '输入的数据不合法!'
- },
- upload: {
- deleteTip: '按 delete 键可删除',
- delete: '删除',
- preview: '查看图片',
- continue: '继续上传'
- },
- table: {
- emptyText: '暂无数据',
- confirmFilter: '筛选',
- resetFilter: '重置',
- clearFilter: '全部',
- sumText: '合计'
- },
- tree: {
- emptyText: '暂无数据'
- },
- transfer: {
- noMatch: '无匹配数据',
- noData: '无数据',
- titles: ['列表 1', '列表 2'],
- filterPlaceholder: '请输入搜索内容',
- noCheckedFormat: '共 {total} 项',
- hasCheckedFormat: '已选 {checked}/{total} 项'
- },
- image: {
- error: '加载失败'
- },
- pageHeader: {
- title: '返回'
- },
- popconfirm: {
- confirmButtonText: '确定',
- cancelButtonText: '取消'
- }
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/mixins/emitter.js":
- /*!*******************************************************!*\
- !*** ./node_modules/element-ui/lib/mixins/emitter.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- function _broadcast(componentName, eventName, params) {
- this.$children.forEach(function (child) {
- var name = child.$options.componentName;
- if (name === componentName) {
- child.$emit.apply(child, [eventName].concat(params));
- } else {
- _broadcast.apply(child, [componentName, eventName].concat([params]));
- }
- });
- }
- exports.default = {
- methods: {
- dispatch: function dispatch(componentName, eventName, params) {
- var parent = this.$parent || this.$root;
- var name = parent.$options.componentName;
- while (parent && (!name || name !== componentName)) {
- parent = parent.$parent;
- if (parent) {
- name = parent.$options.componentName;
- }
- }
- if (parent) {
- parent.$emit.apply(parent, [eventName].concat(params));
- }
- },
- broadcast: function broadcast(componentName, eventName, params) {
- _broadcast.call(this, componentName, eventName, params);
- }
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/mixins/focus.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/mixins/focus.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function (ref) {
- return {
- methods: {
- focus: function focus() {
- this.$refs[ref].focus();
- }
- }
- };
- };
- ;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/mixins/locale.js":
- /*!******************************************************!*\
- !*** ./node_modules/element-ui/lib/mixins/locale.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _locale = __webpack_require__(/*! element-ui/lib/locale */ "./node_modules/element-ui/lib/locale/index.js");
- exports.default = {
- methods: {
- t: function t() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- return _locale.t.apply(this, args);
- }
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/mixins/migrating.js":
- /*!*********************************************************!*\
- !*** ./node_modules/element-ui/lib/mixins/migrating.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _util = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /**
- * Show migrating guide in browser console.
- *
- * Usage:
- * import Migrating from 'element-ui/src/mixins/migrating';
- *
- * mixins: [Migrating]
- *
- * add getMigratingConfig method for your component.
- * getMigratingConfig() {
- * return {
- * props: {
- * 'allow-no-selection': 'allow-no-selection is removed.',
- * 'selection-mode': 'selection-mode is removed.'
- * },
- * events: {
- * selectionchange: 'selectionchange is renamed to selection-change.'
- * }
- * };
- * },
- */
- exports.default = {
- mounted: function mounted() {
- if (false) {}
- if (!this.$vnode) return;
- var _getMigratingConfig = this.getMigratingConfig(),
- _getMigratingConfig$p = _getMigratingConfig.props,
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
- _getMigratingConfig$e = _getMigratingConfig.events,
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
- var _$vnode = this.$vnode,
- data = _$vnode.data,
- componentOptions = _$vnode.componentOptions;
- var definedProps = data.attrs || {};
- var definedEvents = componentOptions.listeners || {};
- for (var propName in definedProps) {
- propName = (0, _util.kebabCase)(propName); // compatible with camel case
- if (props[propName]) {
- console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
- }
- }
- for (var eventName in definedEvents) {
- eventName = (0, _util.kebabCase)(eventName); // compatible with camel case
- if (events[eventName]) {
- console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
- }
- }
- },
- methods: {
- getMigratingConfig: function getMigratingConfig() {
- return {
- props: {},
- events: {}
- };
- }
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/option.js":
- /*!***********************************************!*\
- !*** ./node_modules/element-ui/lib/option.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 53);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 3:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /***/ 34:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "li",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-select-dropdown__item",
- class: {
- selected: _vm.itemSelected,
- "is-disabled": _vm.disabled || _vm.groupDisabled || _vm.limitReached,
- hover: _vm.hover
- },
- on: {
- mouseenter: _vm.hoverItem,
- click: function($event) {
- $event.stopPropagation()
- return _vm.selectOptionClick($event)
- }
- }
- },
- [_vm._t("default", [_c("span", [_vm._v(_vm._s(_vm.currentLabel))])])],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js&
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var optionvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a],
- name: 'ElOption',
- componentName: 'ElOption',
- inject: ['select'],
- props: {
- value: {
- required: true
- },
- label: [String, Number],
- created: Boolean,
- disabled: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- index: -1,
- groupDisabled: false,
- visible: true,
- hitState: false,
- hover: false
- };
- },
- computed: {
- isObject: function isObject() {
- return Object.prototype.toString.call(this.value).toLowerCase() === '[object object]';
- },
- currentLabel: function currentLabel() {
- return this.label || (this.isObject ? '' : this.value);
- },
- currentValue: function currentValue() {
- return this.value || this.label || '';
- },
- itemSelected: function itemSelected() {
- if (!this.select.multiple) {
- return this.isEqual(this.value, this.select.value);
- } else {
- return this.contains(this.select.value, this.value);
- }
- },
- limitReached: function limitReached() {
- if (this.select.multiple) {
- return !this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0;
- } else {
- return false;
- }
- }
- },
- watch: {
- currentLabel: function currentLabel() {
- if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
- },
- value: function value(val, oldVal) {
- var _select = this.select,
- remote = _select.remote,
- valueKey = _select.valueKey;
- if (!this.created && !remote) {
- if (valueKey && (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && (typeof oldVal === 'undefined' ? 'undefined' : _typeof(oldVal)) === 'object' && val[valueKey] === oldVal[valueKey]) {
- return;
- }
- this.dispatch('ElSelect', 'setSelected');
- }
- }
- },
- methods: {
- isEqual: function isEqual(a, b) {
- if (!this.isObject) {
- return a === b;
- } else {
- var valueKey = this.select.valueKey;
- return Object(util_["getValueByPath"])(a, valueKey) === Object(util_["getValueByPath"])(b, valueKey);
- }
- },
- contains: function contains() {
- var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var target = arguments[1];
- if (!this.isObject) {
- return arr && arr.indexOf(target) > -1;
- } else {
- var valueKey = this.select.valueKey;
- return arr && arr.some(function (item) {
- return Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(target, valueKey);
- });
- }
- },
- handleGroupDisabled: function handleGroupDisabled(val) {
- this.groupDisabled = val;
- },
- hoverItem: function hoverItem() {
- if (!this.disabled && !this.groupDisabled) {
- this.select.hoverIndex = this.select.options.indexOf(this);
- }
- },
- selectOptionClick: function selectOptionClick() {
- if (this.disabled !== true && this.groupDisabled !== true) {
- this.dispatch('ElSelect', 'handleOptionClick', [this, true]);
- }
- },
- queryChange: function queryChange(query) {
- this.visible = new RegExp(Object(util_["escapeRegexpString"])(query), 'i').test(this.currentLabel) || this.created;
- if (!this.visible) {
- this.select.filteredOptionsCount--;
- }
- }
- },
- created: function created() {
- this.select.options.push(this);
- this.select.cachedOptions.push(this);
- this.select.optionsCount++;
- this.select.filteredOptionsCount++;
- this.$on('queryChange', this.queryChange);
- this.$on('handleGroupDisabled', this.handleGroupDisabled);
- },
- beforeDestroy: function beforeDestroy() {
- var _select2 = this.select,
- selected = _select2.selected,
- multiple = _select2.multiple;
- var selectedOptions = multiple ? selected : [selected];
- var index = this.select.cachedOptions.indexOf(this);
- var selectedIndex = selectedOptions.indexOf(this);
- // if option is not selected, remove it from cache
- if (index > -1 && selectedIndex < 0) {
- this.select.cachedOptions.splice(index, 1);
- }
- this.select.onOptionDestroy(this.select.options.indexOf(this));
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_optionvue_type_script_lang_js_ = (optionvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/select/src/option.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_optionvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/select/src/option.vue"
- /* harmony default export */ var src_option = __webpack_exports__["a"] = (component.exports);
- /***/ }),
- /***/ 4:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /***/ 53:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _select_src_option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
- /* istanbul ignore next */
- _select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function (Vue) {
- Vue.component(_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].name, _select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/popover.js":
- /*!************************************************!*\
- !*** ./node_modules/element-ui/lib/popover.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 74);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 2:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- /***/ }),
- /***/ 3:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /***/ 5:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/vue-popper */ "./node_modules/element-ui/lib/utils/vue-popper.js");
- /***/ }),
- /***/ 7:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- /***/ }),
- /***/ 74:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=52060272&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "span",
- [
- _c(
- "transition",
- {
- attrs: { name: _vm.transition },
- on: {
- "after-enter": _vm.handleAfterEnter,
- "after-leave": _vm.handleAfterLeave
- }
- },
- [
- _c(
- "div",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.disabled && _vm.showPopper,
- expression: "!disabled && showPopper"
- }
- ],
- ref: "popper",
- staticClass: "el-popover el-popper",
- class: [_vm.popperClass, _vm.content && "el-popover--plain"],
- style: { width: _vm.width + "px" },
- attrs: {
- role: "tooltip",
- id: _vm.tooltipId,
- "aria-hidden":
- _vm.disabled || !_vm.showPopper ? "true" : "false"
- }
- },
- [
- _vm.title
- ? _c("div", {
- staticClass: "el-popover__title",
- domProps: { textContent: _vm._s(_vm.title) }
- })
- : _vm._e(),
- _vm._t("default", [_vm._v(_vm._s(_vm.content))])
- ],
- 2
- )
- ]
- ),
- _vm._t("reference")
- ],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=52060272&
- // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
- var vue_popper_ = __webpack_require__(5);
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
- var dom_ = __webpack_require__(2);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
- name: 'ElPopover',
- mixins: [vue_popper_default.a],
- props: {
- trigger: {
- type: String,
- default: 'click',
- validator: function validator(value) {
- return ['click', 'focus', 'hover', 'manual'].indexOf(value) > -1;
- }
- },
- openDelay: {
- type: Number,
- default: 0
- },
- closeDelay: {
- type: Number,
- default: 200
- },
- title: String,
- disabled: Boolean,
- content: String,
- reference: {},
- popperClass: String,
- width: {},
- visibleArrow: {
- default: true
- },
- arrowOffset: {
- type: Number,
- default: 0
- },
- transition: {
- type: String,
- default: 'fade-in-linear'
- },
- tabindex: {
- type: Number,
- default: 0
- }
- },
- computed: {
- tooltipId: function tooltipId() {
- return 'el-popover-' + Object(util_["generateId"])();
- }
- },
- watch: {
- showPopper: function showPopper(val) {
- if (this.disabled) {
- return;
- }
- val ? this.$emit('show') : this.$emit('hide');
- }
- },
- mounted: function mounted() {
- var _this = this;
- var reference = this.referenceElm = this.reference || this.$refs.reference;
- var popper = this.popper || this.$refs.popper;
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
- reference = this.referenceElm = this.$slots.reference[0].elm;
- }
- // 可访问性
- if (reference) {
- Object(dom_["addClass"])(reference, 'el-popover__reference');
- reference.setAttribute('aria-describedby', this.tooltipId);
- reference.setAttribute('tabindex', this.tabindex); // tab序列
- popper.setAttribute('tabindex', 0);
- if (this.trigger !== 'click') {
- Object(dom_["on"])(reference, 'focusin', function () {
- _this.handleFocus();
- var instance = reference.__vue__;
- if (instance && typeof instance.focus === 'function') {
- instance.focus();
- }
- });
- Object(dom_["on"])(popper, 'focusin', this.handleFocus);
- Object(dom_["on"])(reference, 'focusout', this.handleBlur);
- Object(dom_["on"])(popper, 'focusout', this.handleBlur);
- }
- Object(dom_["on"])(reference, 'keydown', this.handleKeydown);
- Object(dom_["on"])(reference, 'click', this.handleClick);
- }
- if (this.trigger === 'click') {
- Object(dom_["on"])(reference, 'click', this.doToggle);
- Object(dom_["on"])(document, 'click', this.handleDocumentClick);
- } else if (this.trigger === 'hover') {
- Object(dom_["on"])(reference, 'mouseenter', this.handleMouseEnter);
- Object(dom_["on"])(popper, 'mouseenter', this.handleMouseEnter);
- Object(dom_["on"])(reference, 'mouseleave', this.handleMouseLeave);
- Object(dom_["on"])(popper, 'mouseleave', this.handleMouseLeave);
- } else if (this.trigger === 'focus') {
- if (this.tabindex < 0) {
- console.warn('[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key');
- }
- if (reference.querySelector('input, textarea')) {
- Object(dom_["on"])(reference, 'focusin', this.doShow);
- Object(dom_["on"])(reference, 'focusout', this.doClose);
- } else {
- Object(dom_["on"])(reference, 'mousedown', this.doShow);
- Object(dom_["on"])(reference, 'mouseup', this.doClose);
- }
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.cleanup();
- },
- deactivated: function deactivated() {
- this.cleanup();
- },
- methods: {
- doToggle: function doToggle() {
- this.showPopper = !this.showPopper;
- },
- doShow: function doShow() {
- this.showPopper = true;
- },
- doClose: function doClose() {
- this.showPopper = false;
- },
- handleFocus: function handleFocus() {
- Object(dom_["addClass"])(this.referenceElm, 'focusing');
- if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = true;
- },
- handleClick: function handleClick() {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- },
- handleBlur: function handleBlur() {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = false;
- },
- handleMouseEnter: function handleMouseEnter() {
- var _this2 = this;
- clearTimeout(this._timer);
- if (this.openDelay) {
- this._timer = setTimeout(function () {
- _this2.showPopper = true;
- }, this.openDelay);
- } else {
- this.showPopper = true;
- }
- },
- handleKeydown: function handleKeydown(ev) {
- if (ev.keyCode === 27 && this.trigger !== 'manual') {
- // esc
- this.doClose();
- }
- },
- handleMouseLeave: function handleMouseLeave() {
- var _this3 = this;
- clearTimeout(this._timer);
- if (this.closeDelay) {
- this._timer = setTimeout(function () {
- _this3.showPopper = false;
- }, this.closeDelay);
- } else {
- this.showPopper = false;
- }
- },
- handleDocumentClick: function handleDocumentClick(e) {
- var reference = this.reference || this.$refs.reference;
- var popper = this.popper || this.$refs.popper;
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
- reference = this.referenceElm = this.$slots.reference[0].elm;
- }
- if (!this.$el || !reference || this.$el.contains(e.target) || reference.contains(e.target) || !popper || popper.contains(e.target)) return;
- this.showPopper = false;
- },
- handleAfterEnter: function handleAfterEnter() {
- this.$emit('after-enter');
- },
- handleAfterLeave: function handleAfterLeave() {
- this.$emit('after-leave');
- this.doDestroy();
- },
- cleanup: function cleanup() {
- if (this.openDelay || this.closeDelay) {
- clearTimeout(this._timer);
- }
- }
- },
- destroyed: function destroyed() {
- var reference = this.reference;
- Object(dom_["off"])(reference, 'click', this.doToggle);
- Object(dom_["off"])(reference, 'mouseup', this.doClose);
- Object(dom_["off"])(reference, 'mousedown', this.doShow);
- Object(dom_["off"])(reference, 'focusin', this.doShow);
- Object(dom_["off"])(reference, 'focusout', this.doClose);
- Object(dom_["off"])(reference, 'mousedown', this.doShow);
- Object(dom_["off"])(reference, 'mouseup', this.doClose);
- Object(dom_["off"])(reference, 'mouseleave', this.handleMouseLeave);
- Object(dom_["off"])(reference, 'mouseenter', this.handleMouseEnter);
- Object(dom_["off"])(document, 'click', this.handleDocumentClick);
- }
- });
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/popover/src/main.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_mainvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/popover/src/main.vue"
- /* harmony default export */ var main = (component.exports);
- // CONCATENATED MODULE: ./packages/popover/src/directive.js
- var getReference = function getReference(el, binding, vnode) {
- var _ref = binding.expression ? binding.value : binding.arg;
- var popper = vnode.context.$refs[_ref];
- if (popper) {
- if (Array.isArray(popper)) {
- popper[0].$refs.reference = el;
- } else {
- popper.$refs.reference = el;
- }
- }
- };
- /* harmony default export */ var directive = ({
- bind: function bind(el, binding, vnode) {
- getReference(el, binding, vnode);
- },
- inserted: function inserted(el, binding, vnode) {
- getReference(el, binding, vnode);
- }
- });
- // EXTERNAL MODULE: external "vue"
- var external_vue_ = __webpack_require__(7);
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
- // CONCATENATED MODULE: ./packages/popover/index.js
- external_vue_default.a.directive('popover', directive);
- /* istanbul ignore next */
- main.install = function (Vue) {
- Vue.directive('popover', directive);
- Vue.component(main.name, main);
- };
- main.directive = directive;
- /* harmony default export */ var popover = __webpack_exports__["default"] = (main);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/progress.js":
- /*!*************************************************!*\
- !*** ./node_modules/element-ui/lib/progress.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 119);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 119:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-progress",
- class: [
- "el-progress--" + _vm.type,
- _vm.status ? "is-" + _vm.status : "",
- {
- "el-progress--without-text": !_vm.showText,
- "el-progress--text-inside": _vm.textInside
- }
- ],
- attrs: {
- role: "progressbar",
- "aria-valuenow": _vm.percentage,
- "aria-valuemin": "0",
- "aria-valuemax": "100"
- }
- },
- [
- _vm.type === "line"
- ? _c("div", { staticClass: "el-progress-bar" }, [
- _c(
- "div",
- {
- staticClass: "el-progress-bar__outer",
- style: { height: _vm.strokeWidth + "px" }
- },
- [
- _c(
- "div",
- {
- staticClass: "el-progress-bar__inner",
- style: _vm.barStyle
- },
- [
- _vm.showText && _vm.textInside
- ? _c(
- "div",
- { staticClass: "el-progress-bar__innerText" },
- [_vm._v(_vm._s(_vm.content))]
- )
- : _vm._e()
- ]
- )
- ]
- )
- ])
- : _c(
- "div",
- {
- staticClass: "el-progress-circle",
- style: { height: _vm.width + "px", width: _vm.width + "px" }
- },
- [
- _c("svg", { attrs: { viewBox: "0 0 100 100" } }, [
- _c("path", {
- staticClass: "el-progress-circle__track",
- style: _vm.trailPathStyle,
- attrs: {
- d: _vm.trackPath,
- stroke: "#e5e9f2",
- "stroke-width": _vm.relativeStrokeWidth,
- fill: "none"
- }
- }),
- _c("path", {
- staticClass: "el-progress-circle__path",
- style: _vm.circlePathStyle,
- attrs: {
- d: _vm.trackPath,
- stroke: _vm.stroke,
- fill: "none",
- "stroke-linecap": _vm.strokeLinecap,
- "stroke-width": _vm.percentage ? _vm.relativeStrokeWidth : 0
- }
- })
- ])
- ]
- ),
- _vm.showText && !_vm.textInside
- ? _c(
- "div",
- {
- staticClass: "el-progress__text",
- style: { fontSize: _vm.progressTextSize + "px" }
- },
- [
- !_vm.status
- ? [_vm._v(_vm._s(_vm.content))]
- : _c("i", { class: _vm.iconClass })
- ],
- 2
- )
- : _vm._e()
- ]
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var progressvue_type_script_lang_js_ = ({
- name: 'ElProgress',
- props: {
- type: {
- type: String,
- default: 'line',
- validator: function validator(val) {
- return ['line', 'circle', 'dashboard'].indexOf(val) > -1;
- }
- },
- percentage: {
- type: Number,
- default: 0,
- required: true,
- validator: function validator(val) {
- return val >= 0 && val <= 100;
- }
- },
- status: {
- type: String,
- validator: function validator(val) {
- return ['success', 'exception', 'warning'].indexOf(val) > -1;
- }
- },
- strokeWidth: {
- type: Number,
- default: 6
- },
- strokeLinecap: {
- type: String,
- default: 'round'
- },
- textInside: {
- type: Boolean,
- default: false
- },
- width: {
- type: Number,
- default: 126
- },
- showText: {
- type: Boolean,
- default: true
- },
- color: {
- type: [String, Array, Function],
- default: ''
- },
- format: Function
- },
- computed: {
- barStyle: function barStyle() {
- var style = {};
- style.width = this.percentage + '%';
- style.backgroundColor = this.getCurrentColor(this.percentage);
- return style;
- },
- relativeStrokeWidth: function relativeStrokeWidth() {
- return (this.strokeWidth / this.width * 100).toFixed(1);
- },
- radius: function radius() {
- if (this.type === 'circle' || this.type === 'dashboard') {
- return parseInt(50 - parseFloat(this.relativeStrokeWidth) / 2, 10);
- } else {
- return 0;
- }
- },
- trackPath: function trackPath() {
- var radius = this.radius;
- var isDashboard = this.type === 'dashboard';
- return '\n M 50 50\n m 0 ' + (isDashboard ? '' : '-') + radius + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '-' : '') + radius * 2 + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '' : '-') + radius * 2 + '\n ';
- },
- perimeter: function perimeter() {
- return 2 * Math.PI * this.radius;
- },
- rate: function rate() {
- return this.type === 'dashboard' ? 0.75 : 1;
- },
- strokeDashoffset: function strokeDashoffset() {
- var offset = -1 * this.perimeter * (1 - this.rate) / 2;
- return offset + 'px';
- },
- trailPathStyle: function trailPathStyle() {
- return {
- strokeDasharray: this.perimeter * this.rate + 'px, ' + this.perimeter + 'px',
- strokeDashoffset: this.strokeDashoffset
- };
- },
- circlePathStyle: function circlePathStyle() {
- return {
- strokeDasharray: this.perimeter * this.rate * (this.percentage / 100) + 'px, ' + this.perimeter + 'px',
- strokeDashoffset: this.strokeDashoffset,
- transition: 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease'
- };
- },
- stroke: function stroke() {
- var ret = void 0;
- if (this.color) {
- ret = this.getCurrentColor(this.percentage);
- } else {
- switch (this.status) {
- case 'success':
- ret = '#13ce66';
- break;
- case 'exception':
- ret = '#ff4949';
- break;
- case 'warning':
- ret = '#e6a23c';
- break;
- default:
- ret = '#20a0ff';
- }
- }
- return ret;
- },
- iconClass: function iconClass() {
- if (this.status === 'warning') {
- return 'el-icon-warning';
- }
- if (this.type === 'line') {
- return this.status === 'success' ? 'el-icon-circle-check' : 'el-icon-circle-close';
- } else {
- return this.status === 'success' ? 'el-icon-check' : 'el-icon-close';
- }
- },
- progressTextSize: function progressTextSize() {
- return this.type === 'line' ? 12 + this.strokeWidth * 0.4 : this.width * 0.111111 + 2;
- },
- content: function content() {
- if (typeof this.format === 'function') {
- return this.format(this.percentage) || '';
- } else {
- return this.percentage + '%';
- }
- }
- },
- methods: {
- getCurrentColor: function getCurrentColor(percentage) {
- if (typeof this.color === 'function') {
- return this.color(percentage);
- } else if (typeof this.color === 'string') {
- return this.color;
- } else {
- return this.getLevelColor(percentage);
- }
- },
- getLevelColor: function getLevelColor(percentage) {
- var colorArray = this.getColorArray().sort(function (a, b) {
- return a.percentage - b.percentage;
- });
- for (var i = 0; i < colorArray.length; i++) {
- if (colorArray[i].percentage > percentage) {
- return colorArray[i].color;
- }
- }
- return colorArray[colorArray.length - 1].color;
- },
- getColorArray: function getColorArray() {
- var color = this.color;
- var span = 100 / color.length;
- return color.map(function (seriesColor, index) {
- if (typeof seriesColor === 'string') {
- return {
- color: seriesColor,
- progress: (index + 1) * span
- };
- }
- return seriesColor;
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_progressvue_type_script_lang_js_ = (progressvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_progressvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/progress/src/progress.vue"
- /* harmony default export */ var progress = (component.exports);
- // CONCATENATED MODULE: ./packages/progress/index.js
- /* istanbul ignore next */
- progress.install = function (Vue) {
- Vue.component(progress.name, progress);
- };
- /* harmony default export */ var packages_progress = __webpack_exports__["default"] = (progress);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/radio.js":
- /*!**********************************************!*\
- !*** ./node_modules/element-ui/lib/radio.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 116);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 116:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "label",
- {
- staticClass: "el-radio",
- class: [
- _vm.border && _vm.radioSize ? "el-radio--" + _vm.radioSize : "",
- { "is-disabled": _vm.isDisabled },
- { "is-focus": _vm.focus },
- { "is-bordered": _vm.border },
- { "is-checked": _vm.model === _vm.label }
- ],
- attrs: {
- role: "radio",
- "aria-checked": _vm.model === _vm.label,
- "aria-disabled": _vm.isDisabled,
- tabindex: _vm.tabIndex
- },
- on: {
- keydown: function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.model = _vm.isDisabled ? _vm.model : _vm.label
- }
- }
- },
- [
- _c(
- "span",
- {
- staticClass: "el-radio__input",
- class: {
- "is-disabled": _vm.isDisabled,
- "is-checked": _vm.model === _vm.label
- }
- },
- [
- _c("span", { staticClass: "el-radio__inner" }),
- _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.model,
- expression: "model"
- }
- ],
- ref: "radio",
- staticClass: "el-radio__original",
- attrs: {
- type: "radio",
- "aria-hidden": "true",
- name: _vm.name,
- disabled: _vm.isDisabled,
- tabindex: "-1"
- },
- domProps: {
- value: _vm.label,
- checked: _vm._q(_vm.model, _vm.label)
- },
- on: {
- focus: function($event) {
- _vm.focus = true
- },
- blur: function($event) {
- _vm.focus = false
- },
- change: [
- function($event) {
- _vm.model = _vm.label
- },
- _vm.handleChange
- ]
- }
- })
- ]
- ),
- _c(
- "span",
- {
- staticClass: "el-radio__label",
- on: {
- keydown: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [
- _vm._t("default"),
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
- ],
- 2
- )
- ]
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var radiovue_type_script_lang_js_ = ({
- name: 'ElRadio',
- mixins: [emitter_default.a],
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- componentName: 'ElRadio',
- props: {
- value: {},
- label: {},
- disabled: Boolean,
- name: String,
- border: Boolean,
- size: String
- },
- data: function data() {
- return {
- focus: false
- };
- },
- computed: {
- isGroup: function isGroup() {
- var parent = this.$parent;
- while (parent) {
- if (parent.$options.componentName !== 'ElRadioGroup') {
- parent = parent.$parent;
- } else {
- this._radioGroup = parent;
- return true;
- }
- }
- return false;
- },
- model: {
- get: function get() {
- return this.isGroup ? this._radioGroup.value : this.value;
- },
- set: function set(val) {
- if (this.isGroup) {
- this.dispatch('ElRadioGroup', 'input', [val]);
- } else {
- this.$emit('input', val);
- }
- this.$refs.radio && (this.$refs.radio.checked = this.model === this.label);
- }
- },
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- radioSize: function radioSize() {
- var temRadioSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- return this.isGroup ? this._radioGroup.radioGroupSize || temRadioSize : temRadioSize;
- },
- isDisabled: function isDisabled() {
- return this.isGroup ? this._radioGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
- },
- tabIndex: function tabIndex() {
- return this.isDisabled || this.isGroup && this.model !== this.label ? -1 : 0;
- }
- },
- methods: {
- handleChange: function handleChange() {
- var _this = this;
- this.$nextTick(function () {
- _this.$emit('change', _this.model);
- _this.isGroup && _this.dispatch('ElRadioGroup', 'handleChange', _this.model);
- });
- }
- }
- });
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_radiovue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/radio/src/radio.vue"
- /* harmony default export */ var src_radio = (component.exports);
- // CONCATENATED MODULE: ./packages/radio/index.js
- /* istanbul ignore next */
- src_radio.install = function (Vue) {
- Vue.component(src_radio.name, src_radio);
- };
- /* harmony default export */ var packages_radio = __webpack_exports__["default"] = (src_radio);
- /***/ }),
- /***/ 4:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/scrollbar.js":
- /*!**************************************************!*\
- !*** ./node_modules/element-ui/lib/scrollbar.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 127);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 127:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
- var resize_event_ = __webpack_require__(16);
- // EXTERNAL MODULE: external "element-ui/lib/utils/scrollbar-width"
- var scrollbar_width_ = __webpack_require__(39);
- var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
- var dom_ = __webpack_require__(2);
- // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
- var BAR_MAP = {
- vertical: {
- offset: 'offsetHeight',
- scroll: 'scrollTop',
- scrollSize: 'scrollHeight',
- size: 'height',
- key: 'vertical',
- axis: 'Y',
- client: 'clientY',
- direction: 'top'
- },
- horizontal: {
- offset: 'offsetWidth',
- scroll: 'scrollLeft',
- scrollSize: 'scrollWidth',
- size: 'width',
- key: 'horizontal',
- axis: 'X',
- client: 'clientX',
- direction: 'left'
- }
- };
- function renderThumbStyle(_ref) {
- var move = _ref.move,
- size = _ref.size,
- bar = _ref.bar;
- var style = {};
- var translate = 'translate' + bar.axis + '(' + move + '%)';
- style[bar.size] = size;
- style.transform = translate;
- style.msTransform = translate;
- style.webkitTransform = translate;
- return style;
- };
- // CONCATENATED MODULE: ./packages/scrollbar/src/bar.js
- /* istanbul ignore next */
- /* harmony default export */ var src_bar = ({
- name: 'Bar',
- props: {
- vertical: Boolean,
- size: String,
- move: Number
- },
- computed: {
- bar: function bar() {
- return BAR_MAP[this.vertical ? 'vertical' : 'horizontal'];
- },
- wrap: function wrap() {
- return this.$parent.wrap;
- }
- },
- render: function render(h) {
- var size = this.size,
- move = this.move,
- bar = this.bar;
- return h(
- 'div',
- {
- 'class': ['el-scrollbar__bar', 'is-' + bar.key],
- on: {
- 'mousedown': this.clickTrackHandler
- }
- },
- [h('div', {
- ref: 'thumb',
- 'class': 'el-scrollbar__thumb',
- on: {
- 'mousedown': this.clickThumbHandler
- },
- style: renderThumbStyle({ size: size, move: move, bar: bar }) })]
- );
- },
- methods: {
- clickThumbHandler: function clickThumbHandler(e) {
- // prevent click event of right button
- if (e.ctrlKey || e.button === 2) {
- return;
- }
- this.startDrag(e);
- this[this.bar.axis] = e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]);
- },
- clickTrackHandler: function clickTrackHandler(e) {
- var offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
- var thumbHalf = this.$refs.thumb[this.bar.offset] / 2;
- var thumbPositionPercentage = (offset - thumbHalf) * 100 / this.$el[this.bar.offset];
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
- },
- startDrag: function startDrag(e) {
- e.stopImmediatePropagation();
- this.cursorDown = true;
- Object(dom_["on"])(document, 'mousemove', this.mouseMoveDocumentHandler);
- Object(dom_["on"])(document, 'mouseup', this.mouseUpDocumentHandler);
- document.onselectstart = function () {
- return false;
- };
- },
- mouseMoveDocumentHandler: function mouseMoveDocumentHandler(e) {
- if (this.cursorDown === false) return;
- var prevPage = this[this.bar.axis];
- if (!prevPage) return;
- var offset = (this.$el.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]) * -1;
- var thumbClickPosition = this.$refs.thumb[this.bar.offset] - prevPage;
- var thumbPositionPercentage = (offset - thumbClickPosition) * 100 / this.$el[this.bar.offset];
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
- },
- mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
- this.cursorDown = false;
- this[this.bar.axis] = 0;
- Object(dom_["off"])(document, 'mousemove', this.mouseMoveDocumentHandler);
- document.onselectstart = null;
- }
- },
- destroyed: function destroyed() {
- Object(dom_["off"])(document, 'mouseup', this.mouseUpDocumentHandler);
- }
- });
- // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
- // reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
- /* istanbul ignore next */
- /* harmony default export */ var main = ({
- name: 'ElScrollbar',
- components: { Bar: src_bar },
- props: {
- native: Boolean,
- wrapStyle: {},
- wrapClass: {},
- viewClass: {},
- viewStyle: {},
- noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
- tag: {
- type: String,
- default: 'div'
- }
- },
- data: function data() {
- return {
- sizeWidth: '0',
- sizeHeight: '0',
- moveX: 0,
- moveY: 0
- };
- },
- computed: {
- wrap: function wrap() {
- return this.$refs.wrap;
- }
- },
- render: function render(h) {
- var gutter = scrollbar_width_default()();
- var style = this.wrapStyle;
- if (gutter) {
- var gutterWith = '-' + gutter + 'px';
- var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
- if (Array.isArray(this.wrapStyle)) {
- style = Object(util_["toObject"])(this.wrapStyle);
- style.marginRight = style.marginBottom = gutterWith;
- } else if (typeof this.wrapStyle === 'string') {
- style += gutterStyle;
- } else {
- style = gutterStyle;
- }
- }
- var view = h(this.tag, {
- class: ['el-scrollbar__view', this.viewClass],
- style: this.viewStyle,
- ref: 'resize'
- }, this.$slots.default);
- var wrap = h(
- 'div',
- {
- ref: 'wrap',
- style: style,
- on: {
- 'scroll': this.handleScroll
- },
- 'class': [this.wrapClass, 'el-scrollbar__wrap', gutter ? '' : 'el-scrollbar__wrap--hidden-default'] },
- [[view]]
- );
- var nodes = void 0;
- if (!this.native) {
- nodes = [wrap, h(src_bar, {
- attrs: {
- move: this.moveX,
- size: this.sizeWidth }
- }), h(src_bar, {
- attrs: {
- vertical: true,
- move: this.moveY,
- size: this.sizeHeight }
- })];
- } else {
- nodes = [h(
- 'div',
- {
- ref: 'wrap',
- 'class': [this.wrapClass, 'el-scrollbar__wrap'],
- style: style },
- [[view]]
- )];
- }
- return h('div', { class: 'el-scrollbar' }, nodes);
- },
- methods: {
- handleScroll: function handleScroll() {
- var wrap = this.wrap;
- this.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
- this.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
- },
- update: function update() {
- var heightPercentage = void 0,
- widthPercentage = void 0;
- var wrap = this.wrap;
- if (!wrap) return;
- heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
- widthPercentage = wrap.clientWidth * 100 / wrap.scrollWidth;
- this.sizeHeight = heightPercentage < 100 ? heightPercentage + '%' : '';
- this.sizeWidth = widthPercentage < 100 ? widthPercentage + '%' : '';
- }
- },
- mounted: function mounted() {
- if (this.native) return;
- this.$nextTick(this.update);
- !this.noresize && Object(resize_event_["addResizeListener"])(this.$refs.resize, this.update);
- },
- beforeDestroy: function beforeDestroy() {
- if (this.native) return;
- !this.noresize && Object(resize_event_["removeResizeListener"])(this.$refs.resize, this.update);
- }
- });
- // CONCATENATED MODULE: ./packages/scrollbar/index.js
- /* istanbul ignore next */
- main.install = function (Vue) {
- Vue.component(main.name, main);
- };
- /* harmony default export */ var scrollbar = __webpack_exports__["default"] = (main);
- /***/ }),
- /***/ 16:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/resize-event */ "./node_modules/element-ui/lib/utils/resize-event.js");
- /***/ }),
- /***/ 2:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- /***/ }),
- /***/ 3:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /***/ 39:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/scrollbar-width */ "./node_modules/element-ui/lib/utils/scrollbar-width.js");
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/select.js":
- /*!***********************************************!*\
- !*** ./node_modules/element-ui/lib/select.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 61);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /* 1 */,
- /* 2 */,
- /* 3 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /* 4 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "./node_modules/element-ui/lib/mixins/emitter.js");
- /***/ }),
- /* 5 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/vue-popper */ "./node_modules/element-ui/lib/utils/vue-popper.js");
- /***/ }),
- /* 6 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/locale */ "./node_modules/element-ui/lib/mixins/locale.js");
- /***/ }),
- /* 7 */,
- /* 8 */,
- /* 9 */,
- /* 10 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/input */ "./node_modules/element-ui/lib/input.js");
- /***/ }),
- /* 11 */,
- /* 12 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/clickoutside */ "./node_modules/element-ui/lib/utils/clickoutside.js");
- /***/ }),
- /* 13 */,
- /* 14 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/scrollbar */ "./node_modules/element-ui/lib/scrollbar.js");
- /***/ }),
- /* 15 */,
- /* 16 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/resize-event */ "./node_modules/element-ui/lib/utils/resize-event.js");
- /***/ }),
- /* 17 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! throttle-debounce/debounce */ "./node_modules/throttle-debounce/debounce.js");
- /***/ }),
- /* 18 */,
- /* 19 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/locale */ "./node_modules/element-ui/lib/locale/index.js");
- /***/ }),
- /* 20 */,
- /* 21 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "./node_modules/element-ui/lib/utils/shared.js");
- /***/ }),
- /* 22 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/mixins/focus */ "./node_modules/element-ui/lib/mixins/focus.js");
- /***/ }),
- /* 23 */,
- /* 24 */,
- /* 25 */,
- /* 26 */,
- /* 27 */,
- /* 28 */,
- /* 29 */,
- /* 30 */,
- /* 31 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/scroll-into-view */ "./node_modules/element-ui/lib/utils/scroll-into-view.js");
- /***/ }),
- /* 32 */,
- /* 33 */,
- /* 34 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "li",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible,
- expression: "visible"
- }
- ],
- staticClass: "el-select-dropdown__item",
- class: {
- selected: _vm.itemSelected,
- "is-disabled": _vm.disabled || _vm.groupDisabled || _vm.limitReached,
- hover: _vm.hover
- },
- on: {
- mouseenter: _vm.hoverItem,
- click: function($event) {
- $event.stopPropagation()
- return _vm.selectOptionClick($event)
- }
- }
- },
- [_vm._t("default", [_c("span", [_vm._v(_vm._s(_vm.currentLabel))])])],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=template&id=7a44c642&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js&
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var optionvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a],
- name: 'ElOption',
- componentName: 'ElOption',
- inject: ['select'],
- props: {
- value: {
- required: true
- },
- label: [String, Number],
- created: Boolean,
- disabled: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- index: -1,
- groupDisabled: false,
- visible: true,
- hitState: false,
- hover: false
- };
- },
- computed: {
- isObject: function isObject() {
- return Object.prototype.toString.call(this.value).toLowerCase() === '[object object]';
- },
- currentLabel: function currentLabel() {
- return this.label || (this.isObject ? '' : this.value);
- },
- currentValue: function currentValue() {
- return this.value || this.label || '';
- },
- itemSelected: function itemSelected() {
- if (!this.select.multiple) {
- return this.isEqual(this.value, this.select.value);
- } else {
- return this.contains(this.select.value, this.value);
- }
- },
- limitReached: function limitReached() {
- if (this.select.multiple) {
- return !this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0;
- } else {
- return false;
- }
- }
- },
- watch: {
- currentLabel: function currentLabel() {
- if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
- },
- value: function value(val, oldVal) {
- var _select = this.select,
- remote = _select.remote,
- valueKey = _select.valueKey;
- if (!this.created && !remote) {
- if (valueKey && (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && (typeof oldVal === 'undefined' ? 'undefined' : _typeof(oldVal)) === 'object' && val[valueKey] === oldVal[valueKey]) {
- return;
- }
- this.dispatch('ElSelect', 'setSelected');
- }
- }
- },
- methods: {
- isEqual: function isEqual(a, b) {
- if (!this.isObject) {
- return a === b;
- } else {
- var valueKey = this.select.valueKey;
- return Object(util_["getValueByPath"])(a, valueKey) === Object(util_["getValueByPath"])(b, valueKey);
- }
- },
- contains: function contains() {
- var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var target = arguments[1];
- if (!this.isObject) {
- return arr && arr.indexOf(target) > -1;
- } else {
- var valueKey = this.select.valueKey;
- return arr && arr.some(function (item) {
- return Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(target, valueKey);
- });
- }
- },
- handleGroupDisabled: function handleGroupDisabled(val) {
- this.groupDisabled = val;
- },
- hoverItem: function hoverItem() {
- if (!this.disabled && !this.groupDisabled) {
- this.select.hoverIndex = this.select.options.indexOf(this);
- }
- },
- selectOptionClick: function selectOptionClick() {
- if (this.disabled !== true && this.groupDisabled !== true) {
- this.dispatch('ElSelect', 'handleOptionClick', [this, true]);
- }
- },
- queryChange: function queryChange(query) {
- this.visible = new RegExp(Object(util_["escapeRegexpString"])(query), 'i').test(this.currentLabel) || this.created;
- if (!this.visible) {
- this.select.filteredOptionsCount--;
- }
- }
- },
- created: function created() {
- this.select.options.push(this);
- this.select.cachedOptions.push(this);
- this.select.optionsCount++;
- this.select.filteredOptionsCount++;
- this.$on('queryChange', this.queryChange);
- this.$on('handleGroupDisabled', this.handleGroupDisabled);
- },
- beforeDestroy: function beforeDestroy() {
- var _select2 = this.select,
- selected = _select2.selected,
- multiple = _select2.multiple;
- var selectedOptions = multiple ? selected : [selected];
- var index = this.select.cachedOptions.indexOf(this);
- var selectedIndex = selectedOptions.indexOf(this);
- // if option is not selected, remove it from cache
- if (index > -1 && selectedIndex < 0) {
- this.select.cachedOptions.splice(index, 1);
- }
- this.select.onOptionDestroy(this.select.options.indexOf(this));
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_optionvue_type_script_lang_js_ = (optionvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/select/src/option.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_optionvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/select/src/option.vue"
- /* harmony default export */ var src_option = __webpack_exports__["a"] = (component.exports);
- /***/ }),
- /* 35 */,
- /* 36 */,
- /* 37 */,
- /* 38 */
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/tag */ "./node_modules/element-ui/lib/tag.js");
- /***/ }),
- /* 39 */,
- /* 40 */,
- /* 41 */,
- /* 42 */,
- /* 43 */,
- /* 44 */,
- /* 45 */,
- /* 46 */,
- /* 47 */,
- /* 48 */,
- /* 49 */,
- /* 50 */,
- /* 51 */,
- /* 52 */,
- /* 53 */,
- /* 54 */,
- /* 55 */,
- /* 56 */,
- /* 57 */,
- /* 58 */,
- /* 59 */,
- /* 60 */,
- /* 61 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=0e4aade6&
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- directives: [
- {
- name: "clickoutside",
- rawName: "v-clickoutside",
- value: _vm.handleClose,
- expression: "handleClose"
- }
- ],
- staticClass: "el-select",
- class: [_vm.selectSize ? "el-select--" + _vm.selectSize : ""],
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.toggleMenu($event)
- }
- }
- },
- [
- _vm.multiple
- ? _c(
- "div",
- {
- ref: "tags",
- staticClass: "el-select__tags",
- style: { "max-width": _vm.inputWidth - 32 + "px", width: "100%" }
- },
- [
- _vm.collapseTags && _vm.selected.length
- ? _c(
- "span",
- [
- _c(
- "el-tag",
- {
- attrs: {
- closable: !_vm.selectDisabled,
- size: _vm.collapseTagSize,
- hit: _vm.selected[0].hitState,
- type: "info",
- "disable-transitions": ""
- },
- on: {
- close: function($event) {
- _vm.deleteTag($event, _vm.selected[0])
- }
- }
- },
- [
- _c("span", { staticClass: "el-select__tags-text" }, [
- _vm._v(_vm._s(_vm.selected[0].currentLabel))
- ])
- ]
- ),
- _vm.selected.length > 1
- ? _c(
- "el-tag",
- {
- attrs: {
- closable: false,
- size: _vm.collapseTagSize,
- type: "info",
- "disable-transitions": ""
- }
- },
- [
- _c(
- "span",
- { staticClass: "el-select__tags-text" },
- [_vm._v("+ " + _vm._s(_vm.selected.length - 1))]
- )
- ]
- )
- : _vm._e()
- ],
- 1
- )
- : _vm._e(),
- !_vm.collapseTags
- ? _c(
- "transition-group",
- { on: { "after-leave": _vm.resetInputHeight } },
- _vm._l(_vm.selected, function(item) {
- return _c(
- "el-tag",
- {
- key: _vm.getValueKey(item),
- attrs: {
- closable: !_vm.selectDisabled,
- size: _vm.collapseTagSize,
- hit: item.hitState,
- type: "info",
- "disable-transitions": ""
- },
- on: {
- close: function($event) {
- _vm.deleteTag($event, item)
- }
- }
- },
- [
- _c("span", { staticClass: "el-select__tags-text" }, [
- _vm._v(_vm._s(item.currentLabel))
- ])
- ]
- )
- }),
- 1
- )
- : _vm._e(),
- _vm.filterable
- ? _c("input", {
- directives: [
- {
- name: "model",
- rawName: "v-model",
- value: _vm.query,
- expression: "query"
- }
- ],
- ref: "input",
- staticClass: "el-select__input",
- class: [_vm.selectSize ? "is-" + _vm.selectSize : ""],
- style: {
- "flex-grow": "1",
- width: _vm.inputLength / (_vm.inputWidth - 32) + "%",
- "max-width": _vm.inputWidth - 42 + "px"
- },
- attrs: {
- type: "text",
- disabled: _vm.selectDisabled,
- autocomplete: _vm.autoComplete || _vm.autocomplete
- },
- domProps: { value: _vm.query },
- on: {
- focus: _vm.handleFocus,
- blur: function($event) {
- _vm.softFocus = false
- },
- keyup: _vm.managePlaceholder,
- keydown: [
- _vm.resetInputState,
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.navigateOptions("next")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, [
- "Up",
- "ArrowUp"
- ])
- ) {
- return null
- }
- $event.preventDefault()
- _vm.navigateOptions("prev")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "enter",
- 13,
- $event.key,
- "Enter"
- )
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.selectOption($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "esc", 27, $event.key, [
- "Esc",
- "Escape"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.visible = false
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k(
- $event.keyCode,
- "delete",
- [8, 46],
- $event.key,
- ["Backspace", "Delete", "Del"]
- )
- ) {
- return null
- }
- return _vm.deletePrevTag($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
- ) {
- return null
- }
- _vm.visible = false
- }
- ],
- compositionstart: _vm.handleComposition,
- compositionupdate: _vm.handleComposition,
- compositionend: _vm.handleComposition,
- input: [
- function($event) {
- if ($event.target.composing) {
- return
- }
- _vm.query = $event.target.value
- },
- _vm.debouncedQueryChange
- ]
- }
- })
- : _vm._e()
- ],
- 1
- )
- : _vm._e(),
- _c(
- "el-input",
- {
- ref: "reference",
- class: { "is-focus": _vm.visible },
- attrs: {
- type: "text",
- placeholder: _vm.currentPlaceholder,
- name: _vm.name,
- id: _vm.id,
- autocomplete: _vm.autoComplete || _vm.autocomplete,
- size: _vm.selectSize,
- disabled: _vm.selectDisabled,
- readonly: _vm.readonly,
- "validate-event": false,
- tabindex: _vm.multiple && _vm.filterable ? "-1" : null
- },
- on: { focus: _vm.handleFocus, blur: _vm.handleBlur },
- nativeOn: {
- keyup: function($event) {
- return _vm.debouncedOnInputChange($event)
- },
- keydown: [
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "down", 40, $event.key, [
- "Down",
- "ArrowDown"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.navigateOptions("next")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "up", 38, $event.key, [
- "Up",
- "ArrowUp"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.navigateOptions("prev")
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
- ) {
- return null
- }
- $event.preventDefault()
- return _vm.selectOption($event)
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "esc", 27, $event.key, [
- "Esc",
- "Escape"
- ])
- ) {
- return null
- }
- $event.stopPropagation()
- $event.preventDefault()
- _vm.visible = false
- },
- function($event) {
- if (
- !("button" in $event) &&
- _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
- ) {
- return null
- }
- _vm.visible = false
- }
- ],
- paste: function($event) {
- return _vm.debouncedOnInputChange($event)
- },
- mouseenter: function($event) {
- _vm.inputHovering = true
- },
- mouseleave: function($event) {
- _vm.inputHovering = false
- }
- },
- model: {
- value: _vm.selectedLabel,
- callback: function($$v) {
- _vm.selectedLabel = $$v
- },
- expression: "selectedLabel"
- }
- },
- [
- _vm.$slots.prefix
- ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
- : _vm._e(),
- _c("template", { slot: "suffix" }, [
- _c("i", {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: !_vm.showClose,
- expression: "!showClose"
- }
- ],
- class: [
- "el-select__caret",
- "el-input__icon",
- "el-icon-" + _vm.iconClass
- ]
- }),
- _vm.showClose
- ? _c("i", {
- staticClass:
- "el-select__caret el-input__icon el-icon-circle-close",
- on: { click: _vm.handleClearClick }
- })
- : _vm._e()
- ])
- ],
- 2
- ),
- _c(
- "transition",
- {
- attrs: { name: "el-zoom-in-top" },
- on: {
- "before-enter": _vm.handleMenuEnter,
- "after-leave": _vm.doDestroy
- }
- },
- [
- _c(
- "el-select-menu",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.visible && _vm.emptyText !== false,
- expression: "visible && emptyText !== false"
- }
- ],
- ref: "popper",
- attrs: { "append-to-body": _vm.popperAppendToBody }
- },
- [
- _c(
- "el-scrollbar",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm.options.length > 0 && !_vm.loading,
- expression: "options.length > 0 && !loading"
- }
- ],
- ref: "scrollbar",
- class: {
- "is-empty":
- !_vm.allowCreate &&
- _vm.query &&
- _vm.filteredOptionsCount === 0
- },
- attrs: {
- tag: "ul",
- "wrap-class": "el-select-dropdown__wrap",
- "view-class": "el-select-dropdown__list"
- }
- },
- [
- _vm.showNewOption
- ? _c("el-option", {
- attrs: { value: _vm.query, created: "" }
- })
- : _vm._e(),
- _vm._t("default")
- ],
- 2
- ),
- _vm.emptyText &&
- (!_vm.allowCreate ||
- _vm.loading ||
- (_vm.allowCreate && _vm.options.length === 0))
- ? [
- _vm.$slots.empty
- ? _vm._t("empty")
- : _c("p", { staticClass: "el-select-dropdown__empty" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.emptyText) +
- "\n "
- )
- ])
- ]
- : _vm._e()
- ],
- 2
- )
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=0e4aade6&
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
- var emitter_ = __webpack_require__(4);
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
- var focus_ = __webpack_require__(22);
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
- // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
- var locale_ = __webpack_require__(6);
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
- // EXTERNAL MODULE: external "element-ui/lib/input"
- var input_ = __webpack_require__(10);
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=template&id=06828748&
- var select_dropdownvue_type_template_id_06828748_render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "el-select-dropdown el-popper",
- class: [{ "is-multiple": _vm.$parent.multiple }, _vm.popperClass],
- style: { minWidth: _vm.minWidth }
- },
- [_vm._t("default")],
- 2
- )
- }
- var select_dropdownvue_type_template_id_06828748_staticRenderFns = []
- select_dropdownvue_type_template_id_06828748_render._withStripped = true
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=template&id=06828748&
- // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
- var vue_popper_ = __webpack_require__(5);
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var select_dropdownvue_type_script_lang_js_ = ({
- name: 'ElSelectDropdown',
- componentName: 'ElSelectDropdown',
- mixins: [vue_popper_default.a],
- props: {
- placement: {
- default: 'bottom-start'
- },
- boundariesPadding: {
- default: 0
- },
- popperOptions: {
- default: function _default() {
- return {
- gpuAcceleration: false
- };
- }
- },
- visibleArrow: {
- default: true
- },
- appendToBody: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- minWidth: ''
- };
- },
- computed: {
- popperClass: function popperClass() {
- return this.$parent.popperClass;
- }
- },
- watch: {
- '$parent.inputWidth': function $parentInputWidth() {
- this.minWidth = this.$parent.$el.getBoundingClientRect().width + 'px';
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.referenceElm = this.$parent.$refs.reference.$el;
- this.$parent.popperElm = this.popperElm = this.$el;
- this.$on('updatePopper', function () {
- if (_this.$parent.visible) _this.updatePopper();
- });
- this.$on('destroyPopper', this.destroyPopper);
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_select_dropdownvue_type_script_lang_js_ = (select_dropdownvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_select_dropdownvue_type_script_lang_js_,
- select_dropdownvue_type_template_id_06828748_render,
- select_dropdownvue_type_template_id_06828748_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/select/src/select-dropdown.vue"
- /* harmony default export */ var select_dropdown = (component.exports);
- // EXTERNAL MODULE: ./packages/select/src/option.vue + 4 modules
- var src_option = __webpack_require__(34);
- // EXTERNAL MODULE: external "element-ui/lib/tag"
- var tag_ = __webpack_require__(38);
- var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
- // EXTERNAL MODULE: external "element-ui/lib/scrollbar"
- var scrollbar_ = __webpack_require__(14);
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
- // EXTERNAL MODULE: external "throttle-debounce/debounce"
- var debounce_ = __webpack_require__(17);
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside"
- var clickoutside_ = __webpack_require__(12);
- var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
- var resize_event_ = __webpack_require__(16);
- // EXTERNAL MODULE: external "element-ui/lib/locale"
- var lib_locale_ = __webpack_require__(19);
- // EXTERNAL MODULE: external "element-ui/lib/utils/scroll-into-view"
- var scroll_into_view_ = __webpack_require__(31);
- var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // CONCATENATED MODULE: ./packages/select/src/navigation-mixin.js
- /* harmony default export */ var navigation_mixin = ({
- data: function data() {
- return {
- hoverOption: -1
- };
- },
- computed: {
- optionsAllDisabled: function optionsAllDisabled() {
- return this.options.filter(function (option) {
- return option.visible;
- }).every(function (option) {
- return option.disabled;
- });
- }
- },
- watch: {
- hoverIndex: function hoverIndex(val) {
- var _this = this;
- if (typeof val === 'number' && val > -1) {
- this.hoverOption = this.options[val] || {};
- }
- this.options.forEach(function (option) {
- option.hover = _this.hoverOption === option;
- });
- }
- },
- methods: {
- navigateOptions: function navigateOptions(direction) {
- var _this2 = this;
- if (!this.visible) {
- this.visible = true;
- return;
- }
- if (this.options.length === 0 || this.filteredOptionsCount === 0) return;
- if (!this.optionsAllDisabled) {
- if (direction === 'next') {
- this.hoverIndex++;
- if (this.hoverIndex === this.options.length) {
- this.hoverIndex = 0;
- }
- } else if (direction === 'prev') {
- this.hoverIndex--;
- if (this.hoverIndex < 0) {
- this.hoverIndex = this.options.length - 1;
- }
- }
- var option = this.options[this.hoverIndex];
- if (option.disabled === true || option.groupDisabled === true || !option.visible) {
- this.navigateOptions(direction);
- }
- this.$nextTick(function () {
- return _this2.scrollToOption(_this2.hoverOption);
- });
- }
- }
- }
- });
- // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
- var shared_ = __webpack_require__(21);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ var selectvue_type_script_lang_js_ = ({
- mixins: [emitter_default.a, locale_default.a, focus_default()('reference'), navigation_mixin],
- name: 'ElSelect',
- componentName: 'ElSelect',
- inject: {
- elForm: {
- default: ''
- },
- elFormItem: {
- default: ''
- }
- },
- provide: function provide() {
- return {
- 'select': this
- };
- },
- computed: {
- _elFormItemSize: function _elFormItemSize() {
- return (this.elFormItem || {}).elFormItemSize;
- },
- readonly: function readonly() {
- return !this.filterable || this.multiple || !Object(util_["isIE"])() && !Object(util_["isEdge"])() && !this.visible;
- },
- showClose: function showClose() {
- var hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && this.value !== null && this.value !== '';
- var criteria = this.clearable && !this.selectDisabled && this.inputHovering && hasValue;
- return criteria;
- },
- iconClass: function iconClass() {
- return this.remote && this.filterable ? '' : this.visible ? 'arrow-up is-reverse' : 'arrow-up';
- },
- debounce: function debounce() {
- return this.remote ? 300 : 0;
- },
- emptyText: function emptyText() {
- if (this.loading) {
- return this.loadingText || this.t('el.select.loading');
- } else {
- if (this.remote && this.query === '' && this.options.length === 0) return false;
- if (this.filterable && this.query && this.options.length > 0 && this.filteredOptionsCount === 0) {
- return this.noMatchText || this.t('el.select.noMatch');
- }
- if (this.options.length === 0) {
- return this.noDataText || this.t('el.select.noData');
- }
- }
- return null;
- },
- showNewOption: function showNewOption() {
- var _this = this;
- var hasExistingOption = this.options.filter(function (option) {
- return !option.created;
- }).some(function (option) {
- return option.currentLabel === _this.query;
- });
- return this.filterable && this.allowCreate && this.query !== '' && !hasExistingOption;
- },
- selectSize: function selectSize() {
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
- },
- selectDisabled: function selectDisabled() {
- return this.disabled || (this.elForm || {}).disabled;
- },
- collapseTagSize: function collapseTagSize() {
- return ['small', 'mini'].indexOf(this.selectSize) > -1 ? 'mini' : 'small';
- }
- },
- components: {
- ElInput: input_default.a,
- ElSelectMenu: select_dropdown,
- ElOption: src_option["a" /* default */],
- ElTag: tag_default.a,
- ElScrollbar: scrollbar_default.a
- },
- directives: { Clickoutside: clickoutside_default.a },
- props: {
- name: String,
- id: String,
- value: {
- required: true
- },
- autocomplete: {
- type: String,
- default: 'off'
- },
- /** @Deprecated in next major version */
- autoComplete: {
- type: String,
- validator: function validator(val) {
- false && false;
- return true;
- }
- },
- automaticDropdown: Boolean,
- size: String,
- disabled: Boolean,
- clearable: Boolean,
- filterable: Boolean,
- allowCreate: Boolean,
- loading: Boolean,
- popperClass: String,
- remote: Boolean,
- loadingText: String,
- noMatchText: String,
- noDataText: String,
- remoteMethod: Function,
- filterMethod: Function,
- multiple: Boolean,
- multipleLimit: {
- type: Number,
- default: 0
- },
- placeholder: {
- type: String,
- default: function _default() {
- return Object(lib_locale_["t"])('el.select.placeholder');
- }
- },
- defaultFirstOption: Boolean,
- reserveKeyword: Boolean,
- valueKey: {
- type: String,
- default: 'value'
- },
- collapseTags: Boolean,
- popperAppendToBody: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- options: [],
- cachedOptions: [],
- createdLabel: null,
- createdSelected: false,
- selected: this.multiple ? [] : {},
- inputLength: 20,
- inputWidth: 0,
- initialInputHeight: 0,
- cachedPlaceHolder: '',
- optionsCount: 0,
- filteredOptionsCount: 0,
- visible: false,
- softFocus: false,
- selectedLabel: '',
- hoverIndex: -1,
- query: '',
- previousQuery: null,
- inputHovering: false,
- currentPlaceholder: '',
- menuVisibleOnFocus: false,
- isOnComposition: false,
- isSilentBlur: false
- };
- },
- watch: {
- selectDisabled: function selectDisabled() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.resetInputHeight();
- });
- },
- placeholder: function placeholder(val) {
- this.cachedPlaceHolder = this.currentPlaceholder = val;
- },
- value: function value(val, oldVal) {
- if (this.multiple) {
- this.resetInputHeight();
- if (val && val.length > 0 || this.$refs.input && this.query !== '') {
- this.currentPlaceholder = '';
- } else {
- this.currentPlaceholder = this.cachedPlaceHolder;
- }
- if (this.filterable && !this.reserveKeyword) {
- this.query = '';
- this.handleQueryChange(this.query);
- }
- }
- this.setSelected();
- if (this.filterable && !this.multiple) {
- this.inputLength = 20;
- }
- if (!Object(util_["valueEquals"])(val, oldVal)) {
- this.dispatch('ElFormItem', 'el.form.change', val);
- }
- },
- visible: function visible(val) {
- var _this3 = this;
- if (!val) {
- this.broadcast('ElSelectDropdown', 'destroyPopper');
- if (this.$refs.input) {
- this.$refs.input.blur();
- }
- this.query = '';
- this.previousQuery = null;
- this.selectedLabel = '';
- this.inputLength = 20;
- this.menuVisibleOnFocus = false;
- this.resetHoverIndex();
- this.$nextTick(function () {
- if (_this3.$refs.input && _this3.$refs.input.value === '' && _this3.selected.length === 0) {
- _this3.currentPlaceholder = _this3.cachedPlaceHolder;
- }
- });
- if (!this.multiple) {
- if (this.selected) {
- if (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel) {
- this.selectedLabel = this.createdLabel;
- } else {
- this.selectedLabel = this.selected.currentLabel;
- }
- if (this.filterable) this.query = this.selectedLabel;
- }
- if (this.filterable) {
- this.currentPlaceholder = this.cachedPlaceHolder;
- }
- }
- } else {
- this.broadcast('ElSelectDropdown', 'updatePopper');
- if (this.filterable) {
- this.query = this.remote ? '' : this.selectedLabel;
- this.handleQueryChange(this.query);
- if (this.multiple) {
- this.$refs.input.focus();
- } else {
- if (!this.remote) {
- this.broadcast('ElOption', 'queryChange', '');
- this.broadcast('ElOptionGroup', 'queryChange');
- }
- if (this.selectedLabel) {
- this.currentPlaceholder = this.selectedLabel;
- this.selectedLabel = '';
- }
- }
- }
- }
- this.$emit('visible-change', val);
- },
- options: function options() {
- var _this4 = this;
- if (this.$isServer) return;
- this.$nextTick(function () {
- _this4.broadcast('ElSelectDropdown', 'updatePopper');
- });
- if (this.multiple) {
- this.resetInputHeight();
- }
- var inputs = this.$el.querySelectorAll('input');
- if ([].indexOf.call(inputs, document.activeElement) === -1) {
- this.setSelected();
- }
- if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
- this.checkDefaultFirstOption();
- }
- }
- },
- methods: {
- handleComposition: function handleComposition(event) {
- var _this5 = this;
- var text = event.target.value;
- if (event.type === 'compositionend') {
- this.isOnComposition = false;
- this.$nextTick(function (_) {
- return _this5.handleQueryChange(text);
- });
- } else {
- var lastCharacter = text[text.length - 1] || '';
- this.isOnComposition = !Object(shared_["isKorean"])(lastCharacter);
- }
- },
- handleQueryChange: function handleQueryChange(val) {
- var _this6 = this;
- if (this.previousQuery === val || this.isOnComposition) return;
- if (this.previousQuery === null && (typeof this.filterMethod === 'function' || typeof this.remoteMethod === 'function')) {
- this.previousQuery = val;
- return;
- }
- this.previousQuery = val;
- this.$nextTick(function () {
- if (_this6.visible) _this6.broadcast('ElSelectDropdown', 'updatePopper');
- });
- this.hoverIndex = -1;
- if (this.multiple && this.filterable) {
- this.$nextTick(function () {
- var length = _this6.$refs.input.value.length * 15 + 20;
- _this6.inputLength = _this6.collapseTags ? Math.min(50, length) : length;
- _this6.managePlaceholder();
- _this6.resetInputHeight();
- });
- }
- if (this.remote && typeof this.remoteMethod === 'function') {
- this.hoverIndex = -1;
- this.remoteMethod(val);
- } else if (typeof this.filterMethod === 'function') {
- this.filterMethod(val);
- this.broadcast('ElOptionGroup', 'queryChange');
- } else {
- this.filteredOptionsCount = this.optionsCount;
- this.broadcast('ElOption', 'queryChange', val);
- this.broadcast('ElOptionGroup', 'queryChange');
- }
- if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
- this.checkDefaultFirstOption();
- }
- },
- scrollToOption: function scrollToOption(option) {
- var target = Array.isArray(option) && option[0] ? option[0].$el : option.$el;
- if (this.$refs.popper && target) {
- var menu = this.$refs.popper.$el.querySelector('.el-select-dropdown__wrap');
- scroll_into_view_default()(menu, target);
- }
- this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
- },
- handleMenuEnter: function handleMenuEnter() {
- var _this7 = this;
- this.$nextTick(function () {
- return _this7.scrollToOption(_this7.selected);
- });
- },
- emitChange: function emitChange(val) {
- if (!Object(util_["valueEquals"])(this.value, val)) {
- this.$emit('change', val);
- }
- },
- getOption: function getOption(value) {
- var option = void 0;
- var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
- var isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
- var isUndefined = Object.prototype.toString.call(value).toLowerCase() === '[object undefined]';
- for (var i = this.cachedOptions.length - 1; i >= 0; i--) {
- var cachedOption = this.cachedOptions[i];
- var isEqual = isObject ? Object(util_["getValueByPath"])(cachedOption.value, this.valueKey) === Object(util_["getValueByPath"])(value, this.valueKey) : cachedOption.value === value;
- if (isEqual) {
- option = cachedOption;
- break;
- }
- }
- if (option) return option;
- var label = !isObject && !isNull && !isUndefined ? value : '';
- var newOption = {
- value: value,
- currentLabel: label
- };
- if (this.multiple) {
- newOption.hitState = false;
- }
- return newOption;
- },
- setSelected: function setSelected() {
- var _this8 = this;
- if (!this.multiple) {
- var option = this.getOption(this.value);
- if (option.created) {
- this.createdLabel = option.currentLabel;
- this.createdSelected = true;
- } else {
- this.createdSelected = false;
- }
- this.selectedLabel = option.currentLabel;
- this.selected = option;
- if (this.filterable) this.query = this.selectedLabel;
- return;
- }
- var result = [];
- if (Array.isArray(this.value)) {
- this.value.forEach(function (value) {
- result.push(_this8.getOption(value));
- });
- }
- this.selected = result;
- this.$nextTick(function () {
- _this8.resetInputHeight();
- });
- },
- handleFocus: function handleFocus(event) {
- if (!this.softFocus) {
- if (this.automaticDropdown || this.filterable) {
- this.visible = true;
- if (this.filterable) {
- this.menuVisibleOnFocus = true;
- }
- }
- this.$emit('focus', event);
- } else {
- this.softFocus = false;
- }
- },
- blur: function blur() {
- this.visible = false;
- this.$refs.reference.blur();
- },
- handleBlur: function handleBlur(event) {
- var _this9 = this;
- setTimeout(function () {
- if (_this9.isSilentBlur) {
- _this9.isSilentBlur = false;
- } else {
- _this9.$emit('blur', event);
- }
- }, 50);
- this.softFocus = false;
- },
- handleClearClick: function handleClearClick(event) {
- this.deleteSelected(event);
- },
- doDestroy: function doDestroy() {
- this.$refs.popper && this.$refs.popper.doDestroy();
- },
- handleClose: function handleClose() {
- this.visible = false;
- },
- toggleLastOptionHitState: function toggleLastOptionHitState(hit) {
- if (!Array.isArray(this.selected)) return;
- var option = this.selected[this.selected.length - 1];
- if (!option) return;
- if (hit === true || hit === false) {
- option.hitState = hit;
- return hit;
- }
- option.hitState = !option.hitState;
- return option.hitState;
- },
- deletePrevTag: function deletePrevTag(e) {
- if (e.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
- var value = this.value.slice();
- value.pop();
- this.$emit('input', value);
- this.emitChange(value);
- }
- },
- managePlaceholder: function managePlaceholder() {
- if (this.currentPlaceholder !== '') {
- this.currentPlaceholder = this.$refs.input.value ? '' : this.cachedPlaceHolder;
- }
- },
- resetInputState: function resetInputState(e) {
- if (e.keyCode !== 8) this.toggleLastOptionHitState(false);
- this.inputLength = this.$refs.input.value.length * 15 + 20;
- this.resetInputHeight();
- },
- resetInputHeight: function resetInputHeight() {
- var _this10 = this;
- if (this.collapseTags && !this.filterable) return;
- this.$nextTick(function () {
- if (!_this10.$refs.reference) return;
- var inputChildNodes = _this10.$refs.reference.$el.childNodes;
- var input = [].filter.call(inputChildNodes, function (item) {
- return item.tagName === 'INPUT';
- })[0];
- var tags = _this10.$refs.tags;
- var sizeInMap = _this10.initialInputHeight || 40;
- input.style.height = _this10.selected.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tags.clientHeight + (tags.clientHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) + 'px';
- if (_this10.visible && _this10.emptyText !== false) {
- _this10.broadcast('ElSelectDropdown', 'updatePopper');
- }
- });
- },
- resetHoverIndex: function resetHoverIndex() {
- var _this11 = this;
- setTimeout(function () {
- if (!_this11.multiple) {
- _this11.hoverIndex = _this11.options.indexOf(_this11.selected);
- } else {
- if (_this11.selected.length > 0) {
- _this11.hoverIndex = Math.min.apply(null, _this11.selected.map(function (item) {
- return _this11.options.indexOf(item);
- }));
- } else {
- _this11.hoverIndex = -1;
- }
- }
- }, 300);
- },
- handleOptionSelect: function handleOptionSelect(option, byClick) {
- var _this12 = this;
- if (this.multiple) {
- var value = (this.value || []).slice();
- var optionIndex = this.getValueIndex(value, option.value);
- if (optionIndex > -1) {
- value.splice(optionIndex, 1);
- } else if (this.multipleLimit <= 0 || value.length < this.multipleLimit) {
- value.push(option.value);
- }
- this.$emit('input', value);
- this.emitChange(value);
- if (option.created) {
- this.query = '';
- this.handleQueryChange('');
- this.inputLength = 20;
- }
- if (this.filterable) this.$refs.input.focus();
- } else {
- this.$emit('input', option.value);
- this.emitChange(option.value);
- this.visible = false;
- }
- this.isSilentBlur = byClick;
- this.setSoftFocus();
- if (this.visible) return;
- this.$nextTick(function () {
- _this12.scrollToOption(option);
- });
- },
- setSoftFocus: function setSoftFocus() {
- this.softFocus = true;
- var input = this.$refs.input || this.$refs.reference;
- if (input) {
- input.focus();
- }
- },
- getValueIndex: function getValueIndex() {
- var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var value = arguments[1];
- var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
- if (!isObject) {
- return arr.indexOf(value);
- } else {
- var valueKey = this.valueKey;
- var index = -1;
- arr.some(function (item, i) {
- if (Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(value, valueKey)) {
- index = i;
- return true;
- }
- return false;
- });
- return index;
- }
- },
- toggleMenu: function toggleMenu() {
- if (!this.selectDisabled) {
- if (this.menuVisibleOnFocus) {
- this.menuVisibleOnFocus = false;
- } else {
- this.visible = !this.visible;
- }
- if (this.visible) {
- (this.$refs.input || this.$refs.reference).focus();
- }
- }
- },
- selectOption: function selectOption() {
- if (!this.visible) {
- this.toggleMenu();
- } else {
- if (this.options[this.hoverIndex]) {
- this.handleOptionSelect(this.options[this.hoverIndex]);
- }
- }
- },
- deleteSelected: function deleteSelected(event) {
- event.stopPropagation();
- var value = this.multiple ? [] : '';
- this.$emit('input', value);
- this.emitChange(value);
- this.visible = false;
- this.$emit('clear');
- },
- deleteTag: function deleteTag(event, tag) {
- var index = this.selected.indexOf(tag);
- if (index > -1 && !this.selectDisabled) {
- var value = this.value.slice();
- value.splice(index, 1);
- this.$emit('input', value);
- this.emitChange(value);
- this.$emit('remove-tag', tag.value);
- }
- event.stopPropagation();
- },
- onInputChange: function onInputChange() {
- if (this.filterable && this.query !== this.selectedLabel) {
- this.query = this.selectedLabel;
- this.handleQueryChange(this.query);
- }
- },
- onOptionDestroy: function onOptionDestroy(index) {
- if (index > -1) {
- this.optionsCount--;
- this.filteredOptionsCount--;
- this.options.splice(index, 1);
- }
- },
- resetInputWidth: function resetInputWidth() {
- this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width;
- },
- handleResize: function handleResize() {
- this.resetInputWidth();
- if (this.multiple) this.resetInputHeight();
- },
- checkDefaultFirstOption: function checkDefaultFirstOption() {
- this.hoverIndex = -1;
- // highlight the created option
- var hasCreated = false;
- for (var i = this.options.length - 1; i >= 0; i--) {
- if (this.options[i].created) {
- hasCreated = true;
- this.hoverIndex = i;
- break;
- }
- }
- if (hasCreated) return;
- for (var _i = 0; _i !== this.options.length; ++_i) {
- var option = this.options[_i];
- if (this.query) {
- // highlight first options that passes the filter
- if (!option.disabled && !option.groupDisabled && option.visible) {
- this.hoverIndex = _i;
- break;
- }
- } else {
- // highlight currently selected option
- if (option.itemSelected) {
- this.hoverIndex = _i;
- break;
- }
- }
- }
- },
- getValueKey: function getValueKey(item) {
- if (Object.prototype.toString.call(item.value).toLowerCase() !== '[object object]') {
- return item.value;
- } else {
- return Object(util_["getValueByPath"])(item.value, this.valueKey);
- }
- }
- },
- created: function created() {
- var _this13 = this;
- this.cachedPlaceHolder = this.currentPlaceholder = this.placeholder;
- if (this.multiple && !Array.isArray(this.value)) {
- this.$emit('input', []);
- }
- if (!this.multiple && Array.isArray(this.value)) {
- this.$emit('input', '');
- }
- this.debouncedOnInputChange = debounce_default()(this.debounce, function () {
- _this13.onInputChange();
- });
- this.debouncedQueryChange = debounce_default()(this.debounce, function (e) {
- _this13.handleQueryChange(e.target.value);
- });
- this.$on('handleOptionClick', this.handleOptionSelect);
- this.$on('setSelected', this.setSelected);
- },
- mounted: function mounted() {
- var _this14 = this;
- if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
- this.currentPlaceholder = '';
- }
- Object(resize_event_["addResizeListener"])(this.$el, this.handleResize);
- var reference = this.$refs.reference;
- if (reference && reference.$el) {
- var sizeMap = {
- medium: 36,
- small: 32,
- mini: 28
- };
- var input = reference.$el.querySelector('input');
- this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
- }
- if (this.remote && this.multiple) {
- this.resetInputHeight();
- }
- this.$nextTick(function () {
- if (reference && reference.$el) {
- _this14.inputWidth = reference.$el.getBoundingClientRect().width;
- }
- });
- this.setSelected();
- },
- beforeDestroy: function beforeDestroy() {
- if (this.$el && this.handleResize) Object(resize_event_["removeResizeListener"])(this.$el, this.handleResize);
- }
- });
- // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_selectvue_type_script_lang_js_ = (selectvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./packages/select/src/select.vue
- /* normalize component */
- var select_component = Object(componentNormalizer["a" /* default */])(
- src_selectvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var select_api; }
- select_component.options.__file = "packages/select/src/select.vue"
- /* harmony default export */ var src_select = (select_component.exports);
- // CONCATENATED MODULE: ./packages/select/index.js
- /* istanbul ignore next */
- src_select.install = function (Vue) {
- Vue.component(src_select.name, src_select);
- };
- /* harmony default export */ var packages_select = __webpack_exports__["default"] = (src_select);
- /***/ })
- /******/ ]);
- /***/ }),
- /***/ "./node_modules/element-ui/lib/tag.js":
- /*!********************************************!*\
- !*** ./node_modules/element-ui/lib/tag.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 124);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 0:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 124:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tag/src/tag.vue?vue&type=script&lang=js&
- /* harmony default export */ var tagvue_type_script_lang_js_ = ({
- name: 'ElTag',
- props: {
- text: String,
- closable: Boolean,
- type: String,
- hit: Boolean,
- disableTransitions: Boolean,
- color: String,
- size: String,
- effect: {
- type: String,
- default: 'light',
- validator: function validator(val) {
- return ['dark', 'light', 'plain'].indexOf(val) !== -1;
- }
- }
- },
- methods: {
- handleClose: function handleClose(event) {
- event.stopPropagation();
- this.$emit('close', event);
- },
- handleClick: function handleClick(event) {
- this.$emit('click', event);
- }
- },
- computed: {
- tagSize: function tagSize() {
- return this.size || (this.$ELEMENT || {}).size;
- }
- },
- render: function render(h) {
- var type = this.type,
- tagSize = this.tagSize,
- hit = this.hit,
- effect = this.effect;
- var classes = ['el-tag', type ? 'el-tag--' + type : '', tagSize ? 'el-tag--' + tagSize : '', effect ? 'el-tag--' + effect : '', hit && 'is-hit'];
- var tagEl = h(
- 'span',
- {
- 'class': classes,
- style: { backgroundColor: this.color },
- on: {
- 'click': this.handleClick
- }
- },
- [this.$slots.default, this.closable && h('i', { 'class': 'el-tag__close el-icon-close', on: {
- 'click': this.handleClose
- }
- })]
- );
- return this.disableTransitions ? tagEl : h(
- 'transition',
- {
- attrs: { name: 'el-zoom-in-center' }
- },
- [tagEl]
- );
- }
- });
- // CONCATENATED MODULE: ./packages/tag/src/tag.vue?vue&type=script&lang=js&
- /* harmony default export */ var src_tagvue_type_script_lang_js_ = (tagvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(0);
- // CONCATENATED MODULE: ./packages/tag/src/tag.vue
- var render, staticRenderFns
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- src_tagvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "packages/tag/src/tag.vue"
- /* harmony default export */ var tag = (component.exports);
- // CONCATENATED MODULE: ./packages/tag/index.js
- /* istanbul ignore next */
- tag.install = function (Vue) {
- Vue.component(tag.name, tag);
- };
- /* harmony default export */ var packages_tag = __webpack_exports__["default"] = (tag);
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf":
- /*!*************************************************************************!*\
- !*** ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__.p + "fonts/element-icons.732389de.ttf";
- /***/ }),
- /***/ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.woff":
- /*!**************************************************************************!*\
- !*** ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.woff ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__.p + "fonts/element-icons.535877f5.woff";
- /***/ }),
- /***/ "./node_modules/element-ui/lib/theme-chalk/index.css":
- /*!***********************************************************!*\
- !*** ./node_modules/element-ui/lib/theme-chalk/index.css ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--6-oneOf-3-1!../../../postcss-loader/src??ref--6-oneOf-3-2!./index.css */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/element-ui/lib/theme-chalk/index.css");
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
- var update = add("49c9cf7d", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /***/ "./node_modules/element-ui/lib/tooltip.js":
- /*!************************************************!*\
- !*** ./node_modules/element-ui/lib/tooltip.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 131);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ 131:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
- var vue_popper_ = __webpack_require__(5);
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
- // EXTERNAL MODULE: external "throttle-debounce/debounce"
- var debounce_ = __webpack_require__(17);
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
- var dom_ = __webpack_require__(2);
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
- var util_ = __webpack_require__(3);
- // EXTERNAL MODULE: external "vue"
- var external_vue_ = __webpack_require__(7);
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
- // CONCATENATED MODULE: ./packages/tooltip/src/main.js
- /* harmony default export */ var main = ({
- name: 'ElTooltip',
- mixins: [vue_popper_default.a],
- props: {
- openDelay: {
- type: Number,
- default: 0
- },
- disabled: Boolean,
- manual: Boolean,
- effect: {
- type: String,
- default: 'dark'
- },
- arrowOffset: {
- type: Number,
- default: 0
- },
- popperClass: String,
- content: String,
- visibleArrow: {
- default: true
- },
- transition: {
- type: String,
- default: 'el-fade-in-linear'
- },
- popperOptions: {
- default: function _default() {
- return {
- boundariesPadding: 10,
- gpuAcceleration: false
- };
- }
- },
- enterable: {
- type: Boolean,
- default: true
- },
- hideAfter: {
- type: Number,
- default: 0
- },
- tabindex: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
- timeoutPending: null,
- focusing: false
- };
- },
- beforeCreate: function beforeCreate() {
- var _this = this;
- if (this.$isServer) return;
- this.popperVM = new external_vue_default.a({
- data: { node: '' },
- render: function render(h) {
- return this.node;
- }
- }).$mount();
- this.debounceClose = debounce_default()(200, function () {
- return _this.handleClosePopper();
- });
- },
- render: function render(h) {
- var _this2 = this;
- if (this.popperVM) {
- this.popperVM.node = h(
- 'transition',
- {
- attrs: {
- name: this.transition
- },
- on: {
- 'afterLeave': this.doDestroy
- }
- },
- [h(
- 'div',
- {
- on: {
- 'mouseleave': function mouseleave() {
- _this2.setExpectedState(false);_this2.debounceClose();
- },
- 'mouseenter': function mouseenter() {
- _this2.setExpectedState(true);
- }
- },
- ref: 'popper',
- attrs: { role: 'tooltip',
- id: this.tooltipId,
- 'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
- },
- directives: [{
- name: 'show',
- value: !this.disabled && this.showPopper
- }],
- 'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
- [this.$slots.content || this.content]
- )]
- );
- }
- var firstElement = this.getFirstElement();
- if (!firstElement) return null;
- var data = firstElement.data = firstElement.data || {};
- data.staticClass = this.addTooltipClass(data.staticClass);
- return firstElement;
- },
- mounted: function mounted() {
- var _this3 = this;
- this.referenceElm = this.$el;
- if (this.$el.nodeType === 1) {
- this.$el.setAttribute('aria-describedby', this.tooltipId);
- this.$el.setAttribute('tabindex', this.tabindex);
- Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
- Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
- Object(dom_["on"])(this.referenceElm, 'focus', function () {
- if (!_this3.$slots.default || !_this3.$slots.default.length) {
- _this3.handleFocus();
- return;
- }
- var instance = _this3.$slots.default[0].componentInstance;
- if (instance && instance.focus) {
- instance.focus();
- } else {
- _this3.handleFocus();
- }
- });
- Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
- Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
- }
- // fix issue https://github.com/ElemeFE/element/issues/14424
- if (this.value && this.popperVM) {
- this.popperVM.$nextTick(function () {
- if (_this3.value) {
- _this3.updatePopper();
- }
- });
- }
- },
- watch: {
- focusing: function focusing(val) {
- if (val) {
- Object(dom_["addClass"])(this.referenceElm, 'focusing');
- } else {
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
- }
- }
- },
- methods: {
- show: function show() {
- this.setExpectedState(true);
- this.handleShowPopper();
- },
- hide: function hide() {
- this.setExpectedState(false);
- this.debounceClose();
- },
- handleFocus: function handleFocus() {
- this.focusing = true;
- this.show();
- },
- handleBlur: function handleBlur() {
- this.focusing = false;
- this.hide();
- },
- removeFocusing: function removeFocusing() {
- this.focusing = false;
- },
- addTooltipClass: function addTooltipClass(prev) {
- if (!prev) {
- return 'el-tooltip';
- } else {
- return 'el-tooltip ' + prev.replace('el-tooltip', '');
- }
- },
- handleShowPopper: function handleShowPopper() {
- var _this4 = this;
- if (!this.expectedState || this.manual) return;
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this4.showPopper = true;
- }, this.openDelay);
- if (this.hideAfter > 0) {
- this.timeoutPending = setTimeout(function () {
- _this4.showPopper = false;
- }, this.hideAfter);
- }
- },
- handleClosePopper: function handleClosePopper() {
- if (this.enterable && this.expectedState || this.manual) return;
- clearTimeout(this.timeout);
- if (this.timeoutPending) {
- clearTimeout(this.timeoutPending);
- }
- this.showPopper = false;
- if (this.disabled) {
- this.doDestroy();
- }
- },
- setExpectedState: function setExpectedState(expectedState) {
- if (expectedState === false) {
- clearTimeout(this.timeoutPending);
- }
- this.expectedState = expectedState;
- },
- getFirstElement: function getFirstElement() {
- var slots = this.$slots.default;
- if (!Array.isArray(slots)) return null;
- var element = null;
- for (var index = 0; index < slots.length; index++) {
- if (slots[index] && slots[index].tag) {
- element = slots[index];
- };
- }
- return element;
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.popperVM && this.popperVM.$destroy();
- },
- destroyed: function destroyed() {
- var reference = this.referenceElm;
- if (reference.nodeType === 1) {
- Object(dom_["off"])(reference, 'mouseenter', this.show);
- Object(dom_["off"])(reference, 'mouseleave', this.hide);
- Object(dom_["off"])(reference, 'focus', this.handleFocus);
- Object(dom_["off"])(reference, 'blur', this.handleBlur);
- Object(dom_["off"])(reference, 'click', this.removeFocusing);
- }
- }
- });
- // CONCATENATED MODULE: ./packages/tooltip/index.js
- /* istanbul ignore next */
- main.install = function (Vue) {
- Vue.component(main.name, main);
- };
- /* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
- /***/ }),
- /***/ 17:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! throttle-debounce/debounce */ "./node_modules/throttle-debounce/debounce.js");
- /***/ }),
- /***/ 2:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- /***/ }),
- /***/ 3:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- /***/ }),
- /***/ 5:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! element-ui/lib/utils/vue-popper */ "./node_modules/element-ui/lib/utils/vue-popper.js");
- /***/ }),
- /***/ 7:
- /***/ (function(module, exports) {
- module.exports = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- /***/ })
- /******/ });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/transitions/collapse-transition.js":
- /*!************************************************************************!*\
- !*** ./node_modules/element-ui/lib/transitions/collapse-transition.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _dom = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var Transition = function () {
- function Transition() {
- _classCallCheck(this, Transition);
- }
- Transition.prototype.beforeEnter = function beforeEnter(el) {
- (0, _dom.addClass)(el, 'collapse-transition');
- if (!el.dataset) el.dataset = {};
- el.dataset.oldPaddingTop = el.style.paddingTop;
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
- el.style.height = '0';
- el.style.paddingTop = 0;
- el.style.paddingBottom = 0;
- };
- Transition.prototype.enter = function enter(el) {
- el.dataset.oldOverflow = el.style.overflow;
- if (el.scrollHeight !== 0) {
- el.style.height = el.scrollHeight + 'px';
- el.style.paddingTop = el.dataset.oldPaddingTop;
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
- } else {
- el.style.height = '';
- el.style.paddingTop = el.dataset.oldPaddingTop;
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
- }
- el.style.overflow = 'hidden';
- };
- Transition.prototype.afterEnter = function afterEnter(el) {
- // for safari: remove class then reset height is necessary
- (0, _dom.removeClass)(el, 'collapse-transition');
- el.style.height = '';
- el.style.overflow = el.dataset.oldOverflow;
- };
- Transition.prototype.beforeLeave = function beforeLeave(el) {
- if (!el.dataset) el.dataset = {};
- el.dataset.oldPaddingTop = el.style.paddingTop;
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
- el.dataset.oldOverflow = el.style.overflow;
- el.style.height = el.scrollHeight + 'px';
- el.style.overflow = 'hidden';
- };
- Transition.prototype.leave = function leave(el) {
- if (el.scrollHeight !== 0) {
- // for safari: add class after set height, or it will jump to zero height suddenly, weired
- (0, _dom.addClass)(el, 'collapse-transition');
- el.style.height = 0;
- el.style.paddingTop = 0;
- el.style.paddingBottom = 0;
- }
- };
- Transition.prototype.afterLeave = function afterLeave(el) {
- (0, _dom.removeClass)(el, 'collapse-transition');
- el.style.height = '';
- el.style.overflow = el.dataset.oldOverflow;
- el.style.paddingTop = el.dataset.oldPaddingTop;
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
- };
- return Transition;
- }();
- exports.default = {
- name: 'ElCollapseTransition',
- functional: true,
- render: function render(h, _ref) {
- var children = _ref.children;
- var data = {
- on: new Transition()
- };
- return h('transition', data, children);
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/after-leave.js":
- /*!**********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/after-leave.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function (instance, callback) {
- var speed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
- var once = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
- if (!instance || !callback) throw new Error('instance & callback is required');
- var called = false;
- var afterLeaveCallback = function afterLeaveCallback() {
- if (called) return;
- called = true;
- if (callback) {
- callback.apply(null, arguments);
- }
- };
- if (once) {
- instance.$once('after-leave', afterLeaveCallback);
- } else {
- instance.$on('after-leave', afterLeaveCallback);
- }
- setTimeout(function () {
- afterLeaveCallback();
- }, speed + 100);
- };
- ; /**
- * Bind after-leave event for vue instance. Make sure after-leave is called in any browsers.
- *
- * @param {Vue} instance Vue instance.
- * @param {Function} callback callback of after-leave event
- * @param {Number} speed the speed of transition, default value is 300ms
- * @param {Boolean} once weather bind after-leave once. default value is false.
- */
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/aria-dialog.js":
- /*!**********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/aria-dialog.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- var _ariaUtils = __webpack_require__(/*! ./aria-utils */ "./node_modules/element-ui/lib/utils/aria-utils.js");
- var _ariaUtils2 = _interopRequireDefault(_ariaUtils);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- /**
- * @constructor
- * @desc Dialog object providing modal focus management.
- *
- * Assumptions: The element serving as the dialog container is present in the
- * DOM and hidden. The dialog container has role='dialog'.
- *
- * @param dialogId
- * The ID of the element serving as the dialog container.
- * @param focusAfterClosed
- * Either the DOM node or the ID of the DOM node to focus when the
- * dialog closes.
- * @param focusFirst
- * Optional parameter containing either the DOM node or the ID of the
- * DOM node to focus when the dialog opens. If not specified, the
- * first focusable element in the dialog will receive focus.
- */
- var aria = aria || {};
- var tabEvent;
- aria.Dialog = function (dialog, focusAfterClosed, focusFirst) {
- var _this = this;
- this.dialogNode = dialog;
- if (this.dialogNode === null || this.dialogNode.getAttribute('role') !== 'dialog') {
- throw new Error('Dialog() requires a DOM element with ARIA role of dialog.');
- }
- if (typeof focusAfterClosed === 'string') {
- this.focusAfterClosed = document.getElementById(focusAfterClosed);
- } else if ((typeof focusAfterClosed === 'undefined' ? 'undefined' : _typeof(focusAfterClosed)) === 'object') {
- this.focusAfterClosed = focusAfterClosed;
- } else {
- this.focusAfterClosed = null;
- }
- if (typeof focusFirst === 'string') {
- this.focusFirst = document.getElementById(focusFirst);
- } else if ((typeof focusFirst === 'undefined' ? 'undefined' : _typeof(focusFirst)) === 'object') {
- this.focusFirst = focusFirst;
- } else {
- this.focusFirst = null;
- }
- if (this.focusFirst) {
- this.focusFirst.focus();
- } else {
- _ariaUtils2.default.focusFirstDescendant(this.dialogNode);
- }
- this.lastFocus = document.activeElement;
- tabEvent = function tabEvent(e) {
- _this.trapFocus(e);
- };
- this.addListeners();
- };
- aria.Dialog.prototype.addListeners = function () {
- document.addEventListener('focus', tabEvent, true);
- };
- aria.Dialog.prototype.removeListeners = function () {
- document.removeEventListener('focus', tabEvent, true);
- };
- aria.Dialog.prototype.closeDialog = function () {
- var _this2 = this;
- this.removeListeners();
- if (this.focusAfterClosed) {
- setTimeout(function () {
- _this2.focusAfterClosed.focus();
- });
- }
- };
- aria.Dialog.prototype.trapFocus = function (event) {
- if (_ariaUtils2.default.IgnoreUtilFocusChanges) {
- return;
- }
- if (this.dialogNode.contains(event.target)) {
- this.lastFocus = event.target;
- } else {
- _ariaUtils2.default.focusFirstDescendant(this.dialogNode);
- if (this.lastFocus === document.activeElement) {
- _ariaUtils2.default.focusLastDescendant(this.dialogNode);
- }
- this.lastFocus = document.activeElement;
- }
- };
- exports.default = aria.Dialog;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/aria-utils.js":
- /*!*********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/aria-utils.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var aria = aria || {};
- aria.Utils = aria.Utils || {};
- /**
- * @desc Set focus on descendant nodes until the first focusable element is
- * found.
- * @param element
- * DOM node for which to find the first focusable descendant.
- * @returns
- * true if a focusable element is found and focus is set.
- */
- aria.Utils.focusFirstDescendant = function (element) {
- for (var i = 0; i < element.childNodes.length; i++) {
- var child = element.childNodes[i];
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
- return true;
- }
- }
- return false;
- };
- /**
- * @desc Find the last descendant node that is focusable.
- * @param element
- * DOM node for which to find the last focusable descendant.
- * @returns
- * true if a focusable element is found and focus is set.
- */
- aria.Utils.focusLastDescendant = function (element) {
- for (var i = element.childNodes.length - 1; i >= 0; i--) {
- var child = element.childNodes[i];
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
- return true;
- }
- }
- return false;
- };
- /**
- * @desc Set Attempt to set focus on the current node.
- * @param element
- * The node to attempt to focus on.
- * @returns
- * true if element is focused.
- */
- aria.Utils.attemptFocus = function (element) {
- if (!aria.Utils.isFocusable(element)) {
- return false;
- }
- aria.Utils.IgnoreUtilFocusChanges = true;
- try {
- element.focus();
- } catch (e) {}
- aria.Utils.IgnoreUtilFocusChanges = false;
- return document.activeElement === element;
- };
- aria.Utils.isFocusable = function (element) {
- if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
- return true;
- }
- if (element.disabled) {
- return false;
- }
- switch (element.nodeName) {
- case 'A':
- return !!element.href && element.rel !== 'ignore';
- case 'INPUT':
- return element.type !== 'hidden' && element.type !== 'file';
- case 'BUTTON':
- case 'SELECT':
- case 'TEXTAREA':
- return true;
- default:
- return false;
- }
- };
- /**
- * 触发一个事件
- * mouseenter, mouseleave, mouseover, keyup, change, click 等
- * @param {Element} elm
- * @param {String} name
- * @param {*} opts
- */
- aria.Utils.triggerEvent = function (elm, name) {
- var eventName = void 0;
- if (/^mouse|click/.test(name)) {
- eventName = 'MouseEvents';
- } else if (/^key/.test(name)) {
- eventName = 'KeyboardEvent';
- } else {
- eventName = 'HTMLEvents';
- }
- var evt = document.createEvent(eventName);
- for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- opts[_key - 2] = arguments[_key];
- }
- evt.initEvent.apply(evt, [name].concat(opts));
- elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
- return elm;
- };
- aria.Utils.keys = {
- tab: 9,
- enter: 13,
- space: 32,
- left: 37,
- up: 38,
- right: 39,
- down: 40,
- esc: 27
- };
- exports.default = aria.Utils;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/clickoutside.js":
- /*!***********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/clickoutside.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _dom = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var nodeList = [];
- var ctx = '@@clickoutsideContext';
- var startClick = void 0;
- var seed = 0;
- !_vue2.default.prototype.$isServer && (0, _dom.on)(document, 'mousedown', function (e) {
- return startClick = e;
- });
- !_vue2.default.prototype.$isServer && (0, _dom.on)(document, 'mouseup', function (e) {
- nodeList.forEach(function (node) {
- return node[ctx].documentHandler(e, startClick);
- });
- });
- function createDocumentHandler(el, binding, vnode) {
- return function () {
- var mouseup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var mousedown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target || vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target))) return;
- if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
- vnode.context[el[ctx].methodName]();
- } else {
- el[ctx].bindingFn && el[ctx].bindingFn();
- }
- };
- }
- /**
- * v-clickoutside
- * @desc 点击元素外面才会触发的事件
- * @example
- * ```vue
- * <div v-element-clickoutside="handleClose">
- * ```
- */
- exports.default = {
- bind: function bind(el, binding, vnode) {
- nodeList.push(el);
- var id = seed++;
- el[ctx] = {
- id: id,
- documentHandler: createDocumentHandler(el, binding, vnode),
- methodName: binding.expression,
- bindingFn: binding.value
- };
- },
- update: function update(el, binding, vnode) {
- el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
- el[ctx].methodName = binding.expression;
- el[ctx].bindingFn = binding.value;
- },
- unbind: function unbind(el) {
- var len = nodeList.length;
- for (var i = 0; i < len; i++) {
- if (nodeList[i][ctx].id === el[ctx].id) {
- nodeList.splice(i, 1);
- break;
- }
- }
- delete el[ctx];
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/date-util.js":
- /*!********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/date-util.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.validateRangeInOneMonth = exports.extractTimeFormat = exports.extractDateFormat = exports.nextYear = exports.prevYear = exports.nextMonth = exports.prevMonth = exports.changeYearMonthAndClampDate = exports.timeWithinRange = exports.limitTimeRange = exports.clearMilliseconds = exports.clearTime = exports.modifyWithTimeString = exports.modifyTime = exports.modifyDate = exports.range = exports.getRangeMinutes = exports.getMonthDays = exports.getPrevMonthLastDays = exports.getRangeHours = exports.getWeekNumber = exports.getStartDateOfMonth = exports.nextDate = exports.prevDate = exports.getFirstDayOfMonth = exports.getDayCountOfYear = exports.getDayCountOfMonth = exports.parseDate = exports.formatDate = exports.isDateObject = exports.isDate = exports.toDate = exports.getI18nSettings = undefined;
- var _date = __webpack_require__(/*! element-ui/lib/utils/date */ "./node_modules/element-ui/lib/utils/date.js");
- var _date2 = _interopRequireDefault(_date);
- var _locale = __webpack_require__(/*! element-ui/lib/locale */ "./node_modules/element-ui/lib/locale/index.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var weeks = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
- var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
- var newArray = function newArray(start, end) {
- var result = [];
- for (var i = start; i <= end; i++) {
- result.push(i);
- }
- return result;
- };
- var getI18nSettings = exports.getI18nSettings = function getI18nSettings() {
- return {
- dayNamesShort: weeks.map(function (week) {
- return (0, _locale.t)('el.datepicker.weeks.' + week);
- }),
- dayNames: weeks.map(function (week) {
- return (0, _locale.t)('el.datepicker.weeks.' + week);
- }),
- monthNamesShort: months.map(function (month) {
- return (0, _locale.t)('el.datepicker.months.' + month);
- }),
- monthNames: months.map(function (month, index) {
- return (0, _locale.t)('el.datepicker.month' + (index + 1));
- }),
- amPm: ['am', 'pm']
- };
- };
- var toDate = exports.toDate = function toDate(date) {
- return isDate(date) ? new Date(date) : null;
- };
- var isDate = exports.isDate = function isDate(date) {
- if (date === null || date === undefined) return false;
- if (isNaN(new Date(date).getTime())) return false;
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
- return true;
- };
- var isDateObject = exports.isDateObject = function isDateObject(val) {
- return val instanceof Date;
- };
- var formatDate = exports.formatDate = function formatDate(date, format) {
- date = toDate(date);
- if (!date) return '';
- return _date2.default.format(date, format || 'yyyy-MM-dd', getI18nSettings());
- };
- var parseDate = exports.parseDate = function parseDate(string, format) {
- return _date2.default.parse(string, format || 'yyyy-MM-dd', getI18nSettings());
- };
- var getDayCountOfMonth = exports.getDayCountOfMonth = function getDayCountOfMonth(year, month) {
- if (month === 3 || month === 5 || month === 8 || month === 10) {
- return 30;
- }
- if (month === 1) {
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
- return 29;
- } else {
- return 28;
- }
- }
- return 31;
- };
- var getDayCountOfYear = exports.getDayCountOfYear = function getDayCountOfYear(year) {
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
- return isLeapYear ? 366 : 365;
- };
- var getFirstDayOfMonth = exports.getFirstDayOfMonth = function getFirstDayOfMonth(date) {
- var temp = new Date(date.getTime());
- temp.setDate(1);
- return temp.getDay();
- };
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
- // {prev, next} Date should work for Daylight Saving Time
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
- var prevDate = exports.prevDate = function prevDate(date) {
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
- };
- var nextDate = exports.nextDate = function nextDate(date) {
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
- };
- var getStartDateOfMonth = exports.getStartDateOfMonth = function getStartDateOfMonth(year, month) {
- var result = new Date(year, month, 1);
- var day = result.getDay();
- if (day === 0) {
- return prevDate(result, 7);
- } else {
- return prevDate(result, day);
- }
- };
- var getWeekNumber = exports.getWeekNumber = function getWeekNumber(src) {
- if (!isDate(src)) return null;
- var date = new Date(src.getTime());
- date.setHours(0, 0, 0, 0);
- // Thursday in current week decides the year.
- date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);
- // January 4 is always in week 1.
- var week1 = new Date(date.getFullYear(), 0, 4);
- // Adjust to Thursday in week 1 and count number of weeks from date to week 1.
- // Rounding should be fine for Daylight Saving Time. Its shift should never be more than 12 hours.
- return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);
- };
- var getRangeHours = exports.getRangeHours = function getRangeHours(ranges) {
- var hours = [];
- var disabledHours = [];
- (ranges || []).forEach(function (range) {
- var value = range.map(function (date) {
- return date.getHours();
- });
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
- });
- if (disabledHours.length) {
- for (var i = 0; i < 24; i++) {
- hours[i] = disabledHours.indexOf(i) === -1;
- }
- } else {
- for (var _i = 0; _i < 24; _i++) {
- hours[_i] = false;
- }
- }
- return hours;
- };
- var getPrevMonthLastDays = exports.getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
- if (amount <= 0) return [];
- var temp = new Date(date.getTime());
- temp.setDate(0);
- var lastDay = temp.getDate();
- return range(amount).map(function (_, index) {
- return lastDay - (amount - index - 1);
- });
- };
- var getMonthDays = exports.getMonthDays = function getMonthDays(date) {
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
- var days = temp.getDate();
- return range(days).map(function (_, index) {
- return index + 1;
- });
- };
- function setRangeData(arr, start, end, value) {
- for (var i = start; i < end; i++) {
- arr[i] = value;
- }
- }
- var getRangeMinutes = exports.getRangeMinutes = function getRangeMinutes(ranges, hour) {
- var minutes = new Array(60);
- if (ranges.length > 0) {
- ranges.forEach(function (range) {
- var start = range[0];
- var end = range[1];
- var startHour = start.getHours();
- var startMinute = start.getMinutes();
- var endHour = end.getHours();
- var endMinute = end.getMinutes();
- if (startHour === hour && endHour !== hour) {
- setRangeData(minutes, startMinute, 60, true);
- } else if (startHour === hour && endHour === hour) {
- setRangeData(minutes, startMinute, endMinute + 1, true);
- } else if (startHour !== hour && endHour === hour) {
- setRangeData(minutes, 0, endMinute + 1, true);
- } else if (startHour < hour && endHour > hour) {
- setRangeData(minutes, 0, 60, true);
- }
- });
- } else {
- setRangeData(minutes, 0, 60, true);
- }
- return minutes;
- };
- var range = exports.range = function range(n) {
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
- return Array.apply(null, { length: n }).map(function (_, n) {
- return n;
- });
- };
- var modifyDate = exports.modifyDate = function modifyDate(date, y, m, d) {
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
- };
- var modifyTime = exports.modifyTime = function modifyTime(date, h, m, s) {
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
- };
- var modifyWithTimeString = exports.modifyWithTimeString = function modifyWithTimeString(date, time) {
- if (date == null || !time) {
- return date;
- }
- time = parseDate(time, 'HH:mm:ss');
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
- };
- var clearTime = exports.clearTime = function clearTime(date) {
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
- };
- var clearMilliseconds = exports.clearMilliseconds = function clearMilliseconds(date) {
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
- };
- var limitTimeRange = exports.limitTimeRange = function limitTimeRange(date, ranges) {
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
- // TODO: refactory a more elegant solution
- if (ranges.length === 0) return date;
- var normalizeDate = function normalizeDate(date) {
- return _date2.default.parse(_date2.default.format(date, format), format);
- };
- var ndate = normalizeDate(date);
- var nranges = ranges.map(function (range) {
- return range.map(normalizeDate);
- });
- if (nranges.some(function (nrange) {
- return ndate >= nrange[0] && ndate <= nrange[1];
- })) return date;
- var minDate = nranges[0][0];
- var maxDate = nranges[0][0];
- nranges.forEach(function (nrange) {
- minDate = new Date(Math.min(nrange[0], minDate));
- maxDate = new Date(Math.max(nrange[1], minDate));
- });
- var ret = ndate < minDate ? minDate : maxDate;
- // preserve Year/Month/Date
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
- };
- var timeWithinRange = exports.timeWithinRange = function timeWithinRange(date, selectableRange, format) {
- var limitedDate = limitTimeRange(date, selectableRange, format);
- return limitedDate.getTime() === date.getTime();
- };
- var changeYearMonthAndClampDate = exports.changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
- // clamp date to the number of days in `year`, `month`
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
- return modifyDate(date, year, month, monthDate);
- };
- var prevMonth = exports.prevMonth = function prevMonth(date) {
- var year = date.getFullYear();
- var month = date.getMonth();
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
- };
- var nextMonth = exports.nextMonth = function nextMonth(date) {
- var year = date.getFullYear();
- var month = date.getMonth();
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
- };
- var prevYear = exports.prevYear = function prevYear(date) {
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var year = date.getFullYear();
- var month = date.getMonth();
- return changeYearMonthAndClampDate(date, year - amount, month);
- };
- var nextYear = exports.nextYear = function nextYear(date) {
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var year = date.getFullYear();
- var month = date.getMonth();
- return changeYearMonthAndClampDate(date, year + amount, month);
- };
- var extractDateFormat = exports.extractDateFormat = function extractDateFormat(format) {
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
- };
- var extractTimeFormat = exports.extractTimeFormat = function extractTimeFormat(format) {
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
- };
- var validateRangeInOneMonth = exports.validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/date.js":
- /*!***************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/date.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var __WEBPACK_AMD_DEFINE_RESULT__;
- /* Modified from https://github.com/taylorhakes/fecha
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 Taylor Hakes
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
- /*eslint-disable*/
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
- (function (main) {
- 'use strict';
- /**
- * Parse or format dates
- * @class fecha
- */
- var fecha = {};
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
- var twoDigits = '\\d\\d?';
- var threeDigits = '\\d{3}';
- var fourDigits = '\\d{4}';
- var word = '[^\\s]+';
- var literal = /\[([^]*?)\]/gm;
- var noop = function noop() {};
- function regexEscape(str) {
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
- }
- function shorten(arr, sLen) {
- var newArr = [];
- for (var i = 0, len = arr.length; i < len; i++) {
- newArr.push(arr[i].substr(0, sLen));
- }
- return newArr;
- }
- function monthUpdate(arrName) {
- return function (d, v, i18n) {
- var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
- if (~index) {
- d.month = index;
- }
- };
- }
- function pad(val, len) {
- val = String(val);
- len = len || 2;
- while (val.length < len) {
- val = '0' + val;
- }
- return val;
- }
- var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
- var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- var monthNamesShort = shorten(monthNames, 3);
- var dayNamesShort = shorten(dayNames, 3);
- fecha.i18n = {
- dayNamesShort: dayNamesShort,
- dayNames: dayNames,
- monthNamesShort: monthNamesShort,
- monthNames: monthNames,
- amPm: ['am', 'pm'],
- DoFn: function DoFn(D) {
- return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
- }
- };
- var formatFlags = {
- D: function D(dateObj) {
- return dateObj.getDay();
- },
- DD: function DD(dateObj) {
- return pad(dateObj.getDay());
- },
- Do: function Do(dateObj, i18n) {
- return i18n.DoFn(dateObj.getDate());
- },
- d: function d(dateObj) {
- return dateObj.getDate();
- },
- dd: function dd(dateObj) {
- return pad(dateObj.getDate());
- },
- ddd: function ddd(dateObj, i18n) {
- return i18n.dayNamesShort[dateObj.getDay()];
- },
- dddd: function dddd(dateObj, i18n) {
- return i18n.dayNames[dateObj.getDay()];
- },
- M: function M(dateObj) {
- return dateObj.getMonth() + 1;
- },
- MM: function MM(dateObj) {
- return pad(dateObj.getMonth() + 1);
- },
- MMM: function MMM(dateObj, i18n) {
- return i18n.monthNamesShort[dateObj.getMonth()];
- },
- MMMM: function MMMM(dateObj, i18n) {
- return i18n.monthNames[dateObj.getMonth()];
- },
- yy: function yy(dateObj) {
- return pad(String(dateObj.getFullYear()), 4).substr(2);
- },
- yyyy: function yyyy(dateObj) {
- return pad(dateObj.getFullYear(), 4);
- },
- h: function h(dateObj) {
- return dateObj.getHours() % 12 || 12;
- },
- hh: function hh(dateObj) {
- return pad(dateObj.getHours() % 12 || 12);
- },
- H: function H(dateObj) {
- return dateObj.getHours();
- },
- HH: function HH(dateObj) {
- return pad(dateObj.getHours());
- },
- m: function m(dateObj) {
- return dateObj.getMinutes();
- },
- mm: function mm(dateObj) {
- return pad(dateObj.getMinutes());
- },
- s: function s(dateObj) {
- return dateObj.getSeconds();
- },
- ss: function ss(dateObj) {
- return pad(dateObj.getSeconds());
- },
- S: function S(dateObj) {
- return Math.round(dateObj.getMilliseconds() / 100);
- },
- SS: function SS(dateObj) {
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
- },
- SSS: function SSS(dateObj) {
- return pad(dateObj.getMilliseconds(), 3);
- },
- a: function a(dateObj, i18n) {
- return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
- },
- A: function A(dateObj, i18n) {
- return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
- },
- ZZ: function ZZ(dateObj) {
- var o = dateObj.getTimezoneOffset();
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
- }
- };
- var parseFlags = {
- d: [twoDigits, function (d, v) {
- d.day = v;
- }],
- Do: [twoDigits + word, function (d, v) {
- d.day = parseInt(v, 10);
- }],
- M: [twoDigits, function (d, v) {
- d.month = v - 1;
- }],
- yy: [twoDigits, function (d, v) {
- var da = new Date(),
- cent = +('' + da.getFullYear()).substr(0, 2);
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
- }],
- h: [twoDigits, function (d, v) {
- d.hour = v;
- }],
- m: [twoDigits, function (d, v) {
- d.minute = v;
- }],
- s: [twoDigits, function (d, v) {
- d.second = v;
- }],
- yyyy: [fourDigits, function (d, v) {
- d.year = v;
- }],
- S: ['\\d', function (d, v) {
- d.millisecond = v * 100;
- }],
- SS: ['\\d{2}', function (d, v) {
- d.millisecond = v * 10;
- }],
- SSS: [threeDigits, function (d, v) {
- d.millisecond = v;
- }],
- D: [twoDigits, noop],
- ddd: [word, noop],
- MMM: [word, monthUpdate('monthNamesShort')],
- MMMM: [word, monthUpdate('monthNames')],
- a: [word, function (d, v, i18n) {
- var val = v.toLowerCase();
- if (val === i18n.amPm[0]) {
- d.isPm = false;
- } else if (val === i18n.amPm[1]) {
- d.isPm = true;
- }
- }],
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
- var parts = (v + '').match(/([+-]|\d\d)/gi),
- minutes;
- if (parts) {
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
- }
- }]
- };
- parseFlags.dd = parseFlags.d;
- parseFlags.dddd = parseFlags.ddd;
- parseFlags.DD = parseFlags.D;
- parseFlags.mm = parseFlags.m;
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
- parseFlags.MM = parseFlags.M;
- parseFlags.ss = parseFlags.s;
- parseFlags.A = parseFlags.a;
- // Some common format strings
- fecha.masks = {
- default: 'ddd MMM dd yyyy HH:mm:ss',
- shortDate: 'M/D/yy',
- mediumDate: 'MMM d, yyyy',
- longDate: 'MMMM d, yyyy',
- fullDate: 'dddd, MMMM d, yyyy',
- shortTime: 'HH:mm',
- mediumTime: 'HH:mm:ss',
- longTime: 'HH:mm:ss.SSS'
- };
- /***
- * Format a date
- * @method format
- * @param {Date|number} dateObj
- * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
- */
- fecha.format = function (dateObj, mask, i18nSettings) {
- var i18n = i18nSettings || fecha.i18n;
- if (typeof dateObj === 'number') {
- dateObj = new Date(dateObj);
- }
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
- throw new Error('Invalid Date in fecha.format');
- }
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
- var literals = [];
- // Make literals inactive by replacing them with ??
- mask = mask.replace(literal, function ($0, $1) {
- literals.push($1);
- return '@@@';
- });
- // Apply formatting rules
- mask = mask.replace(token, function ($0) {
- return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
- });
- // Inline literal values back into the formatted value
- return mask.replace(/@@@/g, function () {
- return literals.shift();
- });
- };
- /**
- * Parse a date string into an object, changes - into /
- * @method parse
- * @param {string} dateStr Date string
- * @param {string} format Date parse format
- * @returns {Date|boolean}
- */
- fecha.parse = function (dateStr, format, i18nSettings) {
- var i18n = i18nSettings || fecha.i18n;
- if (typeof format !== 'string') {
- throw new Error('Invalid format in fecha.parse');
- }
- format = fecha.masks[format] || format;
- // Avoid regular expression denial of service, fail early for really long strings
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
- if (dateStr.length > 1000) {
- return null;
- }
- var dateInfo = {};
- var parseInfo = [];
- var literals = [];
- format = format.replace(literal, function ($0, $1) {
- literals.push($1);
- return '@@@';
- });
- var newFormat = regexEscape(format).replace(token, function ($0) {
- if (parseFlags[$0]) {
- var info = parseFlags[$0];
- parseInfo.push(info[1]);
- return '(' + info[0] + ')';
- }
- return $0;
- });
- newFormat = newFormat.replace(/@@@/g, function () {
- return literals.shift();
- });
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
- if (!matches) {
- return null;
- }
- for (var i = 1; i < matches.length; i++) {
- parseInfo[i - 1](dateInfo, matches[i], i18n);
- }
- var today = new Date();
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
- dateInfo.hour = +dateInfo.hour + 12;
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
- dateInfo.hour = 0;
- }
- var date;
- if (dateInfo.timezoneOffset != null) {
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
- } else {
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
- }
- return date;
- };
- /* istanbul ignore next */
- if ( true && module.exports) {
- module.exports = fecha;
- } else if (true) {
- !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
- return fecha;
- }).call(exports, __webpack_require__, exports, module),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else {}
- })(undefined);
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/dom.js":
- /*!**************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/dom.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.isInContainer = exports.getScrollContainer = exports.isScroll = exports.getStyle = exports.once = exports.off = exports.on = undefined;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* istanbul ignore next */
- exports.hasClass = hasClass;
- exports.addClass = addClass;
- exports.removeClass = removeClass;
- exports.setStyle = setStyle;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var isServer = _vue2.default.prototype.$isServer;
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
- var ieVersion = isServer ? 0 : Number(document.documentMode);
- /* istanbul ignore next */
- var trim = function trim(string) {
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
- };
- /* istanbul ignore next */
- var camelCase = function camelCase(name) {
- return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
- return offset ? letter.toUpperCase() : letter;
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
- };
- /* istanbul ignore next */
- var on = exports.on = function () {
- if (!isServer && document.addEventListener) {
- return function (element, event, handler) {
- if (element && event && handler) {
- element.addEventListener(event, handler, false);
- }
- };
- } else {
- return function (element, event, handler) {
- if (element && event && handler) {
- element.attachEvent('on' + event, handler);
- }
- };
- }
- }();
- /* istanbul ignore next */
- var off = exports.off = function () {
- if (!isServer && document.removeEventListener) {
- return function (element, event, handler) {
- if (element && event) {
- element.removeEventListener(event, handler, false);
- }
- };
- } else {
- return function (element, event, handler) {
- if (element && event) {
- element.detachEvent('on' + event, handler);
- }
- };
- }
- }();
- /* istanbul ignore next */
- var once = exports.once = function once(el, event, fn) {
- var listener = function listener() {
- if (fn) {
- fn.apply(this, arguments);
- }
- off(el, event, listener);
- };
- on(el, event, listener);
- };
- /* istanbul ignore next */
- function hasClass(el, cls) {
- if (!el || !cls) return false;
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
- if (el.classList) {
- return el.classList.contains(cls);
- } else {
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
- }
- };
- /* istanbul ignore next */
- function addClass(el, cls) {
- if (!el) return;
- var curClass = el.className;
- var classes = (cls || '').split(' ');
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.add(clsName);
- } else if (!hasClass(el, clsName)) {
- curClass += ' ' + clsName;
- }
- }
- if (!el.classList) {
- el.className = curClass;
- }
- };
- /* istanbul ignore next */
- function removeClass(el, cls) {
- if (!el || !cls) return;
- var classes = cls.split(' ');
- var curClass = ' ' + el.className + ' ';
- for (var i = 0, j = classes.length; i < j; i++) {
- var clsName = classes[i];
- if (!clsName) continue;
- if (el.classList) {
- el.classList.remove(clsName);
- } else if (hasClass(el, clsName)) {
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
- }
- }
- if (!el.classList) {
- el.className = trim(curClass);
- }
- };
- /* istanbul ignore next */
- var getStyle = exports.getStyle = ieVersion < 9 ? function (element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'styleFloat';
- }
- try {
- switch (styleName) {
- case 'opacity':
- try {
- return element.filters.item('alpha').opacity / 100;
- } catch (e) {
- return 1.0;
- }
- default:
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
- }
- } catch (e) {
- return element.style[styleName];
- }
- } : function (element, styleName) {
- if (isServer) return;
- if (!element || !styleName) return null;
- styleName = camelCase(styleName);
- if (styleName === 'float') {
- styleName = 'cssFloat';
- }
- try {
- var computed = document.defaultView.getComputedStyle(element, '');
- return element.style[styleName] || computed ? computed[styleName] : null;
- } catch (e) {
- return element.style[styleName];
- }
- };
- /* istanbul ignore next */
- function setStyle(element, styleName, value) {
- if (!element || !styleName) return;
- if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
- for (var prop in styleName) {
- if (styleName.hasOwnProperty(prop)) {
- setStyle(element, prop, styleName[prop]);
- }
- }
- } else {
- styleName = camelCase(styleName);
- if (styleName === 'opacity' && ieVersion < 9) {
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
- } else {
- element.style[styleName] = value;
- }
- }
- };
- var isScroll = exports.isScroll = function isScroll(el, vertical) {
- if (isServer) return;
- var determinedDirection = vertical !== null || vertical !== undefined;
- var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
- return overflow.match(/(scroll|auto)/);
- };
- var getScrollContainer = exports.getScrollContainer = function getScrollContainer(el, vertical) {
- if (isServer) return;
- var parent = el;
- while (parent) {
- if ([window, document, document.documentElement].includes(parent)) {
- return window;
- }
- if (isScroll(parent, vertical)) {
- return parent;
- }
- parent = parent.parentNode;
- }
- return parent;
- };
- var isInContainer = exports.isInContainer = function isInContainer(el, container) {
- if (isServer || !el || !container) return false;
- var elRect = el.getBoundingClientRect();
- var containerRect = void 0;
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
- containerRect = {
- top: 0,
- right: window.innerWidth,
- bottom: window.innerHeight,
- left: 0
- };
- } else {
- containerRect = container.getBoundingClientRect();
- }
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/merge.js":
- /*!****************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/merge.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function (target) {
- for (var i = 1, j = arguments.length; i < j; i++) {
- var source = arguments[i] || {};
- for (var prop in source) {
- if (source.hasOwnProperty(prop)) {
- var value = source[prop];
- if (value !== undefined) {
- target[prop] = value;
- }
- }
- }
- }
- return target;
- };
- ;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/popper.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/popper.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- /**
- * @fileOverview Kickass library to create and place poppers near their reference elements.
- * @version {{version}}
- * @license
- * Copyright (c) 2016 Federico Zivolo and contributors
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
- //
- // Cross module loader
- // Supported: Node, AMD, Browser globals
- //
- ;(function (root, factory) {
- if (true) {
- // AMD. Register as an anonymous module.
- !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
- (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
- __WEBPACK_AMD_DEFINE_FACTORY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else {}
- })(undefined, function () {
- 'use strict';
- var root = window;
- // default options
- var DEFAULTS = {
- // placement of the popper
- placement: 'bottom',
- gpuAcceleration: true,
- // shift popper from its origin by the given amount of pixels (can be negative)
- offset: 0,
- // the element which will act as boundary of the popper
- boundariesElement: 'viewport',
- // amount of pixel used to define a minimum distance between the boundaries and the popper
- boundariesPadding: 5,
- // popper will try to prevent overflow following this order,
- // by default, then, it could overflow on the left and on top of the boundariesElement
- preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
- // the behavior used by flip to change the placement of the popper
- flipBehavior: 'flip',
- arrowElement: '[x-arrow]',
- arrowOffset: 0,
- // list of functions used to modify the offsets before they are applied to the popper
- modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
- modifiersIgnored: [],
- forceAbsolute: false
- };
- /**
- * Create a new Popper.js instance
- * @constructor Popper
- * @param {HTMLElement} reference - The reference element used to position the popper
- * @param {HTMLElement|Object} popper
- * The HTML element used as popper, or a configuration used to generate the popper.
- * @param {String} [popper.tagName='div'] The tag name of the generated popper.
- * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
- * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
- * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
- * @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
- * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
- * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
- * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
- * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
- * @param {Object} options
- * @param {String} [options.placement=bottom]
- * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
- * left(-start, -end)`
- *
- * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
- * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
- * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
- * reference element.
- * By default, it will look for a child node of the popper with the `x-arrow` attribute.
- *
- * @param {Boolean} [options.gpuAcceleration=true]
- * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
- * browser to use the GPU to accelerate the rendering.
- * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
- *
- * @param {Number} [options.offset=0]
- * Amount of pixels the popper will be shifted (can be negative).
- *
- * @param {String|Element} [options.boundariesElement='viewport']
- * The element which will define the boundaries of the popper position, the popper will never be placed outside
- * of the defined boundaries (except if `keepTogether` is enabled)
- *
- * @param {Number} [options.boundariesPadding=5]
- * Additional padding for the boundaries
- *
- * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
- * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
- * this means that the last ones will never overflow
- *
- * @param {String|Array} [options.flipBehavior='flip']
- * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
- * overlap its reference element. Defining `flip` as value, the placement will be flipped on
- * its axis (`right - left`, `top - bottom`).
- * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
- * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
- * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
- *
- * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
- * List of functions used to modify the data before they are applied to the popper, add your custom functions
- * to this array to edit the offsets and placement.
- * The function should reflect the @params and @returns of preventOverflow
- *
- * @param {Array} [options.modifiersIgnored=[]]
- * Put here any built-in modifier name you want to exclude from the modifiers list
- * The function should reflect the @params and @returns of preventOverflow
- *
- * @param {Boolean} [options.removeOnDestroy=false]
- * Set to true if you want to automatically remove the popper when you call the `destroy` method.
- */
- function Popper(reference, popper, options) {
- this._reference = reference.jquery ? reference[0] : reference;
- this.state = {};
- // if the popper variable is a configuration object, parse it to generate an HTMLElement
- // generate a default popper if is not defined
- var isNotDefined = typeof popper === 'undefined' || popper === null;
- var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
- if (isNotDefined || isConfig) {
- this._popper = this.parse(isConfig ? popper : {});
- }
- // otherwise, use the given HTMLElement as popper
- else {
- this._popper = popper.jquery ? popper[0] : popper;
- }
- // with {} we create a new object with the options inside it
- this._options = Object.assign({}, DEFAULTS, options);
- // refactoring modifiers' list
- this._options.modifiers = this._options.modifiers.map(function (modifier) {
- // remove ignored modifiers
- if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
- // set the x-placement attribute before everything else because it could be used to add margins to the popper
- // margins needs to be calculated to get the correct popper offsets
- if (modifier === 'applyStyle') {
- this._popper.setAttribute('x-placement', this._options.placement);
- }
- // return predefined modifier identified by string or keep the custom one
- return this.modifiers[modifier] || modifier;
- }.bind(this));
- // make sure to apply the popper position before any computation
- this.state.position = this._getPosition(this._popper, this._reference);
- setStyle(this._popper, { position: this.state.position, top: 0 });
- // fire the first update to position the popper in the right place
- this.update();
- // setup event listeners, they will take care of update the position in specific situations
- this._setupEventListeners();
- return this;
- }
- //
- // Methods
- //
- /**
- * Destroy the popper
- * @method
- * @memberof Popper
- */
- Popper.prototype.destroy = function () {
- this._popper.removeAttribute('x-placement');
- this._popper.style.left = '';
- this._popper.style.position = '';
- this._popper.style.top = '';
- this._popper.style[getSupportedPropertyName('transform')] = '';
- this._removeEventListeners();
- // remove the popper if user explicity asked for the deletion on destroy
- if (this._options.removeOnDestroy) {
- this._popper.remove();
- }
- return this;
- };
- /**
- * Updates the position of the popper, computing the new offsets and applying the new style
- * @method
- * @memberof Popper
- */
- Popper.prototype.update = function () {
- var data = { instance: this, styles: {} };
- // store placement inside the data object, modifiers will be able to edit `placement` if needed
- // and refer to _originalPlacement to know the original value
- data.placement = this._options.placement;
- data._originalPlacement = this._options.placement;
- // compute the popper and reference offsets and put them inside data.offsets
- data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
- // get boundaries
- data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
- data = this.runModifiers(data, this._options.modifiers);
- if (typeof this.state.updateCallback === 'function') {
- this.state.updateCallback(data);
- }
- };
- /**
- * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
- * @method
- * @memberof Popper
- * @param {Function} callback
- */
- Popper.prototype.onCreate = function (callback) {
- // the createCallbacks return as first argument the popper instance
- callback(this);
- return this;
- };
- /**
- * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
- * used to style popper and its arrow.
- * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
- * @method
- * @memberof Popper
- * @param {Function} callback
- */
- Popper.prototype.onUpdate = function (callback) {
- this.state.updateCallback = callback;
- return this;
- };
- /**
- * Helper used to generate poppers from a configuration file
- * @method
- * @memberof Popper
- * @param config {Object} configuration
- * @returns {HTMLElement} popper
- */
- Popper.prototype.parse = function (config) {
- var defaultConfig = {
- tagName: 'div',
- classNames: ['popper'],
- attributes: [],
- parent: root.document.body,
- content: '',
- contentType: 'text',
- arrowTagName: 'div',
- arrowClassNames: ['popper__arrow'],
- arrowAttributes: ['x-arrow']
- };
- config = Object.assign({}, defaultConfig, config);
- var d = root.document;
- var popper = d.createElement(config.tagName);
- addClassNames(popper, config.classNames);
- addAttributes(popper, config.attributes);
- if (config.contentType === 'node') {
- popper.appendChild(config.content.jquery ? config.content[0] : config.content);
- } else if (config.contentType === 'html') {
- popper.innerHTML = config.content;
- } else {
- popper.textContent = config.content;
- }
- if (config.arrowTagName) {
- var arrow = d.createElement(config.arrowTagName);
- addClassNames(arrow, config.arrowClassNames);
- addAttributes(arrow, config.arrowAttributes);
- popper.appendChild(arrow);
- }
- var parent = config.parent.jquery ? config.parent[0] : config.parent;
- // if the given parent is a string, use it to match an element
- // if more than one element is matched, the first one will be used as parent
- // if no elements are matched, the script will throw an error
- if (typeof parent === 'string') {
- parent = d.querySelectorAll(config.parent);
- if (parent.length > 1) {
- console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
- }
- if (parent.length === 0) {
- throw 'ERROR: the given `parent` doesn\'t exists!';
- }
- parent = parent[0];
- }
- // if the given parent is a DOM nodes list or an array of nodes with more than one element,
- // the first one will be used as parent
- if (parent.length > 1 && parent instanceof Element === false) {
- console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
- parent = parent[0];
- }
- // append the generated popper to its parent
- parent.appendChild(popper);
- return popper;
- /**
- * Adds class names to the given element
- * @function
- * @ignore
- * @param {HTMLElement} target
- * @param {Array} classes
- */
- function addClassNames(element, classNames) {
- classNames.forEach(function (className) {
- element.classList.add(className);
- });
- }
- /**
- * Adds attributes to the given element
- * @function
- * @ignore
- * @param {HTMLElement} target
- * @param {Array} attributes
- * @example
- * addAttributes(element, [ 'data-info:foobar' ]);
- */
- function addAttributes(element, attributes) {
- attributes.forEach(function (attribute) {
- element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
- });
- }
- };
- /**
- * Helper used to get the position which will be applied to the popper
- * @method
- * @memberof Popper
- * @param config {HTMLElement} popper element
- * @param reference {HTMLElement} reference element
- * @returns {String} position
- */
- Popper.prototype._getPosition = function (popper, reference) {
- var container = getOffsetParent(reference);
- if (this._options.forceAbsolute) {
- return 'absolute';
- }
- // Decide if the popper will be fixed
- // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
- var isParentFixed = isFixed(reference, container);
- return isParentFixed ? 'fixed' : 'absolute';
- };
- /**
- * Get offsets to the popper
- * @method
- * @memberof Popper
- * @access private
- * @param {Element} popper - the popper element
- * @param {Element} reference - the reference element (the popper will be relative to this)
- * @returns {Object} An object containing the offsets which will be applied to the popper
- */
- Popper.prototype._getOffsets = function (popper, reference, placement) {
- placement = placement.split('-')[0];
- var popperOffsets = {};
- popperOffsets.position = this.state.position;
- var isParentFixed = popperOffsets.position === 'fixed';
- //
- // Get reference element position
- //
- var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
- //
- // Get popper sizes
- //
- var popperRect = getOuterSizes(popper);
- //
- // Compute offsets of popper
- //
- // depending by the popper placement we have to compute its offsets slightly differently
- if (['right', 'left'].indexOf(placement) !== -1) {
- popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
- if (placement === 'left') {
- popperOffsets.left = referenceOffsets.left - popperRect.width;
- } else {
- popperOffsets.left = referenceOffsets.right;
- }
- } else {
- popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
- if (placement === 'top') {
- popperOffsets.top = referenceOffsets.top - popperRect.height;
- } else {
- popperOffsets.top = referenceOffsets.bottom;
- }
- }
- // Add width and height to our offsets object
- popperOffsets.width = popperRect.width;
- popperOffsets.height = popperRect.height;
- return {
- popper: popperOffsets,
- reference: referenceOffsets
- };
- };
- /**
- * Setup needed event listeners used to update the popper position
- * @method
- * @memberof Popper
- * @access private
- */
- Popper.prototype._setupEventListeners = function () {
- // NOTE: 1 DOM access here
- this.state.updateBound = this.update.bind(this);
- root.addEventListener('resize', this.state.updateBound);
- // if the boundariesElement is window we don't need to listen for the scroll event
- if (this._options.boundariesElement !== 'window') {
- var target = getScrollParent(this._reference);
- // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
- if (target === root.document.body || target === root.document.documentElement) {
- target = root;
- }
- target.addEventListener('scroll', this.state.updateBound);
- this.state.scrollTarget = target;
- }
- };
- /**
- * Remove event listeners used to update the popper position
- * @method
- * @memberof Popper
- * @access private
- */
- Popper.prototype._removeEventListeners = function () {
- // NOTE: 1 DOM access here
- root.removeEventListener('resize', this.state.updateBound);
- if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
- this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
- this.state.scrollTarget = null;
- }
- this.state.updateBound = null;
- };
- /**
- * Computed the boundaries limits and return them
- * @method
- * @memberof Popper
- * @access private
- * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
- * @param {Number} padding - Boundaries padding
- * @param {Element} boundariesElement - Element used to define the boundaries
- * @returns {Object} Coordinates of the boundaries
- */
- Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
- // NOTE: 1 DOM access here
- var boundaries = {};
- var width, height;
- if (boundariesElement === 'window') {
- var body = root.document.body,
- html = root.document.documentElement;
- height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
- width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
- boundaries = {
- top: 0,
- right: width,
- bottom: height,
- left: 0
- };
- } else if (boundariesElement === 'viewport') {
- var offsetParent = getOffsetParent(this._popper);
- var scrollParent = getScrollParent(this._popper);
- var offsetParentRect = getOffsetRect(offsetParent);
- // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
- var getScrollTopValue = function getScrollTopValue(element) {
- return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
- };
- var getScrollLeftValue = function getScrollLeftValue(element) {
- return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
- };
- // if the popper is fixed we don't have to substract scrolling from the boundaries
- var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
- var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
- boundaries = {
- top: 0 - (offsetParentRect.top - scrollTop),
- right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
- bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
- left: 0 - (offsetParentRect.left - scrollLeft)
- };
- } else {
- if (getOffsetParent(this._popper) === boundariesElement) {
- boundaries = {
- top: 0,
- left: 0,
- right: boundariesElement.clientWidth,
- bottom: boundariesElement.clientHeight
- };
- } else {
- boundaries = getOffsetRect(boundariesElement);
- }
- }
- boundaries.left += padding;
- boundaries.right -= padding;
- boundaries.top = boundaries.top + padding;
- boundaries.bottom = boundaries.bottom - padding;
- return boundaries;
- };
- /**
- * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
- * @method
- * @memberof Popper
- * @access public
- * @param {Object} data
- * @param {Array} modifiers
- * @param {Function} ends
- */
- Popper.prototype.runModifiers = function (data, modifiers, ends) {
- var modifiersToRun = modifiers.slice();
- if (ends !== undefined) {
- modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
- }
- modifiersToRun.forEach(function (modifier) {
- if (isFunction(modifier)) {
- data = modifier.call(this, data);
- }
- }.bind(this));
- return data;
- };
- /**
- * Helper used to know if the given modifier depends from another one.
- * @method
- * @memberof Popper
- * @param {String} requesting - name of requesting modifier
- * @param {String} requested - name of requested modifier
- * @returns {Boolean}
- */
- Popper.prototype.isModifierRequired = function (requesting, requested) {
- var index = getArrayKeyIndex(this._options.modifiers, requesting);
- return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
- return modifier === requested;
- }).length;
- };
- //
- // Modifiers
- //
- /**
- * Modifiers list
- * @namespace Popper.modifiers
- * @memberof Popper
- * @type {Object}
- */
- Popper.prototype.modifiers = {};
- /**
- * Apply the computed styles to the popper element
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by `update` method
- * @returns {Object} The same data object
- */
- Popper.prototype.modifiers.applyStyle = function (data) {
- // apply the final offsets to the popper
- // NOTE: 1 DOM access here
- var styles = {
- position: data.offsets.popper.position
- };
- // round top and left to avoid blurry text
- var left = Math.round(data.offsets.popper.left);
- var top = Math.round(data.offsets.popper.top);
- // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
- // we automatically use the supported prefixed version if needed
- var prefixedProperty;
- if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
- styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
- styles.top = 0;
- styles.left = 0;
- }
- // othwerise, we use the standard `left` and `top` properties
- else {
- styles.left = left;
- styles.top = top;
- }
- // any property present in `data.styles` will be applied to the popper,
- // in this way we can make the 3rd party modifiers add custom styles to it
- // Be aware, modifiers could override the properties defined in the previous
- // lines of this modifier!
- Object.assign(styles, data.styles);
- setStyle(this._popper, styles);
- // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
- // NOTE: 1 DOM access here
- this._popper.setAttribute('x-placement', data.placement);
- // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
- if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
- setStyle(data.arrowElement, data.offsets.arrow);
- }
- return data;
- };
- /**
- * Modifier used to shift the popper on the start or end of its reference element side
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by `update` method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.shift = function (data) {
- var placement = data.placement;
- var basePlacement = placement.split('-')[0];
- var shiftVariation = placement.split('-')[1];
- // if shift shiftVariation is specified, run the modifier
- if (shiftVariation) {
- var reference = data.offsets.reference;
- var popper = getPopperClientRect(data.offsets.popper);
- var shiftOffsets = {
- y: {
- start: { top: reference.top },
- end: { top: reference.top + reference.height - popper.height }
- },
- x: {
- start: { left: reference.left },
- end: { left: reference.left + reference.width - popper.width }
- }
- };
- var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
- data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
- }
- return data;
- };
- /**
- * Modifier used to make sure the popper does not overflows from it's boundaries
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by `update` method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.preventOverflow = function (data) {
- var order = this._options.preventOverflowOrder;
- var popper = getPopperClientRect(data.offsets.popper);
- var check = {
- left: function left() {
- var left = popper.left;
- if (popper.left < data.boundaries.left) {
- left = Math.max(popper.left, data.boundaries.left);
- }
- return { left: left };
- },
- right: function right() {
- var left = popper.left;
- if (popper.right > data.boundaries.right) {
- left = Math.min(popper.left, data.boundaries.right - popper.width);
- }
- return { left: left };
- },
- top: function top() {
- var top = popper.top;
- if (popper.top < data.boundaries.top) {
- top = Math.max(popper.top, data.boundaries.top);
- }
- return { top: top };
- },
- bottom: function bottom() {
- var top = popper.top;
- if (popper.bottom > data.boundaries.bottom) {
- top = Math.min(popper.top, data.boundaries.bottom - popper.height);
- }
- return { top: top };
- }
- };
- order.forEach(function (direction) {
- data.offsets.popper = Object.assign(popper, check[direction]());
- });
- return data;
- };
- /**
- * Modifier used to make sure the popper is always near its reference
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by _update method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.keepTogether = function (data) {
- var popper = getPopperClientRect(data.offsets.popper);
- var reference = data.offsets.reference;
- var f = Math.floor;
- if (popper.right < f(reference.left)) {
- data.offsets.popper.left = f(reference.left) - popper.width;
- }
- if (popper.left > f(reference.right)) {
- data.offsets.popper.left = f(reference.right);
- }
- if (popper.bottom < f(reference.top)) {
- data.offsets.popper.top = f(reference.top) - popper.height;
- }
- if (popper.top > f(reference.bottom)) {
- data.offsets.popper.top = f(reference.bottom);
- }
- return data;
- };
- /**
- * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
- * Requires the `preventOverflow` modifier before it in order to work.
- * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by _update method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.flip = function (data) {
- // check if preventOverflow is in the list of modifiers before the flip modifier.
- // otherwise flip would not work as expected.
- if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
- console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
- return data;
- }
- if (data.flipped && data.placement === data._originalPlacement) {
- // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
- return data;
- }
- var placement = data.placement.split('-')[0];
- var placementOpposite = getOppositePlacement(placement);
- var variation = data.placement.split('-')[1] || '';
- var flipOrder = [];
- if (this._options.flipBehavior === 'flip') {
- flipOrder = [placement, placementOpposite];
- } else {
- flipOrder = this._options.flipBehavior;
- }
- flipOrder.forEach(function (step, index) {
- if (placement !== step || flipOrder.length === index + 1) {
- return;
- }
- placement = data.placement.split('-')[0];
- placementOpposite = getOppositePlacement(placement);
- var popperOffsets = getPopperClientRect(data.offsets.popper);
- // this boolean is used to distinguish right and bottom from top and left
- // they need different computations to get flipped
- var a = ['right', 'bottom'].indexOf(placement) !== -1;
- // using Math.floor because the reference offsets may contain decimals we are not going to consider here
- if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
- // we'll use this boolean to detect any flip loop
- data.flipped = true;
- data.placement = flipOrder[index + 1];
- if (variation) {
- data.placement += '-' + variation;
- }
- data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
- data = this.runModifiers(data, this._options.modifiers, this._flip);
- }
- }.bind(this));
- return data;
- };
- /**
- * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
- * The offsets will shift the popper on the side of its reference element.
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by _update method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.offset = function (data) {
- var offset = this._options.offset;
- var popper = data.offsets.popper;
- if (data.placement.indexOf('left') !== -1) {
- popper.top -= offset;
- } else if (data.placement.indexOf('right') !== -1) {
- popper.top += offset;
- } else if (data.placement.indexOf('top') !== -1) {
- popper.left -= offset;
- } else if (data.placement.indexOf('bottom') !== -1) {
- popper.left += offset;
- }
- return data;
- };
- /**
- * Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
- * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
- * @method
- * @memberof Popper.modifiers
- * @argument {Object} data - The data object generated by _update method
- * @returns {Object} The data object, properly modified
- */
- Popper.prototype.modifiers.arrow = function (data) {
- var arrow = this._options.arrowElement;
- var arrowOffset = this._options.arrowOffset;
- // if the arrowElement is a string, suppose it's a CSS selector
- if (typeof arrow === 'string') {
- arrow = this._popper.querySelector(arrow);
- }
- // if arrow element is not found, don't run the modifier
- if (!arrow) {
- return data;
- }
- // the arrow element must be child of its popper
- if (!this._popper.contains(arrow)) {
- console.warn('WARNING: `arrowElement` must be child of its popper element!');
- return data;
- }
- // arrow depends on keepTogether in order to work
- if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
- console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
- return data;
- }
- var arrowStyle = {};
- var placement = data.placement.split('-')[0];
- var popper = getPopperClientRect(data.offsets.popper);
- var reference = data.offsets.reference;
- var isVertical = ['left', 'right'].indexOf(placement) !== -1;
- var len = isVertical ? 'height' : 'width';
- var side = isVertical ? 'top' : 'left';
- var translate = isVertical ? 'translateY' : 'translateX';
- var altSide = isVertical ? 'left' : 'top';
- var opSide = isVertical ? 'bottom' : 'right';
- var arrowSize = getOuterSizes(arrow)[len];
- //
- // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
- //
- // top/left side
- if (reference[opSide] - arrowSize < popper[side]) {
- data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
- }
- // bottom/right side
- if (reference[side] + arrowSize > popper[opSide]) {
- data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
- }
- // compute center of the popper
- var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
- var sideValue = center - popper[side];
- // prevent arrow from being placed not contiguously to its popper
- sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
- arrowStyle[side] = sideValue;
- arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
- data.offsets.arrow = arrowStyle;
- data.arrowElement = arrow;
- return data;
- };
- //
- // Helpers
- //
- /**
- * Get the outer sizes of the given element (offset size + margins)
- * @function
- * @ignore
- * @argument {Element} element
- * @returns {Object} object containing width and height properties
- */
- function getOuterSizes(element) {
- // NOTE: 1 DOM access here
- var _display = element.style.display,
- _visibility = element.style.visibility;
- element.style.display = 'block';element.style.visibility = 'hidden';
- var calcWidthToForceRepaint = element.offsetWidth;
- // original method
- var styles = root.getComputedStyle(element);
- var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
- var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
- var result = { width: element.offsetWidth + y, height: element.offsetHeight + x };
- // reset element styles
- element.style.display = _display;element.style.visibility = _visibility;
- return result;
- }
- /**
- * Get the opposite placement of the given one/
- * @function
- * @ignore
- * @argument {String} placement
- * @returns {String} flipped placement
- */
- function getOppositePlacement(placement) {
- var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
- return placement.replace(/left|right|bottom|top/g, function (matched) {
- return hash[matched];
- });
- }
- /**
- * Given the popper offsets, generate an output similar to getBoundingClientRect
- * @function
- * @ignore
- * @argument {Object} popperOffsets
- * @returns {Object} ClientRect like output
- */
- function getPopperClientRect(popperOffsets) {
- var offsets = Object.assign({}, popperOffsets);
- offsets.right = offsets.left + offsets.width;
- offsets.bottom = offsets.top + offsets.height;
- return offsets;
- }
- /**
- * Given an array and the key to find, returns its index
- * @function
- * @ignore
- * @argument {Array} arr
- * @argument keyToFind
- * @returns index or null
- */
- function getArrayKeyIndex(arr, keyToFind) {
- var i = 0,
- key;
- for (key in arr) {
- if (arr[key] === keyToFind) {
- return i;
- }
- i++;
- }
- return null;
- }
- /**
- * Get CSS computed property of the given element
- * @function
- * @ignore
- * @argument {Eement} element
- * @argument {String} property
- */
- function getStyleComputedProperty(element, property) {
- // NOTE: 1 DOM access here
- var css = root.getComputedStyle(element, null);
- return css[property];
- }
- /**
- * Returns the offset parent of the given element
- * @function
- * @ignore
- * @argument {Element} element
- * @returns {Element} offset parent
- */
- function getOffsetParent(element) {
- // NOTE: 1 DOM access here
- var offsetParent = element.offsetParent;
- return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
- }
- /**
- * Returns the scrolling parent of the given element
- * @function
- * @ignore
- * @argument {Element} element
- * @returns {Element} offset parent
- */
- function getScrollParent(element) {
- var parent = element.parentNode;
- if (!parent) {
- return element;
- }
- if (parent === root.document) {
- // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
- // greater than 0 and return the proper element
- if (root.document.body.scrollTop || root.document.body.scrollLeft) {
- return root.document.body;
- } else {
- return root.document.documentElement;
- }
- }
- // Firefox want us to check `-x` and `-y` variations as well
- if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
- // If the detected scrollParent is body, we perform an additional check on its parentNode
- // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
- // fixes issue #65
- return parent;
- }
- return getScrollParent(element.parentNode);
- }
- /**
- * Check if the given element is fixed or is inside a fixed parent
- * @function
- * @ignore
- * @argument {Element} element
- * @argument {Element} customContainer
- * @returns {Boolean} answer to "isFixed?"
- */
- function isFixed(element) {
- if (element === root.document.body) {
- return false;
- }
- if (getStyleComputedProperty(element, 'position') === 'fixed') {
- return true;
- }
- return element.parentNode ? isFixed(element.parentNode) : element;
- }
- /**
- * Set the style to the given popper
- * @function
- * @ignore
- * @argument {Element} element - Element to apply the style to
- * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
- */
- function setStyle(element, styles) {
- function is_numeric(n) {
- return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
- }
- Object.keys(styles).forEach(function (prop) {
- var unit = '';
- // add unit if the value is numeric and is one of the following
- if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
- unit = 'px';
- }
- element.style[prop] = styles[prop] + unit;
- });
- }
- /**
- * Check if the given variable is a function
- * @function
- * @ignore
- * @argument {*} functionToCheck - variable to check
- * @returns {Boolean} answer to: is a function?
- */
- function isFunction(functionToCheck) {
- var getType = {};
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
- }
- /**
- * Get the position of the given element, relative to its offset parent
- * @function
- * @ignore
- * @param {Element} element
- * @return {Object} position - Coordinates of the element and its `scrollTop`
- */
- function getOffsetRect(element) {
- var elementRect = {
- width: element.offsetWidth,
- height: element.offsetHeight,
- left: element.offsetLeft,
- top: element.offsetTop
- };
- elementRect.right = elementRect.left + elementRect.width;
- elementRect.bottom = elementRect.top + elementRect.height;
- // position
- return elementRect;
- }
- /**
- * Get bounding client rect of given element
- * @function
- * @ignore
- * @param {HTMLElement} element
- * @return {Object} client rect
- */
- function getBoundingClientRect(element) {
- var rect = element.getBoundingClientRect();
- // whether the IE version is lower than 11
- var isIE = navigator.userAgent.indexOf("MSIE") != -1;
- // fix ie document bounding top always 0 bug
- var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
- return {
- left: rect.left,
- top: rectTop,
- right: rect.right,
- bottom: rect.bottom,
- width: rect.right - rect.left,
- height: rect.bottom - rectTop
- };
- }
- /**
- * Given an element and one of its parents, return the offset
- * @function
- * @ignore
- * @param {HTMLElement} element
- * @param {HTMLElement} parent
- * @return {Object} rect
- */
- function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
- var elementRect = getBoundingClientRect(element);
- var parentRect = getBoundingClientRect(parent);
- if (fixed) {
- var scrollParent = getScrollParent(parent);
- parentRect.top += scrollParent.scrollTop;
- parentRect.bottom += scrollParent.scrollTop;
- parentRect.left += scrollParent.scrollLeft;
- parentRect.right += scrollParent.scrollLeft;
- }
- var rect = {
- top: elementRect.top - parentRect.top,
- left: elementRect.left - parentRect.left,
- bottom: elementRect.top - parentRect.top + elementRect.height,
- right: elementRect.left - parentRect.left + elementRect.width,
- width: elementRect.width,
- height: elementRect.height
- };
- return rect;
- }
- /**
- * Get the prefixed supported property name
- * @function
- * @ignore
- * @argument {String} property (camelCase)
- * @returns {String} prefixed property (camelCase)
- */
- function getSupportedPropertyName(property) {
- var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
- for (var i = 0; i < prefixes.length; i++) {
- var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
- if (typeof root.document.body.style[toCheck] !== 'undefined') {
- return toCheck;
- }
- }
- return null;
- }
- /**
- * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
- * objects to a target object. It will return the target object.
- * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
- * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
- * @function
- * @ignore
- */
- if (!Object.assign) {
- Object.defineProperty(Object, 'assign', {
- enumerable: false,
- configurable: true,
- writable: true,
- value: function value(target) {
- if (target === undefined || target === null) {
- throw new TypeError('Cannot convert first argument to object');
- }
- var to = Object(target);
- for (var i = 1; i < arguments.length; i++) {
- var nextSource = arguments[i];
- if (nextSource === undefined || nextSource === null) {
- continue;
- }
- nextSource = Object(nextSource);
- var keysArray = Object.keys(nextSource);
- for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
- var nextKey = keysArray[nextIndex];
- var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
- if (desc !== undefined && desc.enumerable) {
- to[nextKey] = nextSource[nextKey];
- }
- }
- }
- return to;
- }
- });
- }
- return Popper;
- });
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/popup/index.js":
- /*!**********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/popup/index.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.PopupManager = undefined;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _merge = __webpack_require__(/*! element-ui/lib/utils/merge */ "./node_modules/element-ui/lib/utils/merge.js");
- var _merge2 = _interopRequireDefault(_merge);
- var _popupManager = __webpack_require__(/*! element-ui/lib/utils/popup/popup-manager */ "./node_modules/element-ui/lib/utils/popup/popup-manager.js");
- var _popupManager2 = _interopRequireDefault(_popupManager);
- var _scrollbarWidth = __webpack_require__(/*! ../scrollbar-width */ "./node_modules/element-ui/lib/utils/scrollbar-width.js");
- var _scrollbarWidth2 = _interopRequireDefault(_scrollbarWidth);
- var _dom = __webpack_require__(/*! ../dom */ "./node_modules/element-ui/lib/utils/dom.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var idSeed = 1;
- var scrollBarWidth = void 0;
- exports.default = {
- props: {
- visible: {
- type: Boolean,
- default: false
- },
- openDelay: {},
- closeDelay: {},
- zIndex: {},
- modal: {
- type: Boolean,
- default: false
- },
- modalFade: {
- type: Boolean,
- default: true
- },
- modalClass: {},
- modalAppendToBody: {
- type: Boolean,
- default: false
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: false
- },
- closeOnClickModal: {
- type: Boolean,
- default: false
- }
- },
- beforeMount: function beforeMount() {
- this._popupId = 'popup-' + idSeed++;
- _popupManager2.default.register(this._popupId, this);
- },
- beforeDestroy: function beforeDestroy() {
- _popupManager2.default.deregister(this._popupId);
- _popupManager2.default.closeModal(this._popupId);
- this.restoreBodyStyle();
- },
- data: function data() {
- return {
- opened: false,
- bodyPaddingRight: null,
- computedBodyPaddingRight: 0,
- withoutHiddenClass: true,
- rendered: false
- };
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- if (this._opening) return;
- if (!this.rendered) {
- this.rendered = true;
- _vue2.default.nextTick(function () {
- _this.open();
- });
- } else {
- this.open();
- }
- } else {
- this.close();
- }
- }
- },
- methods: {
- open: function open(options) {
- var _this2 = this;
- if (!this.rendered) {
- this.rendered = true;
- }
- var props = (0, _merge2.default)({}, this.$props || this, options);
- if (this._closeTimer) {
- clearTimeout(this._closeTimer);
- this._closeTimer = null;
- }
- clearTimeout(this._openTimer);
- var openDelay = Number(props.openDelay);
- if (openDelay > 0) {
- this._openTimer = setTimeout(function () {
- _this2._openTimer = null;
- _this2.doOpen(props);
- }, openDelay);
- } else {
- this.doOpen(props);
- }
- },
- doOpen: function doOpen(props) {
- if (this.$isServer) return;
- if (this.willOpen && !this.willOpen()) return;
- if (this.opened) return;
- this._opening = true;
- var dom = this.$el;
- var modal = props.modal;
- var zIndex = props.zIndex;
- if (zIndex) {
- _popupManager2.default.zIndex = zIndex;
- }
- if (modal) {
- if (this._closing) {
- _popupManager2.default.closeModal(this._popupId);
- this._closing = false;
- }
- _popupManager2.default.openModal(this._popupId, _popupManager2.default.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
- if (props.lockScroll) {
- this.withoutHiddenClass = !(0, _dom.hasClass)(document.body, 'el-popup-parent--hidden');
- if (this.withoutHiddenClass) {
- this.bodyPaddingRight = document.body.style.paddingRight;
- this.computedBodyPaddingRight = parseInt((0, _dom.getStyle)(document.body, 'paddingRight'), 10);
- }
- scrollBarWidth = (0, _scrollbarWidth2.default)();
- var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
- var bodyOverflowY = (0, _dom.getStyle)(document.body, 'overflowY');
- if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
- document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
- }
- (0, _dom.addClass)(document.body, 'el-popup-parent--hidden');
- }
- }
- if (getComputedStyle(dom).position === 'static') {
- dom.style.position = 'absolute';
- }
- dom.style.zIndex = _popupManager2.default.nextZIndex();
- this.opened = true;
- this.onOpen && this.onOpen();
- this.doAfterOpen();
- },
- doAfterOpen: function doAfterOpen() {
- this._opening = false;
- },
- close: function close() {
- var _this3 = this;
- if (this.willClose && !this.willClose()) return;
- if (this._openTimer !== null) {
- clearTimeout(this._openTimer);
- this._openTimer = null;
- }
- clearTimeout(this._closeTimer);
- var closeDelay = Number(this.closeDelay);
- if (closeDelay > 0) {
- this._closeTimer = setTimeout(function () {
- _this3._closeTimer = null;
- _this3.doClose();
- }, closeDelay);
- } else {
- this.doClose();
- }
- },
- doClose: function doClose() {
- this._closing = true;
- this.onClose && this.onClose();
- if (this.lockScroll) {
- setTimeout(this.restoreBodyStyle, 200);
- }
- this.opened = false;
- this.doAfterClose();
- },
- doAfterClose: function doAfterClose() {
- _popupManager2.default.closeModal(this._popupId);
- this._closing = false;
- },
- restoreBodyStyle: function restoreBodyStyle() {
- if (this.modal && this.withoutHiddenClass) {
- document.body.style.paddingRight = this.bodyPaddingRight;
- (0, _dom.removeClass)(document.body, 'el-popup-parent--hidden');
- }
- this.withoutHiddenClass = true;
- }
- }
- };
- exports.PopupManager = _popupManager2.default;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/popup/popup-manager.js":
- /*!******************************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/popup/popup-manager.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _dom = __webpack_require__(/*! element-ui/lib/utils/dom */ "./node_modules/element-ui/lib/utils/dom.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var hasModal = false;
- var hasInitZIndex = false;
- var zIndex = void 0;
- var getModal = function getModal() {
- if (_vue2.default.prototype.$isServer) return;
- var modalDom = PopupManager.modalDom;
- if (modalDom) {
- hasModal = true;
- } else {
- hasModal = false;
- modalDom = document.createElement('div');
- PopupManager.modalDom = modalDom;
- modalDom.addEventListener('touchmove', function (event) {
- event.preventDefault();
- event.stopPropagation();
- });
- modalDom.addEventListener('click', function () {
- PopupManager.doOnModalClick && PopupManager.doOnModalClick();
- });
- }
- return modalDom;
- };
- var instances = {};
- var PopupManager = {
- modalFade: true,
- getInstance: function getInstance(id) {
- return instances[id];
- },
- register: function register(id, instance) {
- if (id && instance) {
- instances[id] = instance;
- }
- },
- deregister: function deregister(id) {
- if (id) {
- instances[id] = null;
- delete instances[id];
- }
- },
- nextZIndex: function nextZIndex() {
- return PopupManager.zIndex++;
- },
- modalStack: [],
- doOnModalClick: function doOnModalClick() {
- var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topItem) return;
- var instance = PopupManager.getInstance(topItem.id);
- if (instance && instance.closeOnClickModal) {
- instance.close();
- }
- },
- openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
- if (_vue2.default.prototype.$isServer) return;
- if (!id || zIndex === undefined) return;
- this.modalFade = modalFade;
- var modalStack = this.modalStack;
- for (var i = 0, j = modalStack.length; i < j; i++) {
- var item = modalStack[i];
- if (item.id === id) {
- return;
- }
- }
- var modalDom = getModal();
- (0, _dom.addClass)(modalDom, 'v-modal');
- if (this.modalFade && !hasModal) {
- (0, _dom.addClass)(modalDom, 'v-modal-enter');
- }
- if (modalClass) {
- var classArr = modalClass.trim().split(/\s+/);
- classArr.forEach(function (item) {
- return (0, _dom.addClass)(modalDom, item);
- });
- }
- setTimeout(function () {
- (0, _dom.removeClass)(modalDom, 'v-modal-enter');
- }, 200);
- if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
- dom.parentNode.appendChild(modalDom);
- } else {
- document.body.appendChild(modalDom);
- }
- if (zIndex) {
- modalDom.style.zIndex = zIndex;
- }
- modalDom.tabIndex = 0;
- modalDom.style.display = '';
- this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
- },
- closeModal: function closeModal(id) {
- var modalStack = this.modalStack;
- var modalDom = getModal();
- if (modalStack.length > 0) {
- var topItem = modalStack[modalStack.length - 1];
- if (topItem.id === id) {
- if (topItem.modalClass) {
- var classArr = topItem.modalClass.trim().split(/\s+/);
- classArr.forEach(function (item) {
- return (0, _dom.removeClass)(modalDom, item);
- });
- }
- modalStack.pop();
- if (modalStack.length > 0) {
- modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
- }
- } else {
- for (var i = modalStack.length - 1; i >= 0; i--) {
- if (modalStack[i].id === id) {
- modalStack.splice(i, 1);
- break;
- }
- }
- }
- }
- if (modalStack.length === 0) {
- if (this.modalFade) {
- (0, _dom.addClass)(modalDom, 'v-modal-leave');
- }
- setTimeout(function () {
- if (modalStack.length === 0) {
- if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
- modalDom.style.display = 'none';
- PopupManager.modalDom = undefined;
- }
- (0, _dom.removeClass)(modalDom, 'v-modal-leave');
- }, 200);
- }
- }
- };
- Object.defineProperty(PopupManager, 'zIndex', {
- configurable: true,
- get: function get() {
- if (!hasInitZIndex) {
- zIndex = zIndex || (_vue2.default.prototype.$ELEMENT || {}).zIndex || 2000;
- hasInitZIndex = true;
- }
- return zIndex;
- },
- set: function set(value) {
- zIndex = value;
- }
- });
- var getTopPopup = function getTopPopup() {
- if (_vue2.default.prototype.$isServer) return;
- if (PopupManager.modalStack.length > 0) {
- var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
- if (!topPopup) return;
- var instance = PopupManager.getInstance(topPopup.id);
- return instance;
- }
- };
- if (!_vue2.default.prototype.$isServer) {
- // handle `esc` key when the popup is shown
- window.addEventListener('keydown', function (event) {
- if (event.keyCode === 27) {
- var topPopup = getTopPopup();
- if (topPopup && topPopup.closeOnPressEscape) {
- topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
- }
- }
- });
- }
- exports.default = PopupManager;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/resize-event.js":
- /*!***********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/resize-event.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.removeResizeListener = exports.addResizeListener = undefined;
- var _resizeObserverPolyfill = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
- var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var isServer = typeof window === 'undefined';
- /* istanbul ignore next */
- var resizeHandler = function resizeHandler(entries) {
- for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
- var _ref;
- if (_isArray) {
- if (_i >= _iterator.length) break;
- _ref = _iterator[_i++];
- } else {
- _i = _iterator.next();
- if (_i.done) break;
- _ref = _i.value;
- }
- var entry = _ref;
- var listeners = entry.target.__resizeListeners__ || [];
- if (listeners.length) {
- listeners.forEach(function (fn) {
- fn();
- });
- }
- }
- };
- /* istanbul ignore next */
- var addResizeListener = exports.addResizeListener = function addResizeListener(element, fn) {
- if (isServer) return;
- if (!element.__resizeListeners__) {
- element.__resizeListeners__ = [];
- element.__ro__ = new _resizeObserverPolyfill2.default(resizeHandler);
- element.__ro__.observe(element);
- }
- element.__resizeListeners__.push(fn);
- };
- /* istanbul ignore next */
- var removeResizeListener = exports.removeResizeListener = function removeResizeListener(element, fn) {
- if (!element || !element.__resizeListeners__) return;
- element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
- if (!element.__resizeListeners__.length) {
- element.__ro__.disconnect();
- }
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/scroll-into-view.js":
- /*!***************************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/scroll-into-view.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = scrollIntoView;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function scrollIntoView(container, selected) {
- if (_vue2.default.prototype.$isServer) return;
- if (!selected) {
- container.scrollTop = 0;
- return;
- }
- var offsetParents = [];
- var pointer = selected.offsetParent;
- while (pointer && container !== pointer && container.contains(pointer)) {
- offsetParents.push(pointer);
- pointer = pointer.offsetParent;
- }
- var top = selected.offsetTop + offsetParents.reduce(function (prev, curr) {
- return prev + curr.offsetTop;
- }, 0);
- var bottom = top + selected.offsetHeight;
- var viewRectTop = container.scrollTop;
- var viewRectBottom = viewRectTop + container.clientHeight;
- if (top < viewRectTop) {
- container.scrollTop = top;
- } else if (bottom > viewRectBottom) {
- container.scrollTop = bottom - container.clientHeight;
- }
- }
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/scrollbar-width.js":
- /*!**************************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/scrollbar-width.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function () {
- if (_vue2.default.prototype.$isServer) return 0;
- if (scrollBarWidth !== undefined) return scrollBarWidth;
- var outer = document.createElement('div');
- outer.className = 'el-scrollbar__wrap';
- outer.style.visibility = 'hidden';
- outer.style.width = '100px';
- outer.style.position = 'absolute';
- outer.style.top = '-9999px';
- document.body.appendChild(outer);
- var widthNoScroll = outer.offsetWidth;
- outer.style.overflow = 'scroll';
- var inner = document.createElement('div');
- inner.style.width = '100%';
- outer.appendChild(inner);
- var widthWithScroll = inner.offsetWidth;
- outer.parentNode.removeChild(outer);
- scrollBarWidth = widthNoScroll - widthWithScroll;
- return scrollBarWidth;
- };
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var scrollBarWidth = void 0;
- ;
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/shared.js":
- /*!*****************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/shared.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.isDef = isDef;
- exports.isKorean = isKorean;
- function isDef(val) {
- return val !== undefined && val !== null;
- }
- function isKorean(text) {
- var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
- return reg.test(text);
- }
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/types.js":
- /*!****************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/types.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.isString = isString;
- exports.isObject = isObject;
- exports.isHtmlElement = isHtmlElement;
- function isString(obj) {
- return Object.prototype.toString.call(obj) === '[object String]';
- }
- function isObject(obj) {
- return Object.prototype.toString.call(obj) === '[object Object]';
- }
- function isHtmlElement(node) {
- return node && node.nodeType === Node.ELEMENT_NODE;
- }
- var isFunction = exports.isFunction = function isFunction(functionToCheck) {
- var getType = {};
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
- };
- var isUndefined = exports.isUndefined = function isUndefined(val) {
- return val === void 0;
- };
- var isDefined = exports.isDefined = function isDefined(val) {
- return val !== undefined && val !== null;
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/util.js":
- /*!***************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/util.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.isEmpty = exports.isEqual = exports.arrayEquals = exports.looseEqual = exports.capitalize = exports.kebabCase = exports.autoprefixer = exports.isFirefox = exports.isEdge = exports.isIE = exports.coerceTruthyValueToArray = exports.arrayFind = exports.arrayFindIndex = exports.escapeRegexpString = exports.valueEquals = exports.generateId = exports.getValueByPath = undefined;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- exports.noop = noop;
- exports.hasOwn = hasOwn;
- exports.toObject = toObject;
- exports.getPropByPath = getPropByPath;
- exports.rafThrottle = rafThrottle;
- exports.objToArray = objToArray;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _types = __webpack_require__(/*! element-ui/lib/utils/types */ "./node_modules/element-ui/lib/utils/types.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function noop() {};
- function hasOwn(obj, key) {
- return hasOwnProperty.call(obj, key);
- };
- function extend(to, _from) {
- for (var key in _from) {
- to[key] = _from[key];
- }
- return to;
- };
- function toObject(arr) {
- var res = {};
- for (var i = 0; i < arr.length; i++) {
- if (arr[i]) {
- extend(res, arr[i]);
- }
- }
- return res;
- };
- var getValueByPath = exports.getValueByPath = function getValueByPath(object, prop) {
- prop = prop || '';
- var paths = prop.split('.');
- var current = object;
- var result = null;
- for (var i = 0, j = paths.length; i < j; i++) {
- var path = paths[i];
- if (!current) break;
- if (i === j - 1) {
- result = current[path];
- break;
- }
- current = current[path];
- }
- return result;
- };
- function getPropByPath(obj, path, strict) {
- var tempObj = obj;
- path = path.replace(/\[(\w+)\]/g, '.$1');
- path = path.replace(/^\./, '');
- var keyArr = path.split('.');
- var i = 0;
- for (var len = keyArr.length; i < len - 1; ++i) {
- if (!tempObj && !strict) break;
- var key = keyArr[i];
- if (key in tempObj) {
- tempObj = tempObj[key];
- } else {
- if (strict) {
- throw new Error('please transfer a valid prop path to form item!');
- }
- break;
- }
- }
- return {
- o: tempObj,
- k: keyArr[i],
- v: tempObj ? tempObj[keyArr[i]] : null
- };
- };
- var generateId = exports.generateId = function generateId() {
- return Math.floor(Math.random() * 10000);
- };
- var valueEquals = exports.valueEquals = function valueEquals(a, b) {
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
- if (a === b) return true;
- if (!(a instanceof Array)) return false;
- if (!(b instanceof Array)) return false;
- if (a.length !== b.length) return false;
- for (var i = 0; i !== a.length; ++i) {
- if (a[i] !== b[i]) return false;
- }
- return true;
- };
- var escapeRegexpString = exports.escapeRegexpString = function escapeRegexpString() {
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
- };
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
- var arrayFindIndex = exports.arrayFindIndex = function arrayFindIndex(arr, pred) {
- for (var i = 0; i !== arr.length; ++i) {
- if (pred(arr[i])) {
- return i;
- }
- }
- return -1;
- };
- var arrayFind = exports.arrayFind = function arrayFind(arr, pred) {
- var idx = arrayFindIndex(arr, pred);
- return idx !== -1 ? arr[idx] : undefined;
- };
- // coerce truthy value to array
- var coerceTruthyValueToArray = exports.coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
- if (Array.isArray(val)) {
- return val;
- } else if (val) {
- return [val];
- } else {
- return [];
- }
- };
- var isIE = exports.isIE = function isIE() {
- return !_vue2.default.prototype.$isServer && !isNaN(Number(document.documentMode));
- };
- var isEdge = exports.isEdge = function isEdge() {
- return !_vue2.default.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
- };
- var isFirefox = exports.isFirefox = function isFirefox() {
- return !_vue2.default.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
- };
- var autoprefixer = exports.autoprefixer = function autoprefixer(style) {
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
- var rules = ['transform', 'transition', 'animation'];
- var prefixes = ['ms-', 'webkit-'];
- rules.forEach(function (rule) {
- var value = style[rule];
- if (rule && value) {
- prefixes.forEach(function (prefix) {
- style[prefix + rule] = value;
- });
- }
- });
- return style;
- };
- var kebabCase = exports.kebabCase = function kebabCase(str) {
- var hyphenateRE = /([^-])([A-Z])/g;
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
- };
- var capitalize = exports.capitalize = function capitalize(str) {
- if (!(0, _types.isString)(str)) return str;
- return str.charAt(0).toUpperCase() + str.slice(1);
- };
- var looseEqual = exports.looseEqual = function looseEqual(a, b) {
- var isObjectA = (0, _types.isObject)(a);
- var isObjectB = (0, _types.isObject)(b);
- if (isObjectA && isObjectB) {
- return JSON.stringify(a) === JSON.stringify(b);
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b);
- } else {
- return false;
- }
- };
- var arrayEquals = exports.arrayEquals = function arrayEquals(arrayA, arrayB) {
- arrayA = arrayA || [];
- arrayB = arrayB || [];
- if (arrayA.length !== arrayB.length) {
- return false;
- }
- for (var i = 0; i < arrayA.length; i++) {
- if (!looseEqual(arrayA[i], arrayB[i])) {
- return false;
- }
- }
- return true;
- };
- var isEqual = exports.isEqual = function isEqual(value1, value2) {
- if (Array.isArray(value1) && Array.isArray(value2)) {
- return arrayEquals(value1, value2);
- }
- return looseEqual(value1, value2);
- };
- var isEmpty = exports.isEmpty = function isEmpty(val) {
- // null or undefined
- if (val == null) return true;
- if (typeof val === 'boolean') return false;
- if (typeof val === 'number') return !val;
- if (val instanceof Error) return val.message === '';
- switch (Object.prototype.toString.call(val)) {
- // String or Array
- case '[object String]':
- case '[object Array]':
- return !val.length;
- // Map or Set or File
- case '[object File]':
- case '[object Map]':
- case '[object Set]':
- {
- return !val.size;
- }
- // Plain Object
- case '[object Object]':
- {
- return !Object.keys(val).length;
- }
- }
- return false;
- };
- function rafThrottle(fn) {
- var locked = false;
- return function () {
- var _this = this;
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- if (locked) return;
- locked = true;
- window.requestAnimationFrame(function (_) {
- fn.apply(_this, args);
- locked = false;
- });
- };
- }
- function objToArray(obj) {
- if (Array.isArray(obj)) {
- return obj;
- }
- return isEmpty(obj) ? [] : [obj];
- }
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/vdom.js":
- /*!***************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/vdom.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- exports.isVNode = isVNode;
- var _util = __webpack_require__(/*! element-ui/lib/utils/util */ "./node_modules/element-ui/lib/utils/util.js");
- function isVNode(node) {
- return node !== null && (typeof node === 'undefined' ? 'undefined' : _typeof(node)) === 'object' && (0, _util.hasOwn)(node, 'componentOptions');
- };
- /***/ }),
- /***/ "./node_modules/element-ui/lib/utils/vue-popper.js":
- /*!*********************************************************!*\
- !*** ./node_modules/element-ui/lib/utils/vue-popper.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.runtime.esm.js");
- var _vue2 = _interopRequireDefault(_vue);
- var _popup = __webpack_require__(/*! element-ui/lib/utils/popup */ "./node_modules/element-ui/lib/utils/popup/index.js");
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var PopperJS = _vue2.default.prototype.$isServer ? function () {} : __webpack_require__(/*! ./popper */ "./node_modules/element-ui/lib/utils/popper.js");
- var stop = function stop(e) {
- return e.stopPropagation();
- };
- /**
- * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
- * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
- * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
- * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
- * @param {Boolean} [visible=false] Visibility of the popup element.
- * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
- */
- exports.default = {
- props: {
- transformOrigin: {
- type: [Boolean, String],
- default: true
- },
- placement: {
- type: String,
- default: 'bottom'
- },
- boundariesPadding: {
- type: Number,
- default: 5
- },
- reference: {},
- popper: {},
- offset: {
- default: 0
- },
- value: Boolean,
- visibleArrow: Boolean,
- arrowOffset: {
- type: Number,
- default: 35
- },
- appendToBody: {
- type: Boolean,
- default: true
- },
- popperOptions: {
- type: Object,
- default: function _default() {
- return {
- gpuAcceleration: false
- };
- }
- }
- },
- data: function data() {
- return {
- showPopper: false,
- currentPlacement: ''
- };
- },
- watch: {
- value: {
- immediate: true,
- handler: function handler(val) {
- this.showPopper = val;
- this.$emit('input', val);
- }
- },
- showPopper: function showPopper(val) {
- if (this.disabled) return;
- val ? this.updatePopper() : this.destroyPopper();
- this.$emit('input', val);
- }
- },
- methods: {
- createPopper: function createPopper() {
- var _this = this;
- if (this.$isServer) return;
- this.currentPlacement = this.currentPlacement || this.placement;
- if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
- return;
- }
- var options = this.popperOptions;
- var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
- var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
- reference = this.referenceElm = this.$slots.reference[0].elm;
- }
- if (!popper || !reference) return;
- if (this.visibleArrow) this.appendArrow(popper);
- if (this.appendToBody) document.body.appendChild(this.popperElm);
- if (this.popperJS && this.popperJS.destroy) {
- this.popperJS.destroy();
- }
- options.placement = this.currentPlacement;
- options.offset = this.offset;
- options.arrowOffset = this.arrowOffset;
- this.popperJS = new PopperJS(reference, popper, options);
- this.popperJS.onCreate(function (_) {
- _this.$emit('created', _this);
- _this.resetTransformOrigin();
- _this.$nextTick(_this.updatePopper);
- });
- if (typeof options.onUpdate === 'function') {
- this.popperJS.onUpdate(options.onUpdate);
- }
- this.popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
- this.popperElm.addEventListener('click', stop);
- },
- updatePopper: function updatePopper() {
- var popperJS = this.popperJS;
- if (popperJS) {
- popperJS.update();
- if (popperJS._popper) {
- popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
- }
- } else {
- this.createPopper();
- }
- },
- doDestroy: function doDestroy(forceDestroy) {
- /* istanbul ignore if */
- if (!this.popperJS || this.showPopper && !forceDestroy) return;
- this.popperJS.destroy();
- this.popperJS = null;
- },
- destroyPopper: function destroyPopper() {
- if (this.popperJS) {
- this.resetTransformOrigin();
- }
- },
- resetTransformOrigin: function resetTransformOrigin() {
- if (!this.transformOrigin) return;
- var placementMap = {
- top: 'bottom',
- bottom: 'top',
- left: 'right',
- right: 'left'
- };
- var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
- var origin = placementMap[placement];
- this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? 'center ' + origin : origin + ' center';
- },
- appendArrow: function appendArrow(element) {
- var hash = void 0;
- if (this.appended) {
- return;
- }
- this.appended = true;
- for (var item in element.attributes) {
- if (/^_v-/.test(element.attributes[item].name)) {
- hash = element.attributes[item].name;
- break;
- }
- }
- var arrow = document.createElement('div');
- if (hash) {
- arrow.setAttribute(hash, '');
- }
- arrow.setAttribute('x-arrow', '');
- arrow.className = 'popper__arrow';
- element.appendChild(arrow);
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.doDestroy(true);
- if (this.popperElm && this.popperElm.parentNode === document.body) {
- this.popperElm.removeEventListener('click', stop);
- document.body.removeChild(this.popperElm);
- }
- },
- // call destroy in keep-alive mode
- deactivated: function deactivated() {
- this.$options.beforeDestroy[0].call(this);
- }
- };
- /***/ }),
- /***/ "./node_modules/node-libs-browser/mock/process.js":
- /*!********************************************************!*\
- !*** ./node_modules/node-libs-browser/mock/process.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- exports.nextTick = function nextTick(fn) {
- var args = Array.prototype.slice.call(arguments);
- args.shift();
- setTimeout(function () {
- fn.apply(null, args);
- }, 0);
- };
- exports.platform = exports.arch =
- exports.execPath = exports.title = 'browser';
- exports.pid = 1;
- exports.browser = true;
- exports.env = {};
- exports.argv = [];
- exports.binding = function (name) {
- throw new Error('No such module. (Possibly not yet loaded)')
- };
- (function () {
- var cwd = '/';
- var path;
- exports.cwd = function () { return cwd };
- exports.chdir = function (dir) {
- if (!path) path = __webpack_require__(/*! path */ "./node_modules/path-browserify/index.js");
- cwd = path.resolve(dir, cwd);
- };
- })();
- exports.exit = exports.kill =
- exports.umask = exports.dlopen =
- exports.uptime = exports.memoryUsage =
- exports.uvCounters = function() {};
- exports.features = {};
- /***/ }),
- /***/ "./node_modules/normalize-wheel/index.js":
- /*!***********************************************!*\
- !*** ./node_modules/normalize-wheel/index.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! ./src/normalizeWheel.js */ "./node_modules/normalize-wheel/src/normalizeWheel.js");
- /***/ }),
- /***/ "./node_modules/normalize-wheel/src/ExecutionEnvironment.js":
- /*!******************************************************************!*\
- !*** ./node_modules/normalize-wheel/src/ExecutionEnvironment.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Copyright (c) 2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ExecutionEnvironment
- */
- /*jslint evil: true */
- var canUseDOM = !!(
- typeof window !== 'undefined' &&
- window.document &&
- window.document.createElement
- );
- /**
- * Simple, lightweight module assisting with the detection and context of
- * Worker. Helps avoid circular dependencies and allows code to reason about
- * whether or not they are in a Worker, even if they never include the main
- * `ReactWorker` dependency.
- */
- var ExecutionEnvironment = {
- canUseDOM: canUseDOM,
- canUseWorkers: typeof Worker !== 'undefined',
- canUseEventListeners:
- canUseDOM && !!(window.addEventListener || window.attachEvent),
- canUseViewport: canUseDOM && !!window.screen,
- isInWorker: !canUseDOM // For now, this is true - might change in the future.
- };
- module.exports = ExecutionEnvironment;
- /***/ }),
- /***/ "./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js":
- /*!******************************************************************!*\
- !*** ./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Copyright 2004-present Facebook. All Rights Reserved.
- *
- * @providesModule UserAgent_DEPRECATED
- */
- /**
- * Provides entirely client-side User Agent and OS detection. You should prefer
- * the non-deprecated UserAgent module when possible, which exposes our
- * authoritative server-side PHP-based detection to the client.
- *
- * Usage is straightforward:
- *
- * if (UserAgent_DEPRECATED.ie()) {
- * // IE
- * }
- *
- * You can also do version checks:
- *
- * if (UserAgent_DEPRECATED.ie() >= 7) {
- * // IE7 or better
- * }
- *
- * The browser functions will return NaN if the browser does not match, so
- * you can also do version compares the other way:
- *
- * if (UserAgent_DEPRECATED.ie() < 7) {
- * // IE6 or worse
- * }
- *
- * Note that the version is a float and may include a minor version number,
- * so you should always use range operators to perform comparisons, not
- * strict equality.
- *
- * **Note:** You should **strongly** prefer capability detection to browser
- * version detection where it's reasonable:
- *
- * http://www.quirksmode.org/js/support.html
- *
- * Further, we have a large number of mature wrapper functions and classes
- * which abstract away many browser irregularities. Check the documentation,
- * grep for things, or ask on javascript@lists.facebook.com before writing yet
- * another copy of "event || window.event".
- *
- */
- var _populated = false;
- // Browsers
- var _ie, _firefox, _opera, _webkit, _chrome;
- // Actual IE browser for compatibility mode
- var _ie_real_version;
- // Platforms
- var _osx, _windows, _linux, _android;
- // Architectures
- var _win64;
- // Devices
- var _iphone, _ipad, _native;
- var _mobile;
- function _populate() {
- if (_populated) {
- return;
- }
- _populated = true;
- // To work around buggy JS libraries that can't handle multi-digit
- // version numbers, Opera 10's user agent string claims it's Opera
- // 9, then later includes a Version/X.Y field:
- //
- // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
- var uas = navigator.userAgent;
- var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
- var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
- _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
- _ipad = /\b(iP[ao]d)/.exec(uas);
- _android = /Android/i.exec(uas);
- _native = /FBAN\/\w+;/i.exec(uas);
- _mobile = /Mobile/i.exec(uas);
- // Note that the IE team blog would have you believe you should be checking
- // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
- // from either x64 or ia64; so ultimately, you should just check for Win64
- // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
- // Windows will send 'WOW64' instead.
- _win64 = !!(/Win64/.exec(uas));
- if (agent) {
- _ie = agent[1] ? parseFloat(agent[1]) : (
- agent[5] ? parseFloat(agent[5]) : NaN);
- // IE compatibility mode
- if (_ie && document && document.documentMode) {
- _ie = document.documentMode;
- }
- // grab the "true" ie version from the trident token if available
- var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
- _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
- _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
- _opera = agent[3] ? parseFloat(agent[3]) : NaN;
- _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
- if (_webkit) {
- // We do not add the regexp to the above test, because it will always
- // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
- // the userAgent string.
- agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
- _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
- } else {
- _chrome = NaN;
- }
- } else {
- _ie = _firefox = _opera = _chrome = _webkit = NaN;
- }
- if (os) {
- if (os[1]) {
- // Detect OS X version. If no version number matches, set _osx to true.
- // Version examples: 10, 10_6_1, 10.7
- // Parses version number as a float, taking only first two sets of
- // digits. If only one set of digits is found, returns just the major
- // version number.
- var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
- _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
- } else {
- _osx = false;
- }
- _windows = !!os[2];
- _linux = !!os[3];
- } else {
- _osx = _windows = _linux = false;
- }
- }
- var UserAgent_DEPRECATED = {
- /**
- * Check if the UA is Internet Explorer.
- *
- *
- * @return float|NaN Version number (if match) or NaN.
- */
- ie: function() {
- return _populate() || _ie;
- },
- /**
- * Check if we're in Internet Explorer compatibility mode.
- *
- * @return bool true if in compatibility mode, false if
- * not compatibility mode or not ie
- */
- ieCompatibilityMode: function() {
- return _populate() || (_ie_real_version > _ie);
- },
- /**
- * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
- * only need this because Skype can't handle 64-bit IE yet. We need to remove
- * this when we don't need it -- tracked by #601957.
- */
- ie64: function() {
- return UserAgent_DEPRECATED.ie() && _win64;
- },
- /**
- * Check if the UA is Firefox.
- *
- *
- * @return float|NaN Version number (if match) or NaN.
- */
- firefox: function() {
- return _populate() || _firefox;
- },
- /**
- * Check if the UA is Opera.
- *
- *
- * @return float|NaN Version number (if match) or NaN.
- */
- opera: function() {
- return _populate() || _opera;
- },
- /**
- * Check if the UA is WebKit.
- *
- *
- * @return float|NaN Version number (if match) or NaN.
- */
- webkit: function() {
- return _populate() || _webkit;
- },
- /**
- * For Push
- * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
- */
- safari: function() {
- return UserAgent_DEPRECATED.webkit();
- },
- /**
- * Check if the UA is a Chrome browser.
- *
- *
- * @return float|NaN Version number (if match) or NaN.
- */
- chrome : function() {
- return _populate() || _chrome;
- },
- /**
- * Check if the user is running Windows.
- *
- * @return bool `true' if the user's OS is Windows.
- */
- windows: function() {
- return _populate() || _windows;
- },
- /**
- * Check if the user is running Mac OS X.
- *
- * @return float|bool Returns a float if a version number is detected,
- * otherwise true/false.
- */
- osx: function() {
- return _populate() || _osx;
- },
- /**
- * Check if the user is running Linux.
- *
- * @return bool `true' if the user's OS is some flavor of Linux.
- */
- linux: function() {
- return _populate() || _linux;
- },
- /**
- * Check if the user is running on an iPhone or iPod platform.
- *
- * @return bool `true' if the user is running some flavor of the
- * iPhone OS.
- */
- iphone: function() {
- return _populate() || _iphone;
- },
- mobile: function() {
- return _populate() || (_iphone || _ipad || _android || _mobile);
- },
- nativeApp: function() {
- // webviews inside of the native apps
- return _populate() || _native;
- },
- android: function() {
- return _populate() || _android;
- },
- ipad: function() {
- return _populate() || _ipad;
- }
- };
- module.exports = UserAgent_DEPRECATED;
- /***/ }),
- /***/ "./node_modules/normalize-wheel/src/isEventSupported.js":
- /*!**************************************************************!*\
- !*** ./node_modules/normalize-wheel/src/isEventSupported.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Copyright 2013-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule isEventSupported
- */
- var ExecutionEnvironment = __webpack_require__(/*! ./ExecutionEnvironment */ "./node_modules/normalize-wheel/src/ExecutionEnvironment.js");
- var useHasFeature;
- if (ExecutionEnvironment.canUseDOM) {
- useHasFeature =
- document.implementation &&
- document.implementation.hasFeature &&
- // always returns true in newer browsers as per the standard.
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
- document.implementation.hasFeature('', '') !== true;
- }
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function isEventSupported(eventNameSuffix, capture) {
- if (!ExecutionEnvironment.canUseDOM ||
- capture && !('addEventListener' in document)) {
- return false;
- }
- var eventName = 'on' + eventNameSuffix;
- var isSupported = eventName in document;
- if (!isSupported) {
- var element = document.createElement('div');
- element.setAttribute(eventName, 'return;');
- isSupported = typeof element[eventName] === 'function';
- }
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
- // This is the only way to test support for the `wheel` event in IE9+.
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
- }
- return isSupported;
- }
- module.exports = isEventSupported;
- /***/ }),
- /***/ "./node_modules/normalize-wheel/src/normalizeWheel.js":
- /*!************************************************************!*\
- !*** ./node_modules/normalize-wheel/src/normalizeWheel.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Copyright (c) 2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule normalizeWheel
- * @typechecks
- */
- var UserAgent_DEPRECATED = __webpack_require__(/*! ./UserAgent_DEPRECATED */ "./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js");
- var isEventSupported = __webpack_require__(/*! ./isEventSupported */ "./node_modules/normalize-wheel/src/isEventSupported.js");
- // Reasonable defaults
- var PIXEL_STEP = 10;
- var LINE_HEIGHT = 40;
- var PAGE_HEIGHT = 800;
- /**
- * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
- * complicated, thus this doc is long and (hopefully) detailed enough to answer
- * your questions.
- *
- * If you need to react to the mouse wheel in a predictable way, this code is
- * like your bestest friend. * hugs *
- *
- * As of today, there are 4 DOM event types you can listen to:
- *
- * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
- * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
- * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
- * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
- *
- * So what to do? The is the best:
- *
- * normalizeWheel.getEventType();
- *
- * In your event callback, use this code to get sane interpretation of the
- * deltas. This code will return an object with properties:
- *
- * spinX -- normalized spin speed (use for zoom) - x plane
- * spinY -- " - y plane
- * pixelX -- normalized distance (to pixels) - x plane
- * pixelY -- " - y plane
- *
- * Wheel values are provided by the browser assuming you are using the wheel to
- * scroll a web page by a number of lines or pixels (or pages). Values can vary
- * significantly on different platforms and browsers, forgetting that you can
- * scroll at different speeds. Some devices (like trackpads) emit more events
- * at smaller increments with fine granularity, and some emit massive jumps with
- * linear speed or acceleration.
- *
- * This code does its best to normalize the deltas for you:
- *
- * - spin is trying to normalize how far the wheel was spun (or trackpad
- * dragged). This is super useful for zoom support where you want to
- * throw away the chunky scroll steps on the PC and make those equal to
- * the slow and smooth tiny steps on the Mac. Key data: This code tries to
- * resolve a single slow step on a wheel to 1.
- *
- * - pixel is normalizing the desired scroll delta in pixel units. You'll
- * get the crazy differences between browsers, but at least it'll be in
- * pixels!
- *
- * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
- * should translate to positive value zooming IN, negative zooming OUT.
- * This matches the newer 'wheel' event.
- *
- * Why are there spinX, spinY (or pixels)?
- *
- * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
- * with a mouse. It results in side-scrolling in the browser by default.
- *
- * - spinY is what you expect -- it's the classic axis of a mouse wheel.
- *
- * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
- * probably is by browsers in conjunction with fancy 3D controllers .. but
- * you know.
- *
- * Implementation info:
- *
- * Examples of 'wheel' event if you scroll slowly (down) by one step with an
- * average mouse:
- *
- * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
- * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
- * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
- * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
- * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
- *
- * On the trackpad:
- *
- * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
- * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
- *
- * On other/older browsers.. it's more complicated as there can be multiple and
- * also missing delta values.
- *
- * The 'wheel' event is more standard:
- *
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
- *
- * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
- * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
- * backward compatibility with older events. Those other values help us
- * better normalize spin speed. Example of what the browsers provide:
- *
- * | event.wheelDelta | event.detail
- * ------------------+------------------+--------------
- * Safari v5/OS X | -120 | 0
- * Safari v5/Win7 | -120 | 0
- * Chrome v17/OS X | -120 | 0
- * Chrome v17/Win7 | -120 | 0
- * IE9/Win7 | -120 | undefined
- * Firefox v4/OS X | undefined | 1
- * Firefox v4/Win7 | undefined | 3
- *
- */
- function normalizeWheel(/*object*/ event) /*object*/ {
- var sX = 0, sY = 0, // spinX, spinY
- pX = 0, pY = 0; // pixelX, pixelY
- // Legacy
- if ('detail' in event) { sY = event.detail; }
- if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
- if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
- if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
- // side scrolling on FF with DOMMouseScroll
- if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
- sX = sY;
- sY = 0;
- }
- pX = sX * PIXEL_STEP;
- pY = sY * PIXEL_STEP;
- if ('deltaY' in event) { pY = event.deltaY; }
- if ('deltaX' in event) { pX = event.deltaX; }
- if ((pX || pY) && event.deltaMode) {
- if (event.deltaMode == 1) { // delta in LINE units
- pX *= LINE_HEIGHT;
- pY *= LINE_HEIGHT;
- } else { // delta in PAGE units
- pX *= PAGE_HEIGHT;
- pY *= PAGE_HEIGHT;
- }
- }
- // Fall-back if spin cannot be determined
- if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
- if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
- return { spinX : sX,
- spinY : sY,
- pixelX : pX,
- pixelY : pY };
- }
- /**
- * The best combination if you prefer spinX + spinY normalization. It favors
- * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
- * 'wheel' event, making spin speed determination impossible.
- */
- normalizeWheel.getEventType = function() /*string*/ {
- return (UserAgent_DEPRECATED.firefox())
- ? 'DOMMouseScroll'
- : (isEventSupported('wheel'))
- ? 'wheel'
- : 'mousewheel';
- };
- module.exports = normalizeWheel;
- /***/ }),
- /***/ "./node_modules/path-browserify/index.js":
- /*!***********************************************!*\
- !*** ./node_modules/path-browserify/index.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
- // backported and transplited with Babel, with backwards-compat fixes
- // Copyright Joyent, Inc. and other Node contributors.
- //
- // Permission is hereby granted, free of charge, to any person obtaining a
- // copy of this software and associated documentation files (the
- // "Software"), to deal in the Software without restriction, including
- // without limitation the rights to use, copy, modify, merge, publish,
- // distribute, sublicense, and/or sell copies of the Software, and to permit
- // persons to whom the Software is furnished to do so, subject to the
- // following conditions:
- //
- // The above copyright notice and this permission notice shall be included
- // in all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
- // resolves . and .. elements in a path array with directory names there
- // must be no slashes, empty elements, or device names (c:\) in the array
- // (so also no leading and trailing slashes - it does not distinguish
- // relative and absolute paths)
- function normalizeArray(parts, allowAboveRoot) {
- // if the path tries to go above the root, `up` ends up > 0
- var up = 0;
- for (var i = parts.length - 1; i >= 0; i--) {
- var last = parts[i];
- if (last === '.') {
- parts.splice(i, 1);
- } else if (last === '..') {
- parts.splice(i, 1);
- up++;
- } else if (up) {
- parts.splice(i, 1);
- up--;
- }
- }
- // if the path is allowed to go above the root, restore leading ..s
- if (allowAboveRoot) {
- for (; up--; up) {
- parts.unshift('..');
- }
- }
- return parts;
- }
- // path.resolve([from ...], to)
- // posix version
- exports.resolve = function() {
- var resolvedPath = '',
- resolvedAbsolute = false;
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
- var path = (i >= 0) ? arguments[i] : process.cwd();
- // Skip empty and invalid entries
- if (typeof path !== 'string') {
- throw new TypeError('Arguments to path.resolve must be strings');
- } else if (!path) {
- continue;
- }
- resolvedPath = path + '/' + resolvedPath;
- resolvedAbsolute = path.charAt(0) === '/';
- }
- // At this point the path should be resolved to a full absolute path, but
- // handle relative paths to be safe (might happen when process.cwd() fails)
- // Normalize the path
- resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
- return !!p;
- }), !resolvedAbsolute).join('/');
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
- };
- // path.normalize(path)
- // posix version
- exports.normalize = function(path) {
- var isAbsolute = exports.isAbsolute(path),
- trailingSlash = substr(path, -1) === '/';
- // Normalize the path
- path = normalizeArray(filter(path.split('/'), function(p) {
- return !!p;
- }), !isAbsolute).join('/');
- if (!path && !isAbsolute) {
- path = '.';
- }
- if (path && trailingSlash) {
- path += '/';
- }
- return (isAbsolute ? '/' : '') + path;
- };
- // posix version
- exports.isAbsolute = function(path) {
- return path.charAt(0) === '/';
- };
- // posix version
- exports.join = function() {
- var paths = Array.prototype.slice.call(arguments, 0);
- return exports.normalize(filter(paths, function(p, index) {
- if (typeof p !== 'string') {
- throw new TypeError('Arguments to path.join must be strings');
- }
- return p;
- }).join('/'));
- };
- // path.relative(from, to)
- // posix version
- exports.relative = function(from, to) {
- from = exports.resolve(from).substr(1);
- to = exports.resolve(to).substr(1);
- function trim(arr) {
- var start = 0;
- for (; start < arr.length; start++) {
- if (arr[start] !== '') break;
- }
- var end = arr.length - 1;
- for (; end >= 0; end--) {
- if (arr[end] !== '') break;
- }
- if (start > end) return [];
- return arr.slice(start, end - start + 1);
- }
- var fromParts = trim(from.split('/'));
- var toParts = trim(to.split('/'));
- var length = Math.min(fromParts.length, toParts.length);
- var samePartsLength = length;
- for (var i = 0; i < length; i++) {
- if (fromParts[i] !== toParts[i]) {
- samePartsLength = i;
- break;
- }
- }
- var outputParts = [];
- for (var i = samePartsLength; i < fromParts.length; i++) {
- outputParts.push('..');
- }
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
- return outputParts.join('/');
- };
- exports.sep = '/';
- exports.delimiter = ':';
- exports.dirname = function (path) {
- if (typeof path !== 'string') path = path + '';
- if (path.length === 0) return '.';
- var code = path.charCodeAt(0);
- var hasRoot = code === 47 /*/*/;
- var end = -1;
- var matchedSlash = true;
- for (var i = path.length - 1; i >= 1; --i) {
- code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- if (!matchedSlash) {
- end = i;
- break;
- }
- } else {
- // We saw the first non-path separator
- matchedSlash = false;
- }
- }
- if (end === -1) return hasRoot ? '/' : '.';
- if (hasRoot && end === 1) {
- // return '//';
- // Backwards-compat fix:
- return '/';
- }
- return path.slice(0, end);
- };
- function basename(path) {
- if (typeof path !== 'string') path = path + '';
- var start = 0;
- var end = -1;
- var matchedSlash = true;
- var i;
- for (i = path.length - 1; i >= 0; --i) {
- if (path.charCodeAt(i) === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- start = i + 1;
- break;
- }
- } else if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // path component
- matchedSlash = false;
- end = i + 1;
- }
- }
- if (end === -1) return '';
- return path.slice(start, end);
- }
- // Uses a mixed approach for backwards-compatibility, as ext behavior changed
- // in new Node.js versions, so only basename() above is backported here
- exports.basename = function (path, ext) {
- var f = basename(path);
- if (ext && f.substr(-1 * ext.length) === ext) {
- f = f.substr(0, f.length - ext.length);
- }
- return f;
- };
- exports.extname = function (path) {
- if (typeof path !== 'string') path = path + '';
- var startDot = -1;
- var startPart = 0;
- var end = -1;
- var matchedSlash = true;
- // Track the state of characters (if any) we see before our first dot and
- // after any path separator we find
- var preDotState = 0;
- for (var i = path.length - 1; i >= 0; --i) {
- var code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- startPart = i + 1;
- break;
- }
- continue;
- }
- if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // extension
- matchedSlash = false;
- end = i + 1;
- }
- if (code === 46 /*.*/) {
- // If this is our first dot, mark it as the start of our extension
- if (startDot === -1)
- startDot = i;
- else if (preDotState !== 1)
- preDotState = 1;
- } else if (startDot !== -1) {
- // We saw a non-dot and non-path separator before our dot, so we should
- // have a good chance at having a non-empty extension
- preDotState = -1;
- }
- }
- if (startDot === -1 || end === -1 ||
- // We saw a non-dot character immediately before the dot
- preDotState === 0 ||
- // The (right-most) trimmed path component is exactly '..'
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
- return '';
- }
- return path.slice(startDot, end);
- };
- function filter (xs, f) {
- if (xs.filter) return xs.filter(f);
- var res = [];
- for (var i = 0; i < xs.length; i++) {
- if (f(xs[i], i, xs)) res.push(xs[i]);
- }
- return res;
- }
- // String.prototype.substr - negative index don't work in IE8
- var substr = 'ab'.substr(-1) === 'b'
- ? function (str, start, len) { return str.substr(start, len) }
- : function (str, start, len) {
- if (start < 0) start = str.length + start;
- return str.substr(start, len);
- }
- ;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js")))
- /***/ }),
- /***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js ***!
- \*************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/**
- * A collection of shims that provide minimal functionality of the ES6 collections.
- *
- * These implementations are not meant to be used outside of the ResizeObserver
- * modules as they cover only a limited range of use cases.
- */
- /* eslint-disable require-jsdoc, valid-jsdoc */
- var MapShim = (function () {
- if (typeof Map !== 'undefined') {
- return Map;
- }
- /**
- * Returns index in provided array that matches the specified key.
- *
- * @param {Array<Array>} arr
- * @param {*} key
- * @returns {number}
- */
- function getIndex(arr, key) {
- var result = -1;
- arr.some(function (entry, index) {
- if (entry[0] === key) {
- result = index;
- return true;
- }
- return false;
- });
- return result;
- }
- return /** @class */ (function () {
- function class_1() {
- this.__entries__ = [];
- }
- Object.defineProperty(class_1.prototype, "size", {
- /**
- * @returns {boolean}
- */
- get: function () {
- return this.__entries__.length;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {*} key
- * @returns {*}
- */
- class_1.prototype.get = function (key) {
- var index = getIndex(this.__entries__, key);
- var entry = this.__entries__[index];
- return entry && entry[1];
- };
- /**
- * @param {*} key
- * @param {*} value
- * @returns {void}
- */
- class_1.prototype.set = function (key, value) {
- var index = getIndex(this.__entries__, key);
- if (~index) {
- this.__entries__[index][1] = value;
- }
- else {
- this.__entries__.push([key, value]);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.delete = function (key) {
- var entries = this.__entries__;
- var index = getIndex(entries, key);
- if (~index) {
- entries.splice(index, 1);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.has = function (key) {
- return !!~getIndex(this.__entries__, key);
- };
- /**
- * @returns {void}
- */
- class_1.prototype.clear = function () {
- this.__entries__.splice(0);
- };
- /**
- * @param {Function} callback
- * @param {*} [ctx=null]
- * @returns {void}
- */
- class_1.prototype.forEach = function (callback, ctx) {
- if (ctx === void 0) { ctx = null; }
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
- var entry = _a[_i];
- callback.call(ctx, entry[1], entry[0]);
- }
- };
- return class_1;
- }());
- })();
- /**
- * Detects whether window and document objects are available in current environment.
- */
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
- // Returns global object of a current environment.
- var global$1 = (function () {
- if (typeof global !== 'undefined' && global.Math === Math) {
- return global;
- }
- if (typeof self !== 'undefined' && self.Math === Math) {
- return self;
- }
- if (typeof window !== 'undefined' && window.Math === Math) {
- return window;
- }
- // eslint-disable-next-line no-new-func
- return Function('return this')();
- })();
- /**
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
- * first one is not supported.
- *
- * @returns {number} Requests' identifier.
- */
- var requestAnimationFrame$1 = (function () {
- if (typeof requestAnimationFrame === 'function') {
- // It's required to use a bounded function because IE sometimes throws
- // an "Invalid calling object" error if rAF is invoked without the global
- // object on the left hand side.
- return requestAnimationFrame.bind(global$1);
- }
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
- })();
- // Defines minimum timeout before adding a trailing call.
- var trailingTimeout = 2;
- /**
- * Creates a wrapper function which ensures that provided callback will be
- * invoked only once during the specified delay period.
- *
- * @param {Function} callback - Function to be invoked after the delay period.
- * @param {number} delay - Delay after which to invoke callback.
- * @returns {Function}
- */
- function throttle (callback, delay) {
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
- /**
- * Invokes the original callback function and schedules new invocation if
- * the "proxy" was called during current request.
- *
- * @returns {void}
- */
- function resolvePending() {
- if (leadingCall) {
- leadingCall = false;
- callback();
- }
- if (trailingCall) {
- proxy();
- }
- }
- /**
- * Callback invoked after the specified delay. It will further postpone
- * invocation of the original function delegating it to the
- * requestAnimationFrame.
- *
- * @returns {void}
- */
- function timeoutCallback() {
- requestAnimationFrame$1(resolvePending);
- }
- /**
- * Schedules invocation of the original function.
- *
- * @returns {void}
- */
- function proxy() {
- var timeStamp = Date.now();
- if (leadingCall) {
- // Reject immediately following calls.
- if (timeStamp - lastCallTime < trailingTimeout) {
- return;
- }
- // Schedule new call to be in invoked when the pending one is resolved.
- // This is important for "transitions" which never actually start
- // immediately so there is a chance that we might miss one if change
- // happens amids the pending invocation.
- trailingCall = true;
- }
- else {
- leadingCall = true;
- trailingCall = false;
- setTimeout(timeoutCallback, delay);
- }
- lastCallTime = timeStamp;
- }
- return proxy;
- }
- // Minimum delay before invoking the update of observers.
- var REFRESH_DELAY = 20;
- // A list of substrings of CSS properties used to find transition events that
- // might affect dimensions of observed elements.
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
- // Check if MutationObserver is available.
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
- /**
- * Singleton controller class which handles updates of ResizeObserver instances.
- */
- var ResizeObserverController = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserverController.
- *
- * @private
- */
- function ResizeObserverController() {
- /**
- * Indicates whether DOM listeners have been added.
- *
- * @private {boolean}
- */
- this.connected_ = false;
- /**
- * Tells that controller has subscribed for Mutation Events.
- *
- * @private {boolean}
- */
- this.mutationEventsAdded_ = false;
- /**
- * Keeps reference to the instance of MutationObserver.
- *
- * @private {MutationObserver}
- */
- this.mutationsObserver_ = null;
- /**
- * A list of connected observers.
- *
- * @private {Array<ResizeObserverSPI>}
- */
- this.observers_ = [];
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
- }
- /**
- * Adds observer to observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be added.
- * @returns {void}
- */
- ResizeObserverController.prototype.addObserver = function (observer) {
- if (!~this.observers_.indexOf(observer)) {
- this.observers_.push(observer);
- }
- // Add listeners if they haven't been added yet.
- if (!this.connected_) {
- this.connect_();
- }
- };
- /**
- * Removes observer from observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be removed.
- * @returns {void}
- */
- ResizeObserverController.prototype.removeObserver = function (observer) {
- var observers = this.observers_;
- var index = observers.indexOf(observer);
- // Remove observer if it's present in registry.
- if (~index) {
- observers.splice(index, 1);
- }
- // Remove listeners if controller has no connected observers.
- if (!observers.length && this.connected_) {
- this.disconnect_();
- }
- };
- /**
- * Invokes the update of observers. It will continue running updates insofar
- * it detects changes.
- *
- * @returns {void}
- */
- ResizeObserverController.prototype.refresh = function () {
- var changesDetected = this.updateObservers_();
- // Continue running updates if changes have been detected as there might
- // be future ones caused by CSS transitions.
- if (changesDetected) {
- this.refresh();
- }
- };
- /**
- * Updates every observer from observers list and notifies them of queued
- * entries.
- *
- * @private
- * @returns {boolean} Returns "true" if any observer has detected changes in
- * dimensions of it's elements.
- */
- ResizeObserverController.prototype.updateObservers_ = function () {
- // Collect observers that have active observations.
- var activeObservers = this.observers_.filter(function (observer) {
- return observer.gatherActive(), observer.hasActive();
- });
- // Deliver notifications in a separate cycle in order to avoid any
- // collisions between observers, e.g. when multiple instances of
- // ResizeObserver are tracking the same element and the callback of one
- // of them changes content dimensions of the observed target. Sometimes
- // this may result in notifications being blocked for the rest of observers.
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
- return activeObservers.length > 0;
- };
- /**
- * Initializes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.connect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already added.
- if (!isBrowser || this.connected_) {
- return;
- }
- // Subscription to the "Transitionend" event is used as a workaround for
- // delayed transitions. This way it's possible to capture at least the
- // final state of an element.
- document.addEventListener('transitionend', this.onTransitionEnd_);
- window.addEventListener('resize', this.refresh);
- if (mutationObserverSupported) {
- this.mutationsObserver_ = new MutationObserver(this.refresh);
- this.mutationsObserver_.observe(document, {
- attributes: true,
- childList: true,
- characterData: true,
- subtree: true
- });
- }
- else {
- document.addEventListener('DOMSubtreeModified', this.refresh);
- this.mutationEventsAdded_ = true;
- }
- this.connected_ = true;
- };
- /**
- * Removes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.disconnect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already removed.
- if (!isBrowser || !this.connected_) {
- return;
- }
- document.removeEventListener('transitionend', this.onTransitionEnd_);
- window.removeEventListener('resize', this.refresh);
- if (this.mutationsObserver_) {
- this.mutationsObserver_.disconnect();
- }
- if (this.mutationEventsAdded_) {
- document.removeEventListener('DOMSubtreeModified', this.refresh);
- }
- this.mutationsObserver_ = null;
- this.mutationEventsAdded_ = false;
- this.connected_ = false;
- };
- /**
- * "Transitionend" event handler.
- *
- * @private
- * @param {TransitionEvent} event
- * @returns {void}
- */
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
- // Detect whether transition may affect dimensions of an element.
- var isReflowProperty = transitionKeys.some(function (key) {
- return !!~propertyName.indexOf(key);
- });
- if (isReflowProperty) {
- this.refresh();
- }
- };
- /**
- * Returns instance of the ResizeObserverController.
- *
- * @returns {ResizeObserverController}
- */
- ResizeObserverController.getInstance = function () {
- if (!this.instance_) {
- this.instance_ = new ResizeObserverController();
- }
- return this.instance_;
- };
- /**
- * Holds reference to the controller's instance.
- *
- * @private {ResizeObserverController}
- */
- ResizeObserverController.instance_ = null;
- return ResizeObserverController;
- }());
- /**
- * Defines non-writable/enumerable properties of the provided target object.
- *
- * @param {Object} target - Object for which to define properties.
- * @param {Object} props - Properties to be defined.
- * @returns {Object} Target object.
- */
- var defineConfigurable = (function (target, props) {
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
- var key = _a[_i];
- Object.defineProperty(target, key, {
- value: props[key],
- enumerable: false,
- writable: false,
- configurable: true
- });
- }
- return target;
- });
- /**
- * Returns the global object associated with provided element.
- *
- * @param {Object} target
- * @returns {Object}
- */
- var getWindowOf = (function (target) {
- // Assume that the element is an instance of Node, which means that it
- // has the "ownerDocument" property from which we can retrieve a
- // corresponding global object.
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
- // Return the local global object if it's not possible extract one from
- // provided element.
- return ownerGlobal || global$1;
- });
- // Placeholder of an empty content rectangle.
- var emptyRect = createRectInit(0, 0, 0, 0);
- /**
- * Converts provided string to a number.
- *
- * @param {number|string} value
- * @returns {number}
- */
- function toFloat(value) {
- return parseFloat(value) || 0;
- }
- /**
- * Extracts borders size from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @param {...string} positions - Borders positions (top, right, ...)
- * @returns {number}
- */
- function getBordersSize(styles) {
- var positions = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- positions[_i - 1] = arguments[_i];
- }
- return positions.reduce(function (size, position) {
- var value = styles['border-' + position + '-width'];
- return size + toFloat(value);
- }, 0);
- }
- /**
- * Extracts paddings sizes from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @returns {Object} Paddings box.
- */
- function getPaddings(styles) {
- var positions = ['top', 'right', 'bottom', 'left'];
- var paddings = {};
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
- var position = positions_1[_i];
- var value = styles['padding-' + position];
- paddings[position] = toFloat(value);
- }
- return paddings;
- }
- /**
- * Calculates content rectangle of provided SVG element.
- *
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
- * to be calculated.
- * @returns {DOMRectInit}
- */
- function getSVGContentRect(target) {
- var bbox = target.getBBox();
- return createRectInit(0, 0, bbox.width, bbox.height);
- }
- /**
- * Calculates content rectangle of provided HTMLElement.
- *
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
- * @returns {DOMRectInit}
- */
- function getHTMLElementContentRect(target) {
- // Client width & height properties can't be
- // used exclusively as they provide rounded values.
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
- // By this condition we can catch all non-replaced inline, hidden and
- // detached elements. Though elements with width & height properties less
- // than 0.5 will be discarded as well.
- //
- // Without it we would need to implement separate methods for each of
- // those cases and it's not possible to perform a precise and performance
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
- // gives wrong results for elements with width & height less than 0.5.
- if (!clientWidth && !clientHeight) {
- return emptyRect;
- }
- var styles = getWindowOf(target).getComputedStyle(target);
- var paddings = getPaddings(styles);
- var horizPad = paddings.left + paddings.right;
- var vertPad = paddings.top + paddings.bottom;
- // Computed styles of width & height are being used because they are the
- // only dimensions available to JS that contain non-rounded values. It could
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
- // affected by CSS transformations let alone paddings, borders and scroll bars.
- var width = toFloat(styles.width), height = toFloat(styles.height);
- // Width & height include paddings and borders when the 'border-box' box
- // model is applied (except for IE).
- if (styles.boxSizing === 'border-box') {
- // Following conditions are required to handle Internet Explorer which
- // doesn't include paddings and borders to computed CSS dimensions.
- //
- // We can say that if CSS dimensions + paddings are equal to the "client"
- // properties then it's either IE, and thus we don't need to subtract
- // anything, or an element merely doesn't have paddings/borders styles.
- if (Math.round(width + horizPad) !== clientWidth) {
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
- }
- if (Math.round(height + vertPad) !== clientHeight) {
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
- }
- }
- // Following steps can't be applied to the document's root element as its
- // client[Width/Height] properties represent viewport area of the window.
- // Besides, it's as well not necessary as the <html> itself neither has
- // rendered scroll bars nor it can be clipped.
- if (!isDocumentElement(target)) {
- // In some browsers (only in Firefox, actually) CSS width & height
- // include scroll bars size which can be removed at this step as scroll
- // bars are the only difference between rounded dimensions + paddings
- // and "client" properties, though that is not always true in Chrome.
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
- // Chrome has a rather weird rounding of "client" properties.
- // E.g. for an element with content width of 314.2px it sometimes gives
- // the client width of 315px and for the width of 314.7px it may give
- // 314px. And it doesn't happen all the time. So just ignore this delta
- // as a non-relevant.
- if (Math.abs(vertScrollbar) !== 1) {
- width -= vertScrollbar;
- }
- if (Math.abs(horizScrollbar) !== 1) {
- height -= horizScrollbar;
- }
- }
- return createRectInit(paddings.left, paddings.top, width, height);
- }
- /**
- * Checks whether provided element is an instance of the SVGGraphicsElement.
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- var isSVGGraphicsElement = (function () {
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
- // interface.
- if (typeof SVGGraphicsElement !== 'undefined') {
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
- }
- // If it's so, then check that element is at least an instance of the
- // SVGElement and that it has the "getBBox" method.
- // eslint-disable-next-line no-extra-parens
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
- typeof target.getBBox === 'function'); };
- })();
- /**
- * Checks whether provided element is a document element (<html>).
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- function isDocumentElement(target) {
- return target === getWindowOf(target).document.documentElement;
- }
- /**
- * Calculates an appropriate content rectangle for provided html or svg element.
- *
- * @param {Element} target - Element content rectangle of which needs to be calculated.
- * @returns {DOMRectInit}
- */
- function getContentRect(target) {
- if (!isBrowser) {
- return emptyRect;
- }
- if (isSVGGraphicsElement(target)) {
- return getSVGContentRect(target);
- }
- return getHTMLElementContentRect(target);
- }
- /**
- * Creates rectangle with an interface of the DOMRectReadOnly.
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
- *
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
- * @returns {DOMRectReadOnly}
- */
- function createReadOnlyRect(_a) {
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
- var rect = Object.create(Constr.prototype);
- // Rectangle's properties are not writable and non-enumerable.
- defineConfigurable(rect, {
- x: x, y: y, width: width, height: height,
- top: y,
- right: x + width,
- bottom: height + y,
- left: x
- });
- return rect;
- }
- /**
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
- *
- * @param {number} x - X coordinate.
- * @param {number} y - Y coordinate.
- * @param {number} width - Rectangle's width.
- * @param {number} height - Rectangle's height.
- * @returns {DOMRectInit}
- */
- function createRectInit(x, y, width, height) {
- return { x: x, y: y, width: width, height: height };
- }
- /**
- * Class that is responsible for computations of the content rectangle of
- * provided DOM element and for keeping track of it's changes.
- */
- var ResizeObservation = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObservation.
- *
- * @param {Element} target - Element to be observed.
- */
- function ResizeObservation(target) {
- /**
- * Broadcasted width of content rectangle.
- *
- * @type {number}
- */
- this.broadcastWidth = 0;
- /**
- * Broadcasted height of content rectangle.
- *
- * @type {number}
- */
- this.broadcastHeight = 0;
- /**
- * Reference to the last observed content rectangle.
- *
- * @private {DOMRectInit}
- */
- this.contentRect_ = createRectInit(0, 0, 0, 0);
- this.target = target;
- }
- /**
- * Updates content rectangle and tells whether it's width or height properties
- * have changed since the last broadcast.
- *
- * @returns {boolean}
- */
- ResizeObservation.prototype.isActive = function () {
- var rect = getContentRect(this.target);
- this.contentRect_ = rect;
- return (rect.width !== this.broadcastWidth ||
- rect.height !== this.broadcastHeight);
- };
- /**
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
- * from the corresponding properties of the last observed content rectangle.
- *
- * @returns {DOMRectInit} Last observed content rectangle.
- */
- ResizeObservation.prototype.broadcastRect = function () {
- var rect = this.contentRect_;
- this.broadcastWidth = rect.width;
- this.broadcastHeight = rect.height;
- return rect;
- };
- return ResizeObservation;
- }());
- var ResizeObserverEntry = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObserverEntry.
- *
- * @param {Element} target - Element that is being observed.
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
- */
- function ResizeObserverEntry(target, rectInit) {
- var contentRect = createReadOnlyRect(rectInit);
- // According to the specification following properties are not writable
- // and are also not enumerable in the native implementation.
- //
- // Property accessors are not being used as they'd require to define a
- // private WeakMap storage which may cause memory leaks in browsers that
- // don't support this type of collections.
- defineConfigurable(this, { target: target, contentRect: contentRect });
- }
- return ResizeObserverEntry;
- }());
- var ResizeObserverSPI = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
- * when one of the observed elements changes it's content dimensions.
- * @param {ResizeObserverController} controller - Controller instance which
- * is responsible for the updates of observer.
- * @param {ResizeObserver} callbackCtx - Reference to the public
- * ResizeObserver instance which will be passed to callback function.
- */
- function ResizeObserverSPI(callback, controller, callbackCtx) {
- /**
- * Collection of resize observations that have detected changes in dimensions
- * of elements.
- *
- * @private {Array<ResizeObservation>}
- */
- this.activeObservations_ = [];
- /**
- * Registry of the ResizeObservation instances.
- *
- * @private {Map<Element, ResizeObservation>}
- */
- this.observations_ = new MapShim();
- if (typeof callback !== 'function') {
- throw new TypeError('The callback provided as parameter 1 is not a function.');
- }
- this.callback_ = callback;
- this.controller_ = controller;
- this.callbackCtx_ = callbackCtx;
- }
- /**
- * Starts observing provided element.
- *
- * @param {Element} target - Element to be observed.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.observe = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is already being observed.
- if (observations.has(target)) {
- return;
- }
- observations.set(target, new ResizeObservation(target));
- this.controller_.addObserver(this);
- // Force the update of observations.
- this.controller_.refresh();
- };
- /**
- * Stops observing provided element.
- *
- * @param {Element} target - Element to stop observing.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.unobserve = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is not being observed.
- if (!observations.has(target)) {
- return;
- }
- observations.delete(target);
- if (!observations.size) {
- this.controller_.removeObserver(this);
- }
- };
- /**
- * Stops observing all elements.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.disconnect = function () {
- this.clearActive();
- this.observations_.clear();
- this.controller_.removeObserver(this);
- };
- /**
- * Collects observation instances the associated element of which has changed
- * it's content rectangle.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.gatherActive = function () {
- var _this = this;
- this.clearActive();
- this.observations_.forEach(function (observation) {
- if (observation.isActive()) {
- _this.activeObservations_.push(observation);
- }
- });
- };
- /**
- * Invokes initial callback function with a list of ResizeObserverEntry
- * instances collected from active resize observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.broadcastActive = function () {
- // Do nothing if observer doesn't have active observations.
- if (!this.hasActive()) {
- return;
- }
- var ctx = this.callbackCtx_;
- // Create ResizeObserverEntry instance for every active observation.
- var entries = this.activeObservations_.map(function (observation) {
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
- });
- this.callback_.call(ctx, entries, ctx);
- this.clearActive();
- };
- /**
- * Clears the collection of active observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.clearActive = function () {
- this.activeObservations_.splice(0);
- };
- /**
- * Tells whether observer has active observations.
- *
- * @returns {boolean}
- */
- ResizeObserverSPI.prototype.hasActive = function () {
- return this.activeObservations_.length > 0;
- };
- return ResizeObserverSPI;
- }());
- // Registry of internal observers. If WeakMap is not available use current shim
- // for the Map collection as it has all required methods and because WeakMap
- // can't be fully polyfilled anyway.
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
- /**
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
- * exposing only those methods and properties that are defined in the spec.
- */
- var ResizeObserver = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
- * dimensions of the observed elements change.
- */
- function ResizeObserver(callback) {
- if (!(this instanceof ResizeObserver)) {
- throw new TypeError('Cannot call a class as a function.');
- }
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- var controller = ResizeObserverController.getInstance();
- var observer = new ResizeObserverSPI(callback, controller, this);
- observers.set(this, observer);
- }
- return ResizeObserver;
- }());
- // Expose public methods of ResizeObserver.
- [
- 'observe',
- 'unobserve',
- 'disconnect'
- ].forEach(function (method) {
- ResizeObserver.prototype[method] = function () {
- var _a;
- return (_a = observers.get(this))[method].apply(_a, arguments);
- };
- });
- var index = (function () {
- // Export existing implementation if available.
- if (typeof global$1.ResizeObserver !== 'undefined') {
- return global$1.ResizeObserver;
- }
- return ResizeObserver;
- })();
- /* harmony default export */ __webpack_exports__["default"] = (index);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/throttle-debounce/debounce.js":
- /*!****************************************************!*\
- !*** ./node_modules/throttle-debounce/debounce.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* eslint-disable no-undefined */
- var throttle = __webpack_require__(/*! ./throttle */ "./node_modules/throttle-debounce/throttle.js");
- /**
- * Debounce execution of a function. Debouncing, unlike throttling,
- * guarantees that a function is only executed a single time, either at the
- * very beginning of a series of calls, or at the very end.
- *
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
- * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
- * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
- * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
- * to `callback` when the debounced-function is executed.
- *
- * @return {Function} A new, debounced function.
- */
- module.exports = function ( delay, atBegin, callback ) {
- return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
- };
- /***/ }),
- /***/ "./node_modules/throttle-debounce/index.js":
- /*!*************************************************!*\
- !*** ./node_modules/throttle-debounce/index.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var throttle = __webpack_require__(/*! ./throttle */ "./node_modules/throttle-debounce/throttle.js");
- var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/throttle-debounce/debounce.js");
- module.exports = {
- throttle: throttle,
- debounce: debounce
- };
- /***/ }),
- /***/ "./node_modules/throttle-debounce/throttle.js":
- /*!****************************************************!*\
- !*** ./node_modules/throttle-debounce/throttle.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /* eslint-disable no-undefined,no-param-reassign,no-shadow */
- /**
- * Throttle execution of a function. Especially useful for rate limiting
- * execution of handlers on events like resize and scroll.
- *
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
- * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
- * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
- * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
- * the internal counter is reset)
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
- * to `callback` when the throttled-function is executed.
- * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
- * schedule `callback` to execute after `delay` ms.
- *
- * @return {Function} A new, throttled, function.
- */
- module.exports = function ( delay, noTrailing, callback, debounceMode ) {
- // After wrapper has stopped being called, this timeout ensures that
- // `callback` is executed at the proper times in `throttle` and `end`
- // debounce modes.
- var timeoutID;
- // Keep track of the last time `callback` was executed.
- var lastExec = 0;
- // `noTrailing` defaults to falsy.
- if ( typeof noTrailing !== 'boolean' ) {
- debounceMode = callback;
- callback = noTrailing;
- noTrailing = undefined;
- }
- // The `wrapper` function encapsulates all of the throttling / debouncing
- // functionality and when executed will limit the rate at which `callback`
- // is executed.
- function wrapper () {
- var self = this;
- var elapsed = Number(new Date()) - lastExec;
- var args = arguments;
- // Execute `callback` and update the `lastExec` timestamp.
- function exec () {
- lastExec = Number(new Date());
- callback.apply(self, args);
- }
- // If `debounceMode` is true (at begin) this is used to clear the flag
- // to allow future `callback` executions.
- function clear () {
- timeoutID = undefined;
- }
- if ( debounceMode && !timeoutID ) {
- // Since `wrapper` is being called for the first time and
- // `debounceMode` is true (at begin), execute `callback`.
- exec();
- }
- // Clear any existing timeout.
- if ( timeoutID ) {
- clearTimeout(timeoutID);
- }
- if ( debounceMode === undefined && elapsed > delay ) {
- // In throttle mode, if `delay` time has been exceeded, execute
- // `callback`.
- exec();
- } else if ( noTrailing !== true ) {
- // In trailing throttle mode, since `delay` time has not been
- // exceeded, schedule `callback` to execute `delay` ms after most
- // recent execution.
- //
- // If `debounceMode` is true (at begin), schedule `clear` to execute
- // after `delay` ms.
- //
- // If `debounceMode` is false (at end), schedule `callback` to
- // execute after `delay` ms.
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
- }
- }
- // Return the wrapper function.
- return wrapper;
- };
- /***/ }),
- /***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js":
- /*!********************************************************************!*\
- !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***!
- \********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () {
- injectStyles.call(
- this,
- (options.functional ? this.parent : this).$root.$options.shadowRoot
- )
- }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functional component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ "./node_modules/vue-router/dist/vue-router.esm.js":
- /*!********************************************************!*\
- !*** ./node_modules/vue-router/dist/vue-router.esm.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /*!
- * vue-router v3.4.6
- * (c) 2020 Evan You
- * @license MIT
- */
- /* */
- function assert (condition, message) {
- if (!condition) {
- throw new Error(("[vue-router] " + message))
- }
- }
- function warn (condition, message) {
- if ( true && !condition) {
- typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
- }
- }
- function extend (a, b) {
- for (var key in b) {
- a[key] = b[key];
- }
- return a
- }
- /* */
- var encodeReserveRE = /[!'()*]/g;
- var encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };
- var commaRE = /%2C/g;
- // fixed encodeURIComponent which is more conformant to RFC3986:
- // - escapes [!'()*]
- // - preserve commas
- var encode = function (str) { return encodeURIComponent(str)
- .replace(encodeReserveRE, encodeReserveReplacer)
- .replace(commaRE, ','); };
- function decode (str) {
- try {
- return decodeURIComponent(str)
- } catch (err) {
- if (true) {
- warn(false, ("Error decoding \"" + str + "\". Leaving it intact."));
- }
- }
- return str
- }
- function resolveQuery (
- query,
- extraQuery,
- _parseQuery
- ) {
- if ( extraQuery === void 0 ) extraQuery = {};
- var parse = _parseQuery || parseQuery;
- var parsedQuery;
- try {
- parsedQuery = parse(query || '');
- } catch (e) {
- true && warn(false, e.message);
- parsedQuery = {};
- }
- for (var key in extraQuery) {
- var value = extraQuery[key];
- parsedQuery[key] = Array.isArray(value)
- ? value.map(castQueryParamValue)
- : castQueryParamValue(value);
- }
- return parsedQuery
- }
- var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
- function parseQuery (query) {
- var res = {};
- query = query.trim().replace(/^(\?|#|&)/, '');
- if (!query) {
- return res
- }
- query.split('&').forEach(function (param) {
- var parts = param.replace(/\+/g, ' ').split('=');
- var key = decode(parts.shift());
- var val = parts.length > 0 ? decode(parts.join('=')) : null;
- if (res[key] === undefined) {
- res[key] = val;
- } else if (Array.isArray(res[key])) {
- res[key].push(val);
- } else {
- res[key] = [res[key], val];
- }
- });
- return res
- }
- function stringifyQuery (obj) {
- var res = obj
- ? Object.keys(obj)
- .map(function (key) {
- var val = obj[key];
- if (val === undefined) {
- return ''
- }
- if (val === null) {
- return encode(key)
- }
- if (Array.isArray(val)) {
- var result = [];
- val.forEach(function (val2) {
- if (val2 === undefined) {
- return
- }
- if (val2 === null) {
- result.push(encode(key));
- } else {
- result.push(encode(key) + '=' + encode(val2));
- }
- });
- return result.join('&')
- }
- return encode(key) + '=' + encode(val)
- })
- .filter(function (x) { return x.length > 0; })
- .join('&')
- : null;
- return res ? ("?" + res) : ''
- }
- /* */
- var trailingSlashRE = /\/?$/;
- function createRoute (
- record,
- location,
- redirectedFrom,
- router
- ) {
- var stringifyQuery = router && router.options.stringifyQuery;
- var query = location.query || {};
- try {
- query = clone(query);
- } catch (e) {}
- var route = {
- name: location.name || (record && record.name),
- meta: (record && record.meta) || {},
- path: location.path || '/',
- hash: location.hash || '',
- query: query,
- params: location.params || {},
- fullPath: getFullPath(location, stringifyQuery),
- matched: record ? formatMatch(record) : []
- };
- if (redirectedFrom) {
- route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery);
- }
- return Object.freeze(route)
- }
- function clone (value) {
- if (Array.isArray(value)) {
- return value.map(clone)
- } else if (value && typeof value === 'object') {
- var res = {};
- for (var key in value) {
- res[key] = clone(value[key]);
- }
- return res
- } else {
- return value
- }
- }
- // the starting route that represents the initial state
- var START = createRoute(null, {
- path: '/'
- });
- function formatMatch (record) {
- var res = [];
- while (record) {
- res.unshift(record);
- record = record.parent;
- }
- return res
- }
- function getFullPath (
- ref,
- _stringifyQuery
- ) {
- var path = ref.path;
- var query = ref.query; if ( query === void 0 ) query = {};
- var hash = ref.hash; if ( hash === void 0 ) hash = '';
- var stringify = _stringifyQuery || stringifyQuery;
- return (path || '/') + stringify(query) + hash
- }
- function isSameRoute (a, b) {
- if (b === START) {
- return a === b
- } else if (!b) {
- return false
- } else if (a.path && b.path) {
- return (
- a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') &&
- a.hash === b.hash &&
- isObjectEqual(a.query, b.query)
- )
- } else if (a.name && b.name) {
- return (
- a.name === b.name &&
- a.hash === b.hash &&
- isObjectEqual(a.query, b.query) &&
- isObjectEqual(a.params, b.params)
- )
- } else {
- return false
- }
- }
- function isObjectEqual (a, b) {
- if ( a === void 0 ) a = {};
- if ( b === void 0 ) b = {};
- // handle null value #1566
- if (!a || !b) { return a === b }
- var aKeys = Object.keys(a);
- var bKeys = Object.keys(b);
- if (aKeys.length !== bKeys.length) {
- return false
- }
- return aKeys.every(function (key) {
- var aVal = a[key];
- var bVal = b[key];
- // query values can be null and undefined
- if (aVal == null || bVal == null) { return aVal === bVal }
- // check nested equality
- if (typeof aVal === 'object' && typeof bVal === 'object') {
- return isObjectEqual(aVal, bVal)
- }
- return String(aVal) === String(bVal)
- })
- }
- function isIncludedRoute (current, target) {
- return (
- current.path.replace(trailingSlashRE, '/').indexOf(
- target.path.replace(trailingSlashRE, '/')
- ) === 0 &&
- (!target.hash || current.hash === target.hash) &&
- queryIncludes(current.query, target.query)
- )
- }
- function queryIncludes (current, target) {
- for (var key in target) {
- if (!(key in current)) {
- return false
- }
- }
- return true
- }
- function handleRouteEntered (route) {
- for (var i = 0; i < route.matched.length; i++) {
- var record = route.matched[i];
- for (var name in record.instances) {
- var instance = record.instances[name];
- var cbs = record.enteredCbs[name];
- if (!instance || !cbs) { continue }
- delete record.enteredCbs[name];
- for (var i$1 = 0; i$1 < cbs.length; i$1++) {
- if (!instance._isBeingDestroyed) { cbs[i$1](instance); }
- }
- }
- }
- }
- var View = {
- name: 'RouterView',
- functional: true,
- props: {
- name: {
- type: String,
- default: 'default'
- }
- },
- render: function render (_, ref) {
- var props = ref.props;
- var children = ref.children;
- var parent = ref.parent;
- var data = ref.data;
- // used by devtools to display a router-view badge
- data.routerView = true;
- // directly use parent context's createElement() function
- // so that components rendered by router-view can resolve named slots
- var h = parent.$createElement;
- var name = props.name;
- var route = parent.$route;
- var cache = parent._routerViewCache || (parent._routerViewCache = {});
- // determine current view depth, also check to see if the tree
- // has been toggled inactive but kept-alive.
- var depth = 0;
- var inactive = false;
- while (parent && parent._routerRoot !== parent) {
- var vnodeData = parent.$vnode ? parent.$vnode.data : {};
- if (vnodeData.routerView) {
- depth++;
- }
- if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {
- inactive = true;
- }
- parent = parent.$parent;
- }
- data.routerViewDepth = depth;
- // render previous view if the tree is inactive and kept-alive
- if (inactive) {
- var cachedData = cache[name];
- var cachedComponent = cachedData && cachedData.component;
- if (cachedComponent) {
- // #2301
- // pass props
- if (cachedData.configProps) {
- fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);
- }
- return h(cachedComponent, data, children)
- } else {
- // render previous empty view
- return h()
- }
- }
- var matched = route.matched[depth];
- var component = matched && matched.components[name];
- // render empty node if no matched route or no config component
- if (!matched || !component) {
- cache[name] = null;
- return h()
- }
- // cache component
- cache[name] = { component: component };
- // attach instance registration hook
- // this will be called in the instance's injected lifecycle hooks
- data.registerRouteInstance = function (vm, val) {
- // val could be undefined for unregistration
- var current = matched.instances[name];
- if (
- (val && current !== vm) ||
- (!val && current === vm)
- ) {
- matched.instances[name] = val;
- }
- }
- // also register instance in prepatch hook
- // in case the same component instance is reused across different routes
- ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {
- matched.instances[name] = vnode.componentInstance;
- };
- // register instance in init hook
- // in case kept-alive component be actived when routes changed
- data.hook.init = function (vnode) {
- if (vnode.data.keepAlive &&
- vnode.componentInstance &&
- vnode.componentInstance !== matched.instances[name]
- ) {
- matched.instances[name] = vnode.componentInstance;
- }
- // if the route transition has already been confirmed then we weren't
- // able to call the cbs during confirmation as the component was not
- // registered yet, so we call it here.
- handleRouteEntered(route);
- };
- var configProps = matched.props && matched.props[name];
- // save route and configProps in cache
- if (configProps) {
- extend(cache[name], {
- route: route,
- configProps: configProps
- });
- fillPropsinData(component, data, route, configProps);
- }
- return h(component, data, children)
- }
- };
- function fillPropsinData (component, data, route, configProps) {
- // resolve props
- var propsToPass = data.props = resolveProps(route, configProps);
- if (propsToPass) {
- // clone to prevent mutation
- propsToPass = data.props = extend({}, propsToPass);
- // pass non-declared props as attrs
- var attrs = data.attrs = data.attrs || {};
- for (var key in propsToPass) {
- if (!component.props || !(key in component.props)) {
- attrs[key] = propsToPass[key];
- delete propsToPass[key];
- }
- }
- }
- }
- function resolveProps (route, config) {
- switch (typeof config) {
- case 'undefined':
- return
- case 'object':
- return config
- case 'function':
- return config(route)
- case 'boolean':
- return config ? route.params : undefined
- default:
- if (true) {
- warn(
- false,
- "props in \"" + (route.path) + "\" is a " + (typeof config) + ", " +
- "expecting an object, function or boolean."
- );
- }
- }
- }
- /* */
- function resolvePath (
- relative,
- base,
- append
- ) {
- var firstChar = relative.charAt(0);
- if (firstChar === '/') {
- return relative
- }
- if (firstChar === '?' || firstChar === '#') {
- return base + relative
- }
- var stack = base.split('/');
- // remove trailing segment if:
- // - not appending
- // - appending to trailing slash (last segment is empty)
- if (!append || !stack[stack.length - 1]) {
- stack.pop();
- }
- // resolve relative path
- var segments = relative.replace(/^\//, '').split('/');
- for (var i = 0; i < segments.length; i++) {
- var segment = segments[i];
- if (segment === '..') {
- stack.pop();
- } else if (segment !== '.') {
- stack.push(segment);
- }
- }
- // ensure leading slash
- if (stack[0] !== '') {
- stack.unshift('');
- }
- return stack.join('/')
- }
- function parsePath (path) {
- var hash = '';
- var query = '';
- var hashIndex = path.indexOf('#');
- if (hashIndex >= 0) {
- hash = path.slice(hashIndex);
- path = path.slice(0, hashIndex);
- }
- var queryIndex = path.indexOf('?');
- if (queryIndex >= 0) {
- query = path.slice(queryIndex + 1);
- path = path.slice(0, queryIndex);
- }
- return {
- path: path,
- query: query,
- hash: hash
- }
- }
- function cleanPath (path) {
- return path.replace(/\/\//g, '/')
- }
- var isarray = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
- };
- /**
- * Expose `pathToRegexp`.
- */
- var pathToRegexp_1 = pathToRegexp;
- var parse_1 = parse;
- var compile_1 = compile;
- var tokensToFunction_1 = tokensToFunction;
- var tokensToRegExp_1 = tokensToRegExp;
- /**
- * The main path matching regexp utility.
- *
- * @type {RegExp}
- */
- var PATH_REGEXP = new RegExp([
- // Match escaped characters that would otherwise appear in future matches.
- // This allows the user to escape special characters that won't transform.
- '(\\\\.)',
- // Match Express-style parameters and un-named parameters with a prefix
- // and optional suffixes. Matches appear as:
- //
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
- '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
- ].join('|'), 'g');
- /**
- * Parse a string for the raw tokens.
- *
- * @param {string} str
- * @param {Object=} options
- * @return {!Array}
- */
- function parse (str, options) {
- var tokens = [];
- var key = 0;
- var index = 0;
- var path = '';
- var defaultDelimiter = options && options.delimiter || '/';
- var res;
- while ((res = PATH_REGEXP.exec(str)) != null) {
- var m = res[0];
- var escaped = res[1];
- var offset = res.index;
- path += str.slice(index, offset);
- index = offset + m.length;
- // Ignore already escaped sequences.
- if (escaped) {
- path += escaped[1];
- continue
- }
- var next = str[index];
- var prefix = res[2];
- var name = res[3];
- var capture = res[4];
- var group = res[5];
- var modifier = res[6];
- var asterisk = res[7];
- // Push the current path onto the tokens.
- if (path) {
- tokens.push(path);
- path = '';
- }
- var partial = prefix != null && next != null && next !== prefix;
- var repeat = modifier === '+' || modifier === '*';
- var optional = modifier === '?' || modifier === '*';
- var delimiter = res[2] || defaultDelimiter;
- var pattern = capture || group;
- tokens.push({
- name: name || key++,
- prefix: prefix || '',
- delimiter: delimiter,
- optional: optional,
- repeat: repeat,
- partial: partial,
- asterisk: !!asterisk,
- pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
- });
- }
- // Match any characters still remaining.
- if (index < str.length) {
- path += str.substr(index);
- }
- // If the path exists, push it onto the end.
- if (path) {
- tokens.push(path);
- }
- return tokens
- }
- /**
- * Compile a string to a template function for the path.
- *
- * @param {string} str
- * @param {Object=} options
- * @return {!function(Object=, Object=)}
- */
- function compile (str, options) {
- return tokensToFunction(parse(str, options), options)
- }
- /**
- * Prettier encoding of URI path segments.
- *
- * @param {string}
- * @return {string}
- */
- function encodeURIComponentPretty (str) {
- return encodeURI(str).replace(/[\/?#]/g, function (c) {
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
- })
- }
- /**
- * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
- *
- * @param {string}
- * @return {string}
- */
- function encodeAsterisk (str) {
- return encodeURI(str).replace(/[?#]/g, function (c) {
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
- })
- }
- /**
- * Expose a method for transforming tokens into the path function.
- */
- function tokensToFunction (tokens, options) {
- // Compile all the tokens into regexps.
- var matches = new Array(tokens.length);
- // Compile all the patterns before compilation.
- for (var i = 0; i < tokens.length; i++) {
- if (typeof tokens[i] === 'object') {
- matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
- }
- }
- return function (obj, opts) {
- var path = '';
- var data = obj || {};
- var options = opts || {};
- var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
- for (var i = 0; i < tokens.length; i++) {
- var token = tokens[i];
- if (typeof token === 'string') {
- path += token;
- continue
- }
- var value = data[token.name];
- var segment;
- if (value == null) {
- if (token.optional) {
- // Prepend partial segment prefixes.
- if (token.partial) {
- path += token.prefix;
- }
- continue
- } else {
- throw new TypeError('Expected "' + token.name + '" to be defined')
- }
- }
- if (isarray(value)) {
- if (!token.repeat) {
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
- }
- if (value.length === 0) {
- if (token.optional) {
- continue
- } else {
- throw new TypeError('Expected "' + token.name + '" to not be empty')
- }
- }
- for (var j = 0; j < value.length; j++) {
- segment = encode(value[j]);
- if (!matches[i].test(segment)) {
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
- }
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
- }
- continue
- }
- segment = token.asterisk ? encodeAsterisk(value) : encode(value);
- if (!matches[i].test(segment)) {
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
- }
- path += token.prefix + segment;
- }
- return path
- }
- }
- /**
- * Escape a regular expression string.
- *
- * @param {string} str
- * @return {string}
- */
- function escapeString (str) {
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
- }
- /**
- * Escape the capturing group by escaping special characters and meaning.
- *
- * @param {string} group
- * @return {string}
- */
- function escapeGroup (group) {
- return group.replace(/([=!:$\/()])/g, '\\$1')
- }
- /**
- * Attach the keys as a property of the regexp.
- *
- * @param {!RegExp} re
- * @param {Array} keys
- * @return {!RegExp}
- */
- function attachKeys (re, keys) {
- re.keys = keys;
- return re
- }
- /**
- * Get the flags for a regexp from the options.
- *
- * @param {Object} options
- * @return {string}
- */
- function flags (options) {
- return options && options.sensitive ? '' : 'i'
- }
- /**
- * Pull out keys from a regexp.
- *
- * @param {!RegExp} path
- * @param {!Array} keys
- * @return {!RegExp}
- */
- function regexpToRegexp (path, keys) {
- // Use a negative lookahead to match only capturing groups.
- var groups = path.source.match(/\((?!\?)/g);
- if (groups) {
- for (var i = 0; i < groups.length; i++) {
- keys.push({
- name: i,
- prefix: null,
- delimiter: null,
- optional: false,
- repeat: false,
- partial: false,
- asterisk: false,
- pattern: null
- });
- }
- }
- return attachKeys(path, keys)
- }
- /**
- * Transform an array into a regexp.
- *
- * @param {!Array} path
- * @param {Array} keys
- * @param {!Object} options
- * @return {!RegExp}
- */
- function arrayToRegexp (path, keys, options) {
- var parts = [];
- for (var i = 0; i < path.length; i++) {
- parts.push(pathToRegexp(path[i], keys, options).source);
- }
- var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
- return attachKeys(regexp, keys)
- }
- /**
- * Create a path regexp from string input.
- *
- * @param {string} path
- * @param {!Array} keys
- * @param {!Object} options
- * @return {!RegExp}
- */
- function stringToRegexp (path, keys, options) {
- return tokensToRegExp(parse(path, options), keys, options)
- }
- /**
- * Expose a function for taking tokens and returning a RegExp.
- *
- * @param {!Array} tokens
- * @param {(Array|Object)=} keys
- * @param {Object=} options
- * @return {!RegExp}
- */
- function tokensToRegExp (tokens, keys, options) {
- if (!isarray(keys)) {
- options = /** @type {!Object} */ (keys || options);
- keys = [];
- }
- options = options || {};
- var strict = options.strict;
- var end = options.end !== false;
- var route = '';
- // Iterate over the tokens and create our regexp string.
- for (var i = 0; i < tokens.length; i++) {
- var token = tokens[i];
- if (typeof token === 'string') {
- route += escapeString(token);
- } else {
- var prefix = escapeString(token.prefix);
- var capture = '(?:' + token.pattern + ')';
- keys.push(token);
- if (token.repeat) {
- capture += '(?:' + prefix + capture + ')*';
- }
- if (token.optional) {
- if (!token.partial) {
- capture = '(?:' + prefix + '(' + capture + '))?';
- } else {
- capture = prefix + '(' + capture + ')?';
- }
- } else {
- capture = prefix + '(' + capture + ')';
- }
- route += capture;
- }
- }
- var delimiter = escapeString(options.delimiter || '/');
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
- // In non-strict mode we allow a slash at the end of match. If the path to
- // match already ends with a slash, we remove it for consistency. The slash
- // is valid at the end of a path match, not in the middle. This is important
- // in non-ending mode, where "/test/" shouldn't match "/test//route".
- if (!strict) {
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
- }
- if (end) {
- route += '$';
- } else {
- // In non-ending mode, we need the capturing groups to match as much as
- // possible by using a positive lookahead to the end or next path segment.
- route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
- }
- return attachKeys(new RegExp('^' + route, flags(options)), keys)
- }
- /**
- * Normalize the given path string, returning a regular expression.
- *
- * An empty array can be passed in for the keys, which will hold the
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
- *
- * @param {(string|RegExp|Array)} path
- * @param {(Array|Object)=} keys
- * @param {Object=} options
- * @return {!RegExp}
- */
- function pathToRegexp (path, keys, options) {
- if (!isarray(keys)) {
- options = /** @type {!Object} */ (keys || options);
- keys = [];
- }
- options = options || {};
- if (path instanceof RegExp) {
- return regexpToRegexp(path, /** @type {!Array} */ (keys))
- }
- if (isarray(path)) {
- return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
- }
- return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
- }
- pathToRegexp_1.parse = parse_1;
- pathToRegexp_1.compile = compile_1;
- pathToRegexp_1.tokensToFunction = tokensToFunction_1;
- pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
- /* */
- // $flow-disable-line
- var regexpCompileCache = Object.create(null);
- function fillParams (
- path,
- params,
- routeMsg
- ) {
- params = params || {};
- try {
- var filler =
- regexpCompileCache[path] ||
- (regexpCompileCache[path] = pathToRegexp_1.compile(path));
- // Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
- // and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string
- if (typeof params.pathMatch === 'string') { params[0] = params.pathMatch; }
- return filler(params, { pretty: true })
- } catch (e) {
- if (true) {
- // Fix #3072 no warn if `pathMatch` is string
- warn(typeof params.pathMatch === 'string', ("missing param for " + routeMsg + ": " + (e.message)));
- }
- return ''
- } finally {
- // delete the 0 if it was added
- delete params[0];
- }
- }
- /* */
- function normalizeLocation (
- raw,
- current,
- append,
- router
- ) {
- var next = typeof raw === 'string' ? { path: raw } : raw;
- // named target
- if (next._normalized) {
- return next
- } else if (next.name) {
- next = extend({}, raw);
- var params = next.params;
- if (params && typeof params === 'object') {
- next.params = extend({}, params);
- }
- return next
- }
- // relative params
- if (!next.path && next.params && current) {
- next = extend({}, next);
- next._normalized = true;
- var params$1 = extend(extend({}, current.params), next.params);
- if (current.name) {
- next.name = current.name;
- next.params = params$1;
- } else if (current.matched.length) {
- var rawPath = current.matched[current.matched.length - 1].path;
- next.path = fillParams(rawPath, params$1, ("path " + (current.path)));
- } else if (true) {
- warn(false, "relative params navigation requires a current route.");
- }
- return next
- }
- var parsedPath = parsePath(next.path || '');
- var basePath = (current && current.path) || '/';
- var path = parsedPath.path
- ? resolvePath(parsedPath.path, basePath, append || next.append)
- : basePath;
- var query = resolveQuery(
- parsedPath.query,
- next.query,
- router && router.options.parseQuery
- );
- var hash = next.hash || parsedPath.hash;
- if (hash && hash.charAt(0) !== '#') {
- hash = "#" + hash;
- }
- return {
- _normalized: true,
- path: path,
- query: query,
- hash: hash
- }
- }
- /* */
- // work around weird flow bug
- var toTypes = [String, Object];
- var eventTypes = [String, Array];
- var noop = function () {};
- var Link = {
- name: 'RouterLink',
- props: {
- to: {
- type: toTypes,
- required: true
- },
- tag: {
- type: String,
- default: 'a'
- },
- exact: Boolean,
- append: Boolean,
- replace: Boolean,
- activeClass: String,
- exactActiveClass: String,
- ariaCurrentValue: {
- type: String,
- default: 'page'
- },
- event: {
- type: eventTypes,
- default: 'click'
- }
- },
- render: function render (h) {
- var this$1 = this;
- var router = this.$router;
- var current = this.$route;
- var ref = router.resolve(
- this.to,
- current,
- this.append
- );
- var location = ref.location;
- var route = ref.route;
- var href = ref.href;
- var classes = {};
- var globalActiveClass = router.options.linkActiveClass;
- var globalExactActiveClass = router.options.linkExactActiveClass;
- // Support global empty active class
- var activeClassFallback =
- globalActiveClass == null ? 'router-link-active' : globalActiveClass;
- var exactActiveClassFallback =
- globalExactActiveClass == null
- ? 'router-link-exact-active'
- : globalExactActiveClass;
- var activeClass =
- this.activeClass == null ? activeClassFallback : this.activeClass;
- var exactActiveClass =
- this.exactActiveClass == null
- ? exactActiveClassFallback
- : this.exactActiveClass;
- var compareTarget = route.redirectedFrom
- ? createRoute(null, normalizeLocation(route.redirectedFrom), null, router)
- : route;
- classes[exactActiveClass] = isSameRoute(current, compareTarget);
- classes[activeClass] = this.exact
- ? classes[exactActiveClass]
- : isIncludedRoute(current, compareTarget);
- var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;
- var handler = function (e) {
- if (guardEvent(e)) {
- if (this$1.replace) {
- router.replace(location, noop);
- } else {
- router.push(location, noop);
- }
- }
- };
- var on = { click: guardEvent };
- if (Array.isArray(this.event)) {
- this.event.forEach(function (e) {
- on[e] = handler;
- });
- } else {
- on[this.event] = handler;
- }
- var data = { class: classes };
- var scopedSlot =
- !this.$scopedSlots.$hasNormal &&
- this.$scopedSlots.default &&
- this.$scopedSlots.default({
- href: href,
- route: route,
- navigate: handler,
- isActive: classes[activeClass],
- isExactActive: classes[exactActiveClass]
- });
- if (scopedSlot) {
- if (scopedSlot.length === 1) {
- return scopedSlot[0]
- } else if (scopedSlot.length > 1 || !scopedSlot.length) {
- if (true) {
- warn(
- false,
- ("RouterLink with to=\"" + (this.to) + "\" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.")
- );
- }
- return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)
- }
- }
- if (this.tag === 'a') {
- data.on = on;
- data.attrs = { href: href, 'aria-current': ariaCurrentValue };
- } else {
- // find the first <a> child and apply listener and href
- var a = findAnchor(this.$slots.default);
- if (a) {
- // in case the <a> is a static node
- a.isStatic = false;
- var aData = (a.data = extend({}, a.data));
- aData.on = aData.on || {};
- // transform existing events in both objects into arrays so we can push later
- for (var event in aData.on) {
- var handler$1 = aData.on[event];
- if (event in on) {
- aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];
- }
- }
- // append new listeners for router-link
- for (var event$1 in on) {
- if (event$1 in aData.on) {
- // on[event] is always a function
- aData.on[event$1].push(on[event$1]);
- } else {
- aData.on[event$1] = handler;
- }
- }
- var aAttrs = (a.data.attrs = extend({}, a.data.attrs));
- aAttrs.href = href;
- aAttrs['aria-current'] = ariaCurrentValue;
- } else {
- // doesn't have <a> child, apply listener to self
- data.on = on;
- }
- }
- return h(this.tag, data, this.$slots.default)
- }
- };
- function guardEvent (e) {
- // don't redirect with control keys
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }
- // don't redirect when preventDefault called
- if (e.defaultPrevented) { return }
- // don't redirect on right click
- if (e.button !== undefined && e.button !== 0) { return }
- // don't redirect if `target="_blank"`
- if (e.currentTarget && e.currentTarget.getAttribute) {
- var target = e.currentTarget.getAttribute('target');
- if (/\b_blank\b/i.test(target)) { return }
- }
- // this may be a Weex event which doesn't have this method
- if (e.preventDefault) {
- e.preventDefault();
- }
- return true
- }
- function findAnchor (children) {
- if (children) {
- var child;
- for (var i = 0; i < children.length; i++) {
- child = children[i];
- if (child.tag === 'a') {
- return child
- }
- if (child.children && (child = findAnchor(child.children))) {
- return child
- }
- }
- }
- }
- var _Vue;
- function install (Vue) {
- if (install.installed && _Vue === Vue) { return }
- install.installed = true;
- _Vue = Vue;
- var isDef = function (v) { return v !== undefined; };
- var registerInstance = function (vm, callVal) {
- var i = vm.$options._parentVnode;
- if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
- i(vm, callVal);
- }
- };
- Vue.mixin({
- beforeCreate: function beforeCreate () {
- if (isDef(this.$options.router)) {
- this._routerRoot = this;
- this._router = this.$options.router;
- this._router.init(this);
- Vue.util.defineReactive(this, '_route', this._router.history.current);
- } else {
- this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
- }
- registerInstance(this, this);
- },
- destroyed: function destroyed () {
- registerInstance(this);
- }
- });
- Object.defineProperty(Vue.prototype, '$router', {
- get: function get () { return this._routerRoot._router }
- });
- Object.defineProperty(Vue.prototype, '$route', {
- get: function get () { return this._routerRoot._route }
- });
- Vue.component('RouterView', View);
- Vue.component('RouterLink', Link);
- var strats = Vue.config.optionMergeStrategies;
- // use the same hook merging strategy for route hooks
- strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
- }
- /* */
- var inBrowser = typeof window !== 'undefined';
- /* */
- function createRouteMap (
- routes,
- oldPathList,
- oldPathMap,
- oldNameMap
- ) {
- // the path list is used to control path matching priority
- var pathList = oldPathList || [];
- // $flow-disable-line
- var pathMap = oldPathMap || Object.create(null);
- // $flow-disable-line
- var nameMap = oldNameMap || Object.create(null);
- routes.forEach(function (route) {
- addRouteRecord(pathList, pathMap, nameMap, route);
- });
- // ensure wildcard routes are always at the end
- for (var i = 0, l = pathList.length; i < l; i++) {
- if (pathList[i] === '*') {
- pathList.push(pathList.splice(i, 1)[0]);
- l--;
- i--;
- }
- }
- if (false) { var pathNames, found; }
- return {
- pathList: pathList,
- pathMap: pathMap,
- nameMap: nameMap
- }
- }
- function addRouteRecord (
- pathList,
- pathMap,
- nameMap,
- route,
- parent,
- matchAs
- ) {
- var path = route.path;
- var name = route.name;
- if (true) {
- assert(path != null, "\"path\" is required in a route configuration.");
- assert(
- typeof route.component !== 'string',
- "route config \"component\" for path: " + (String(
- path || name
- )) + " cannot be a " + "string id. Use an actual component instead."
- );
- }
- var pathToRegexpOptions =
- route.pathToRegexpOptions || {};
- var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);
- if (typeof route.caseSensitive === 'boolean') {
- pathToRegexpOptions.sensitive = route.caseSensitive;
- }
- var record = {
- path: normalizedPath,
- regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
- components: route.components || { default: route.component },
- instances: {},
- enteredCbs: {},
- name: name,
- parent: parent,
- matchAs: matchAs,
- redirect: route.redirect,
- beforeEnter: route.beforeEnter,
- meta: route.meta || {},
- props:
- route.props == null
- ? {}
- : route.components
- ? route.props
- : { default: route.props }
- };
- if (route.children) {
- // Warn if route is named, does not redirect and has a default child route.
- // If users navigate to this route by name, the default child will
- // not be rendered (GH Issue #629)
- if (true) {
- if (
- route.name &&
- !route.redirect &&
- route.children.some(function (child) { return /^\/?$/.test(child.path); })
- ) {
- warn(
- false,
- "Named Route '" + (route.name) + "' has a default child route. " +
- "When navigating to this named route (:to=\"{name: '" + (route.name) + "'\"), " +
- "the default child route will not be rendered. Remove the name from " +
- "this route and use the name of the default child route for named " +
- "links instead."
- );
- }
- }
- route.children.forEach(function (child) {
- var childMatchAs = matchAs
- ? cleanPath((matchAs + "/" + (child.path)))
- : undefined;
- addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
- });
- }
- if (!pathMap[record.path]) {
- pathList.push(record.path);
- pathMap[record.path] = record;
- }
- if (route.alias !== undefined) {
- var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
- for (var i = 0; i < aliases.length; ++i) {
- var alias = aliases[i];
- if ( true && alias === path) {
- warn(
- false,
- ("Found an alias with the same value as the path: \"" + path + "\". You have to remove that alias. It will be ignored in development.")
- );
- // skip in dev to make it work
- continue
- }
- var aliasRoute = {
- path: alias,
- children: route.children
- };
- addRouteRecord(
- pathList,
- pathMap,
- nameMap,
- aliasRoute,
- parent,
- record.path || '/' // matchAs
- );
- }
- }
- if (name) {
- if (!nameMap[name]) {
- nameMap[name] = record;
- } else if ( true && !matchAs) {
- warn(
- false,
- "Duplicate named routes definition: " +
- "{ name: \"" + name + "\", path: \"" + (record.path) + "\" }"
- );
- }
- }
- }
- function compileRouteRegex (
- path,
- pathToRegexpOptions
- ) {
- var regex = pathToRegexp_1(path, [], pathToRegexpOptions);
- if (true) {
- var keys = Object.create(null);
- regex.keys.forEach(function (key) {
- warn(
- !keys[key.name],
- ("Duplicate param keys in route with path: \"" + path + "\"")
- );
- keys[key.name] = true;
- });
- }
- return regex
- }
- function normalizePath (
- path,
- parent,
- strict
- ) {
- if (!strict) { path = path.replace(/\/$/, ''); }
- if (path[0] === '/') { return path }
- if (parent == null) { return path }
- return cleanPath(((parent.path) + "/" + path))
- }
- /* */
- function createMatcher (
- routes,
- router
- ) {
- var ref = createRouteMap(routes);
- var pathList = ref.pathList;
- var pathMap = ref.pathMap;
- var nameMap = ref.nameMap;
- function addRoutes (routes) {
- createRouteMap(routes, pathList, pathMap, nameMap);
- }
- function match (
- raw,
- currentRoute,
- redirectedFrom
- ) {
- var location = normalizeLocation(raw, currentRoute, false, router);
- var name = location.name;
- if (name) {
- var record = nameMap[name];
- if (true) {
- warn(record, ("Route with name '" + name + "' does not exist"));
- }
- if (!record) { return _createRoute(null, location) }
- var paramNames = record.regex.keys
- .filter(function (key) { return !key.optional; })
- .map(function (key) { return key.name; });
- if (typeof location.params !== 'object') {
- location.params = {};
- }
- if (currentRoute && typeof currentRoute.params === 'object') {
- for (var key in currentRoute.params) {
- if (!(key in location.params) && paramNames.indexOf(key) > -1) {
- location.params[key] = currentRoute.params[key];
- }
- }
- }
- location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
- return _createRoute(record, location, redirectedFrom)
- } else if (location.path) {
- location.params = {};
- for (var i = 0; i < pathList.length; i++) {
- var path = pathList[i];
- var record$1 = pathMap[path];
- if (matchRoute(record$1.regex, location.path, location.params)) {
- return _createRoute(record$1, location, redirectedFrom)
- }
- }
- }
- // no match
- return _createRoute(null, location)
- }
- function redirect (
- record,
- location
- ) {
- var originalRedirect = record.redirect;
- var redirect = typeof originalRedirect === 'function'
- ? originalRedirect(createRoute(record, location, null, router))
- : originalRedirect;
- if (typeof redirect === 'string') {
- redirect = { path: redirect };
- }
- if (!redirect || typeof redirect !== 'object') {
- if (true) {
- warn(
- false, ("invalid redirect option: " + (JSON.stringify(redirect)))
- );
- }
- return _createRoute(null, location)
- }
- var re = redirect;
- var name = re.name;
- var path = re.path;
- var query = location.query;
- var hash = location.hash;
- var params = location.params;
- query = re.hasOwnProperty('query') ? re.query : query;
- hash = re.hasOwnProperty('hash') ? re.hash : hash;
- params = re.hasOwnProperty('params') ? re.params : params;
- if (name) {
- // resolved named direct
- var targetRecord = nameMap[name];
- if (true) {
- assert(targetRecord, ("redirect failed: named route \"" + name + "\" not found."));
- }
- return match({
- _normalized: true,
- name: name,
- query: query,
- hash: hash,
- params: params
- }, undefined, location)
- } else if (path) {
- // 1. resolve relative redirect
- var rawPath = resolveRecordPath(path, record);
- // 2. resolve params
- var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
- // 3. rematch with existing query and hash
- return match({
- _normalized: true,
- path: resolvedPath,
- query: query,
- hash: hash
- }, undefined, location)
- } else {
- if (true) {
- warn(false, ("invalid redirect option: " + (JSON.stringify(redirect))));
- }
- return _createRoute(null, location)
- }
- }
- function alias (
- record,
- location,
- matchAs
- ) {
- var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
- var aliasedMatch = match({
- _normalized: true,
- path: aliasedPath
- });
- if (aliasedMatch) {
- var matched = aliasedMatch.matched;
- var aliasedRecord = matched[matched.length - 1];
- location.params = aliasedMatch.params;
- return _createRoute(aliasedRecord, location)
- }
- return _createRoute(null, location)
- }
- function _createRoute (
- record,
- location,
- redirectedFrom
- ) {
- if (record && record.redirect) {
- return redirect(record, redirectedFrom || location)
- }
- if (record && record.matchAs) {
- return alias(record, location, record.matchAs)
- }
- return createRoute(record, location, redirectedFrom, router)
- }
- return {
- match: match,
- addRoutes: addRoutes
- }
- }
- function matchRoute (
- regex,
- path,
- params
- ) {
- var m;
- try {
- m = decodeURI(path).match(regex);
- } catch (err) {
- if (true) {
- warn(false, ("Error decoding \"" + path + "\". Leaving it intact."));
- }
- }
- if (!m) {
- return false
- } else if (!params) {
- return true
- }
- for (var i = 1, len = m.length; i < len; ++i) {
- var key = regex.keys[i - 1];
- if (key) {
- // Fix #1994: using * with props: true generates a param named 0
- params[key.name || 'pathMatch'] = m[i];
- }
- }
- return true
- }
- function resolveRecordPath (path, record) {
- return resolvePath(path, record.parent ? record.parent.path : '/', true)
- }
- /* */
- // use User Timing api (if present) for more accurate key precision
- var Time =
- inBrowser && window.performance && window.performance.now
- ? window.performance
- : Date;
- function genStateKey () {
- return Time.now().toFixed(3)
- }
- var _key = genStateKey();
- function getStateKey () {
- return _key
- }
- function setStateKey (key) {
- return (_key = key)
- }
- /* */
- var positionStore = Object.create(null);
- function setupScroll () {
- // Prevent browser scroll behavior on History popstate
- if ('scrollRestoration' in window.history) {
- window.history.scrollRestoration = 'manual';
- }
- // Fix for #1585 for Firefox
- // Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
- // Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
- // window.location.protocol + '//' + window.location.host
- // location.host contains the port and location.hostname doesn't
- var protocolAndPath = window.location.protocol + '//' + window.location.host;
- var absolutePath = window.location.href.replace(protocolAndPath, '');
- // preserve existing history state as it could be overriden by the user
- var stateCopy = extend({}, window.history.state);
- stateCopy.key = getStateKey();
- window.history.replaceState(stateCopy, '', absolutePath);
- window.addEventListener('popstate', handlePopState);
- return function () {
- window.removeEventListener('popstate', handlePopState);
- }
- }
- function handleScroll (
- router,
- to,
- from,
- isPop
- ) {
- if (!router.app) {
- return
- }
- var behavior = router.options.scrollBehavior;
- if (!behavior) {
- return
- }
- if (true) {
- assert(typeof behavior === 'function', "scrollBehavior must be a function");
- }
- // wait until re-render finishes before scrolling
- router.app.$nextTick(function () {
- var position = getScrollPosition();
- var shouldScroll = behavior.call(
- router,
- to,
- from,
- isPop ? position : null
- );
- if (!shouldScroll) {
- return
- }
- if (typeof shouldScroll.then === 'function') {
- shouldScroll
- .then(function (shouldScroll) {
- scrollToPosition((shouldScroll), position);
- })
- .catch(function (err) {
- if (true) {
- assert(false, err.toString());
- }
- });
- } else {
- scrollToPosition(shouldScroll, position);
- }
- });
- }
- function saveScrollPosition () {
- var key = getStateKey();
- if (key) {
- positionStore[key] = {
- x: window.pageXOffset,
- y: window.pageYOffset
- };
- }
- }
- function handlePopState (e) {
- saveScrollPosition();
- if (e.state && e.state.key) {
- setStateKey(e.state.key);
- }
- }
- function getScrollPosition () {
- var key = getStateKey();
- if (key) {
- return positionStore[key]
- }
- }
- function getElementPosition (el, offset) {
- var docEl = document.documentElement;
- var docRect = docEl.getBoundingClientRect();
- var elRect = el.getBoundingClientRect();
- return {
- x: elRect.left - docRect.left - offset.x,
- y: elRect.top - docRect.top - offset.y
- }
- }
- function isValidPosition (obj) {
- return isNumber(obj.x) || isNumber(obj.y)
- }
- function normalizePosition (obj) {
- return {
- x: isNumber(obj.x) ? obj.x : window.pageXOffset,
- y: isNumber(obj.y) ? obj.y : window.pageYOffset
- }
- }
- function normalizeOffset (obj) {
- return {
- x: isNumber(obj.x) ? obj.x : 0,
- y: isNumber(obj.y) ? obj.y : 0
- }
- }
- function isNumber (v) {
- return typeof v === 'number'
- }
- var hashStartsWithNumberRE = /^#\d/;
- function scrollToPosition (shouldScroll, position) {
- var isObject = typeof shouldScroll === 'object';
- if (isObject && typeof shouldScroll.selector === 'string') {
- // getElementById would still fail if the selector contains a more complicated query like #main[data-attr]
- // but at the same time, it doesn't make much sense to select an element with an id and an extra selector
- var el = hashStartsWithNumberRE.test(shouldScroll.selector) // $flow-disable-line
- ? document.getElementById(shouldScroll.selector.slice(1)) // $flow-disable-line
- : document.querySelector(shouldScroll.selector);
- if (el) {
- var offset =
- shouldScroll.offset && typeof shouldScroll.offset === 'object'
- ? shouldScroll.offset
- : {};
- offset = normalizeOffset(offset);
- position = getElementPosition(el, offset);
- } else if (isValidPosition(shouldScroll)) {
- position = normalizePosition(shouldScroll);
- }
- } else if (isObject && isValidPosition(shouldScroll)) {
- position = normalizePosition(shouldScroll);
- }
- if (position) {
- window.scrollTo(position.x, position.y);
- }
- }
- /* */
- var supportsPushState =
- inBrowser &&
- (function () {
- var ua = window.navigator.userAgent;
- if (
- (ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
- ua.indexOf('Mobile Safari') !== -1 &&
- ua.indexOf('Chrome') === -1 &&
- ua.indexOf('Windows Phone') === -1
- ) {
- return false
- }
- return window.history && typeof window.history.pushState === 'function'
- })();
- function pushState (url, replace) {
- saveScrollPosition();
- // try...catch the pushState call to get around Safari
- // DOM Exception 18 where it limits to 100 pushState calls
- var history = window.history;
- try {
- if (replace) {
- // preserve existing history state as it could be overriden by the user
- var stateCopy = extend({}, history.state);
- stateCopy.key = getStateKey();
- history.replaceState(stateCopy, '', url);
- } else {
- history.pushState({ key: setStateKey(genStateKey()) }, '', url);
- }
- } catch (e) {
- window.location[replace ? 'replace' : 'assign'](url);
- }
- }
- function replaceState (url) {
- pushState(url, true);
- }
- /* */
- function runQueue (queue, fn, cb) {
- var step = function (index) {
- if (index >= queue.length) {
- cb();
- } else {
- if (queue[index]) {
- fn(queue[index], function () {
- step(index + 1);
- });
- } else {
- step(index + 1);
- }
- }
- };
- step(0);
- }
- // When changing thing, also edit router.d.ts
- var NavigationFailureType = {
- redirected: 2,
- aborted: 4,
- cancelled: 8,
- duplicated: 16
- };
- function createNavigationRedirectedError (from, to) {
- return createRouterError(
- from,
- to,
- NavigationFailureType.redirected,
- ("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
- to
- )) + "\" via a navigation guard.")
- )
- }
- function createNavigationDuplicatedError (from, to) {
- var error = createRouterError(
- from,
- to,
- NavigationFailureType.duplicated,
- ("Avoided redundant navigation to current location: \"" + (from.fullPath) + "\".")
- );
- // backwards compatible with the first introduction of Errors
- error.name = 'NavigationDuplicated';
- return error
- }
- function createNavigationCancelledError (from, to) {
- return createRouterError(
- from,
- to,
- NavigationFailureType.cancelled,
- ("Navigation cancelled from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" with a new navigation.")
- )
- }
- function createNavigationAbortedError (from, to) {
- return createRouterError(
- from,
- to,
- NavigationFailureType.aborted,
- ("Navigation aborted from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" via a navigation guard.")
- )
- }
- function createRouterError (from, to, type, message) {
- var error = new Error(message);
- error._isRouter = true;
- error.from = from;
- error.to = to;
- error.type = type;
- return error
- }
- var propertiesToLog = ['params', 'query', 'hash'];
- function stringifyRoute (to) {
- if (typeof to === 'string') { return to }
- if ('path' in to) { return to.path }
- var location = {};
- propertiesToLog.forEach(function (key) {
- if (key in to) { location[key] = to[key]; }
- });
- return JSON.stringify(location, null, 2)
- }
- function isError (err) {
- return Object.prototype.toString.call(err).indexOf('Error') > -1
- }
- function isNavigationFailure (err, errorType) {
- return (
- isError(err) &&
- err._isRouter &&
- (errorType == null || err.type === errorType)
- )
- }
- /* */
- function resolveAsyncComponents (matched) {
- return function (to, from, next) {
- var hasAsync = false;
- var pending = 0;
- var error = null;
- flatMapComponents(matched, function (def, _, match, key) {
- // if it's a function and doesn't have cid attached,
- // assume it's an async component resolve function.
- // we are not using Vue's default async resolving mechanism because
- // we want to halt the navigation until the incoming component has been
- // resolved.
- if (typeof def === 'function' && def.cid === undefined) {
- hasAsync = true;
- pending++;
- var resolve = once(function (resolvedDef) {
- if (isESModule(resolvedDef)) {
- resolvedDef = resolvedDef.default;
- }
- // save resolved on async factory in case it's used elsewhere
- def.resolved = typeof resolvedDef === 'function'
- ? resolvedDef
- : _Vue.extend(resolvedDef);
- match.components[key] = resolvedDef;
- pending--;
- if (pending <= 0) {
- next();
- }
- });
- var reject = once(function (reason) {
- var msg = "Failed to resolve async component " + key + ": " + reason;
- true && warn(false, msg);
- if (!error) {
- error = isError(reason)
- ? reason
- : new Error(msg);
- next(error);
- }
- });
- var res;
- try {
- res = def(resolve, reject);
- } catch (e) {
- reject(e);
- }
- if (res) {
- if (typeof res.then === 'function') {
- res.then(resolve, reject);
- } else {
- // new syntax in Vue 2.3
- var comp = res.component;
- if (comp && typeof comp.then === 'function') {
- comp.then(resolve, reject);
- }
- }
- }
- }
- });
- if (!hasAsync) { next(); }
- }
- }
- function flatMapComponents (
- matched,
- fn
- ) {
- return flatten(matched.map(function (m) {
- return Object.keys(m.components).map(function (key) { return fn(
- m.components[key],
- m.instances[key],
- m, key
- ); })
- }))
- }
- function flatten (arr) {
- return Array.prototype.concat.apply([], arr)
- }
- var hasSymbol =
- typeof Symbol === 'function' &&
- typeof Symbol.toStringTag === 'symbol';
- function isESModule (obj) {
- return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')
- }
- // in Webpack 2, require.ensure now also returns a Promise
- // so the resolve/reject functions may get called an extra time
- // if the user uses an arrow function shorthand that happens to
- // return that Promise.
- function once (fn) {
- var called = false;
- return function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- if (called) { return }
- called = true;
- return fn.apply(this, args)
- }
- }
- /* */
- var History = function History (router, base) {
- this.router = router;
- this.base = normalizeBase(base);
- // start with a route object that stands for "nowhere"
- this.current = START;
- this.pending = null;
- this.ready = false;
- this.readyCbs = [];
- this.readyErrorCbs = [];
- this.errorCbs = [];
- this.listeners = [];
- };
- History.prototype.listen = function listen (cb) {
- this.cb = cb;
- };
- History.prototype.onReady = function onReady (cb, errorCb) {
- if (this.ready) {
- cb();
- } else {
- this.readyCbs.push(cb);
- if (errorCb) {
- this.readyErrorCbs.push(errorCb);
- }
- }
- };
- History.prototype.onError = function onError (errorCb) {
- this.errorCbs.push(errorCb);
- };
- History.prototype.transitionTo = function transitionTo (
- location,
- onComplete,
- onAbort
- ) {
- var this$1 = this;
- var route;
- // catch redirect option https://github.com/vuejs/vue-router/issues/3201
- try {
- route = this.router.match(location, this.current);
- } catch (e) {
- this.errorCbs.forEach(function (cb) {
- cb(e);
- });
- // Exception should still be thrown
- throw e
- }
- var prev = this.current;
- this.confirmTransition(
- route,
- function () {
- this$1.updateRoute(route);
- onComplete && onComplete(route);
- this$1.ensureURL();
- this$1.router.afterHooks.forEach(function (hook) {
- hook && hook(route, prev);
- });
- // fire ready cbs once
- if (!this$1.ready) {
- this$1.ready = true;
- this$1.readyCbs.forEach(function (cb) {
- cb(route);
- });
- }
- },
- function (err) {
- if (onAbort) {
- onAbort(err);
- }
- if (err && !this$1.ready) {
- // Initial redirection should not mark the history as ready yet
- // because it's triggered by the redirection instead
- // https://github.com/vuejs/vue-router/issues/3225
- // https://github.com/vuejs/vue-router/issues/3331
- if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {
- this$1.ready = true;
- this$1.readyErrorCbs.forEach(function (cb) {
- cb(err);
- });
- }
- }
- }
- );
- };
- History.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {
- var this$1 = this;
- var current = this.current;
- this.pending = route;
- var abort = function (err) {
- // changed after adding errors with
- // https://github.com/vuejs/vue-router/pull/3047 before that change,
- // redirect and aborted navigation would produce an err == null
- if (!isNavigationFailure(err) && isError(err)) {
- if (this$1.errorCbs.length) {
- this$1.errorCbs.forEach(function (cb) {
- cb(err);
- });
- } else {
- warn(false, 'uncaught error during route navigation:');
- console.error(err);
- }
- }
- onAbort && onAbort(err);
- };
- var lastRouteIndex = route.matched.length - 1;
- var lastCurrentIndex = current.matched.length - 1;
- if (
- isSameRoute(route, current) &&
- // in the case the route map has been dynamically appended to
- lastRouteIndex === lastCurrentIndex &&
- route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
- ) {
- this.ensureURL();
- return abort(createNavigationDuplicatedError(current, route))
- }
- var ref = resolveQueue(
- this.current.matched,
- route.matched
- );
- var updated = ref.updated;
- var deactivated = ref.deactivated;
- var activated = ref.activated;
- var queue = [].concat(
- // in-component leave guards
- extractLeaveGuards(deactivated),
- // global before hooks
- this.router.beforeHooks,
- // in-component update hooks
- extractUpdateHooks(updated),
- // in-config enter guards
- activated.map(function (m) { return m.beforeEnter; }),
- // async components
- resolveAsyncComponents(activated)
- );
- var iterator = function (hook, next) {
- if (this$1.pending !== route) {
- return abort(createNavigationCancelledError(current, route))
- }
- try {
- hook(route, current, function (to) {
- if (to === false) {
- // next(false) -> abort navigation, ensure current URL
- this$1.ensureURL(true);
- abort(createNavigationAbortedError(current, route));
- } else if (isError(to)) {
- this$1.ensureURL(true);
- abort(to);
- } else if (
- typeof to === 'string' ||
- (typeof to === 'object' &&
- (typeof to.path === 'string' || typeof to.name === 'string'))
- ) {
- // next('/') or next({ path: '/' }) -> redirect
- abort(createNavigationRedirectedError(current, route));
- if (typeof to === 'object' && to.replace) {
- this$1.replace(to);
- } else {
- this$1.push(to);
- }
- } else {
- // confirm transition and pass on the value
- next(to);
- }
- });
- } catch (e) {
- abort(e);
- }
- };
- runQueue(queue, iterator, function () {
- // wait until async components are resolved before
- // extracting in-component enter guards
- var enterGuards = extractEnterGuards(activated);
- var queue = enterGuards.concat(this$1.router.resolveHooks);
- runQueue(queue, iterator, function () {
- if (this$1.pending !== route) {
- return abort(createNavigationCancelledError(current, route))
- }
- this$1.pending = null;
- onComplete(route);
- if (this$1.router.app) {
- this$1.router.app.$nextTick(function () {
- handleRouteEntered(route);
- });
- }
- });
- });
- };
- History.prototype.updateRoute = function updateRoute (route) {
- this.current = route;
- this.cb && this.cb(route);
- };
- History.prototype.setupListeners = function setupListeners () {
- // Default implementation is empty
- };
- History.prototype.teardown = function teardown () {
- // clean up event listeners
- // https://github.com/vuejs/vue-router/issues/2341
- this.listeners.forEach(function (cleanupListener) {
- cleanupListener();
- });
- this.listeners = [];
- // reset current history route
- // https://github.com/vuejs/vue-router/issues/3294
- this.current = START;
- this.pending = null;
- };
- function normalizeBase (base) {
- if (!base) {
- if (inBrowser) {
- // respect <base> tag
- var baseEl = document.querySelector('base');
- base = (baseEl && baseEl.getAttribute('href')) || '/';
- // strip full URL origin
- base = base.replace(/^https?:\/\/[^\/]+/, '');
- } else {
- base = '/';
- }
- }
- // make sure there's the starting slash
- if (base.charAt(0) !== '/') {
- base = '/' + base;
- }
- // remove trailing slash
- return base.replace(/\/$/, '')
- }
- function resolveQueue (
- current,
- next
- ) {
- var i;
- var max = Math.max(current.length, next.length);
- for (i = 0; i < max; i++) {
- if (current[i] !== next[i]) {
- break
- }
- }
- return {
- updated: next.slice(0, i),
- activated: next.slice(i),
- deactivated: current.slice(i)
- }
- }
- function extractGuards (
- records,
- name,
- bind,
- reverse
- ) {
- var guards = flatMapComponents(records, function (def, instance, match, key) {
- var guard = extractGuard(def, name);
- if (guard) {
- return Array.isArray(guard)
- ? guard.map(function (guard) { return bind(guard, instance, match, key); })
- : bind(guard, instance, match, key)
- }
- });
- return flatten(reverse ? guards.reverse() : guards)
- }
- function extractGuard (
- def,
- key
- ) {
- if (typeof def !== 'function') {
- // extend now so that global mixins are applied.
- def = _Vue.extend(def);
- }
- return def.options[key]
- }
- function extractLeaveGuards (deactivated) {
- return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
- }
- function extractUpdateHooks (updated) {
- return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
- }
- function bindGuard (guard, instance) {
- if (instance) {
- return function boundRouteGuard () {
- return guard.apply(instance, arguments)
- }
- }
- }
- function extractEnterGuards (
- activated
- ) {
- return extractGuards(
- activated,
- 'beforeRouteEnter',
- function (guard, _, match, key) {
- return bindEnterGuard(guard, match, key)
- }
- )
- }
- function bindEnterGuard (
- guard,
- match,
- key
- ) {
- return function routeEnterGuard (to, from, next) {
- return guard(to, from, function (cb) {
- if (typeof cb === 'function') {
- if (!match.enteredCbs[key]) {
- match.enteredCbs[key] = [];
- }
- match.enteredCbs[key].push(cb);
- }
- next(cb);
- })
- }
- }
- /* */
- var HTML5History = /*@__PURE__*/(function (History) {
- function HTML5History (router, base) {
- History.call(this, router, base);
- this._startLocation = getLocation(this.base);
- }
- if ( History ) HTML5History.__proto__ = History;
- HTML5History.prototype = Object.create( History && History.prototype );
- HTML5History.prototype.constructor = HTML5History;
- HTML5History.prototype.setupListeners = function setupListeners () {
- var this$1 = this;
- if (this.listeners.length > 0) {
- return
- }
- var router = this.router;
- var expectScroll = router.options.scrollBehavior;
- var supportsScroll = supportsPushState && expectScroll;
- if (supportsScroll) {
- this.listeners.push(setupScroll());
- }
- var handleRoutingEvent = function () {
- var current = this$1.current;
- // Avoiding first `popstate` event dispatched in some browsers but first
- // history route not updated since async guard at the same time.
- var location = getLocation(this$1.base);
- if (this$1.current === START && location === this$1._startLocation) {
- return
- }
- this$1.transitionTo(location, function (route) {
- if (supportsScroll) {
- handleScroll(router, route, current, true);
- }
- });
- };
- window.addEventListener('popstate', handleRoutingEvent);
- this.listeners.push(function () {
- window.removeEventListener('popstate', handleRoutingEvent);
- });
- };
- HTML5History.prototype.go = function go (n) {
- window.history.go(n);
- };
- HTML5History.prototype.push = function push (location, onComplete, onAbort) {
- var this$1 = this;
- var ref = this;
- var fromRoute = ref.current;
- this.transitionTo(location, function (route) {
- pushState(cleanPath(this$1.base + route.fullPath));
- handleScroll(this$1.router, route, fromRoute, false);
- onComplete && onComplete(route);
- }, onAbort);
- };
- HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {
- var this$1 = this;
- var ref = this;
- var fromRoute = ref.current;
- this.transitionTo(location, function (route) {
- replaceState(cleanPath(this$1.base + route.fullPath));
- handleScroll(this$1.router, route, fromRoute, false);
- onComplete && onComplete(route);
- }, onAbort);
- };
- HTML5History.prototype.ensureURL = function ensureURL (push) {
- if (getLocation(this.base) !== this.current.fullPath) {
- var current = cleanPath(this.base + this.current.fullPath);
- push ? pushState(current) : replaceState(current);
- }
- };
- HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {
- return getLocation(this.base)
- };
- return HTML5History;
- }(History));
- function getLocation (base) {
- var path = window.location.pathname;
- if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) {
- path = path.slice(base.length);
- }
- return (path || '/') + window.location.search + window.location.hash
- }
- /* */
- var HashHistory = /*@__PURE__*/(function (History) {
- function HashHistory (router, base, fallback) {
- History.call(this, router, base);
- // check history fallback deeplinking
- if (fallback && checkFallback(this.base)) {
- return
- }
- ensureSlash();
- }
- if ( History ) HashHistory.__proto__ = History;
- HashHistory.prototype = Object.create( History && History.prototype );
- HashHistory.prototype.constructor = HashHistory;
- // this is delayed until the app mounts
- // to avoid the hashchange listener being fired too early
- HashHistory.prototype.setupListeners = function setupListeners () {
- var this$1 = this;
- if (this.listeners.length > 0) {
- return
- }
- var router = this.router;
- var expectScroll = router.options.scrollBehavior;
- var supportsScroll = supportsPushState && expectScroll;
- if (supportsScroll) {
- this.listeners.push(setupScroll());
- }
- var handleRoutingEvent = function () {
- var current = this$1.current;
- if (!ensureSlash()) {
- return
- }
- this$1.transitionTo(getHash(), function (route) {
- if (supportsScroll) {
- handleScroll(this$1.router, route, current, true);
- }
- if (!supportsPushState) {
- replaceHash(route.fullPath);
- }
- });
- };
- var eventType = supportsPushState ? 'popstate' : 'hashchange';
- window.addEventListener(
- eventType,
- handleRoutingEvent
- );
- this.listeners.push(function () {
- window.removeEventListener(eventType, handleRoutingEvent);
- });
- };
- HashHistory.prototype.push = function push (location, onComplete, onAbort) {
- var this$1 = this;
- var ref = this;
- var fromRoute = ref.current;
- this.transitionTo(
- location,
- function (route) {
- pushHash(route.fullPath);
- handleScroll(this$1.router, route, fromRoute, false);
- onComplete && onComplete(route);
- },
- onAbort
- );
- };
- HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {
- var this$1 = this;
- var ref = this;
- var fromRoute = ref.current;
- this.transitionTo(
- location,
- function (route) {
- replaceHash(route.fullPath);
- handleScroll(this$1.router, route, fromRoute, false);
- onComplete && onComplete(route);
- },
- onAbort
- );
- };
- HashHistory.prototype.go = function go (n) {
- window.history.go(n);
- };
- HashHistory.prototype.ensureURL = function ensureURL (push) {
- var current = this.current.fullPath;
- if (getHash() !== current) {
- push ? pushHash(current) : replaceHash(current);
- }
- };
- HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {
- return getHash()
- };
- return HashHistory;
- }(History));
- function checkFallback (base) {
- var location = getLocation(base);
- if (!/^\/#/.test(location)) {
- window.location.replace(cleanPath(base + '/#' + location));
- return true
- }
- }
- function ensureSlash () {
- var path = getHash();
- if (path.charAt(0) === '/') {
- return true
- }
- replaceHash('/' + path);
- return false
- }
- function getHash () {
- // We can't use window.location.hash here because it's not
- // consistent across browsers - Firefox will pre-decode it!
- var href = window.location.href;
- var index = href.indexOf('#');
- // empty path
- if (index < 0) { return '' }
- href = href.slice(index + 1);
- return href
- }
- function getUrl (path) {
- var href = window.location.href;
- var i = href.indexOf('#');
- var base = i >= 0 ? href.slice(0, i) : href;
- return (base + "#" + path)
- }
- function pushHash (path) {
- if (supportsPushState) {
- pushState(getUrl(path));
- } else {
- window.location.hash = path;
- }
- }
- function replaceHash (path) {
- if (supportsPushState) {
- replaceState(getUrl(path));
- } else {
- window.location.replace(getUrl(path));
- }
- }
- /* */
- var AbstractHistory = /*@__PURE__*/(function (History) {
- function AbstractHistory (router, base) {
- History.call(this, router, base);
- this.stack = [];
- this.index = -1;
- }
- if ( History ) AbstractHistory.__proto__ = History;
- AbstractHistory.prototype = Object.create( History && History.prototype );
- AbstractHistory.prototype.constructor = AbstractHistory;
- AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {
- var this$1 = this;
- this.transitionTo(
- location,
- function (route) {
- this$1.stack = this$1.stack.slice(0, this$1.index + 1).concat(route);
- this$1.index++;
- onComplete && onComplete(route);
- },
- onAbort
- );
- };
- AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {
- var this$1 = this;
- this.transitionTo(
- location,
- function (route) {
- this$1.stack = this$1.stack.slice(0, this$1.index).concat(route);
- onComplete && onComplete(route);
- },
- onAbort
- );
- };
- AbstractHistory.prototype.go = function go (n) {
- var this$1 = this;
- var targetIndex = this.index + n;
- if (targetIndex < 0 || targetIndex >= this.stack.length) {
- return
- }
- var route = this.stack[targetIndex];
- this.confirmTransition(
- route,
- function () {
- var prev = this$1.current;
- this$1.index = targetIndex;
- this$1.updateRoute(route);
- this$1.router.afterHooks.forEach(function (hook) {
- hook && hook(route, prev);
- });
- },
- function (err) {
- if (isNavigationFailure(err, NavigationFailureType.duplicated)) {
- this$1.index = targetIndex;
- }
- }
- );
- };
- AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {
- var current = this.stack[this.stack.length - 1];
- return current ? current.fullPath : '/'
- };
- AbstractHistory.prototype.ensureURL = function ensureURL () {
- // noop
- };
- return AbstractHistory;
- }(History));
- /* */
- var VueRouter = function VueRouter (options) {
- if ( options === void 0 ) options = {};
- this.app = null;
- this.apps = [];
- this.options = options;
- this.beforeHooks = [];
- this.resolveHooks = [];
- this.afterHooks = [];
- this.matcher = createMatcher(options.routes || [], this);
- var mode = options.mode || 'hash';
- this.fallback =
- mode === 'history' && !supportsPushState && options.fallback !== false;
- if (this.fallback) {
- mode = 'hash';
- }
- if (!inBrowser) {
- mode = 'abstract';
- }
- this.mode = mode;
- switch (mode) {
- case 'history':
- this.history = new HTML5History(this, options.base);
- break
- case 'hash':
- this.history = new HashHistory(this, options.base, this.fallback);
- break
- case 'abstract':
- this.history = new AbstractHistory(this, options.base);
- break
- default:
- if (true) {
- assert(false, ("invalid mode: " + mode));
- }
- }
- };
- var prototypeAccessors = { currentRoute: { configurable: true } };
- VueRouter.prototype.match = function match (raw, current, redirectedFrom) {
- return this.matcher.match(raw, current, redirectedFrom)
- };
- prototypeAccessors.currentRoute.get = function () {
- return this.history && this.history.current
- };
- VueRouter.prototype.init = function init (app /* Vue component instance */) {
- var this$1 = this;
- true &&
- assert(
- install.installed,
- "not installed. Make sure to call `Vue.use(VueRouter)` " +
- "before creating root instance."
- );
- this.apps.push(app);
- // set up app destroyed handler
- // https://github.com/vuejs/vue-router/issues/2639
- app.$once('hook:destroyed', function () {
- // clean out app from this.apps array once destroyed
- var index = this$1.apps.indexOf(app);
- if (index > -1) { this$1.apps.splice(index, 1); }
- // ensure we still have a main app or null if no apps
- // we do not release the router so it can be reused
- if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
- if (!this$1.app) { this$1.history.teardown(); }
- });
- // main app previously initialized
- // return as we don't need to set up new history listener
- if (this.app) {
- return
- }
- this.app = app;
- var history = this.history;
- if (history instanceof HTML5History || history instanceof HashHistory) {
- var handleInitialScroll = function (routeOrError) {
- var from = history.current;
- var expectScroll = this$1.options.scrollBehavior;
- var supportsScroll = supportsPushState && expectScroll;
- if (supportsScroll && 'fullPath' in routeOrError) {
- handleScroll(this$1, routeOrError, from, false);
- }
- };
- var setupListeners = function (routeOrError) {
- history.setupListeners();
- handleInitialScroll(routeOrError);
- };
- history.transitionTo(
- history.getCurrentLocation(),
- setupListeners,
- setupListeners
- );
- }
- history.listen(function (route) {
- this$1.apps.forEach(function (app) {
- app._route = route;
- });
- });
- };
- VueRouter.prototype.beforeEach = function beforeEach (fn) {
- return registerHook(this.beforeHooks, fn)
- };
- VueRouter.prototype.beforeResolve = function beforeResolve (fn) {
- return registerHook(this.resolveHooks, fn)
- };
- VueRouter.prototype.afterEach = function afterEach (fn) {
- return registerHook(this.afterHooks, fn)
- };
- VueRouter.prototype.onReady = function onReady (cb, errorCb) {
- this.history.onReady(cb, errorCb);
- };
- VueRouter.prototype.onError = function onError (errorCb) {
- this.history.onError(errorCb);
- };
- VueRouter.prototype.push = function push (location, onComplete, onAbort) {
- var this$1 = this;
- // $flow-disable-line
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
- return new Promise(function (resolve, reject) {
- this$1.history.push(location, resolve, reject);
- })
- } else {
- this.history.push(location, onComplete, onAbort);
- }
- };
- VueRouter.prototype.replace = function replace (location, onComplete, onAbort) {
- var this$1 = this;
- // $flow-disable-line
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
- return new Promise(function (resolve, reject) {
- this$1.history.replace(location, resolve, reject);
- })
- } else {
- this.history.replace(location, onComplete, onAbort);
- }
- };
- VueRouter.prototype.go = function go (n) {
- this.history.go(n);
- };
- VueRouter.prototype.back = function back () {
- this.go(-1);
- };
- VueRouter.prototype.forward = function forward () {
- this.go(1);
- };
- VueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {
- var route = to
- ? to.matched
- ? to
- : this.resolve(to).route
- : this.currentRoute;
- if (!route) {
- return []
- }
- return [].concat.apply(
- [],
- route.matched.map(function (m) {
- return Object.keys(m.components).map(function (key) {
- return m.components[key]
- })
- })
- )
- };
- VueRouter.prototype.resolve = function resolve (
- to,
- current,
- append
- ) {
- current = current || this.history.current;
- var location = normalizeLocation(to, current, append, this);
- var route = this.match(location, current);
- var fullPath = route.redirectedFrom || route.fullPath;
- var base = this.history.base;
- var href = createHref(base, fullPath, this.mode);
- return {
- location: location,
- route: route,
- href: href,
- // for backwards compat
- normalizedTo: location,
- resolved: route
- }
- };
- VueRouter.prototype.addRoutes = function addRoutes (routes) {
- this.matcher.addRoutes(routes);
- if (this.history.current !== START) {
- this.history.transitionTo(this.history.getCurrentLocation());
- }
- };
- Object.defineProperties( VueRouter.prototype, prototypeAccessors );
- function registerHook (list, fn) {
- list.push(fn);
- return function () {
- var i = list.indexOf(fn);
- if (i > -1) { list.splice(i, 1); }
- }
- }
- function createHref (base, fullPath, mode) {
- var path = mode === 'hash' ? '#' + fullPath : fullPath;
- return base ? cleanPath(base + '/' + path) : path
- }
- VueRouter.install = install;
- VueRouter.version = '3.4.6';
- VueRouter.isNavigationFailure = isNavigationFailure;
- VueRouter.NavigationFailureType = NavigationFailureType;
- if (inBrowser && window.Vue) {
- window.Vue.use(VueRouter);
- }
- /* harmony default export */ __webpack_exports__["default"] = (VueRouter);
- /***/ }),
- /***/ "./node_modules/vue-style-loader/lib/addStylesClient.js":
- /*!**************************************************************!*\
- !*** ./node_modules/vue-style-loader/lib/addStylesClient.js ***!
- \**************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
- /* harmony import */ var _listToStyles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./listToStyles */ "./node_modules/vue-style-loader/lib/listToStyles.js");
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
- */
- var hasDocument = typeof document !== 'undefined'
- if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- throw new Error(
- 'vue-style-loader cannot be used in a non-browser environment. ' +
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
- ) }
- }
- /*
- type StyleObject = {
- id: number;
- parts: Array<StyleObjectPart>
- }
- type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
- }
- */
- var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
- */}
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
- var singletonElement = null
- var singletonCounter = 0
- var isProduction = false
- var noop = function () {}
- var options = null
- var ssrIdKey = 'data-vue-ssr-id'
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
- // tags it will allow on a page
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
- function addStylesClient (parentId, list, _isProduction, _options) {
- isProduction = _isProduction
- options = _options || {}
- var styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__["default"])(parentId, list)
- addStylesToDom(styles)
- return function update (newList) {
- var mayRemove = []
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- domStyle.refs--
- mayRemove.push(domStyle)
- }
- if (newList) {
- styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__["default"])(parentId, newList)
- addStylesToDom(styles)
- } else {
- styles = []
- }
- for (var i = 0; i < mayRemove.length; i++) {
- var domStyle = mayRemove[i]
- if (domStyle.refs === 0) {
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j]()
- }
- delete stylesInDom[domStyle.id]
- }
- }
- }
- }
- function addStylesToDom (styles /* Array<StyleObject> */) {
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- if (domStyle) {
- domStyle.refs++
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j](item.parts[j])
- }
- for (; j < item.parts.length; j++) {
- domStyle.parts.push(addStyle(item.parts[j]))
- }
- if (domStyle.parts.length > item.parts.length) {
- domStyle.parts.length = item.parts.length
- }
- } else {
- var parts = []
- for (var j = 0; j < item.parts.length; j++) {
- parts.push(addStyle(item.parts[j]))
- }
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
- }
- }
- }
- function createStyleElement () {
- var styleElement = document.createElement('style')
- styleElement.type = 'text/css'
- head.appendChild(styleElement)
- return styleElement
- }
- function addStyle (obj /* StyleObjectPart */) {
- var update, remove
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
- if (styleElement) {
- if (isProduction) {
- // has SSR styles and in production mode.
- // simply do nothing.
- return noop
- } else {
- // has SSR styles but in dev mode.
- // for some reason Chrome can't handle source map in server-rendered
- // style tags - source maps in <style> only works if the style tag is
- // created and inserted dynamically. So we remove the server rendered
- // styles and inject new ones.
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- if (isOldIE) {
- // use singleton mode for IE9.
- var styleIndex = singletonCounter++
- styleElement = singletonElement || (singletonElement = createStyleElement())
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
- } else {
- // use multi-style-tag mode in all other cases
- styleElement = createStyleElement()
- update = applyToTag.bind(null, styleElement)
- remove = function () {
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- update(obj)
- return function updateStyle (newObj /* StyleObjectPart */) {
- if (newObj) {
- if (newObj.css === obj.css &&
- newObj.media === obj.media &&
- newObj.sourceMap === obj.sourceMap) {
- return
- }
- update(obj = newObj)
- } else {
- remove()
- }
- }
- }
- var replaceText = (function () {
- var textStore = []
- return function (index, replacement) {
- textStore[index] = replacement
- return textStore.filter(Boolean).join('\n')
- }
- })()
- function applyToSingletonTag (styleElement, index, remove, obj) {
- var css = remove ? '' : obj.css
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = replaceText(index, css)
- } else {
- var cssNode = document.createTextNode(css)
- var childNodes = styleElement.childNodes
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
- if (childNodes.length) {
- styleElement.insertBefore(cssNode, childNodes[index])
- } else {
- styleElement.appendChild(cssNode)
- }
- }
- }
- function applyToTag (styleElement, obj) {
- var css = obj.css
- var media = obj.media
- var sourceMap = obj.sourceMap
- if (media) {
- styleElement.setAttribute('media', media)
- }
- if (options.ssrId) {
- styleElement.setAttribute(ssrIdKey, obj.id)
- }
- if (sourceMap) {
- // https://developer.chrome.com/devtools/docs/javascript-debugging
- // this makes source maps inside style tags work properly in Chrome
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
- // http://stackoverflow.com/a/26603875
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
- }
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = css
- } else {
- while (styleElement.firstChild) {
- styleElement.removeChild(styleElement.firstChild)
- }
- styleElement.appendChild(document.createTextNode(css))
- }
- }
- /***/ }),
- /***/ "./node_modules/vue-style-loader/lib/listToStyles.js":
- /*!***********************************************************!*\
- !*** ./node_modules/vue-style-loader/lib/listToStyles.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return listToStyles; });
- /**
- * Translates the list format produced by css-loader into something
- * easier to manipulate.
- */
- function listToStyles (parentId, list) {
- var styles = []
- var newStyles = {}
- for (var i = 0; i < list.length; i++) {
- var item = list[i]
- var id = item[0]
- var css = item[1]
- var media = item[2]
- var sourceMap = item[3]
- var part = {
- id: parentId + ':' + i,
- css: css,
- media: media,
- sourceMap: sourceMap
- }
- if (!newStyles[id]) {
- styles.push(newStyles[id] = { id: id, parts: [part] })
- } else {
- newStyles[id].parts.push(part)
- }
- }
- return styles
- }
- /***/ }),
- /***/ "./node_modules/vue/dist/vue.runtime.esm.js":
- /*!**************************************************!*\
- !*** ./node_modules/vue/dist/vue.runtime.esm.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/*!
- * Vue.js v2.6.12
- * (c) 2014-2020 Evan You
- * Released under the MIT License.
- */
- /* */
- var emptyObject = Object.freeze({});
- // These helpers produce better VM code in JS engines due to their
- // explicitness and function inlining.
- function isUndef (v) {
- return v === undefined || v === null
- }
- function isDef (v) {
- return v !== undefined && v !== null
- }
- function isTrue (v) {
- return v === true
- }
- function isFalse (v) {
- return v === false
- }
- /**
- * Check if value is primitive.
- */
- function isPrimitive (value) {
- return (
- typeof value === 'string' ||
- typeof value === 'number' ||
- // $flow-disable-line
- typeof value === 'symbol' ||
- typeof value === 'boolean'
- )
- }
- /**
- * Quick object check - this is primarily used to tell
- * Objects from primitive values when we know the value
- * is a JSON-compliant type.
- */
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- /**
- * Get the raw type string of a value, e.g., [object Object].
- */
- var _toString = Object.prototype.toString;
- function toRawType (value) {
- return _toString.call(value).slice(8, -1)
- }
- /**
- * Strict object type check. Only returns true
- * for plain JavaScript objects.
- */
- function isPlainObject (obj) {
- return _toString.call(obj) === '[object Object]'
- }
- function isRegExp (v) {
- return _toString.call(v) === '[object RegExp]'
- }
- /**
- * Check if val is a valid array index.
- */
- function isValidArrayIndex (val) {
- var n = parseFloat(String(val));
- return n >= 0 && Math.floor(n) === n && isFinite(val)
- }
- function isPromise (val) {
- return (
- isDef(val) &&
- typeof val.then === 'function' &&
- typeof val.catch === 'function'
- )
- }
- /**
- * Convert a value to a string that is actually rendered.
- */
- function toString (val) {
- return val == null
- ? ''
- : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
- ? JSON.stringify(val, null, 2)
- : String(val)
- }
- /**
- * Convert an input value to a number for persistence.
- * If the conversion fails, return original string.
- */
- function toNumber (val) {
- var n = parseFloat(val);
- return isNaN(n) ? val : n
- }
- /**
- * Make a map and return a function for checking if a key
- * is in that map.
- */
- function makeMap (
- str,
- expectsLowerCase
- ) {
- var map = Object.create(null);
- var list = str.split(',');
- for (var i = 0; i < list.length; i++) {
- map[list[i]] = true;
- }
- return expectsLowerCase
- ? function (val) { return map[val.toLowerCase()]; }
- : function (val) { return map[val]; }
- }
- /**
- * Check if a tag is a built-in tag.
- */
- var isBuiltInTag = makeMap('slot,component', true);
- /**
- * Check if an attribute is a reserved attribute.
- */
- var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
- /**
- * Remove an item from an array.
- */
- function remove (arr, item) {
- if (arr.length) {
- var index = arr.indexOf(item);
- if (index > -1) {
- return arr.splice(index, 1)
- }
- }
- }
- /**
- * Check whether an object has the property.
- */
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function hasOwn (obj, key) {
- return hasOwnProperty.call(obj, key)
- }
- /**
- * Create a cached version of a pure function.
- */
- function cached (fn) {
- var cache = Object.create(null);
- return (function cachedFn (str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str))
- })
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
- });
- /**
- * Capitalize a string.
- */
- var capitalize = cached(function (str) {
- return str.charAt(0).toUpperCase() + str.slice(1)
- });
- /**
- * Hyphenate a camelCase string.
- */
- var hyphenateRE = /\B([A-Z])/g;
- var hyphenate = cached(function (str) {
- return str.replace(hyphenateRE, '-$1').toLowerCase()
- });
- /**
- * Simple bind polyfill for environments that do not support it,
- * e.g., PhantomJS 1.x. Technically, we don't need this anymore
- * since native bind is now performant enough in most browsers.
- * But removing it would mean breaking code that was able to run in
- * PhantomJS 1.x, so this must be kept for backward compatibility.
- */
- /* istanbul ignore next */
- function polyfillBind (fn, ctx) {
- function boundFn (a) {
- var l = arguments.length;
- return l
- ? l > 1
- ? fn.apply(ctx, arguments)
- : fn.call(ctx, a)
- : fn.call(ctx)
- }
- boundFn._length = fn.length;
- return boundFn
- }
- function nativeBind (fn, ctx) {
- return fn.bind(ctx)
- }
- var bind = Function.prototype.bind
- ? nativeBind
- : polyfillBind;
- /**
- * Convert an Array-like object to a real Array.
- */
- function toArray (list, start) {
- start = start || 0;
- var i = list.length - start;
- var ret = new Array(i);
- while (i--) {
- ret[i] = list[i + start];
- }
- return ret
- }
- /**
- * Mix properties into target object.
- */
- function extend (to, _from) {
- for (var key in _from) {
- to[key] = _from[key];
- }
- return to
- }
- /**
- * Merge an Array of Objects into a single Object.
- */
- function toObject (arr) {
- var res = {};
- for (var i = 0; i < arr.length; i++) {
- if (arr[i]) {
- extend(res, arr[i]);
- }
- }
- return res
- }
- /* eslint-disable no-unused-vars */
- /**
- * Perform no operation.
- * Stubbing args to make Flow happy without leaving useless transpiled code
- * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
- */
- function noop (a, b, c) {}
- /**
- * Always return false.
- */
- var no = function (a, b, c) { return false; };
- /* eslint-enable no-unused-vars */
- /**
- * Return the same value.
- */
- var identity = function (_) { return _; };
- /**
- * Check if two values are loosely equal - that is,
- * if they are plain objects, do they have the same shape?
- */
- function looseEqual (a, b) {
- if (a === b) { return true }
- var isObjectA = isObject(a);
- var isObjectB = isObject(b);
- if (isObjectA && isObjectB) {
- try {
- var isArrayA = Array.isArray(a);
- var isArrayB = Array.isArray(b);
- if (isArrayA && isArrayB) {
- return a.length === b.length && a.every(function (e, i) {
- return looseEqual(e, b[i])
- })
- } else if (a instanceof Date && b instanceof Date) {
- return a.getTime() === b.getTime()
- } else if (!isArrayA && !isArrayB) {
- var keysA = Object.keys(a);
- var keysB = Object.keys(b);
- return keysA.length === keysB.length && keysA.every(function (key) {
- return looseEqual(a[key], b[key])
- })
- } else {
- /* istanbul ignore next */
- return false
- }
- } catch (e) {
- /* istanbul ignore next */
- return false
- }
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b)
- } else {
- return false
- }
- }
- /**
- * Return the first index at which a loosely equal value can be
- * found in the array (if value is a plain object, the array must
- * contain an object of the same shape), or -1 if it is not present.
- */
- function looseIndexOf (arr, val) {
- for (var i = 0; i < arr.length; i++) {
- if (looseEqual(arr[i], val)) { return i }
- }
- return -1
- }
- /**
- * Ensure a function is called only once.
- */
- function once (fn) {
- var called = false;
- return function () {
- if (!called) {
- called = true;
- fn.apply(this, arguments);
- }
- }
- }
- var SSR_ATTR = 'data-server-rendered';
- var ASSET_TYPES = [
- 'component',
- 'directive',
- 'filter'
- ];
- var LIFECYCLE_HOOKS = [
- 'beforeCreate',
- 'created',
- 'beforeMount',
- 'mounted',
- 'beforeUpdate',
- 'updated',
- 'beforeDestroy',
- 'destroyed',
- 'activated',
- 'deactivated',
- 'errorCaptured',
- 'serverPrefetch'
- ];
- /* */
- var config = ({
- /**
- * Option merge strategies (used in core/util/options)
- */
- // $flow-disable-line
- optionMergeStrategies: Object.create(null),
- /**
- * Whether to suppress warnings.
- */
- silent: false,
- /**
- * Show production mode tip message on boot?
- */
- productionTip: "dev" !== 'production',
- /**
- * Whether to enable devtools
- */
- devtools: "dev" !== 'production',
- /**
- * Whether to record perf
- */
- performance: false,
- /**
- * Error handler for watcher errors
- */
- errorHandler: null,
- /**
- * Warn handler for watcher warns
- */
- warnHandler: null,
- /**
- * Ignore certain custom elements
- */
- ignoredElements: [],
- /**
- * Custom user key aliases for v-on
- */
- // $flow-disable-line
- keyCodes: Object.create(null),
- /**
- * Check if a tag is reserved so that it cannot be registered as a
- * component. This is platform-dependent and may be overwritten.
- */
- isReservedTag: no,
- /**
- * Check if an attribute is reserved so that it cannot be used as a component
- * prop. This is platform-dependent and may be overwritten.
- */
- isReservedAttr: no,
- /**
- * Check if a tag is an unknown element.
- * Platform-dependent.
- */
- isUnknownElement: no,
- /**
- * Get the namespace of an element
- */
- getTagNamespace: noop,
- /**
- * Parse the real tag name for the specific platform.
- */
- parsePlatformTagName: identity,
- /**
- * Check if an attribute must be bound using property, e.g. value
- * Platform-dependent.
- */
- mustUseProp: no,
- /**
- * Perform updates asynchronously. Intended to be used by Vue Test Utils
- * This will significantly reduce performance if set to false.
- */
- async: true,
- /**
- * Exposed for legacy reasons
- */
- _lifecycleHooks: LIFECYCLE_HOOKS
- });
- /* */
- /**
- * unicode letters used for parsing html tags, component names and property paths.
- * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
- * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
- */
- var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
- /**
- * Check if a string starts with $ or _
- */
- function isReserved (str) {
- var c = (str + '').charCodeAt(0);
- return c === 0x24 || c === 0x5F
- }
- /**
- * Define a property.
- */
- function def (obj, key, val, enumerable) {
- Object.defineProperty(obj, key, {
- value: val,
- enumerable: !!enumerable,
- writable: true,
- configurable: true
- });
- }
- /**
- * Parse simple path.
- */
- var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
- function parsePath (path) {
- if (bailRE.test(path)) {
- return
- }
- var segments = path.split('.');
- return function (obj) {
- for (var i = 0; i < segments.length; i++) {
- if (!obj) { return }
- obj = obj[segments[i]];
- }
- return obj
- }
- }
- /* */
- // can we use __proto__?
- var hasProto = '__proto__' in {};
- // Browser environment sniffing
- var inBrowser = typeof window !== 'undefined';
- var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
- var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
- var isIE = UA && /msie|trident/.test(UA);
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
- var isEdge = UA && UA.indexOf('edge/') > 0;
- var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
- var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
- var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
- var isPhantomJS = UA && /phantomjs/.test(UA);
- var isFF = UA && UA.match(/firefox\/(\d+)/);
- // Firefox has a "watch" function on Object.prototype...
- var nativeWatch = ({}).watch;
- var supportsPassive = false;
- if (inBrowser) {
- try {
- var opts = {};
- Object.defineProperty(opts, 'passive', ({
- get: function get () {
- /* istanbul ignore next */
- supportsPassive = true;
- }
- })); // https://github.com/facebook/flow/issues/285
- window.addEventListener('test-passive', null, opts);
- } catch (e) {}
- }
- // this needs to be lazy-evaled because vue may be required before
- // vue-server-renderer can set VUE_ENV
- var _isServer;
- var isServerRendering = function () {
- if (_isServer === undefined) {
- /* istanbul ignore if */
- if (!inBrowser && !inWeex && typeof global !== 'undefined') {
- // detect presence of vue-server-renderer and avoid
- // Webpack shimming the process
- _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
- } else {
- _isServer = false;
- }
- }
- return _isServer
- };
- // detect devtools
- var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- /* istanbul ignore next */
- function isNative (Ctor) {
- return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
- }
- var hasSymbol =
- typeof Symbol !== 'undefined' && isNative(Symbol) &&
- typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
- var _Set;
- /* istanbul ignore if */ // $flow-disable-line
- if (typeof Set !== 'undefined' && isNative(Set)) {
- // use native Set when available.
- _Set = Set;
- } else {
- // a non-standard Set polyfill that only works with primitive keys.
- _Set = /*@__PURE__*/(function () {
- function Set () {
- this.set = Object.create(null);
- }
- Set.prototype.has = function has (key) {
- return this.set[key] === true
- };
- Set.prototype.add = function add (key) {
- this.set[key] = true;
- };
- Set.prototype.clear = function clear () {
- this.set = Object.create(null);
- };
- return Set;
- }());
- }
- /* */
- var warn = noop;
- var tip = noop;
- var generateComponentTrace = (noop); // work around flow check
- var formatComponentName = (noop);
- if (true) {
- var hasConsole = typeof console !== 'undefined';
- var classifyRE = /(?:^|[-_])(\w)/g;
- var classify = function (str) { return str
- .replace(classifyRE, function (c) { return c.toUpperCase(); })
- .replace(/[-_]/g, ''); };
- warn = function (msg, vm) {
- var trace = vm ? generateComponentTrace(vm) : '';
- if (config.warnHandler) {
- config.warnHandler.call(null, msg, vm, trace);
- } else if (hasConsole && (!config.silent)) {
- console.error(("[Vue warn]: " + msg + trace));
- }
- };
- tip = function (msg, vm) {
- if (hasConsole && (!config.silent)) {
- console.warn("[Vue tip]: " + msg + (
- vm ? generateComponentTrace(vm) : ''
- ));
- }
- };
- formatComponentName = function (vm, includeFile) {
- if (vm.$root === vm) {
- return '<Root>'
- }
- var options = typeof vm === 'function' && vm.cid != null
- ? vm.options
- : vm._isVue
- ? vm.$options || vm.constructor.options
- : vm;
- var name = options.name || options._componentTag;
- var file = options.__file;
- if (!name && file) {
- var match = file.match(/([^/\\]+)\.vue$/);
- name = match && match[1];
- }
- return (
- (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
- (file && includeFile !== false ? (" at " + file) : '')
- )
- };
- var repeat = function (str, n) {
- var res = '';
- while (n) {
- if (n % 2 === 1) { res += str; }
- if (n > 1) { str += str; }
- n >>= 1;
- }
- return res
- };
- generateComponentTrace = function (vm) {
- if (vm._isVue && vm.$parent) {
- var tree = [];
- var currentRecursiveSequence = 0;
- while (vm) {
- if (tree.length > 0) {
- var last = tree[tree.length - 1];
- if (last.constructor === vm.constructor) {
- currentRecursiveSequence++;
- vm = vm.$parent;
- continue
- } else if (currentRecursiveSequence > 0) {
- tree[tree.length - 1] = [last, currentRecursiveSequence];
- currentRecursiveSequence = 0;
- }
- }
- tree.push(vm);
- vm = vm.$parent;
- }
- return '\n\nfound in\n\n' + tree
- .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
- ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
- : formatComponentName(vm))); })
- .join('\n')
- } else {
- return ("\n\n(found in " + (formatComponentName(vm)) + ")")
- }
- };
- }
- /* */
- var uid = 0;
- /**
- * A dep is an observable that can have multiple
- * directives subscribing to it.
- */
- var Dep = function Dep () {
- this.id = uid++;
- this.subs = [];
- };
- Dep.prototype.addSub = function addSub (sub) {
- this.subs.push(sub);
- };
- Dep.prototype.removeSub = function removeSub (sub) {
- remove(this.subs, sub);
- };
- Dep.prototype.depend = function depend () {
- if (Dep.target) {
- Dep.target.addDep(this);
- }
- };
- Dep.prototype.notify = function notify () {
- // stabilize the subscriber list first
- var subs = this.subs.slice();
- if ( true && !config.async) {
- // subs aren't sorted in scheduler if not running async
- // we need to sort them now to make sure they fire in correct
- // order
- subs.sort(function (a, b) { return a.id - b.id; });
- }
- for (var i = 0, l = subs.length; i < l; i++) {
- subs[i].update();
- }
- };
- // The current target watcher being evaluated.
- // This is globally unique because only one watcher
- // can be evaluated at a time.
- Dep.target = null;
- var targetStack = [];
- function pushTarget (target) {
- targetStack.push(target);
- Dep.target = target;
- }
- function popTarget () {
- targetStack.pop();
- Dep.target = targetStack[targetStack.length - 1];
- }
- /* */
- var VNode = function VNode (
- tag,
- data,
- children,
- text,
- elm,
- context,
- componentOptions,
- asyncFactory
- ) {
- this.tag = tag;
- this.data = data;
- this.children = children;
- this.text = text;
- this.elm = elm;
- this.ns = undefined;
- this.context = context;
- this.fnContext = undefined;
- this.fnOptions = undefined;
- this.fnScopeId = undefined;
- this.key = data && data.key;
- this.componentOptions = componentOptions;
- this.componentInstance = undefined;
- this.parent = undefined;
- this.raw = false;
- this.isStatic = false;
- this.isRootInsert = true;
- this.isComment = false;
- this.isCloned = false;
- this.isOnce = false;
- this.asyncFactory = asyncFactory;
- this.asyncMeta = undefined;
- this.isAsyncPlaceholder = false;
- };
- var prototypeAccessors = { child: { configurable: true } };
- // DEPRECATED: alias for componentInstance for backwards compat.
- /* istanbul ignore next */
- prototypeAccessors.child.get = function () {
- return this.componentInstance
- };
- Object.defineProperties( VNode.prototype, prototypeAccessors );
- var createEmptyVNode = function (text) {
- if ( text === void 0 ) text = '';
- var node = new VNode();
- node.text = text;
- node.isComment = true;
- return node
- };
- function createTextVNode (val) {
- return new VNode(undefined, undefined, undefined, String(val))
- }
- // optimized shallow clone
- // used for static nodes and slot nodes because they may be reused across
- // multiple renders, cloning them avoids errors when DOM manipulations rely
- // on their elm reference.
- function cloneVNode (vnode) {
- var cloned = new VNode(
- vnode.tag,
- vnode.data,
- // #7975
- // clone children array to avoid mutating original in case of cloning
- // a child.
- vnode.children && vnode.children.slice(),
- vnode.text,
- vnode.elm,
- vnode.context,
- vnode.componentOptions,
- vnode.asyncFactory
- );
- cloned.ns = vnode.ns;
- cloned.isStatic = vnode.isStatic;
- cloned.key = vnode.key;
- cloned.isComment = vnode.isComment;
- cloned.fnContext = vnode.fnContext;
- cloned.fnOptions = vnode.fnOptions;
- cloned.fnScopeId = vnode.fnScopeId;
- cloned.asyncMeta = vnode.asyncMeta;
- cloned.isCloned = true;
- return cloned
- }
- /*
- * not type checking this file because flow doesn't play well with
- * dynamically accessing methods on Array prototype
- */
- var arrayProto = Array.prototype;
- var arrayMethods = Object.create(arrayProto);
- var methodsToPatch = [
- 'push',
- 'pop',
- 'shift',
- 'unshift',
- 'splice',
- 'sort',
- 'reverse'
- ];
- /**
- * Intercept mutating methods and emit events
- */
- methodsToPatch.forEach(function (method) {
- // cache original method
- var original = arrayProto[method];
- def(arrayMethods, method, function mutator () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- var result = original.apply(this, args);
- var ob = this.__ob__;
- var inserted;
- switch (method) {
- case 'push':
- case 'unshift':
- inserted = args;
- break
- case 'splice':
- inserted = args.slice(2);
- break
- }
- if (inserted) { ob.observeArray(inserted); }
- // notify change
- ob.dep.notify();
- return result
- });
- });
- /* */
- var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
- /**
- * In some cases we may want to disable observation inside a component's
- * update computation.
- */
- var shouldObserve = true;
- function toggleObserving (value) {
- shouldObserve = value;
- }
- /**
- * Observer class that is attached to each observed
- * object. Once attached, the observer converts the target
- * object's property keys into getter/setters that
- * collect dependencies and dispatch updates.
- */
- var Observer = function Observer (value) {
- this.value = value;
- this.dep = new Dep();
- this.vmCount = 0;
- def(value, '__ob__', this);
- if (Array.isArray(value)) {
- if (hasProto) {
- protoAugment(value, arrayMethods);
- } else {
- copyAugment(value, arrayMethods, arrayKeys);
- }
- this.observeArray(value);
- } else {
- this.walk(value);
- }
- };
- /**
- * Walk through all properties and convert them into
- * getter/setters. This method should only be called when
- * value type is Object.
- */
- Observer.prototype.walk = function walk (obj) {
- var keys = Object.keys(obj);
- for (var i = 0; i < keys.length; i++) {
- defineReactive$$1(obj, keys[i]);
- }
- };
- /**
- * Observe a list of Array items.
- */
- Observer.prototype.observeArray = function observeArray (items) {
- for (var i = 0, l = items.length; i < l; i++) {
- observe(items[i]);
- }
- };
- // helpers
- /**
- * Augment a target Object or Array by intercepting
- * the prototype chain using __proto__
- */
- function protoAugment (target, src) {
- /* eslint-disable no-proto */
- target.__proto__ = src;
- /* eslint-enable no-proto */
- }
- /**
- * Augment a target Object or Array by defining
- * hidden properties.
- */
- /* istanbul ignore next */
- function copyAugment (target, src, keys) {
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- def(target, key, src[key]);
- }
- }
- /**
- * Attempt to create an observer instance for a value,
- * returns the new observer if successfully observed,
- * or the existing observer if the value already has one.
- */
- function observe (value, asRootData) {
- if (!isObject(value) || value instanceof VNode) {
- return
- }
- var ob;
- if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
- ob = value.__ob__;
- } else if (
- shouldObserve &&
- !isServerRendering() &&
- (Array.isArray(value) || isPlainObject(value)) &&
- Object.isExtensible(value) &&
- !value._isVue
- ) {
- ob = new Observer(value);
- }
- if (asRootData && ob) {
- ob.vmCount++;
- }
- return ob
- }
- /**
- * Define a reactive property on an Object.
- */
- function defineReactive$$1 (
- obj,
- key,
- val,
- customSetter,
- shallow
- ) {
- var dep = new Dep();
- var property = Object.getOwnPropertyDescriptor(obj, key);
- if (property && property.configurable === false) {
- return
- }
- // cater for pre-defined getter/setters
- var getter = property && property.get;
- var setter = property && property.set;
- if ((!getter || setter) && arguments.length === 2) {
- val = obj[key];
- }
- var childOb = !shallow && observe(val);
- Object.defineProperty(obj, key, {
- enumerable: true,
- configurable: true,
- get: function reactiveGetter () {
- var value = getter ? getter.call(obj) : val;
- if (Dep.target) {
- dep.depend();
- if (childOb) {
- childOb.dep.depend();
- if (Array.isArray(value)) {
- dependArray(value);
- }
- }
- }
- return value
- },
- set: function reactiveSetter (newVal) {
- var value = getter ? getter.call(obj) : val;
- /* eslint-disable no-self-compare */
- if (newVal === value || (newVal !== newVal && value !== value)) {
- return
- }
- /* eslint-enable no-self-compare */
- if ( true && customSetter) {
- customSetter();
- }
- // #7981: for accessor properties without setter
- if (getter && !setter) { return }
- if (setter) {
- setter.call(obj, newVal);
- } else {
- val = newVal;
- }
- childOb = !shallow && observe(newVal);
- dep.notify();
- }
- });
- }
- /**
- * Set a property on an object. Adds the new property and
- * triggers change notification if the property doesn't
- * already exist.
- */
- function set (target, key, val) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.length = Math.max(target.length, key);
- target.splice(key, 1, val);
- return val
- }
- if (key in target && !(key in Object.prototype)) {
- target[key] = val;
- return val
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid adding reactive properties to a Vue instance or its root $data ' +
- 'at runtime - declare it upfront in the data option.'
- );
- return val
- }
- if (!ob) {
- target[key] = val;
- return val
- }
- defineReactive$$1(ob.value, key, val);
- ob.dep.notify();
- return val
- }
- /**
- * Delete a property and trigger change if necessary.
- */
- function del (target, key) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.splice(key, 1);
- return
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid deleting properties on a Vue instance or its root $data ' +
- '- just set it to null.'
- );
- return
- }
- if (!hasOwn(target, key)) {
- return
- }
- delete target[key];
- if (!ob) {
- return
- }
- ob.dep.notify();
- }
- /**
- * Collect dependencies on array elements when the array is touched, since
- * we cannot intercept array element access like property getters.
- */
- function dependArray (value) {
- for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
- e = value[i];
- e && e.__ob__ && e.__ob__.dep.depend();
- if (Array.isArray(e)) {
- dependArray(e);
- }
- }
- }
- /* */
- /**
- * Option overwriting strategies are functions that handle
- * how to merge a parent option value and a child option
- * value into the final value.
- */
- var strats = config.optionMergeStrategies;
- /**
- * Options with restrictions
- */
- if (true) {
- strats.el = strats.propsData = function (parent, child, vm, key) {
- if (!vm) {
- warn(
- "option \"" + key + "\" can only be used during instance " +
- 'creation with the `new` keyword.'
- );
- }
- return defaultStrat(parent, child)
- };
- }
- /**
- * Helper that recursively merges two data objects together.
- */
- function mergeData (to, from) {
- if (!from) { return to }
- var key, toVal, fromVal;
- var keys = hasSymbol
- ? Reflect.ownKeys(from)
- : Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- key = keys[i];
- // in case the object is already observed...
- if (key === '__ob__') { continue }
- toVal = to[key];
- fromVal = from[key];
- if (!hasOwn(to, key)) {
- set(to, key, fromVal);
- } else if (
- toVal !== fromVal &&
- isPlainObject(toVal) &&
- isPlainObject(fromVal)
- ) {
- mergeData(toVal, fromVal);
- }
- }
- return to
- }
- /**
- * Data
- */
- function mergeDataOrFn (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- // in a Vue.extend merge, both should be functions
- if (!childVal) {
- return parentVal
- }
- if (!parentVal) {
- return childVal
- }
- // when parentVal & childVal are both present,
- // we need to return a function that returns the
- // merged result of both functions... no need to
- // check if parentVal is a function here because
- // it has to be a function to pass previous merges.
- return function mergedDataFn () {
- return mergeData(
- typeof childVal === 'function' ? childVal.call(this, this) : childVal,
- typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
- )
- }
- } else {
- return function mergedInstanceDataFn () {
- // instance merge
- var instanceData = typeof childVal === 'function'
- ? childVal.call(vm, vm)
- : childVal;
- var defaultData = typeof parentVal === 'function'
- ? parentVal.call(vm, vm)
- : parentVal;
- if (instanceData) {
- return mergeData(instanceData, defaultData)
- } else {
- return defaultData
- }
- }
- }
- }
- strats.data = function (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- if (childVal && typeof childVal !== 'function') {
- true && warn(
- 'The "data" option should be a function ' +
- 'that returns a per-instance value in component ' +
- 'definitions.',
- vm
- );
- return parentVal
- }
- return mergeDataOrFn(parentVal, childVal)
- }
- return mergeDataOrFn(parentVal, childVal, vm)
- };
- /**
- * Hooks and props are merged as arrays.
- */
- function mergeHook (
- parentVal,
- childVal
- ) {
- var res = childVal
- ? parentVal
- ? parentVal.concat(childVal)
- : Array.isArray(childVal)
- ? childVal
- : [childVal]
- : parentVal;
- return res
- ? dedupeHooks(res)
- : res
- }
- function dedupeHooks (hooks) {
- var res = [];
- for (var i = 0; i < hooks.length; i++) {
- if (res.indexOf(hooks[i]) === -1) {
- res.push(hooks[i]);
- }
- }
- return res
- }
- LIFECYCLE_HOOKS.forEach(function (hook) {
- strats[hook] = mergeHook;
- });
- /**
- * Assets
- *
- * When a vm is present (instance creation), we need to do
- * a three-way merge between constructor options, instance
- * options and parent options.
- */
- function mergeAssets (
- parentVal,
- childVal,
- vm,
- key
- ) {
- var res = Object.create(parentVal || null);
- if (childVal) {
- true && assertObjectType(key, childVal, vm);
- return extend(res, childVal)
- } else {
- return res
- }
- }
- ASSET_TYPES.forEach(function (type) {
- strats[type + 's'] = mergeAssets;
- });
- /**
- * Watchers.
- *
- * Watchers hashes should not overwrite one
- * another, so we merge them as arrays.
- */
- strats.watch = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- // work around Firefox's Object.prototype.watch...
- if (parentVal === nativeWatch) { parentVal = undefined; }
- if (childVal === nativeWatch) { childVal = undefined; }
- /* istanbul ignore if */
- if (!childVal) { return Object.create(parentVal || null) }
- if (true) {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = {};
- extend(ret, parentVal);
- for (var key$1 in childVal) {
- var parent = ret[key$1];
- var child = childVal[key$1];
- if (parent && !Array.isArray(parent)) {
- parent = [parent];
- }
- ret[key$1] = parent
- ? parent.concat(child)
- : Array.isArray(child) ? child : [child];
- }
- return ret
- };
- /**
- * Other object hashes.
- */
- strats.props =
- strats.methods =
- strats.inject =
- strats.computed = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- if (childVal && "dev" !== 'production') {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = Object.create(null);
- extend(ret, parentVal);
- if (childVal) { extend(ret, childVal); }
- return ret
- };
- strats.provide = mergeDataOrFn;
- /**
- * Default strategy.
- */
- var defaultStrat = function (parentVal, childVal) {
- return childVal === undefined
- ? parentVal
- : childVal
- };
- /**
- * Validate component names
- */
- function checkComponents (options) {
- for (var key in options.components) {
- validateComponentName(key);
- }
- }
- function validateComponentName (name) {
- if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
- warn(
- 'Invalid component name: "' + name + '". Component names ' +
- 'should conform to valid custom element name in html5 specification.'
- );
- }
- if (isBuiltInTag(name) || config.isReservedTag(name)) {
- warn(
- 'Do not use built-in or reserved HTML elements as component ' +
- 'id: ' + name
- );
- }
- }
- /**
- * Ensure all props option syntax are normalized into the
- * Object-based format.
- */
- function normalizeProps (options, vm) {
- var props = options.props;
- if (!props) { return }
- var res = {};
- var i, val, name;
- if (Array.isArray(props)) {
- i = props.length;
- while (i--) {
- val = props[i];
- if (typeof val === 'string') {
- name = camelize(val);
- res[name] = { type: null };
- } else if (true) {
- warn('props must be strings when using array syntax.');
- }
- }
- } else if (isPlainObject(props)) {
- for (var key in props) {
- val = props[key];
- name = camelize(key);
- res[name] = isPlainObject(val)
- ? val
- : { type: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"props\": expected an Array or an Object, " +
- "but got " + (toRawType(props)) + ".",
- vm
- );
- }
- options.props = res;
- }
- /**
- * Normalize all injections into Object-based format
- */
- function normalizeInject (options, vm) {
- var inject = options.inject;
- if (!inject) { return }
- var normalized = options.inject = {};
- if (Array.isArray(inject)) {
- for (var i = 0; i < inject.length; i++) {
- normalized[inject[i]] = { from: inject[i] };
- }
- } else if (isPlainObject(inject)) {
- for (var key in inject) {
- var val = inject[key];
- normalized[key] = isPlainObject(val)
- ? extend({ from: key }, val)
- : { from: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"inject\": expected an Array or an Object, " +
- "but got " + (toRawType(inject)) + ".",
- vm
- );
- }
- }
- /**
- * Normalize raw function directives into object format.
- */
- function normalizeDirectives (options) {
- var dirs = options.directives;
- if (dirs) {
- for (var key in dirs) {
- var def$$1 = dirs[key];
- if (typeof def$$1 === 'function') {
- dirs[key] = { bind: def$$1, update: def$$1 };
- }
- }
- }
- }
- function assertObjectType (name, value, vm) {
- if (!isPlainObject(value)) {
- warn(
- "Invalid value for option \"" + name + "\": expected an Object, " +
- "but got " + (toRawType(value)) + ".",
- vm
- );
- }
- }
- /**
- * Merge two option objects into a new one.
- * Core utility used in both instantiation and inheritance.
- */
- function mergeOptions (
- parent,
- child,
- vm
- ) {
- if (true) {
- checkComponents(child);
- }
- if (typeof child === 'function') {
- child = child.options;
- }
- normalizeProps(child, vm);
- normalizeInject(child, vm);
- normalizeDirectives(child);
- // Apply extends and mixins on the child options,
- // but only if it is a raw options object that isn't
- // the result of another mergeOptions call.
- // Only merged options has the _base property.
- if (!child._base) {
- if (child.extends) {
- parent = mergeOptions(parent, child.extends, vm);
- }
- if (child.mixins) {
- for (var i = 0, l = child.mixins.length; i < l; i++) {
- parent = mergeOptions(parent, child.mixins[i], vm);
- }
- }
- }
- var options = {};
- var key;
- for (key in parent) {
- mergeField(key);
- }
- for (key in child) {
- if (!hasOwn(parent, key)) {
- mergeField(key);
- }
- }
- function mergeField (key) {
- var strat = strats[key] || defaultStrat;
- options[key] = strat(parent[key], child[key], vm, key);
- }
- return options
- }
- /**
- * Resolve an asset.
- * This function is used because child instances need access
- * to assets defined in its ancestor chain.
- */
- function resolveAsset (
- options,
- type,
- id,
- warnMissing
- ) {
- /* istanbul ignore if */
- if (typeof id !== 'string') {
- return
- }
- var assets = options[type];
- // check local registration variations first
- if (hasOwn(assets, id)) { return assets[id] }
- var camelizedId = camelize(id);
- if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
- var PascalCaseId = capitalize(camelizedId);
- if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
- // fallback to prototype chain
- var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
- if ( true && warnMissing && !res) {
- warn(
- 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
- options
- );
- }
- return res
- }
- /* */
- function validateProp (
- key,
- propOptions,
- propsData,
- vm
- ) {
- var prop = propOptions[key];
- var absent = !hasOwn(propsData, key);
- var value = propsData[key];
- // boolean casting
- var booleanIndex = getTypeIndex(Boolean, prop.type);
- if (booleanIndex > -1) {
- if (absent && !hasOwn(prop, 'default')) {
- value = false;
- } else if (value === '' || value === hyphenate(key)) {
- // only cast empty string / same name to boolean if
- // boolean has higher priority
- var stringIndex = getTypeIndex(String, prop.type);
- if (stringIndex < 0 || booleanIndex < stringIndex) {
- value = true;
- }
- }
- }
- // check default value
- if (value === undefined) {
- value = getPropDefaultValue(vm, prop, key);
- // since the default value is a fresh copy,
- // make sure to observe it.
- var prevShouldObserve = shouldObserve;
- toggleObserving(true);
- observe(value);
- toggleObserving(prevShouldObserve);
- }
- if (
- true
- ) {
- assertProp(prop, key, value, vm, absent);
- }
- return value
- }
- /**
- * Get the default value of a prop.
- */
- function getPropDefaultValue (vm, prop, key) {
- // no default, return undefined
- if (!hasOwn(prop, 'default')) {
- return undefined
- }
- var def = prop.default;
- // warn against non-factory defaults for Object & Array
- if ( true && isObject(def)) {
- warn(
- 'Invalid default value for prop "' + key + '": ' +
- 'Props with type Object/Array must use a factory function ' +
- 'to return the default value.',
- vm
- );
- }
- // the raw prop value was also undefined from previous render,
- // return previous default value to avoid unnecessary watcher trigger
- if (vm && vm.$options.propsData &&
- vm.$options.propsData[key] === undefined &&
- vm._props[key] !== undefined
- ) {
- return vm._props[key]
- }
- // call factory function for non-Function types
- // a value is Function if its prototype is function even across different execution context
- return typeof def === 'function' && getType(prop.type) !== 'Function'
- ? def.call(vm)
- : def
- }
- /**
- * Assert whether a prop is valid.
- */
- function assertProp (
- prop,
- name,
- value,
- vm,
- absent
- ) {
- if (prop.required && absent) {
- warn(
- 'Missing required prop: "' + name + '"',
- vm
- );
- return
- }
- if (value == null && !prop.required) {
- return
- }
- var type = prop.type;
- var valid = !type || type === true;
- var expectedTypes = [];
- if (type) {
- if (!Array.isArray(type)) {
- type = [type];
- }
- for (var i = 0; i < type.length && !valid; i++) {
- var assertedType = assertType(value, type[i]);
- expectedTypes.push(assertedType.expectedType || '');
- valid = assertedType.valid;
- }
- }
- if (!valid) {
- warn(
- getInvalidTypeMessage(name, value, expectedTypes),
- vm
- );
- return
- }
- var validator = prop.validator;
- if (validator) {
- if (!validator(value)) {
- warn(
- 'Invalid prop: custom validator check failed for prop "' + name + '".',
- vm
- );
- }
- }
- }
- var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
- function assertType (value, type) {
- var valid;
- var expectedType = getType(type);
- if (simpleCheckRE.test(expectedType)) {
- var t = typeof value;
- valid = t === expectedType.toLowerCase();
- // for primitive wrapper objects
- if (!valid && t === 'object') {
- valid = value instanceof type;
- }
- } else if (expectedType === 'Object') {
- valid = isPlainObject(value);
- } else if (expectedType === 'Array') {
- valid = Array.isArray(value);
- } else {
- valid = value instanceof type;
- }
- return {
- valid: valid,
- expectedType: expectedType
- }
- }
- /**
- * Use function string name to check built-in types,
- * because a simple equality check will fail when running
- * across different vms / iframes.
- */
- function getType (fn) {
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
- return match ? match[1] : ''
- }
- function isSameType (a, b) {
- return getType(a) === getType(b)
- }
- function getTypeIndex (type, expectedTypes) {
- if (!Array.isArray(expectedTypes)) {
- return isSameType(expectedTypes, type) ? 0 : -1
- }
- for (var i = 0, len = expectedTypes.length; i < len; i++) {
- if (isSameType(expectedTypes[i], type)) {
- return i
- }
- }
- return -1
- }
- function getInvalidTypeMessage (name, value, expectedTypes) {
- var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
- " Expected " + (expectedTypes.map(capitalize).join(', '));
- var expectedType = expectedTypes[0];
- var receivedType = toRawType(value);
- var expectedValue = styleValue(value, expectedType);
- var receivedValue = styleValue(value, receivedType);
- // check if we need to specify expected value
- if (expectedTypes.length === 1 &&
- isExplicable(expectedType) &&
- !isBoolean(expectedType, receivedType)) {
- message += " with value " + expectedValue;
- }
- message += ", got " + receivedType + " ";
- // check if we need to specify received value
- if (isExplicable(receivedType)) {
- message += "with value " + receivedValue + ".";
- }
- return message
- }
- function styleValue (value, type) {
- if (type === 'String') {
- return ("\"" + value + "\"")
- } else if (type === 'Number') {
- return ("" + (Number(value)))
- } else {
- return ("" + value)
- }
- }
- function isExplicable (value) {
- var explicitTypes = ['string', 'number', 'boolean'];
- return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
- }
- function isBoolean () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
- }
- /* */
- function handleError (err, vm, info) {
- // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
- // See: https://github.com/vuejs/vuex/issues/1505
- pushTarget();
- try {
- if (vm) {
- var cur = vm;
- while ((cur = cur.$parent)) {
- var hooks = cur.$options.errorCaptured;
- if (hooks) {
- for (var i = 0; i < hooks.length; i++) {
- try {
- var capture = hooks[i].call(cur, err, vm, info) === false;
- if (capture) { return }
- } catch (e) {
- globalHandleError(e, cur, 'errorCaptured hook');
- }
- }
- }
- }
- }
- globalHandleError(err, vm, info);
- } finally {
- popTarget();
- }
- }
- function invokeWithErrorHandling (
- handler,
- context,
- args,
- vm,
- info
- ) {
- var res;
- try {
- res = args ? handler.apply(context, args) : handler.call(context);
- if (res && !res._isVue && isPromise(res) && !res._handled) {
- res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
- // issue #9511
- // avoid catch triggering multiple times when nested calls
- res._handled = true;
- }
- } catch (e) {
- handleError(e, vm, info);
- }
- return res
- }
- function globalHandleError (err, vm, info) {
- if (config.errorHandler) {
- try {
- return config.errorHandler.call(null, err, vm, info)
- } catch (e) {
- // if the user intentionally throws the original error in the handler,
- // do not log it twice
- if (e !== err) {
- logError(e, null, 'config.errorHandler');
- }
- }
- }
- logError(err, vm, info);
- }
- function logError (err, vm, info) {
- if (true) {
- warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- }
- /* istanbul ignore else */
- if ((inBrowser || inWeex) && typeof console !== 'undefined') {
- console.error(err);
- } else {
- throw err
- }
- }
- /* */
- var isUsingMicroTask = false;
- var callbacks = [];
- var pending = false;
- function flushCallbacks () {
- pending = false;
- var copies = callbacks.slice(0);
- callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
- }
- // Here we have async deferring wrappers using microtasks.
- // In 2.5 we used (macro) tasks (in combination with microtasks).
- // However, it has subtle problems when state is changed right before repaint
- // (e.g. #6813, out-in transitions).
- // Also, using (macro) tasks in event handler would cause some weird behaviors
- // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
- // So we now use microtasks everywhere, again.
- // A major drawback of this tradeoff is that there are some scenarios
- // where microtasks have too high a priority and fire in between supposedly
- // sequential events (e.g. #4521, #6690, which have workarounds)
- // or even between bubbling of the same event (#6566).
- var timerFunc;
- // The nextTick behavior leverages the microtask queue, which can be accessed
- // via either native Promise.then or MutationObserver.
- // MutationObserver has wider support, however it is seriously bugged in
- // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
- // completely stops working after triggering a few times... so, if native
- // Promise is available, we will use it:
- /* istanbul ignore next, $flow-disable-line */
- if (typeof Promise !== 'undefined' && isNative(Promise)) {
- var p = Promise.resolve();
- timerFunc = function () {
- p.then(flushCallbacks);
- // In problematic UIWebViews, Promise.then doesn't completely break, but
- // it can get stuck in a weird state where callbacks are pushed into the
- // microtask queue but the queue isn't being flushed, until the browser
- // needs to do some other work, e.g. handle a timer. Therefore we can
- // "force" the microtask queue to be flushed by adding an empty timer.
- if (isIOS) { setTimeout(noop); }
- };
- isUsingMicroTask = true;
- } else if (!isIE && typeof MutationObserver !== 'undefined' && (
- isNative(MutationObserver) ||
- // PhantomJS and iOS 7.x
- MutationObserver.toString() === '[object MutationObserverConstructor]'
- )) {
- // Use MutationObserver where native Promise is not available,
- // e.g. PhantomJS, iOS7, Android 4.4
- // (#6466 MutationObserver is unreliable in IE11)
- var counter = 1;
- var observer = new MutationObserver(flushCallbacks);
- var textNode = document.createTextNode(String(counter));
- observer.observe(textNode, {
- characterData: true
- });
- timerFunc = function () {
- counter = (counter + 1) % 2;
- textNode.data = String(counter);
- };
- isUsingMicroTask = true;
- } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
- // Fallback to setImmediate.
- // Technically it leverages the (macro) task queue,
- // but it is still a better choice than setTimeout.
- timerFunc = function () {
- setImmediate(flushCallbacks);
- };
- } else {
- // Fallback to setTimeout.
- timerFunc = function () {
- setTimeout(flushCallbacks, 0);
- };
- }
- function nextTick (cb, ctx) {
- var _resolve;
- callbacks.push(function () {
- if (cb) {
- try {
- cb.call(ctx);
- } catch (e) {
- handleError(e, ctx, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(ctx);
- }
- });
- if (!pending) {
- pending = true;
- timerFunc();
- }
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- })
- }
- }
- /* */
- /* not type checking this file because flow doesn't play well with Proxy */
- var initProxy;
- if (true) {
- var allowedGlobals = makeMap(
- 'Infinity,undefined,NaN,isFinite,isNaN,' +
- 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
- 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
- 'require' // for Webpack/Browserify
- );
- var warnNonPresent = function (target, key) {
- warn(
- "Property or method \"" + key + "\" is not defined on the instance but " +
- 'referenced during render. Make sure that this property is reactive, ' +
- 'either in the data option, or for class-based components, by ' +
- 'initializing the property. ' +
- 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
- target
- );
- };
- var warnReservedPrefix = function (target, key) {
- warn(
- "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
- 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
- 'prevent conflicts with Vue internals. ' +
- 'See: https://vuejs.org/v2/api/#data',
- target
- );
- };
- var hasProxy =
- typeof Proxy !== 'undefined' && isNative(Proxy);
- if (hasProxy) {
- var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
- config.keyCodes = new Proxy(config.keyCodes, {
- set: function set (target, key, value) {
- if (isBuiltInModifier(key)) {
- warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
- return false
- } else {
- target[key] = value;
- return true
- }
- }
- });
- }
- var hasHandler = {
- has: function has (target, key) {
- var has = key in target;
- var isAllowed = allowedGlobals(key) ||
- (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
- if (!has && !isAllowed) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return has || !isAllowed
- }
- };
- var getHandler = {
- get: function get (target, key) {
- if (typeof key === 'string' && !(key in target)) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return target[key]
- }
- };
- initProxy = function initProxy (vm) {
- if (hasProxy) {
- // determine which proxy handler to use
- var options = vm.$options;
- var handlers = options.render && options.render._withStripped
- ? getHandler
- : hasHandler;
- vm._renderProxy = new Proxy(vm, handlers);
- } else {
- vm._renderProxy = vm;
- }
- };
- }
- /* */
- var seenObjects = new _Set();
- /**
- * Recursively traverse an object to evoke all converted
- * getters, so that every nested property inside the object
- * is collected as a "deep" dependency.
- */
- function traverse (val) {
- _traverse(val, seenObjects);
- seenObjects.clear();
- }
- function _traverse (val, seen) {
- var i, keys;
- var isA = Array.isArray(val);
- if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
- return
- }
- if (val.__ob__) {
- var depId = val.__ob__.dep.id;
- if (seen.has(depId)) {
- return
- }
- seen.add(depId);
- }
- if (isA) {
- i = val.length;
- while (i--) { _traverse(val[i], seen); }
- } else {
- keys = Object.keys(val);
- i = keys.length;
- while (i--) { _traverse(val[keys[i]], seen); }
- }
- }
- var mark;
- var measure;
- if (true) {
- var perf = inBrowser && window.performance;
- /* istanbul ignore if */
- if (
- perf &&
- perf.mark &&
- perf.measure &&
- perf.clearMarks &&
- perf.clearMeasures
- ) {
- mark = function (tag) { return perf.mark(tag); };
- measure = function (name, startTag, endTag) {
- perf.measure(name, startTag, endTag);
- perf.clearMarks(startTag);
- perf.clearMarks(endTag);
- // perf.clearMeasures(name)
- };
- }
- }
- /* */
- var normalizeEvent = cached(function (name) {
- var passive = name.charAt(0) === '&';
- name = passive ? name.slice(1) : name;
- var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
- name = once$$1 ? name.slice(1) : name;
- var capture = name.charAt(0) === '!';
- name = capture ? name.slice(1) : name;
- return {
- name: name,
- once: once$$1,
- capture: capture,
- passive: passive
- }
- });
- function createFnInvoker (fns, vm) {
- function invoker () {
- var arguments$1 = arguments;
- var fns = invoker.fns;
- if (Array.isArray(fns)) {
- var cloned = fns.slice();
- for (var i = 0; i < cloned.length; i++) {
- invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
- }
- } else {
- // return handler return value for single handlers
- return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
- }
- }
- invoker.fns = fns;
- return invoker
- }
- function updateListeners (
- on,
- oldOn,
- add,
- remove$$1,
- createOnceHandler,
- vm
- ) {
- var name, def$$1, cur, old, event;
- for (name in on) {
- def$$1 = cur = on[name];
- old = oldOn[name];
- event = normalizeEvent(name);
- if (isUndef(cur)) {
- true && warn(
- "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
- vm
- );
- } else if (isUndef(old)) {
- if (isUndef(cur.fns)) {
- cur = on[name] = createFnInvoker(cur, vm);
- }
- if (isTrue(event.once)) {
- cur = on[name] = createOnceHandler(event.name, cur, event.capture);
- }
- add(event.name, cur, event.capture, event.passive, event.params);
- } else if (cur !== old) {
- old.fns = cur;
- on[name] = old;
- }
- }
- for (name in oldOn) {
- if (isUndef(on[name])) {
- event = normalizeEvent(name);
- remove$$1(event.name, oldOn[name], event.capture);
- }
- }
- }
- /* */
- function mergeVNodeHook (def, hookKey, hook) {
- if (def instanceof VNode) {
- def = def.data.hook || (def.data.hook = {});
- }
- var invoker;
- var oldHook = def[hookKey];
- function wrappedHook () {
- hook.apply(this, arguments);
- // important: remove merged hook to ensure it's called only once
- // and prevent memory leak
- remove(invoker.fns, wrappedHook);
- }
- if (isUndef(oldHook)) {
- // no existing hook
- invoker = createFnInvoker([wrappedHook]);
- } else {
- /* istanbul ignore if */
- if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
- // already a merged invoker
- invoker = oldHook;
- invoker.fns.push(wrappedHook);
- } else {
- // existing plain hook
- invoker = createFnInvoker([oldHook, wrappedHook]);
- }
- }
- invoker.merged = true;
- def[hookKey] = invoker;
- }
- /* */
- function extractPropsFromVNodeData (
- data,
- Ctor,
- tag
- ) {
- // we are only extracting raw values here.
- // validation and default values are handled in the child
- // component itself.
- var propOptions = Ctor.options.props;
- if (isUndef(propOptions)) {
- return
- }
- var res = {};
- var attrs = data.attrs;
- var props = data.props;
- if (isDef(attrs) || isDef(props)) {
- for (var key in propOptions) {
- var altKey = hyphenate(key);
- if (true) {
- var keyInLowerCase = key.toLowerCase();
- if (
- key !== keyInLowerCase &&
- attrs && hasOwn(attrs, keyInLowerCase)
- ) {
- tip(
- "Prop \"" + keyInLowerCase + "\" is passed to component " +
- (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
- " \"" + key + "\". " +
- "Note that HTML attributes are case-insensitive and camelCased " +
- "props need to use their kebab-case equivalents when using in-DOM " +
- "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
- );
- }
- }
- checkProp(res, props, key, altKey, true) ||
- checkProp(res, attrs, key, altKey, false);
- }
- }
- return res
- }
- function checkProp (
- res,
- hash,
- key,
- altKey,
- preserve
- ) {
- if (isDef(hash)) {
- if (hasOwn(hash, key)) {
- res[key] = hash[key];
- if (!preserve) {
- delete hash[key];
- }
- return true
- } else if (hasOwn(hash, altKey)) {
- res[key] = hash[altKey];
- if (!preserve) {
- delete hash[altKey];
- }
- return true
- }
- }
- return false
- }
- /* */
- // The template compiler attempts to minimize the need for normalization by
- // statically analyzing the template at compile time.
- //
- // For plain HTML markup, normalization can be completely skipped because the
- // generated render function is guaranteed to return Array<VNode>. There are
- // two cases where extra normalization is needed:
- // 1. When the children contains components - because a functional component
- // may return an Array instead of a single root. In this case, just a simple
- // normalization is needed - if any child is an Array, we flatten the whole
- // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
- // because functional components already normalize their own children.
- function simpleNormalizeChildren (children) {
- for (var i = 0; i < children.length; i++) {
- if (Array.isArray(children[i])) {
- return Array.prototype.concat.apply([], children)
- }
- }
- return children
- }
- // 2. When the children contains constructs that always generated nested Arrays,
- // e.g. <template>, <slot>, v-for, or when the children is provided by user
- // with hand-written render functions / JSX. In such cases a full normalization
- // is needed to cater to all possible types of children values.
- function normalizeChildren (children) {
- return isPrimitive(children)
- ? [createTextVNode(children)]
- : Array.isArray(children)
- ? normalizeArrayChildren(children)
- : undefined
- }
- function isTextNode (node) {
- return isDef(node) && isDef(node.text) && isFalse(node.isComment)
- }
- function normalizeArrayChildren (children, nestedIndex) {
- var res = [];
- var i, c, lastIndex, last;
- for (i = 0; i < children.length; i++) {
- c = children[i];
- if (isUndef(c) || typeof c === 'boolean') { continue }
- lastIndex = res.length - 1;
- last = res[lastIndex];
- // nested
- if (Array.isArray(c)) {
- if (c.length > 0) {
- c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
- // merge adjacent text nodes
- if (isTextNode(c[0]) && isTextNode(last)) {
- res[lastIndex] = createTextVNode(last.text + (c[0]).text);
- c.shift();
- }
- res.push.apply(res, c);
- }
- } else if (isPrimitive(c)) {
- if (isTextNode(last)) {
- // merge adjacent text nodes
- // this is necessary for SSR hydration because text nodes are
- // essentially merged when rendered to HTML strings
- res[lastIndex] = createTextVNode(last.text + c);
- } else if (c !== '') {
- // convert primitive to vnode
- res.push(createTextVNode(c));
- }
- } else {
- if (isTextNode(c) && isTextNode(last)) {
- // merge adjacent text nodes
- res[lastIndex] = createTextVNode(last.text + c.text);
- } else {
- // default key for nested array children (likely generated by v-for)
- if (isTrue(children._isVList) &&
- isDef(c.tag) &&
- isUndef(c.key) &&
- isDef(nestedIndex)) {
- c.key = "__vlist" + nestedIndex + "_" + i + "__";
- }
- res.push(c);
- }
- }
- }
- return res
- }
- /* */
- function initProvide (vm) {
- var provide = vm.$options.provide;
- if (provide) {
- vm._provided = typeof provide === 'function'
- ? provide.call(vm)
- : provide;
- }
- }
- function initInjections (vm) {
- var result = resolveInject(vm.$options.inject, vm);
- if (result) {
- toggleObserving(false);
- Object.keys(result).forEach(function (key) {
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, key, result[key], function () {
- warn(
- "Avoid mutating an injected value directly since the changes will be " +
- "overwritten whenever the provided component re-renders. " +
- "injection being mutated: \"" + key + "\"",
- vm
- );
- });
- } else {}
- });
- toggleObserving(true);
- }
- }
- function resolveInject (inject, vm) {
- if (inject) {
- // inject is :any because flow is not smart enough to figure out cached
- var result = Object.create(null);
- var keys = hasSymbol
- ? Reflect.ownKeys(inject)
- : Object.keys(inject);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- // #6574 in case the inject object is observed...
- if (key === '__ob__') { continue }
- var provideKey = inject[key].from;
- var source = vm;
- while (source) {
- if (source._provided && hasOwn(source._provided, provideKey)) {
- result[key] = source._provided[provideKey];
- break
- }
- source = source.$parent;
- }
- if (!source) {
- if ('default' in inject[key]) {
- var provideDefault = inject[key].default;
- result[key] = typeof provideDefault === 'function'
- ? provideDefault.call(vm)
- : provideDefault;
- } else if (true) {
- warn(("Injection \"" + key + "\" not found"), vm);
- }
- }
- }
- return result
- }
- }
- /* */
- /**
- * Runtime helper for resolving raw children VNodes into a slot object.
- */
- function resolveSlots (
- children,
- context
- ) {
- if (!children || !children.length) {
- return {}
- }
- var slots = {};
- for (var i = 0, l = children.length; i < l; i++) {
- var child = children[i];
- var data = child.data;
- // remove slot attribute if the node is resolved as a Vue slot node
- if (data && data.attrs && data.attrs.slot) {
- delete data.attrs.slot;
- }
- // named slots should only be respected if the vnode was rendered in the
- // same context.
- if ((child.context === context || child.fnContext === context) &&
- data && data.slot != null
- ) {
- var name = data.slot;
- var slot = (slots[name] || (slots[name] = []));
- if (child.tag === 'template') {
- slot.push.apply(slot, child.children || []);
- } else {
- slot.push(child);
- }
- } else {
- (slots.default || (slots.default = [])).push(child);
- }
- }
- // ignore slots that contains only whitespace
- for (var name$1 in slots) {
- if (slots[name$1].every(isWhitespace)) {
- delete slots[name$1];
- }
- }
- return slots
- }
- function isWhitespace (node) {
- return (node.isComment && !node.asyncFactory) || node.text === ' '
- }
- /* */
- function normalizeScopedSlots (
- slots,
- normalSlots,
- prevSlots
- ) {
- var res;
- var hasNormalSlots = Object.keys(normalSlots).length > 0;
- var isStable = slots ? !!slots.$stable : !hasNormalSlots;
- var key = slots && slots.$key;
- if (!slots) {
- res = {};
- } else if (slots._normalized) {
- // fast path 1: child component re-render only, parent did not change
- return slots._normalized
- } else if (
- isStable &&
- prevSlots &&
- prevSlots !== emptyObject &&
- key === prevSlots.$key &&
- !hasNormalSlots &&
- !prevSlots.$hasNormal
- ) {
- // fast path 2: stable scoped slots w/ no normal slots to proxy,
- // only need to normalize once
- return prevSlots
- } else {
- res = {};
- for (var key$1 in slots) {
- if (slots[key$1] && key$1[0] !== '$') {
- res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
- }
- }
- }
- // expose normal slots on scopedSlots
- for (var key$2 in normalSlots) {
- if (!(key$2 in res)) {
- res[key$2] = proxyNormalSlot(normalSlots, key$2);
- }
- }
- // avoriaz seems to mock a non-extensible $scopedSlots object
- // and when that is passed down this would cause an error
- if (slots && Object.isExtensible(slots)) {
- (slots)._normalized = res;
- }
- def(res, '$stable', isStable);
- def(res, '$key', key);
- def(res, '$hasNormal', hasNormalSlots);
- return res
- }
- function normalizeScopedSlot(normalSlots, key, fn) {
- var normalized = function () {
- var res = arguments.length ? fn.apply(null, arguments) : fn({});
- res = res && typeof res === 'object' && !Array.isArray(res)
- ? [res] // single vnode
- : normalizeChildren(res);
- return res && (
- res.length === 0 ||
- (res.length === 1 && res[0].isComment) // #9658
- ) ? undefined
- : res
- };
- // this is a slot using the new v-slot syntax without scope. although it is
- // compiled as a scoped slot, render fn users would expect it to be present
- // on this.$slots because the usage is semantically a normal slot.
- if (fn.proxy) {
- Object.defineProperty(normalSlots, key, {
- get: normalized,
- enumerable: true,
- configurable: true
- });
- }
- return normalized
- }
- function proxyNormalSlot(slots, key) {
- return function () { return slots[key]; }
- }
- /* */
- /**
- * Runtime helper for rendering v-for lists.
- */
- function renderList (
- val,
- render
- ) {
- var ret, i, l, keys, key;
- if (Array.isArray(val) || typeof val === 'string') {
- ret = new Array(val.length);
- for (i = 0, l = val.length; i < l; i++) {
- ret[i] = render(val[i], i);
- }
- } else if (typeof val === 'number') {
- ret = new Array(val);
- for (i = 0; i < val; i++) {
- ret[i] = render(i + 1, i);
- }
- } else if (isObject(val)) {
- if (hasSymbol && val[Symbol.iterator]) {
- ret = [];
- var iterator = val[Symbol.iterator]();
- var result = iterator.next();
- while (!result.done) {
- ret.push(render(result.value, ret.length));
- result = iterator.next();
- }
- } else {
- keys = Object.keys(val);
- ret = new Array(keys.length);
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- ret[i] = render(val[key], key, i);
- }
- }
- }
- if (!isDef(ret)) {
- ret = [];
- }
- (ret)._isVList = true;
- return ret
- }
- /* */
- /**
- * Runtime helper for rendering <slot>
- */
- function renderSlot (
- name,
- fallback,
- props,
- bindObject
- ) {
- var scopedSlotFn = this.$scopedSlots[name];
- var nodes;
- if (scopedSlotFn) { // scoped slot
- props = props || {};
- if (bindObject) {
- if ( true && !isObject(bindObject)) {
- warn(
- 'slot v-bind without argument expects an Object',
- this
- );
- }
- props = extend(extend({}, bindObject), props);
- }
- nodes = scopedSlotFn(props) || fallback;
- } else {
- nodes = this.$slots[name] || fallback;
- }
- var target = props && props.slot;
- if (target) {
- return this.$createElement('template', { slot: target }, nodes)
- } else {
- return nodes
- }
- }
- /* */
- /**
- * Runtime helper for resolving filters
- */
- function resolveFilter (id) {
- return resolveAsset(this.$options, 'filters', id, true) || identity
- }
- /* */
- function isKeyNotMatch (expect, actual) {
- if (Array.isArray(expect)) {
- return expect.indexOf(actual) === -1
- } else {
- return expect !== actual
- }
- }
- /**
- * Runtime helper for checking keyCodes from config.
- * exposed as Vue.prototype._k
- * passing in eventKeyName as last argument separately for backwards compat
- */
- function checkKeyCodes (
- eventKeyCode,
- key,
- builtInKeyCode,
- eventKeyName,
- builtInKeyName
- ) {
- var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
- if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
- return isKeyNotMatch(builtInKeyName, eventKeyName)
- } else if (mappedKeyCode) {
- return isKeyNotMatch(mappedKeyCode, eventKeyCode)
- } else if (eventKeyName) {
- return hyphenate(eventKeyName) !== key
- }
- }
- /* */
- /**
- * Runtime helper for merging v-bind="object" into a VNode's data.
- */
- function bindObjectProps (
- data,
- tag,
- value,
- asProp,
- isSync
- ) {
- if (value) {
- if (!isObject(value)) {
- true && warn(
- 'v-bind without argument expects an Object or Array value',
- this
- );
- } else {
- if (Array.isArray(value)) {
- value = toObject(value);
- }
- var hash;
- var loop = function ( key ) {
- if (
- key === 'class' ||
- key === 'style' ||
- isReservedAttribute(key)
- ) {
- hash = data;
- } else {
- var type = data.attrs && data.attrs.type;
- hash = asProp || config.mustUseProp(tag, type, key)
- ? data.domProps || (data.domProps = {})
- : data.attrs || (data.attrs = {});
- }
- var camelizedKey = camelize(key);
- var hyphenatedKey = hyphenate(key);
- if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
- hash[key] = value[key];
- if (isSync) {
- var on = data.on || (data.on = {});
- on[("update:" + key)] = function ($event) {
- value[key] = $event;
- };
- }
- }
- };
- for (var key in value) loop( key );
- }
- }
- return data
- }
- /* */
- /**
- * Runtime helper for rendering static trees.
- */
- function renderStatic (
- index,
- isInFor
- ) {
- var cached = this._staticTrees || (this._staticTrees = []);
- var tree = cached[index];
- // if has already-rendered static tree and not inside v-for,
- // we can reuse the same tree.
- if (tree && !isInFor) {
- return tree
- }
- // otherwise, render a fresh tree.
- tree = cached[index] = this.$options.staticRenderFns[index].call(
- this._renderProxy,
- null,
- this // for render fns generated for functional component templates
- );
- markStatic(tree, ("__static__" + index), false);
- return tree
- }
- /**
- * Runtime helper for v-once.
- * Effectively it means marking the node as static with a unique key.
- */
- function markOnce (
- tree,
- index,
- key
- ) {
- markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
- return tree
- }
- function markStatic (
- tree,
- key,
- isOnce
- ) {
- if (Array.isArray(tree)) {
- for (var i = 0; i < tree.length; i++) {
- if (tree[i] && typeof tree[i] !== 'string') {
- markStaticNode(tree[i], (key + "_" + i), isOnce);
- }
- }
- } else {
- markStaticNode(tree, key, isOnce);
- }
- }
- function markStaticNode (node, key, isOnce) {
- node.isStatic = true;
- node.key = key;
- node.isOnce = isOnce;
- }
- /* */
- function bindObjectListeners (data, value) {
- if (value) {
- if (!isPlainObject(value)) {
- true && warn(
- 'v-on without argument expects an Object value',
- this
- );
- } else {
- var on = data.on = data.on ? extend({}, data.on) : {};
- for (var key in value) {
- var existing = on[key];
- var ours = value[key];
- on[key] = existing ? [].concat(existing, ours) : ours;
- }
- }
- }
- return data
- }
- /* */
- function resolveScopedSlots (
- fns, // see flow/vnode
- res,
- // the following are added in 2.6
- hasDynamicKeys,
- contentHashKey
- ) {
- res = res || { $stable: !hasDynamicKeys };
- for (var i = 0; i < fns.length; i++) {
- var slot = fns[i];
- if (Array.isArray(slot)) {
- resolveScopedSlots(slot, res, hasDynamicKeys);
- } else if (slot) {
- // marker for reverse proxying v-slot without scope on this.$slots
- if (slot.proxy) {
- slot.fn.proxy = true;
- }
- res[slot.key] = slot.fn;
- }
- }
- if (contentHashKey) {
- (res).$key = contentHashKey;
- }
- return res
- }
- /* */
- function bindDynamicKeys (baseObj, values) {
- for (var i = 0; i < values.length; i += 2) {
- var key = values[i];
- if (typeof key === 'string' && key) {
- baseObj[values[i]] = values[i + 1];
- } else if ( true && key !== '' && key !== null) {
- // null is a special value for explicitly removing a binding
- warn(
- ("Invalid value for dynamic directive argument (expected string or null): " + key),
- this
- );
- }
- }
- return baseObj
- }
- // helper to dynamically append modifier runtime markers to event names.
- // ensure only append when value is already string, otherwise it will be cast
- // to string and cause the type check to miss.
- function prependModifier (value, symbol) {
- return typeof value === 'string' ? symbol + value : value
- }
- /* */
- function installRenderHelpers (target) {
- target._o = markOnce;
- target._n = toNumber;
- target._s = toString;
- target._l = renderList;
- target._t = renderSlot;
- target._q = looseEqual;
- target._i = looseIndexOf;
- target._m = renderStatic;
- target._f = resolveFilter;
- target._k = checkKeyCodes;
- target._b = bindObjectProps;
- target._v = createTextVNode;
- target._e = createEmptyVNode;
- target._u = resolveScopedSlots;
- target._g = bindObjectListeners;
- target._d = bindDynamicKeys;
- target._p = prependModifier;
- }
- /* */
- function FunctionalRenderContext (
- data,
- props,
- children,
- parent,
- Ctor
- ) {
- var this$1 = this;
- var options = Ctor.options;
- // ensure the createElement function in functional components
- // gets a unique context - this is necessary for correct named slot check
- var contextVm;
- if (hasOwn(parent, '_uid')) {
- contextVm = Object.create(parent);
- // $flow-disable-line
- contextVm._original = parent;
- } else {
- // the context vm passed in is a functional context as well.
- // in this case we want to make sure we are able to get a hold to the
- // real context instance.
- contextVm = parent;
- // $flow-disable-line
- parent = parent._original;
- }
- var isCompiled = isTrue(options._compiled);
- var needNormalization = !isCompiled;
- this.data = data;
- this.props = props;
- this.children = children;
- this.parent = parent;
- this.listeners = data.on || emptyObject;
- this.injections = resolveInject(options.inject, parent);
- this.slots = function () {
- if (!this$1.$slots) {
- normalizeScopedSlots(
- data.scopedSlots,
- this$1.$slots = resolveSlots(children, parent)
- );
- }
- return this$1.$slots
- };
- Object.defineProperty(this, 'scopedSlots', ({
- enumerable: true,
- get: function get () {
- return normalizeScopedSlots(data.scopedSlots, this.slots())
- }
- }));
- // support for compiled functional template
- if (isCompiled) {
- // exposing $options for renderStatic()
- this.$options = options;
- // pre-resolve slots for renderSlot()
- this.$slots = this.slots();
- this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
- }
- if (options._scopeId) {
- this._c = function (a, b, c, d) {
- var vnode = createElement(contextVm, a, b, c, d, needNormalization);
- if (vnode && !Array.isArray(vnode)) {
- vnode.fnScopeId = options._scopeId;
- vnode.fnContext = parent;
- }
- return vnode
- };
- } else {
- this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
- }
- }
- installRenderHelpers(FunctionalRenderContext.prototype);
- function createFunctionalComponent (
- Ctor,
- propsData,
- data,
- contextVm,
- children
- ) {
- var options = Ctor.options;
- var props = {};
- var propOptions = options.props;
- if (isDef(propOptions)) {
- for (var key in propOptions) {
- props[key] = validateProp(key, propOptions, propsData || emptyObject);
- }
- } else {
- if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
- if (isDef(data.props)) { mergeProps(props, data.props); }
- }
- var renderContext = new FunctionalRenderContext(
- data,
- props,
- children,
- contextVm,
- Ctor
- );
- var vnode = options.render.call(null, renderContext._c, renderContext);
- if (vnode instanceof VNode) {
- return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
- } else if (Array.isArray(vnode)) {
- var vnodes = normalizeChildren(vnode) || [];
- var res = new Array(vnodes.length);
- for (var i = 0; i < vnodes.length; i++) {
- res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
- }
- return res
- }
- }
- function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
- // #7817 clone node before setting fnContext, otherwise if the node is reused
- // (e.g. it was from a cached normal slot) the fnContext causes named slots
- // that should not be matched to match.
- var clone = cloneVNode(vnode);
- clone.fnContext = contextVm;
- clone.fnOptions = options;
- if (true) {
- (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
- }
- if (data.slot) {
- (clone.data || (clone.data = {})).slot = data.slot;
- }
- return clone
- }
- function mergeProps (to, from) {
- for (var key in from) {
- to[camelize(key)] = from[key];
- }
- }
- /* */
- /* */
- /* */
- /* */
- // inline hooks to be invoked on component VNodes during patch
- var componentVNodeHooks = {
- init: function init (vnode, hydrating) {
- if (
- vnode.componentInstance &&
- !vnode.componentInstance._isDestroyed &&
- vnode.data.keepAlive
- ) {
- // kept-alive components, treat as a patch
- var mountedNode = vnode; // work around flow
- componentVNodeHooks.prepatch(mountedNode, mountedNode);
- } else {
- var child = vnode.componentInstance = createComponentInstanceForVnode(
- vnode,
- activeInstance
- );
- child.$mount(hydrating ? vnode.elm : undefined, hydrating);
- }
- },
- prepatch: function prepatch (oldVnode, vnode) {
- var options = vnode.componentOptions;
- var child = vnode.componentInstance = oldVnode.componentInstance;
- updateChildComponent(
- child,
- options.propsData, // updated props
- options.listeners, // updated listeners
- vnode, // new parent vnode
- options.children // new children
- );
- },
- insert: function insert (vnode) {
- var context = vnode.context;
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isMounted) {
- componentInstance._isMounted = true;
- callHook(componentInstance, 'mounted');
- }
- if (vnode.data.keepAlive) {
- if (context._isMounted) {
- // vue-router#1212
- // During updates, a kept-alive component's child components may
- // change, so directly walking the tree here may call activated hooks
- // on incorrect children. Instead we push them into a queue which will
- // be processed after the whole patch process ended.
- queueActivatedComponent(componentInstance);
- } else {
- activateChildComponent(componentInstance, true /* direct */);
- }
- }
- },
- destroy: function destroy (vnode) {
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isDestroyed) {
- if (!vnode.data.keepAlive) {
- componentInstance.$destroy();
- } else {
- deactivateChildComponent(componentInstance, true /* direct */);
- }
- }
- }
- };
- var hooksToMerge = Object.keys(componentVNodeHooks);
- function createComponent (
- Ctor,
- data,
- context,
- children,
- tag
- ) {
- if (isUndef(Ctor)) {
- return
- }
- var baseCtor = context.$options._base;
- // plain options object: turn it into a constructor
- if (isObject(Ctor)) {
- Ctor = baseCtor.extend(Ctor);
- }
- // if at this stage it's not a constructor or an async component factory,
- // reject.
- if (typeof Ctor !== 'function') {
- if (true) {
- warn(("Invalid Component definition: " + (String(Ctor))), context);
- }
- return
- }
- // async component
- var asyncFactory;
- if (isUndef(Ctor.cid)) {
- asyncFactory = Ctor;
- Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
- if (Ctor === undefined) {
- // return a placeholder node for async component, which is rendered
- // as a comment node but preserves all the raw information for the node.
- // the information will be used for async server-rendering and hydration.
- return createAsyncPlaceholder(
- asyncFactory,
- data,
- context,
- children,
- tag
- )
- }
- }
- data = data || {};
- // resolve constructor options in case global mixins are applied after
- // component constructor creation
- resolveConstructorOptions(Ctor);
- // transform component v-model data into props & events
- if (isDef(data.model)) {
- transformModel(Ctor.options, data);
- }
- // extract props
- var propsData = extractPropsFromVNodeData(data, Ctor, tag);
- // functional component
- if (isTrue(Ctor.options.functional)) {
- return createFunctionalComponent(Ctor, propsData, data, context, children)
- }
- // extract listeners, since these needs to be treated as
- // child component listeners instead of DOM listeners
- var listeners = data.on;
- // replace with listeners with .native modifier
- // so it gets processed during parent component patch.
- data.on = data.nativeOn;
- if (isTrue(Ctor.options.abstract)) {
- // abstract components do not keep anything
- // other than props & listeners & slot
- // work around flow
- var slot = data.slot;
- data = {};
- if (slot) {
- data.slot = slot;
- }
- }
- // install component management hooks onto the placeholder node
- installComponentHooks(data);
- // return a placeholder vnode
- var name = Ctor.options.name || tag;
- var vnode = new VNode(
- ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
- data, undefined, undefined, undefined, context,
- { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
- asyncFactory
- );
- return vnode
- }
- function createComponentInstanceForVnode (
- vnode, // we know it's MountedComponentVNode but flow doesn't
- parent // activeInstance in lifecycle state
- ) {
- var options = {
- _isComponent: true,
- _parentVnode: vnode,
- parent: parent
- };
- // check inline-template render functions
- var inlineTemplate = vnode.data.inlineTemplate;
- if (isDef(inlineTemplate)) {
- options.render = inlineTemplate.render;
- options.staticRenderFns = inlineTemplate.staticRenderFns;
- }
- return new vnode.componentOptions.Ctor(options)
- }
- function installComponentHooks (data) {
- var hooks = data.hook || (data.hook = {});
- for (var i = 0; i < hooksToMerge.length; i++) {
- var key = hooksToMerge[i];
- var existing = hooks[key];
- var toMerge = componentVNodeHooks[key];
- if (existing !== toMerge && !(existing && existing._merged)) {
- hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
- }
- }
- }
- function mergeHook$1 (f1, f2) {
- var merged = function (a, b) {
- // flow complains about extra args which is why we use any
- f1(a, b);
- f2(a, b);
- };
- merged._merged = true;
- return merged
- }
- // transform component v-model info (value and callback) into
- // prop and event handler respectively.
- function transformModel (options, data) {
- var prop = (options.model && options.model.prop) || 'value';
- var event = (options.model && options.model.event) || 'input'
- ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
- var on = data.on || (data.on = {});
- var existing = on[event];
- var callback = data.model.callback;
- if (isDef(existing)) {
- if (
- Array.isArray(existing)
- ? existing.indexOf(callback) === -1
- : existing !== callback
- ) {
- on[event] = [callback].concat(existing);
- }
- } else {
- on[event] = callback;
- }
- }
- /* */
- var SIMPLE_NORMALIZE = 1;
- var ALWAYS_NORMALIZE = 2;
- // wrapper function for providing a more flexible interface
- // without getting yelled at by flow
- function createElement (
- context,
- tag,
- data,
- children,
- normalizationType,
- alwaysNormalize
- ) {
- if (Array.isArray(data) || isPrimitive(data)) {
- normalizationType = children;
- children = data;
- data = undefined;
- }
- if (isTrue(alwaysNormalize)) {
- normalizationType = ALWAYS_NORMALIZE;
- }
- return _createElement(context, tag, data, children, normalizationType)
- }
- function _createElement (
- context,
- tag,
- data,
- children,
- normalizationType
- ) {
- if (isDef(data) && isDef((data).__ob__)) {
- true && warn(
- "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
- 'Always create fresh vnode data objects in each render!',
- context
- );
- return createEmptyVNode()
- }
- // object syntax in v-bind
- if (isDef(data) && isDef(data.is)) {
- tag = data.is;
- }
- if (!tag) {
- // in case of component :is set to falsy value
- return createEmptyVNode()
- }
- // warn against non-primitive key
- if ( true &&
- isDef(data) && isDef(data.key) && !isPrimitive(data.key)
- ) {
- {
- warn(
- 'Avoid using non-primitive value as key, ' +
- 'use string/number value instead.',
- context
- );
- }
- }
- // support single function children as default scoped slot
- if (Array.isArray(children) &&
- typeof children[0] === 'function'
- ) {
- data = data || {};
- data.scopedSlots = { default: children[0] };
- children.length = 0;
- }
- if (normalizationType === ALWAYS_NORMALIZE) {
- children = normalizeChildren(children);
- } else if (normalizationType === SIMPLE_NORMALIZE) {
- children = simpleNormalizeChildren(children);
- }
- var vnode, ns;
- if (typeof tag === 'string') {
- var Ctor;
- ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
- if (config.isReservedTag(tag)) {
- // platform built-in elements
- if ( true && isDef(data) && isDef(data.nativeOn)) {
- warn(
- ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
- context
- );
- }
- vnode = new VNode(
- config.parsePlatformTagName(tag), data, children,
- undefined, undefined, context
- );
- } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
- // component
- vnode = createComponent(Ctor, data, context, children, tag);
- } else {
- // unknown or unlisted namespaced elements
- // check at runtime because it may get assigned a namespace when its
- // parent normalizes children
- vnode = new VNode(
- tag, data, children,
- undefined, undefined, context
- );
- }
- } else {
- // direct component options / constructor
- vnode = createComponent(tag, data, context, children);
- }
- if (Array.isArray(vnode)) {
- return vnode
- } else if (isDef(vnode)) {
- if (isDef(ns)) { applyNS(vnode, ns); }
- if (isDef(data)) { registerDeepBindings(data); }
- return vnode
- } else {
- return createEmptyVNode()
- }
- }
- function applyNS (vnode, ns, force) {
- vnode.ns = ns;
- if (vnode.tag === 'foreignObject') {
- // use default namespace inside foreignObject
- ns = undefined;
- force = true;
- }
- if (isDef(vnode.children)) {
- for (var i = 0, l = vnode.children.length; i < l; i++) {
- var child = vnode.children[i];
- if (isDef(child.tag) && (
- isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
- applyNS(child, ns, force);
- }
- }
- }
- }
- // ref #5318
- // necessary to ensure parent re-render when deep bindings like :style and
- // :class are used on slot nodes
- function registerDeepBindings (data) {
- if (isObject(data.style)) {
- traverse(data.style);
- }
- if (isObject(data.class)) {
- traverse(data.class);
- }
- }
- /* */
- function initRender (vm) {
- vm._vnode = null; // the root of the child tree
- vm._staticTrees = null; // v-once cached trees
- var options = vm.$options;
- var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
- var renderContext = parentVnode && parentVnode.context;
- vm.$slots = resolveSlots(options._renderChildren, renderContext);
- vm.$scopedSlots = emptyObject;
- // bind the createElement fn to this instance
- // so that we get proper render context inside it.
- // args order: tag, data, children, normalizationType, alwaysNormalize
- // internal version is used by render functions compiled from templates
- vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
- // normalization is always applied for the public version, used in
- // user-written render functions.
- vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
- // $attrs & $listeners are exposed for easier HOC creation.
- // they need to be reactive so that HOCs using them are always updated
- var parentData = parentVnode && parentVnode.data;
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
- !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
- }, true);
- defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
- !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
- }, true);
- } else {}
- }
- var currentRenderingInstance = null;
- function renderMixin (Vue) {
- // install runtime convenience helpers
- installRenderHelpers(Vue.prototype);
- Vue.prototype.$nextTick = function (fn) {
- return nextTick(fn, this)
- };
- Vue.prototype._render = function () {
- var vm = this;
- var ref = vm.$options;
- var render = ref.render;
- var _parentVnode = ref._parentVnode;
- if (_parentVnode) {
- vm.$scopedSlots = normalizeScopedSlots(
- _parentVnode.data.scopedSlots,
- vm.$slots,
- vm.$scopedSlots
- );
- }
- // set parent vnode. this allows render functions to have access
- // to the data on the placeholder node.
- vm.$vnode = _parentVnode;
- // render self
- var vnode;
- try {
- // There's no need to maintain a stack because all render fns are called
- // separately from one another. Nested component's render fns are called
- // when parent component is patched.
- currentRenderingInstance = vm;
- vnode = render.call(vm._renderProxy, vm.$createElement);
- } catch (e) {
- handleError(e, vm, "render");
- // return error render result,
- // or previous vnode to prevent render error causing blank component
- /* istanbul ignore else */
- if ( true && vm.$options.renderError) {
- try {
- vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
- } catch (e) {
- handleError(e, vm, "renderError");
- vnode = vm._vnode;
- }
- } else {
- vnode = vm._vnode;
- }
- } finally {
- currentRenderingInstance = null;
- }
- // if the returned array contains only a single node, allow it
- if (Array.isArray(vnode) && vnode.length === 1) {
- vnode = vnode[0];
- }
- // return empty vnode in case the render function errored out
- if (!(vnode instanceof VNode)) {
- if ( true && Array.isArray(vnode)) {
- warn(
- 'Multiple root nodes returned from render function. Render function ' +
- 'should return a single root node.',
- vm
- );
- }
- vnode = createEmptyVNode();
- }
- // set parent
- vnode.parent = _parentVnode;
- return vnode
- };
- }
- /* */
- function ensureCtor (comp, base) {
- if (
- comp.__esModule ||
- (hasSymbol && comp[Symbol.toStringTag] === 'Module')
- ) {
- comp = comp.default;
- }
- return isObject(comp)
- ? base.extend(comp)
- : comp
- }
- function createAsyncPlaceholder (
- factory,
- data,
- context,
- children,
- tag
- ) {
- var node = createEmptyVNode();
- node.asyncFactory = factory;
- node.asyncMeta = { data: data, context: context, children: children, tag: tag };
- return node
- }
- function resolveAsyncComponent (
- factory,
- baseCtor
- ) {
- if (isTrue(factory.error) && isDef(factory.errorComp)) {
- return factory.errorComp
- }
- if (isDef(factory.resolved)) {
- return factory.resolved
- }
- var owner = currentRenderingInstance;
- if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
- // already pending
- factory.owners.push(owner);
- }
- if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
- return factory.loadingComp
- }
- if (owner && !isDef(factory.owners)) {
- var owners = factory.owners = [owner];
- var sync = true;
- var timerLoading = null;
- var timerTimeout = null
- ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
- var forceRender = function (renderCompleted) {
- for (var i = 0, l = owners.length; i < l; i++) {
- (owners[i]).$forceUpdate();
- }
- if (renderCompleted) {
- owners.length = 0;
- if (timerLoading !== null) {
- clearTimeout(timerLoading);
- timerLoading = null;
- }
- if (timerTimeout !== null) {
- clearTimeout(timerTimeout);
- timerTimeout = null;
- }
- }
- };
- var resolve = once(function (res) {
- // cache resolved
- factory.resolved = ensureCtor(res, baseCtor);
- // invoke callbacks only if this is not a synchronous resolve
- // (async resolves are shimmed as synchronous during SSR)
- if (!sync) {
- forceRender(true);
- } else {
- owners.length = 0;
- }
- });
- var reject = once(function (reason) {
- true && warn(
- "Failed to resolve async component: " + (String(factory)) +
- (reason ? ("\nReason: " + reason) : '')
- );
- if (isDef(factory.errorComp)) {
- factory.error = true;
- forceRender(true);
- }
- });
- var res = factory(resolve, reject);
- if (isObject(res)) {
- if (isPromise(res)) {
- // () => Promise
- if (isUndef(factory.resolved)) {
- res.then(resolve, reject);
- }
- } else if (isPromise(res.component)) {
- res.component.then(resolve, reject);
- if (isDef(res.error)) {
- factory.errorComp = ensureCtor(res.error, baseCtor);
- }
- if (isDef(res.loading)) {
- factory.loadingComp = ensureCtor(res.loading, baseCtor);
- if (res.delay === 0) {
- factory.loading = true;
- } else {
- timerLoading = setTimeout(function () {
- timerLoading = null;
- if (isUndef(factory.resolved) && isUndef(factory.error)) {
- factory.loading = true;
- forceRender(false);
- }
- }, res.delay || 200);
- }
- }
- if (isDef(res.timeout)) {
- timerTimeout = setTimeout(function () {
- timerTimeout = null;
- if (isUndef(factory.resolved)) {
- reject(
- true
- ? ("timeout (" + (res.timeout) + "ms)")
- : undefined
- );
- }
- }, res.timeout);
- }
- }
- }
- sync = false;
- // return in case resolved synchronously
- return factory.loading
- ? factory.loadingComp
- : factory.resolved
- }
- }
- /* */
- function isAsyncPlaceholder (node) {
- return node.isComment && node.asyncFactory
- }
- /* */
- function getFirstComponentChild (children) {
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- var c = children[i];
- if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
- return c
- }
- }
- }
- }
- /* */
- /* */
- function initEvents (vm) {
- vm._events = Object.create(null);
- vm._hasHookEvent = false;
- // init parent attached events
- var listeners = vm.$options._parentListeners;
- if (listeners) {
- updateComponentListeners(vm, listeners);
- }
- }
- var target;
- function add (event, fn) {
- target.$on(event, fn);
- }
- function remove$1 (event, fn) {
- target.$off(event, fn);
- }
- function createOnceHandler (event, fn) {
- var _target = target;
- return function onceHandler () {
- var res = fn.apply(null, arguments);
- if (res !== null) {
- _target.$off(event, onceHandler);
- }
- }
- }
- function updateComponentListeners (
- vm,
- listeners,
- oldListeners
- ) {
- target = vm;
- updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
- target = undefined;
- }
- function eventsMixin (Vue) {
- var hookRE = /^hook:/;
- Vue.prototype.$on = function (event, fn) {
- var vm = this;
- if (Array.isArray(event)) {
- for (var i = 0, l = event.length; i < l; i++) {
- vm.$on(event[i], fn);
- }
- } else {
- (vm._events[event] || (vm._events[event] = [])).push(fn);
- // optimize hook:event cost by using a boolean flag marked at registration
- // instead of a hash lookup
- if (hookRE.test(event)) {
- vm._hasHookEvent = true;
- }
- }
- return vm
- };
- Vue.prototype.$once = function (event, fn) {
- var vm = this;
- function on () {
- vm.$off(event, on);
- fn.apply(vm, arguments);
- }
- on.fn = fn;
- vm.$on(event, on);
- return vm
- };
- Vue.prototype.$off = function (event, fn) {
- var vm = this;
- // all
- if (!arguments.length) {
- vm._events = Object.create(null);
- return vm
- }
- // array of events
- if (Array.isArray(event)) {
- for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
- vm.$off(event[i$1], fn);
- }
- return vm
- }
- // specific event
- var cbs = vm._events[event];
- if (!cbs) {
- return vm
- }
- if (!fn) {
- vm._events[event] = null;
- return vm
- }
- // specific handler
- var cb;
- var i = cbs.length;
- while (i--) {
- cb = cbs[i];
- if (cb === fn || cb.fn === fn) {
- cbs.splice(i, 1);
- break
- }
- }
- return vm
- };
- Vue.prototype.$emit = function (event) {
- var vm = this;
- if (true) {
- var lowerCaseEvent = event.toLowerCase();
- if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
- tip(
- "Event \"" + lowerCaseEvent + "\" is emitted in component " +
- (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
- "Note that HTML attributes are case-insensitive and you cannot use " +
- "v-on to listen to camelCase events when using in-DOM templates. " +
- "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
- );
- }
- }
- var cbs = vm._events[event];
- if (cbs) {
- cbs = cbs.length > 1 ? toArray(cbs) : cbs;
- var args = toArray(arguments, 1);
- var info = "event handler for \"" + event + "\"";
- for (var i = 0, l = cbs.length; i < l; i++) {
- invokeWithErrorHandling(cbs[i], vm, args, vm, info);
- }
- }
- return vm
- };
- }
- /* */
- var activeInstance = null;
- var isUpdatingChildComponent = false;
- function setActiveInstance(vm) {
- var prevActiveInstance = activeInstance;
- activeInstance = vm;
- return function () {
- activeInstance = prevActiveInstance;
- }
- }
- function initLifecycle (vm) {
- var options = vm.$options;
- // locate first non-abstract parent
- var parent = options.parent;
- if (parent && !options.abstract) {
- while (parent.$options.abstract && parent.$parent) {
- parent = parent.$parent;
- }
- parent.$children.push(vm);
- }
- vm.$parent = parent;
- vm.$root = parent ? parent.$root : vm;
- vm.$children = [];
- vm.$refs = {};
- vm._watcher = null;
- vm._inactive = null;
- vm._directInactive = false;
- vm._isMounted = false;
- vm._isDestroyed = false;
- vm._isBeingDestroyed = false;
- }
- function lifecycleMixin (Vue) {
- Vue.prototype._update = function (vnode, hydrating) {
- var vm = this;
- var prevEl = vm.$el;
- var prevVnode = vm._vnode;
- var restoreActiveInstance = setActiveInstance(vm);
- vm._vnode = vnode;
- // Vue.prototype.__patch__ is injected in entry points
- // based on the rendering backend used.
- if (!prevVnode) {
- // initial render
- vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
- } else {
- // updates
- vm.$el = vm.__patch__(prevVnode, vnode);
- }
- restoreActiveInstance();
- // update __vue__ reference
- if (prevEl) {
- prevEl.__vue__ = null;
- }
- if (vm.$el) {
- vm.$el.__vue__ = vm;
- }
- // if parent is an HOC, update its $el as well
- if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
- vm.$parent.$el = vm.$el;
- }
- // updated hook is called by the scheduler to ensure that children are
- // updated in a parent's updated hook.
- };
- Vue.prototype.$forceUpdate = function () {
- var vm = this;
- if (vm._watcher) {
- vm._watcher.update();
- }
- };
- Vue.prototype.$destroy = function () {
- var vm = this;
- if (vm._isBeingDestroyed) {
- return
- }
- callHook(vm, 'beforeDestroy');
- vm._isBeingDestroyed = true;
- // remove self from parent
- var parent = vm.$parent;
- if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
- remove(parent.$children, vm);
- }
- // teardown watchers
- if (vm._watcher) {
- vm._watcher.teardown();
- }
- var i = vm._watchers.length;
- while (i--) {
- vm._watchers[i].teardown();
- }
- // remove reference from data ob
- // frozen object may not have observer.
- if (vm._data.__ob__) {
- vm._data.__ob__.vmCount--;
- }
- // call the last hook...
- vm._isDestroyed = true;
- // invoke destroy hooks on current rendered tree
- vm.__patch__(vm._vnode, null);
- // fire destroyed hook
- callHook(vm, 'destroyed');
- // turn off all instance listeners.
- vm.$off();
- // remove __vue__ reference
- if (vm.$el) {
- vm.$el.__vue__ = null;
- }
- // release circular reference (#6759)
- if (vm.$vnode) {
- vm.$vnode.parent = null;
- }
- };
- }
- function mountComponent (
- vm,
- el,
- hydrating
- ) {
- vm.$el = el;
- if (!vm.$options.render) {
- vm.$options.render = createEmptyVNode;
- if (true) {
- /* istanbul ignore if */
- if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
- vm.$options.el || el) {
- warn(
- 'You are using the runtime-only build of Vue where the template ' +
- 'compiler is not available. Either pre-compile the templates into ' +
- 'render functions, or use the compiler-included build.',
- vm
- );
- } else {
- warn(
- 'Failed to mount component: template or render function not defined.',
- vm
- );
- }
- }
- }
- callHook(vm, 'beforeMount');
- var updateComponent;
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- updateComponent = function () {
- var name = vm._name;
- var id = vm._uid;
- var startTag = "vue-perf-start:" + id;
- var endTag = "vue-perf-end:" + id;
- mark(startTag);
- var vnode = vm._render();
- mark(endTag);
- measure(("vue " + name + " render"), startTag, endTag);
- mark(startTag);
- vm._update(vnode, hydrating);
- mark(endTag);
- measure(("vue " + name + " patch"), startTag, endTag);
- };
- } else {
- updateComponent = function () {
- vm._update(vm._render(), hydrating);
- };
- }
- // we set this to vm._watcher inside the watcher's constructor
- // since the watcher's initial patch may call $forceUpdate (e.g. inside child
- // component's mounted hook), which relies on vm._watcher being already defined
- new Watcher(vm, updateComponent, noop, {
- before: function before () {
- if (vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'beforeUpdate');
- }
- }
- }, true /* isRenderWatcher */);
- hydrating = false;
- // manually mounted instance, call mounted on self
- // mounted is called for render-created child components in its inserted hook
- if (vm.$vnode == null) {
- vm._isMounted = true;
- callHook(vm, 'mounted');
- }
- return vm
- }
- function updateChildComponent (
- vm,
- propsData,
- listeners,
- parentVnode,
- renderChildren
- ) {
- if (true) {
- isUpdatingChildComponent = true;
- }
- // determine whether component has slot children
- // we need to do this before overwriting $options._renderChildren.
- // check if there are dynamic scopedSlots (hand-written or compiled but with
- // dynamic slot names). Static scoped slots compiled from template has the
- // "$stable" marker.
- var newScopedSlots = parentVnode.data.scopedSlots;
- var oldScopedSlots = vm.$scopedSlots;
- var hasDynamicScopedSlot = !!(
- (newScopedSlots && !newScopedSlots.$stable) ||
- (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
- (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
- );
- // Any static slot children from the parent may have changed during parent's
- // update. Dynamic scoped slots may also have changed. In such cases, a forced
- // update is necessary to ensure correctness.
- var needsForceUpdate = !!(
- renderChildren || // has new static slots
- vm.$options._renderChildren || // has old static slots
- hasDynamicScopedSlot
- );
- vm.$options._parentVnode = parentVnode;
- vm.$vnode = parentVnode; // update vm's placeholder node without re-render
- if (vm._vnode) { // update child tree's parent
- vm._vnode.parent = parentVnode;
- }
- vm.$options._renderChildren = renderChildren;
- // update $attrs and $listeners hash
- // these are also reactive so they may trigger child update if the child
- // used them during render
- vm.$attrs = parentVnode.data.attrs || emptyObject;
- vm.$listeners = listeners || emptyObject;
- // update props
- if (propsData && vm.$options.props) {
- toggleObserving(false);
- var props = vm._props;
- var propKeys = vm.$options._propKeys || [];
- for (var i = 0; i < propKeys.length; i++) {
- var key = propKeys[i];
- var propOptions = vm.$options.props; // wtf flow?
- props[key] = validateProp(key, propOptions, propsData, vm);
- }
- toggleObserving(true);
- // keep a copy of raw propsData
- vm.$options.propsData = propsData;
- }
- // update listeners
- listeners = listeners || emptyObject;
- var oldListeners = vm.$options._parentListeners;
- vm.$options._parentListeners = listeners;
- updateComponentListeners(vm, listeners, oldListeners);
- // resolve slots + force update if has children
- if (needsForceUpdate) {
- vm.$slots = resolveSlots(renderChildren, parentVnode.context);
- vm.$forceUpdate();
- }
- if (true) {
- isUpdatingChildComponent = false;
- }
- }
- function isInInactiveTree (vm) {
- while (vm && (vm = vm.$parent)) {
- if (vm._inactive) { return true }
- }
- return false
- }
- function activateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = false;
- if (isInInactiveTree(vm)) {
- return
- }
- } else if (vm._directInactive) {
- return
- }
- if (vm._inactive || vm._inactive === null) {
- vm._inactive = false;
- for (var i = 0; i < vm.$children.length; i++) {
- activateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'activated');
- }
- }
- function deactivateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = true;
- if (isInInactiveTree(vm)) {
- return
- }
- }
- if (!vm._inactive) {
- vm._inactive = true;
- for (var i = 0; i < vm.$children.length; i++) {
- deactivateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'deactivated');
- }
- }
- function callHook (vm, hook) {
- // #7573 disable dep collection when invoking lifecycle hooks
- pushTarget();
- var handlers = vm.$options[hook];
- var info = hook + " hook";
- if (handlers) {
- for (var i = 0, j = handlers.length; i < j; i++) {
- invokeWithErrorHandling(handlers[i], vm, null, vm, info);
- }
- }
- if (vm._hasHookEvent) {
- vm.$emit('hook:' + hook);
- }
- popTarget();
- }
- /* */
- var MAX_UPDATE_COUNT = 100;
- var queue = [];
- var activatedChildren = [];
- var has = {};
- var circular = {};
- var waiting = false;
- var flushing = false;
- var index = 0;
- /**
- * Reset the scheduler's state.
- */
- function resetSchedulerState () {
- index = queue.length = activatedChildren.length = 0;
- has = {};
- if (true) {
- circular = {};
- }
- waiting = flushing = false;
- }
- // Async edge case #6566 requires saving the timestamp when event listeners are
- // attached. However, calling performance.now() has a perf overhead especially
- // if the page has thousands of event listeners. Instead, we take a timestamp
- // every time the scheduler flushes and use that for all event listeners
- // attached during that flush.
- var currentFlushTimestamp = 0;
- // Async edge case fix requires storing an event listener's attach timestamp.
- var getNow = Date.now;
- // Determine what event timestamp the browser is using. Annoyingly, the
- // timestamp can either be hi-res (relative to page load) or low-res
- // (relative to UNIX epoch), so in order to compare time we have to use the
- // same timestamp type when saving the flush timestamp.
- // All IE versions use low-res event timestamps, and have problematic clock
- // implementations (#9632)
- if (inBrowser && !isIE) {
- var performance = window.performance;
- if (
- performance &&
- typeof performance.now === 'function' &&
- getNow() > document.createEvent('Event').timeStamp
- ) {
- // if the event timestamp, although evaluated AFTER the Date.now(), is
- // smaller than it, it means the event is using a hi-res timestamp,
- // and we need to use the hi-res version for event listener timestamps as
- // well.
- getNow = function () { return performance.now(); };
- }
- }
- /**
- * Flush both queues and run the watchers.
- */
- function flushSchedulerQueue () {
- currentFlushTimestamp = getNow();
- flushing = true;
- var watcher, id;
- // Sort queue before flush.
- // This ensures that:
- // 1. Components are updated from parent to child. (because parent is always
- // created before the child)
- // 2. A component's user watchers are run before its render watcher (because
- // user watchers are created before the render watcher)
- // 3. If a component is destroyed during a parent component's watcher run,
- // its watchers can be skipped.
- queue.sort(function (a, b) { return a.id - b.id; });
- // do not cache length because more watchers might be pushed
- // as we run existing watchers
- for (index = 0; index < queue.length; index++) {
- watcher = queue[index];
- if (watcher.before) {
- watcher.before();
- }
- id = watcher.id;
- has[id] = null;
- watcher.run();
- // in dev build, check and stop circular updates.
- if ( true && has[id] != null) {
- circular[id] = (circular[id] || 0) + 1;
- if (circular[id] > MAX_UPDATE_COUNT) {
- warn(
- 'You may have an infinite update loop ' + (
- watcher.user
- ? ("in watcher with expression \"" + (watcher.expression) + "\"")
- : "in a component render function."
- ),
- watcher.vm
- );
- break
- }
- }
- }
- // keep copies of post queues before resetting state
- var activatedQueue = activatedChildren.slice();
- var updatedQueue = queue.slice();
- resetSchedulerState();
- // call component updated and activated hooks
- callActivatedHooks(activatedQueue);
- callUpdatedHooks(updatedQueue);
- // devtool hook
- /* istanbul ignore if */
- if (devtools && config.devtools) {
- devtools.emit('flush');
- }
- }
- function callUpdatedHooks (queue) {
- var i = queue.length;
- while (i--) {
- var watcher = queue[i];
- var vm = watcher.vm;
- if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'updated');
- }
- }
- }
- /**
- * Queue a kept-alive component that was activated during patch.
- * The queue will be processed after the entire tree has been patched.
- */
- function queueActivatedComponent (vm) {
- // setting _inactive to false here so that a render function can
- // rely on checking whether it's in an inactive tree (e.g. router-view)
- vm._inactive = false;
- activatedChildren.push(vm);
- }
- function callActivatedHooks (queue) {
- for (var i = 0; i < queue.length; i++) {
- queue[i]._inactive = true;
- activateChildComponent(queue[i], true /* true */);
- }
- }
- /**
- * Push a watcher into the watcher queue.
- * Jobs with duplicate IDs will be skipped unless it's
- * pushed when the queue is being flushed.
- */
- function queueWatcher (watcher) {
- var id = watcher.id;
- if (has[id] == null) {
- has[id] = true;
- if (!flushing) {
- queue.push(watcher);
- } else {
- // if already flushing, splice the watcher based on its id
- // if already past its id, it will be run next immediately.
- var i = queue.length - 1;
- while (i > index && queue[i].id > watcher.id) {
- i--;
- }
- queue.splice(i + 1, 0, watcher);
- }
- // queue the flush
- if (!waiting) {
- waiting = true;
- if ( true && !config.async) {
- flushSchedulerQueue();
- return
- }
- nextTick(flushSchedulerQueue);
- }
- }
- }
- /* */
- var uid$2 = 0;
- /**
- * A watcher parses an expression, collects dependencies,
- * and fires callback when the expression value changes.
- * This is used for both the $watch() api and directives.
- */
- var Watcher = function Watcher (
- vm,
- expOrFn,
- cb,
- options,
- isRenderWatcher
- ) {
- this.vm = vm;
- if (isRenderWatcher) {
- vm._watcher = this;
- }
- vm._watchers.push(this);
- // options
- if (options) {
- this.deep = !!options.deep;
- this.user = !!options.user;
- this.lazy = !!options.lazy;
- this.sync = !!options.sync;
- this.before = options.before;
- } else {
- this.deep = this.user = this.lazy = this.sync = false;
- }
- this.cb = cb;
- this.id = ++uid$2; // uid for batching
- this.active = true;
- this.dirty = this.lazy; // for lazy watchers
- this.deps = [];
- this.newDeps = [];
- this.depIds = new _Set();
- this.newDepIds = new _Set();
- this.expression = true
- ? expOrFn.toString()
- : undefined;
- // parse expression for getter
- if (typeof expOrFn === 'function') {
- this.getter = expOrFn;
- } else {
- this.getter = parsePath(expOrFn);
- if (!this.getter) {
- this.getter = noop;
- true && warn(
- "Failed watching path: \"" + expOrFn + "\" " +
- 'Watcher only accepts simple dot-delimited paths. ' +
- 'For full control, use a function instead.',
- vm
- );
- }
- }
- this.value = this.lazy
- ? undefined
- : this.get();
- };
- /**
- * Evaluate the getter, and re-collect dependencies.
- */
- Watcher.prototype.get = function get () {
- pushTarget(this);
- var value;
- var vm = this.vm;
- try {
- value = this.getter.call(vm, vm);
- } catch (e) {
- if (this.user) {
- handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
- } else {
- throw e
- }
- } finally {
- // "touch" every property so they are all tracked as
- // dependencies for deep watching
- if (this.deep) {
- traverse(value);
- }
- popTarget();
- this.cleanupDeps();
- }
- return value
- };
- /**
- * Add a dependency to this directive.
- */
- Watcher.prototype.addDep = function addDep (dep) {
- var id = dep.id;
- if (!this.newDepIds.has(id)) {
- this.newDepIds.add(id);
- this.newDeps.push(dep);
- if (!this.depIds.has(id)) {
- dep.addSub(this);
- }
- }
- };
- /**
- * Clean up for dependency collection.
- */
- Watcher.prototype.cleanupDeps = function cleanupDeps () {
- var i = this.deps.length;
- while (i--) {
- var dep = this.deps[i];
- if (!this.newDepIds.has(dep.id)) {
- dep.removeSub(this);
- }
- }
- var tmp = this.depIds;
- this.depIds = this.newDepIds;
- this.newDepIds = tmp;
- this.newDepIds.clear();
- tmp = this.deps;
- this.deps = this.newDeps;
- this.newDeps = tmp;
- this.newDeps.length = 0;
- };
- /**
- * Subscriber interface.
- * Will be called when a dependency changes.
- */
- Watcher.prototype.update = function update () {
- /* istanbul ignore else */
- if (this.lazy) {
- this.dirty = true;
- } else if (this.sync) {
- this.run();
- } else {
- queueWatcher(this);
- }
- };
- /**
- * Scheduler job interface.
- * Will be called by the scheduler.
- */
- Watcher.prototype.run = function run () {
- if (this.active) {
- var value = this.get();
- if (
- value !== this.value ||
- // Deep watchers and watchers on Object/Arrays should fire even
- // when the value is the same, because the value may
- // have mutated.
- isObject(value) ||
- this.deep
- ) {
- // set new value
- var oldValue = this.value;
- this.value = value;
- if (this.user) {
- try {
- this.cb.call(this.vm, value, oldValue);
- } catch (e) {
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
- }
- } else {
- this.cb.call(this.vm, value, oldValue);
- }
- }
- }
- };
- /**
- * Evaluate the value of the watcher.
- * This only gets called for lazy watchers.
- */
- Watcher.prototype.evaluate = function evaluate () {
- this.value = this.get();
- this.dirty = false;
- };
- /**
- * Depend on all deps collected by this watcher.
- */
- Watcher.prototype.depend = function depend () {
- var i = this.deps.length;
- while (i--) {
- this.deps[i].depend();
- }
- };
- /**
- * Remove self from all dependencies' subscriber list.
- */
- Watcher.prototype.teardown = function teardown () {
- if (this.active) {
- // remove self from vm's watcher list
- // this is a somewhat expensive operation so we skip it
- // if the vm is being destroyed.
- if (!this.vm._isBeingDestroyed) {
- remove(this.vm._watchers, this);
- }
- var i = this.deps.length;
- while (i--) {
- this.deps[i].removeSub(this);
- }
- this.active = false;
- }
- };
- /* */
- var sharedPropertyDefinition = {
- enumerable: true,
- configurable: true,
- get: noop,
- set: noop
- };
- function proxy (target, sourceKey, key) {
- sharedPropertyDefinition.get = function proxyGetter () {
- return this[sourceKey][key]
- };
- sharedPropertyDefinition.set = function proxySetter (val) {
- this[sourceKey][key] = val;
- };
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function initState (vm) {
- vm._watchers = [];
- var opts = vm.$options;
- if (opts.props) { initProps(vm, opts.props); }
- if (opts.methods) { initMethods(vm, opts.methods); }
- if (opts.data) {
- initData(vm);
- } else {
- observe(vm._data = {}, true /* asRootData */);
- }
- if (opts.computed) { initComputed(vm, opts.computed); }
- if (opts.watch && opts.watch !== nativeWatch) {
- initWatch(vm, opts.watch);
- }
- }
- function initProps (vm, propsOptions) {
- var propsData = vm.$options.propsData || {};
- var props = vm._props = {};
- // cache prop keys so that future props updates can iterate using Array
- // instead of dynamic object key enumeration.
- var keys = vm.$options._propKeys = [];
- var isRoot = !vm.$parent;
- // root instance props should be converted
- if (!isRoot) {
- toggleObserving(false);
- }
- var loop = function ( key ) {
- keys.push(key);
- var value = validateProp(key, propsOptions, propsData, vm);
- /* istanbul ignore else */
- if (true) {
- var hyphenatedKey = hyphenate(key);
- if (isReservedAttribute(hyphenatedKey) ||
- config.isReservedAttr(hyphenatedKey)) {
- warn(
- ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
- vm
- );
- }
- defineReactive$$1(props, key, value, function () {
- if (!isRoot && !isUpdatingChildComponent) {
- warn(
- "Avoid mutating a prop directly since the value will be " +
- "overwritten whenever the parent component re-renders. " +
- "Instead, use a data or computed property based on the prop's " +
- "value. Prop being mutated: \"" + key + "\"",
- vm
- );
- }
- });
- } else {}
- // static props are already proxied on the component's prototype
- // during Vue.extend(). We only need to proxy props defined at
- // instantiation here.
- if (!(key in vm)) {
- proxy(vm, "_props", key);
- }
- };
- for (var key in propsOptions) loop( key );
- toggleObserving(true);
- }
- function initData (vm) {
- var data = vm.$options.data;
- data = vm._data = typeof data === 'function'
- ? getData(data, vm)
- : data || {};
- if (!isPlainObject(data)) {
- data = {};
- true && warn(
- 'data functions should return an object:\n' +
- 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
- vm
- );
- }
- // proxy data on instance
- var keys = Object.keys(data);
- var props = vm.$options.props;
- var methods = vm.$options.methods;
- var i = keys.length;
- while (i--) {
- var key = keys[i];
- if (true) {
- if (methods && hasOwn(methods, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a data property."),
- vm
- );
- }
- }
- if (props && hasOwn(props, key)) {
- true && warn(
- "The data property \"" + key + "\" is already declared as a prop. " +
- "Use prop default value instead.",
- vm
- );
- } else if (!isReserved(key)) {
- proxy(vm, "_data", key);
- }
- }
- // observe data
- observe(data, true /* asRootData */);
- }
- function getData (data, vm) {
- // #7573 disable dep collection when invoking data getters
- pushTarget();
- try {
- return data.call(vm, vm)
- } catch (e) {
- handleError(e, vm, "data()");
- return {}
- } finally {
- popTarget();
- }
- }
- var computedWatcherOptions = { lazy: true };
- function initComputed (vm, computed) {
- // $flow-disable-line
- var watchers = vm._computedWatchers = Object.create(null);
- // computed properties are just getters during SSR
- var isSSR = isServerRendering();
- for (var key in computed) {
- var userDef = computed[key];
- var getter = typeof userDef === 'function' ? userDef : userDef.get;
- if ( true && getter == null) {
- warn(
- ("Getter is missing for computed property \"" + key + "\"."),
- vm
- );
- }
- if (!isSSR) {
- // create internal watcher for the computed property.
- watchers[key] = new Watcher(
- vm,
- getter || noop,
- noop,
- computedWatcherOptions
- );
- }
- // component-defined computed properties are already defined on the
- // component prototype. We only need to define computed properties defined
- // at instantiation here.
- if (!(key in vm)) {
- defineComputed(vm, key, userDef);
- } else if (true) {
- if (key in vm.$data) {
- warn(("The computed property \"" + key + "\" is already defined in data."), vm);
- } else if (vm.$options.props && key in vm.$options.props) {
- warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
- }
- }
- }
- }
- function defineComputed (
- target,
- key,
- userDef
- ) {
- var shouldCache = !isServerRendering();
- if (typeof userDef === 'function') {
- sharedPropertyDefinition.get = shouldCache
- ? createComputedGetter(key)
- : createGetterInvoker(userDef);
- sharedPropertyDefinition.set = noop;
- } else {
- sharedPropertyDefinition.get = userDef.get
- ? shouldCache && userDef.cache !== false
- ? createComputedGetter(key)
- : createGetterInvoker(userDef.get)
- : noop;
- sharedPropertyDefinition.set = userDef.set || noop;
- }
- if ( true &&
- sharedPropertyDefinition.set === noop) {
- sharedPropertyDefinition.set = function () {
- warn(
- ("Computed property \"" + key + "\" was assigned to but it has no setter."),
- this
- );
- };
- }
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function createComputedGetter (key) {
- return function computedGetter () {
- var watcher = this._computedWatchers && this._computedWatchers[key];
- if (watcher) {
- if (watcher.dirty) {
- watcher.evaluate();
- }
- if (Dep.target) {
- watcher.depend();
- }
- return watcher.value
- }
- }
- }
- function createGetterInvoker(fn) {
- return function computedGetter () {
- return fn.call(this, this)
- }
- }
- function initMethods (vm, methods) {
- var props = vm.$options.props;
- for (var key in methods) {
- if (true) {
- if (typeof methods[key] !== 'function') {
- warn(
- "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
- "Did you reference the function correctly?",
- vm
- );
- }
- if (props && hasOwn(props, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a prop."),
- vm
- );
- }
- if ((key in vm) && isReserved(key)) {
- warn(
- "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
- "Avoid defining component methods that start with _ or $."
- );
- }
- }
- vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
- }
- }
- function initWatch (vm, watch) {
- for (var key in watch) {
- var handler = watch[key];
- if (Array.isArray(handler)) {
- for (var i = 0; i < handler.length; i++) {
- createWatcher(vm, key, handler[i]);
- }
- } else {
- createWatcher(vm, key, handler);
- }
- }
- }
- function createWatcher (
- vm,
- expOrFn,
- handler,
- options
- ) {
- if (isPlainObject(handler)) {
- options = handler;
- handler = handler.handler;
- }
- if (typeof handler === 'string') {
- handler = vm[handler];
- }
- return vm.$watch(expOrFn, handler, options)
- }
- function stateMixin (Vue) {
- // flow somehow has problems with directly declared definition object
- // when using Object.defineProperty, so we have to procedurally build up
- // the object here.
- var dataDef = {};
- dataDef.get = function () { return this._data };
- var propsDef = {};
- propsDef.get = function () { return this._props };
- if (true) {
- dataDef.set = function () {
- warn(
- 'Avoid replacing instance root $data. ' +
- 'Use nested data properties instead.',
- this
- );
- };
- propsDef.set = function () {
- warn("$props is readonly.", this);
- };
- }
- Object.defineProperty(Vue.prototype, '$data', dataDef);
- Object.defineProperty(Vue.prototype, '$props', propsDef);
- Vue.prototype.$set = set;
- Vue.prototype.$delete = del;
- Vue.prototype.$watch = function (
- expOrFn,
- cb,
- options
- ) {
- var vm = this;
- if (isPlainObject(cb)) {
- return createWatcher(vm, expOrFn, cb, options)
- }
- options = options || {};
- options.user = true;
- var watcher = new Watcher(vm, expOrFn, cb, options);
- if (options.immediate) {
- try {
- cb.call(vm, watcher.value);
- } catch (error) {
- handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
- }
- }
- return function unwatchFn () {
- watcher.teardown();
- }
- };
- }
- /* */
- var uid$3 = 0;
- function initMixin (Vue) {
- Vue.prototype._init = function (options) {
- var vm = this;
- // a uid
- vm._uid = uid$3++;
- var startTag, endTag;
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- startTag = "vue-perf-start:" + (vm._uid);
- endTag = "vue-perf-end:" + (vm._uid);
- mark(startTag);
- }
- // a flag to avoid this being observed
- vm._isVue = true;
- // merge options
- if (options && options._isComponent) {
- // optimize internal component instantiation
- // since dynamic options merging is pretty slow, and none of the
- // internal component options needs special treatment.
- initInternalComponent(vm, options);
- } else {
- vm.$options = mergeOptions(
- resolveConstructorOptions(vm.constructor),
- options || {},
- vm
- );
- }
- /* istanbul ignore else */
- if (true) {
- initProxy(vm);
- } else {}
- // expose real self
- vm._self = vm;
- initLifecycle(vm);
- initEvents(vm);
- initRender(vm);
- callHook(vm, 'beforeCreate');
- initInjections(vm); // resolve injections before data/props
- initState(vm);
- initProvide(vm); // resolve provide after data/props
- callHook(vm, 'created');
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- vm._name = formatComponentName(vm, false);
- mark(endTag);
- measure(("vue " + (vm._name) + " init"), startTag, endTag);
- }
- if (vm.$options.el) {
- vm.$mount(vm.$options.el);
- }
- };
- }
- function initInternalComponent (vm, options) {
- var opts = vm.$options = Object.create(vm.constructor.options);
- // doing this because it's faster than dynamic enumeration.
- var parentVnode = options._parentVnode;
- opts.parent = options.parent;
- opts._parentVnode = parentVnode;
- var vnodeComponentOptions = parentVnode.componentOptions;
- opts.propsData = vnodeComponentOptions.propsData;
- opts._parentListeners = vnodeComponentOptions.listeners;
- opts._renderChildren = vnodeComponentOptions.children;
- opts._componentTag = vnodeComponentOptions.tag;
- if (options.render) {
- opts.render = options.render;
- opts.staticRenderFns = options.staticRenderFns;
- }
- }
- function resolveConstructorOptions (Ctor) {
- var options = Ctor.options;
- if (Ctor.super) {
- var superOptions = resolveConstructorOptions(Ctor.super);
- var cachedSuperOptions = Ctor.superOptions;
- if (superOptions !== cachedSuperOptions) {
- // super option changed,
- // need to resolve new options.
- Ctor.superOptions = superOptions;
- // check if there are any late-modified/attached options (#4976)
- var modifiedOptions = resolveModifiedOptions(Ctor);
- // update base extend options
- if (modifiedOptions) {
- extend(Ctor.extendOptions, modifiedOptions);
- }
- options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
- if (options.name) {
- options.components[options.name] = Ctor;
- }
- }
- }
- return options
- }
- function resolveModifiedOptions (Ctor) {
- var modified;
- var latest = Ctor.options;
- var sealed = Ctor.sealedOptions;
- for (var key in latest) {
- if (latest[key] !== sealed[key]) {
- if (!modified) { modified = {}; }
- modified[key] = latest[key];
- }
- }
- return modified
- }
- function Vue (options) {
- if ( true &&
- !(this instanceof Vue)
- ) {
- warn('Vue is a constructor and should be called with the `new` keyword');
- }
- this._init(options);
- }
- initMixin(Vue);
- stateMixin(Vue);
- eventsMixin(Vue);
- lifecycleMixin(Vue);
- renderMixin(Vue);
- /* */
- function initUse (Vue) {
- Vue.use = function (plugin) {
- var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
- if (installedPlugins.indexOf(plugin) > -1) {
- return this
- }
- // additional parameters
- var args = toArray(arguments, 1);
- args.unshift(this);
- if (typeof plugin.install === 'function') {
- plugin.install.apply(plugin, args);
- } else if (typeof plugin === 'function') {
- plugin.apply(null, args);
- }
- installedPlugins.push(plugin);
- return this
- };
- }
- /* */
- function initMixin$1 (Vue) {
- Vue.mixin = function (mixin) {
- this.options = mergeOptions(this.options, mixin);
- return this
- };
- }
- /* */
- function initExtend (Vue) {
- /**
- * Each instance constructor, including Vue, has a unique
- * cid. This enables us to create wrapped "child
- * constructors" for prototypal inheritance and cache them.
- */
- Vue.cid = 0;
- var cid = 1;
- /**
- * Class inheritance
- */
- Vue.extend = function (extendOptions) {
- extendOptions = extendOptions || {};
- var Super = this;
- var SuperId = Super.cid;
- var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
- if (cachedCtors[SuperId]) {
- return cachedCtors[SuperId]
- }
- var name = extendOptions.name || Super.options.name;
- if ( true && name) {
- validateComponentName(name);
- }
- var Sub = function VueComponent (options) {
- this._init(options);
- };
- Sub.prototype = Object.create(Super.prototype);
- Sub.prototype.constructor = Sub;
- Sub.cid = cid++;
- Sub.options = mergeOptions(
- Super.options,
- extendOptions
- );
- Sub['super'] = Super;
- // For props and computed properties, we define the proxy getters on
- // the Vue instances at extension time, on the extended prototype. This
- // avoids Object.defineProperty calls for each instance created.
- if (Sub.options.props) {
- initProps$1(Sub);
- }
- if (Sub.options.computed) {
- initComputed$1(Sub);
- }
- // allow further extension/mixin/plugin usage
- Sub.extend = Super.extend;
- Sub.mixin = Super.mixin;
- Sub.use = Super.use;
- // create asset registers, so extended classes
- // can have their private assets too.
- ASSET_TYPES.forEach(function (type) {
- Sub[type] = Super[type];
- });
- // enable recursive self-lookup
- if (name) {
- Sub.options.components[name] = Sub;
- }
- // keep a reference to the super options at extension time.
- // later at instantiation we can check if Super's options have
- // been updated.
- Sub.superOptions = Super.options;
- Sub.extendOptions = extendOptions;
- Sub.sealedOptions = extend({}, Sub.options);
- // cache constructor
- cachedCtors[SuperId] = Sub;
- return Sub
- };
- }
- function initProps$1 (Comp) {
- var props = Comp.options.props;
- for (var key in props) {
- proxy(Comp.prototype, "_props", key);
- }
- }
- function initComputed$1 (Comp) {
- var computed = Comp.options.computed;
- for (var key in computed) {
- defineComputed(Comp.prototype, key, computed[key]);
- }
- }
- /* */
- function initAssetRegisters (Vue) {
- /**
- * Create asset registration methods.
- */
- ASSET_TYPES.forEach(function (type) {
- Vue[type] = function (
- id,
- definition
- ) {
- if (!definition) {
- return this.options[type + 's'][id]
- } else {
- /* istanbul ignore if */
- if ( true && type === 'component') {
- validateComponentName(id);
- }
- if (type === 'component' && isPlainObject(definition)) {
- definition.name = definition.name || id;
- definition = this.options._base.extend(definition);
- }
- if (type === 'directive' && typeof definition === 'function') {
- definition = { bind: definition, update: definition };
- }
- this.options[type + 's'][id] = definition;
- return definition
- }
- };
- });
- }
- /* */
- function getComponentName (opts) {
- return opts && (opts.Ctor.options.name || opts.tag)
- }
- function matches (pattern, name) {
- if (Array.isArray(pattern)) {
- return pattern.indexOf(name) > -1
- } else if (typeof pattern === 'string') {
- return pattern.split(',').indexOf(name) > -1
- } else if (isRegExp(pattern)) {
- return pattern.test(name)
- }
- /* istanbul ignore next */
- return false
- }
- function pruneCache (keepAliveInstance, filter) {
- var cache = keepAliveInstance.cache;
- var keys = keepAliveInstance.keys;
- var _vnode = keepAliveInstance._vnode;
- for (var key in cache) {
- var cachedNode = cache[key];
- if (cachedNode) {
- var name = getComponentName(cachedNode.componentOptions);
- if (name && !filter(name)) {
- pruneCacheEntry(cache, key, keys, _vnode);
- }
- }
- }
- }
- function pruneCacheEntry (
- cache,
- key,
- keys,
- current
- ) {
- var cached$$1 = cache[key];
- if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
- cached$$1.componentInstance.$destroy();
- }
- cache[key] = null;
- remove(keys, key);
- }
- var patternTypes = [String, RegExp, Array];
- var KeepAlive = {
- name: 'keep-alive',
- abstract: true,
- props: {
- include: patternTypes,
- exclude: patternTypes,
- max: [String, Number]
- },
- created: function created () {
- this.cache = Object.create(null);
- this.keys = [];
- },
- destroyed: function destroyed () {
- for (var key in this.cache) {
- pruneCacheEntry(this.cache, key, this.keys);
- }
- },
- mounted: function mounted () {
- var this$1 = this;
- this.$watch('include', function (val) {
- pruneCache(this$1, function (name) { return matches(val, name); });
- });
- this.$watch('exclude', function (val) {
- pruneCache(this$1, function (name) { return !matches(val, name); });
- });
- },
- render: function render () {
- var slot = this.$slots.default;
- var vnode = getFirstComponentChild(slot);
- var componentOptions = vnode && vnode.componentOptions;
- if (componentOptions) {
- // check pattern
- var name = getComponentName(componentOptions);
- var ref = this;
- var include = ref.include;
- var exclude = ref.exclude;
- if (
- // not included
- (include && (!name || !matches(include, name))) ||
- // excluded
- (exclude && name && matches(exclude, name))
- ) {
- return vnode
- }
- var ref$1 = this;
- var cache = ref$1.cache;
- var keys = ref$1.keys;
- var key = vnode.key == null
- // same constructor may get registered as different local components
- // so cid alone is not enough (#3269)
- ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
- : vnode.key;
- if (cache[key]) {
- vnode.componentInstance = cache[key].componentInstance;
- // make current key freshest
- remove(keys, key);
- keys.push(key);
- } else {
- cache[key] = vnode;
- keys.push(key);
- // prune oldest entry
- if (this.max && keys.length > parseInt(this.max)) {
- pruneCacheEntry(cache, keys[0], keys, this._vnode);
- }
- }
- vnode.data.keepAlive = true;
- }
- return vnode || (slot && slot[0])
- }
- };
- var builtInComponents = {
- KeepAlive: KeepAlive
- };
- /* */
- function initGlobalAPI (Vue) {
- // config
- var configDef = {};
- configDef.get = function () { return config; };
- if (true) {
- configDef.set = function () {
- warn(
- 'Do not replace the Vue.config object, set individual fields instead.'
- );
- };
- }
- Object.defineProperty(Vue, 'config', configDef);
- // exposed util methods.
- // NOTE: these are not considered part of the public API - avoid relying on
- // them unless you are aware of the risk.
- Vue.util = {
- warn: warn,
- extend: extend,
- mergeOptions: mergeOptions,
- defineReactive: defineReactive$$1
- };
- Vue.set = set;
- Vue.delete = del;
- Vue.nextTick = nextTick;
- // 2.6 explicit observable API
- Vue.observable = function (obj) {
- observe(obj);
- return obj
- };
- Vue.options = Object.create(null);
- ASSET_TYPES.forEach(function (type) {
- Vue.options[type + 's'] = Object.create(null);
- });
- // this is used to identify the "base" constructor to extend all plain-object
- // components with in Weex's multi-instance scenarios.
- Vue.options._base = Vue;
- extend(Vue.options.components, builtInComponents);
- initUse(Vue);
- initMixin$1(Vue);
- initExtend(Vue);
- initAssetRegisters(Vue);
- }
- initGlobalAPI(Vue);
- Object.defineProperty(Vue.prototype, '$isServer', {
- get: isServerRendering
- });
- Object.defineProperty(Vue.prototype, '$ssrContext', {
- get: function get () {
- /* istanbul ignore next */
- return this.$vnode && this.$vnode.ssrContext
- }
- });
- // expose FunctionalRenderContext for ssr runtime helper installation
- Object.defineProperty(Vue, 'FunctionalRenderContext', {
- value: FunctionalRenderContext
- });
- Vue.version = '2.6.12';
- /* */
- // these are reserved for web because they are directly compiled away
- // during template compilation
- var isReservedAttr = makeMap('style,class');
- // attributes that should be using props for binding
- var acceptValue = makeMap('input,textarea,option,select,progress');
- var mustUseProp = function (tag, type, attr) {
- return (
- (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
- (attr === 'selected' && tag === 'option') ||
- (attr === 'checked' && tag === 'input') ||
- (attr === 'muted' && tag === 'video')
- )
- };
- var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
- var isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only');
- var convertEnumeratedValue = function (key, value) {
- return isFalsyAttrValue(value) || value === 'false'
- ? 'false'
- // allow arbitrary string value for contenteditable
- : key === 'contenteditable' && isValidContentEditableValue(value)
- ? value
- : 'true'
- };
- var isBooleanAttr = makeMap(
- 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
- 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
- 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
- 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
- 'required,reversed,scoped,seamless,selected,sortable,translate,' +
- 'truespeed,typemustmatch,visible'
- );
- var xlinkNS = 'http://www.w3.org/1999/xlink';
- var isXlink = function (name) {
- return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
- };
- var getXlinkProp = function (name) {
- return isXlink(name) ? name.slice(6, name.length) : ''
- };
- var isFalsyAttrValue = function (val) {
- return val == null || val === false
- };
- /* */
- function genClassForVnode (vnode) {
- var data = vnode.data;
- var parentNode = vnode;
- var childNode = vnode;
- while (isDef(childNode.componentInstance)) {
- childNode = childNode.componentInstance._vnode;
- if (childNode && childNode.data) {
- data = mergeClassData(childNode.data, data);
- }
- }
- while (isDef(parentNode = parentNode.parent)) {
- if (parentNode && parentNode.data) {
- data = mergeClassData(data, parentNode.data);
- }
- }
- return renderClass(data.staticClass, data.class)
- }
- function mergeClassData (child, parent) {
- return {
- staticClass: concat(child.staticClass, parent.staticClass),
- class: isDef(child.class)
- ? [child.class, parent.class]
- : parent.class
- }
- }
- function renderClass (
- staticClass,
- dynamicClass
- ) {
- if (isDef(staticClass) || isDef(dynamicClass)) {
- return concat(staticClass, stringifyClass(dynamicClass))
- }
- /* istanbul ignore next */
- return ''
- }
- function concat (a, b) {
- return a ? b ? (a + ' ' + b) : a : (b || '')
- }
- function stringifyClass (value) {
- if (Array.isArray(value)) {
- return stringifyArray(value)
- }
- if (isObject(value)) {
- return stringifyObject(value)
- }
- if (typeof value === 'string') {
- return value
- }
- /* istanbul ignore next */
- return ''
- }
- function stringifyArray (value) {
- var res = '';
- var stringified;
- for (var i = 0, l = value.length; i < l; i++) {
- if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
- if (res) { res += ' '; }
- res += stringified;
- }
- }
- return res
- }
- function stringifyObject (value) {
- var res = '';
- for (var key in value) {
- if (value[key]) {
- if (res) { res += ' '; }
- res += key;
- }
- }
- return res
- }
- /* */
- var namespaceMap = {
- svg: 'http://www.w3.org/2000/svg',
- math: 'http://www.w3.org/1998/Math/MathML'
- };
- var isHTMLTag = makeMap(
- 'html,body,base,head,link,meta,style,title,' +
- 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
- 'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
- 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
- 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
- 'embed,object,param,source,canvas,script,noscript,del,ins,' +
- 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
- 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
- 'output,progress,select,textarea,' +
- 'details,dialog,menu,menuitem,summary,' +
- 'content,element,shadow,template,blockquote,iframe,tfoot'
- );
- // this map is intentionally selective, only covering SVG elements that may
- // contain child elements.
- var isSVG = makeMap(
- 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
- 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
- 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
- true
- );
- var isReservedTag = function (tag) {
- return isHTMLTag(tag) || isSVG(tag)
- };
- function getTagNamespace (tag) {
- if (isSVG(tag)) {
- return 'svg'
- }
- // basic support for MathML
- // note it doesn't support other MathML elements being component roots
- if (tag === 'math') {
- return 'math'
- }
- }
- var unknownElementCache = Object.create(null);
- function isUnknownElement (tag) {
- /* istanbul ignore if */
- if (!inBrowser) {
- return true
- }
- if (isReservedTag(tag)) {
- return false
- }
- tag = tag.toLowerCase();
- /* istanbul ignore if */
- if (unknownElementCache[tag] != null) {
- return unknownElementCache[tag]
- }
- var el = document.createElement(tag);
- if (tag.indexOf('-') > -1) {
- // http://stackoverflow.com/a/28210364/1070244
- return (unknownElementCache[tag] = (
- el.constructor === window.HTMLUnknownElement ||
- el.constructor === window.HTMLElement
- ))
- } else {
- return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
- }
- }
- var isTextInputType = makeMap('text,number,password,search,email,tel,url');
- /* */
- /**
- * Query an element selector if it's not an element already.
- */
- function query (el) {
- if (typeof el === 'string') {
- var selected = document.querySelector(el);
- if (!selected) {
- true && warn(
- 'Cannot find element: ' + el
- );
- return document.createElement('div')
- }
- return selected
- } else {
- return el
- }
- }
- /* */
- function createElement$1 (tagName, vnode) {
- var elm = document.createElement(tagName);
- if (tagName !== 'select') {
- return elm
- }
- // false or null will remove the attribute but undefined will not
- if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
- elm.setAttribute('multiple', 'multiple');
- }
- return elm
- }
- function createElementNS (namespace, tagName) {
- return document.createElementNS(namespaceMap[namespace], tagName)
- }
- function createTextNode (text) {
- return document.createTextNode(text)
- }
- function createComment (text) {
- return document.createComment(text)
- }
- function insertBefore (parentNode, newNode, referenceNode) {
- parentNode.insertBefore(newNode, referenceNode);
- }
- function removeChild (node, child) {
- node.removeChild(child);
- }
- function appendChild (node, child) {
- node.appendChild(child);
- }
- function parentNode (node) {
- return node.parentNode
- }
- function nextSibling (node) {
- return node.nextSibling
- }
- function tagName (node) {
- return node.tagName
- }
- function setTextContent (node, text) {
- node.textContent = text;
- }
- function setStyleScope (node, scopeId) {
- node.setAttribute(scopeId, '');
- }
- var nodeOps = /*#__PURE__*/Object.freeze({
- createElement: createElement$1,
- createElementNS: createElementNS,
- createTextNode: createTextNode,
- createComment: createComment,
- insertBefore: insertBefore,
- removeChild: removeChild,
- appendChild: appendChild,
- parentNode: parentNode,
- nextSibling: nextSibling,
- tagName: tagName,
- setTextContent: setTextContent,
- setStyleScope: setStyleScope
- });
- /* */
- var ref = {
- create: function create (_, vnode) {
- registerRef(vnode);
- },
- update: function update (oldVnode, vnode) {
- if (oldVnode.data.ref !== vnode.data.ref) {
- registerRef(oldVnode, true);
- registerRef(vnode);
- }
- },
- destroy: function destroy (vnode) {
- registerRef(vnode, true);
- }
- };
- function registerRef (vnode, isRemoval) {
- var key = vnode.data.ref;
- if (!isDef(key)) { return }
- var vm = vnode.context;
- var ref = vnode.componentInstance || vnode.elm;
- var refs = vm.$refs;
- if (isRemoval) {
- if (Array.isArray(refs[key])) {
- remove(refs[key], ref);
- } else if (refs[key] === ref) {
- refs[key] = undefined;
- }
- } else {
- if (vnode.data.refInFor) {
- if (!Array.isArray(refs[key])) {
- refs[key] = [ref];
- } else if (refs[key].indexOf(ref) < 0) {
- // $flow-disable-line
- refs[key].push(ref);
- }
- } else {
- refs[key] = ref;
- }
- }
- }
- /**
- * Virtual DOM patching algorithm based on Snabbdom by
- * Simon Friis Vindum (@paldepind)
- * Licensed under the MIT License
- * https://github.com/paldepind/snabbdom/blob/master/LICENSE
- *
- * modified by Evan You (@yyx990803)
- *
- * Not type-checking this because this file is perf-critical and the cost
- * of making flow understand it is not worth it.
- */
- var emptyNode = new VNode('', {}, []);
- var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
- function sameVnode (a, b) {
- return (
- a.key === b.key && (
- (
- a.tag === b.tag &&
- a.isComment === b.isComment &&
- isDef(a.data) === isDef(b.data) &&
- sameInputType(a, b)
- ) || (
- isTrue(a.isAsyncPlaceholder) &&
- a.asyncFactory === b.asyncFactory &&
- isUndef(b.asyncFactory.error)
- )
- )
- )
- }
- function sameInputType (a, b) {
- if (a.tag !== 'input') { return true }
- var i;
- var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
- var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
- return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)
- }
- function createKeyToOldIdx (children, beginIdx, endIdx) {
- var i, key;
- var map = {};
- for (i = beginIdx; i <= endIdx; ++i) {
- key = children[i].key;
- if (isDef(key)) { map[key] = i; }
- }
- return map
- }
- function createPatchFunction (backend) {
- var i, j;
- var cbs = {};
- var modules = backend.modules;
- var nodeOps = backend.nodeOps;
- for (i = 0; i < hooks.length; ++i) {
- cbs[hooks[i]] = [];
- for (j = 0; j < modules.length; ++j) {
- if (isDef(modules[j][hooks[i]])) {
- cbs[hooks[i]].push(modules[j][hooks[i]]);
- }
- }
- }
- function emptyNodeAt (elm) {
- return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
- }
- function createRmCb (childElm, listeners) {
- function remove$$1 () {
- if (--remove$$1.listeners === 0) {
- removeNode(childElm);
- }
- }
- remove$$1.listeners = listeners;
- return remove$$1
- }
- function removeNode (el) {
- var parent = nodeOps.parentNode(el);
- // element may have already been removed due to v-html / v-text
- if (isDef(parent)) {
- nodeOps.removeChild(parent, el);
- }
- }
- function isUnknownElement$$1 (vnode, inVPre) {
- return (
- !inVPre &&
- !vnode.ns &&
- !(
- config.ignoredElements.length &&
- config.ignoredElements.some(function (ignore) {
- return isRegExp(ignore)
- ? ignore.test(vnode.tag)
- : ignore === vnode.tag
- })
- ) &&
- config.isUnknownElement(vnode.tag)
- )
- }
- var creatingElmInVPre = 0;
- function createElm (
- vnode,
- insertedVnodeQueue,
- parentElm,
- refElm,
- nested,
- ownerArray,
- index
- ) {
- if (isDef(vnode.elm) && isDef(ownerArray)) {
- // This vnode was used in a previous render!
- // now it's used as a new node, overwriting its elm would cause
- // potential patch errors down the road when it's used as an insertion
- // reference node. Instead, we clone the node on-demand before creating
- // associated DOM element for it.
- vnode = ownerArray[index] = cloneVNode(vnode);
- }
- vnode.isRootInsert = !nested; // for transition enter check
- if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
- return
- }
- var data = vnode.data;
- var children = vnode.children;
- var tag = vnode.tag;
- if (isDef(tag)) {
- if (true) {
- if (data && data.pre) {
- creatingElmInVPre++;
- }
- if (isUnknownElement$$1(vnode, creatingElmInVPre)) {
- warn(
- 'Unknown custom element: <' + tag + '> - did you ' +
- 'register the component correctly? For recursive components, ' +
- 'make sure to provide the "name" option.',
- vnode.context
- );
- }
- }
- vnode.elm = vnode.ns
- ? nodeOps.createElementNS(vnode.ns, tag)
- : nodeOps.createElement(tag, vnode);
- setScope(vnode);
- /* istanbul ignore if */
- {
- createChildren(vnode, children, insertedVnodeQueue);
- if (isDef(data)) {
- invokeCreateHooks(vnode, insertedVnodeQueue);
- }
- insert(parentElm, vnode.elm, refElm);
- }
- if ( true && data && data.pre) {
- creatingElmInVPre--;
- }
- } else if (isTrue(vnode.isComment)) {
- vnode.elm = nodeOps.createComment(vnode.text);
- insert(parentElm, vnode.elm, refElm);
- } else {
- vnode.elm = nodeOps.createTextNode(vnode.text);
- insert(parentElm, vnode.elm, refElm);
- }
- }
- function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
- var i = vnode.data;
- if (isDef(i)) {
- var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
- if (isDef(i = i.hook) && isDef(i = i.init)) {
- i(vnode, false /* hydrating */);
- }
- // after calling the init hook, if the vnode is a child component
- // it should've created a child instance and mounted it. the child
- // component also has set the placeholder vnode's elm.
- // in that case we can just return the element and be done.
- if (isDef(vnode.componentInstance)) {
- initComponent(vnode, insertedVnodeQueue);
- insert(parentElm, vnode.elm, refElm);
- if (isTrue(isReactivated)) {
- reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
- }
- return true
- }
- }
- }
- function initComponent (vnode, insertedVnodeQueue) {
- if (isDef(vnode.data.pendingInsert)) {
- insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
- vnode.data.pendingInsert = null;
- }
- vnode.elm = vnode.componentInstance.$el;
- if (isPatchable(vnode)) {
- invokeCreateHooks(vnode, insertedVnodeQueue);
- setScope(vnode);
- } else {
- // empty component root.
- // skip all element-related modules except for ref (#3455)
- registerRef(vnode);
- // make sure to invoke the insert hook
- insertedVnodeQueue.push(vnode);
- }
- }
- function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
- var i;
- // hack for #4339: a reactivated component with inner transition
- // does not trigger because the inner node's created hooks are not called
- // again. It's not ideal to involve module-specific logic in here but
- // there doesn't seem to be a better way to do it.
- var innerNode = vnode;
- while (innerNode.componentInstance) {
- innerNode = innerNode.componentInstance._vnode;
- if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
- for (i = 0; i < cbs.activate.length; ++i) {
- cbs.activate[i](emptyNode, innerNode);
- }
- insertedVnodeQueue.push(innerNode);
- break
- }
- }
- // unlike a newly created component,
- // a reactivated keep-alive component doesn't insert itself
- insert(parentElm, vnode.elm, refElm);
- }
- function insert (parent, elm, ref$$1) {
- if (isDef(parent)) {
- if (isDef(ref$$1)) {
- if (nodeOps.parentNode(ref$$1) === parent) {
- nodeOps.insertBefore(parent, elm, ref$$1);
- }
- } else {
- nodeOps.appendChild(parent, elm);
- }
- }
- }
- function createChildren (vnode, children, insertedVnodeQueue) {
- if (Array.isArray(children)) {
- if (true) {
- checkDuplicateKeys(children);
- }
- for (var i = 0; i < children.length; ++i) {
- createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
- }
- } else if (isPrimitive(vnode.text)) {
- nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
- }
- }
- function isPatchable (vnode) {
- while (vnode.componentInstance) {
- vnode = vnode.componentInstance._vnode;
- }
- return isDef(vnode.tag)
- }
- function invokeCreateHooks (vnode, insertedVnodeQueue) {
- for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
- cbs.create[i$1](emptyNode, vnode);
- }
- i = vnode.data.hook; // Reuse variable
- if (isDef(i)) {
- if (isDef(i.create)) { i.create(emptyNode, vnode); }
- if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
- }
- }
- // set scope id attribute for scoped CSS.
- // this is implemented as a special case to avoid the overhead
- // of going through the normal attribute patching process.
- function setScope (vnode) {
- var i;
- if (isDef(i = vnode.fnScopeId)) {
- nodeOps.setStyleScope(vnode.elm, i);
- } else {
- var ancestor = vnode;
- while (ancestor) {
- if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
- nodeOps.setStyleScope(vnode.elm, i);
- }
- ancestor = ancestor.parent;
- }
- }
- // for slot content they should also get the scopeId from the host instance.
- if (isDef(i = activeInstance) &&
- i !== vnode.context &&
- i !== vnode.fnContext &&
- isDef(i = i.$options._scopeId)
- ) {
- nodeOps.setStyleScope(vnode.elm, i);
- }
- }
- function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
- for (; startIdx <= endIdx; ++startIdx) {
- createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);
- }
- }
- function invokeDestroyHook (vnode) {
- var i, j;
- var data = vnode.data;
- if (isDef(data)) {
- if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
- for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
- }
- if (isDef(i = vnode.children)) {
- for (j = 0; j < vnode.children.length; ++j) {
- invokeDestroyHook(vnode.children[j]);
- }
- }
- }
- function removeVnodes (vnodes, startIdx, endIdx) {
- for (; startIdx <= endIdx; ++startIdx) {
- var ch = vnodes[startIdx];
- if (isDef(ch)) {
- if (isDef(ch.tag)) {
- removeAndInvokeRemoveHook(ch);
- invokeDestroyHook(ch);
- } else { // Text node
- removeNode(ch.elm);
- }
- }
- }
- }
- function removeAndInvokeRemoveHook (vnode, rm) {
- if (isDef(rm) || isDef(vnode.data)) {
- var i;
- var listeners = cbs.remove.length + 1;
- if (isDef(rm)) {
- // we have a recursively passed down rm callback
- // increase the listeners count
- rm.listeners += listeners;
- } else {
- // directly removing
- rm = createRmCb(vnode.elm, listeners);
- }
- // recursively invoke hooks on child component root node
- if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
- removeAndInvokeRemoveHook(i, rm);
- }
- for (i = 0; i < cbs.remove.length; ++i) {
- cbs.remove[i](vnode, rm);
- }
- if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
- i(vnode, rm);
- } else {
- rm();
- }
- } else {
- removeNode(vnode.elm);
- }
- }
- function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
- var oldStartIdx = 0;
- var newStartIdx = 0;
- var oldEndIdx = oldCh.length - 1;
- var oldStartVnode = oldCh[0];
- var oldEndVnode = oldCh[oldEndIdx];
- var newEndIdx = newCh.length - 1;
- var newStartVnode = newCh[0];
- var newEndVnode = newCh[newEndIdx];
- var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
- // removeOnly is a special flag used only by <transition-group>
- // to ensure removed elements stay in correct relative positions
- // during leaving transitions
- var canMove = !removeOnly;
- if (true) {
- checkDuplicateKeys(newCh);
- }
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
- if (isUndef(oldStartVnode)) {
- oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
- } else if (isUndef(oldEndVnode)) {
- oldEndVnode = oldCh[--oldEndIdx];
- } else if (sameVnode(oldStartVnode, newStartVnode)) {
- patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
- oldStartVnode = oldCh[++oldStartIdx];
- newStartVnode = newCh[++newStartIdx];
- } else if (sameVnode(oldEndVnode, newEndVnode)) {
- patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
- oldEndVnode = oldCh[--oldEndIdx];
- newEndVnode = newCh[--newEndIdx];
- } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
- patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
- canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
- oldStartVnode = oldCh[++oldStartIdx];
- newEndVnode = newCh[--newEndIdx];
- } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
- patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
- canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
- oldEndVnode = oldCh[--oldEndIdx];
- newStartVnode = newCh[++newStartIdx];
- } else {
- if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
- idxInOld = isDef(newStartVnode.key)
- ? oldKeyToIdx[newStartVnode.key]
- : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
- if (isUndef(idxInOld)) { // New element
- createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
- } else {
- vnodeToMove = oldCh[idxInOld];
- if (sameVnode(vnodeToMove, newStartVnode)) {
- patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
- oldCh[idxInOld] = undefined;
- canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
- } else {
- // same key but different element. treat as new element
- createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
- }
- }
- newStartVnode = newCh[++newStartIdx];
- }
- }
- if (oldStartIdx > oldEndIdx) {
- refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
- addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
- } else if (newStartIdx > newEndIdx) {
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
- }
- }
- function checkDuplicateKeys (children) {
- var seenKeys = {};
- for (var i = 0; i < children.length; i++) {
- var vnode = children[i];
- var key = vnode.key;
- if (isDef(key)) {
- if (seenKeys[key]) {
- warn(
- ("Duplicate keys detected: '" + key + "'. This may cause an update error."),
- vnode.context
- );
- } else {
- seenKeys[key] = true;
- }
- }
- }
- }
- function findIdxInOld (node, oldCh, start, end) {
- for (var i = start; i < end; i++) {
- var c = oldCh[i];
- if (isDef(c) && sameVnode(node, c)) { return i }
- }
- }
- function patchVnode (
- oldVnode,
- vnode,
- insertedVnodeQueue,
- ownerArray,
- index,
- removeOnly
- ) {
- if (oldVnode === vnode) {
- return
- }
- if (isDef(vnode.elm) && isDef(ownerArray)) {
- // clone reused vnode
- vnode = ownerArray[index] = cloneVNode(vnode);
- }
- var elm = vnode.elm = oldVnode.elm;
- if (isTrue(oldVnode.isAsyncPlaceholder)) {
- if (isDef(vnode.asyncFactory.resolved)) {
- hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
- } else {
- vnode.isAsyncPlaceholder = true;
- }
- return
- }
- // reuse element for static trees.
- // note we only do this if the vnode is cloned -
- // if the new node is not cloned it means the render functions have been
- // reset by the hot-reload-api and we need to do a proper re-render.
- if (isTrue(vnode.isStatic) &&
- isTrue(oldVnode.isStatic) &&
- vnode.key === oldVnode.key &&
- (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
- ) {
- vnode.componentInstance = oldVnode.componentInstance;
- return
- }
- var i;
- var data = vnode.data;
- if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
- i(oldVnode, vnode);
- }
- var oldCh = oldVnode.children;
- var ch = vnode.children;
- if (isDef(data) && isPatchable(vnode)) {
- for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
- if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
- }
- if (isUndef(vnode.text)) {
- if (isDef(oldCh) && isDef(ch)) {
- if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
- } else if (isDef(ch)) {
- if (true) {
- checkDuplicateKeys(ch);
- }
- if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
- addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
- } else if (isDef(oldCh)) {
- removeVnodes(oldCh, 0, oldCh.length - 1);
- } else if (isDef(oldVnode.text)) {
- nodeOps.setTextContent(elm, '');
- }
- } else if (oldVnode.text !== vnode.text) {
- nodeOps.setTextContent(elm, vnode.text);
- }
- if (isDef(data)) {
- if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
- }
- }
- function invokeInsertHook (vnode, queue, initial) {
- // delay insert hooks for component root nodes, invoke them after the
- // element is really inserted
- if (isTrue(initial) && isDef(vnode.parent)) {
- vnode.parent.data.pendingInsert = queue;
- } else {
- for (var i = 0; i < queue.length; ++i) {
- queue[i].data.hook.insert(queue[i]);
- }
- }
- }
- var hydrationBailed = false;
- // list of modules that can skip create hook during hydration because they
- // are already rendered on the client or has no need for initialization
- // Note: style is excluded because it relies on initial clone for future
- // deep updates (#7063).
- var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
- // Note: this is a browser-only function so we can assume elms are DOM nodes.
- function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {
- var i;
- var tag = vnode.tag;
- var data = vnode.data;
- var children = vnode.children;
- inVPre = inVPre || (data && data.pre);
- vnode.elm = elm;
- if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
- vnode.isAsyncPlaceholder = true;
- return true
- }
- // assert node match
- if (true) {
- if (!assertNodeMatch(elm, vnode, inVPre)) {
- return false
- }
- }
- if (isDef(data)) {
- if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
- if (isDef(i = vnode.componentInstance)) {
- // child component. it should have hydrated its own tree.
- initComponent(vnode, insertedVnodeQueue);
- return true
- }
- }
- if (isDef(tag)) {
- if (isDef(children)) {
- // empty element, allow client to pick up and populate children
- if (!elm.hasChildNodes()) {
- createChildren(vnode, children, insertedVnodeQueue);
- } else {
- // v-html and domProps: innerHTML
- if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {
- if (i !== elm.innerHTML) {
- /* istanbul ignore if */
- if ( true &&
- typeof console !== 'undefined' &&
- !hydrationBailed
- ) {
- hydrationBailed = true;
- console.warn('Parent: ', elm);
- console.warn('server innerHTML: ', i);
- console.warn('client innerHTML: ', elm.innerHTML);
- }
- return false
- }
- } else {
- // iterate and compare children lists
- var childrenMatch = true;
- var childNode = elm.firstChild;
- for (var i$1 = 0; i$1 < children.length; i$1++) {
- if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {
- childrenMatch = false;
- break
- }
- childNode = childNode.nextSibling;
- }
- // if childNode is not null, it means the actual childNodes list is
- // longer than the virtual children list.
- if (!childrenMatch || childNode) {
- /* istanbul ignore if */
- if ( true &&
- typeof console !== 'undefined' &&
- !hydrationBailed
- ) {
- hydrationBailed = true;
- console.warn('Parent: ', elm);
- console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
- }
- return false
- }
- }
- }
- }
- if (isDef(data)) {
- var fullInvoke = false;
- for (var key in data) {
- if (!isRenderedModule(key)) {
- fullInvoke = true;
- invokeCreateHooks(vnode, insertedVnodeQueue);
- break
- }
- }
- if (!fullInvoke && data['class']) {
- // ensure collecting deps for deep class bindings for future updates
- traverse(data['class']);
- }
- }
- } else if (elm.data !== vnode.text) {
- elm.data = vnode.text;
- }
- return true
- }
- function assertNodeMatch (node, vnode, inVPre) {
- if (isDef(vnode.tag)) {
- return vnode.tag.indexOf('vue-component') === 0 || (
- !isUnknownElement$$1(vnode, inVPre) &&
- vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
- )
- } else {
- return node.nodeType === (vnode.isComment ? 8 : 3)
- }
- }
- return function patch (oldVnode, vnode, hydrating, removeOnly) {
- if (isUndef(vnode)) {
- if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
- return
- }
- var isInitialPatch = false;
- var insertedVnodeQueue = [];
- if (isUndef(oldVnode)) {
- // empty mount (likely as component), create new root element
- isInitialPatch = true;
- createElm(vnode, insertedVnodeQueue);
- } else {
- var isRealElement = isDef(oldVnode.nodeType);
- if (!isRealElement && sameVnode(oldVnode, vnode)) {
- // patch existing root node
- patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly);
- } else {
- if (isRealElement) {
- // mounting to a real element
- // check if this is server-rendered content and if we can perform
- // a successful hydration.
- if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
- oldVnode.removeAttribute(SSR_ATTR);
- hydrating = true;
- }
- if (isTrue(hydrating)) {
- if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
- invokeInsertHook(vnode, insertedVnodeQueue, true);
- return oldVnode
- } else if (true) {
- warn(
- 'The client-side rendered virtual DOM tree is not matching ' +
- 'server-rendered content. This is likely caused by incorrect ' +
- 'HTML markup, for example nesting block-level elements inside ' +
- '<p>, or missing <tbody>. Bailing hydration and performing ' +
- 'full client-side render.'
- );
- }
- }
- // either not server-rendered, or hydration failed.
- // create an empty node and replace it
- oldVnode = emptyNodeAt(oldVnode);
- }
- // replacing existing element
- var oldElm = oldVnode.elm;
- var parentElm = nodeOps.parentNode(oldElm);
- // create new node
- createElm(
- vnode,
- insertedVnodeQueue,
- // extremely rare edge case: do not insert if old element is in a
- // leaving transition. Only happens when combining transition +
- // keep-alive + HOCs. (#4590)
- oldElm._leaveCb ? null : parentElm,
- nodeOps.nextSibling(oldElm)
- );
- // update parent placeholder node element, recursively
- if (isDef(vnode.parent)) {
- var ancestor = vnode.parent;
- var patchable = isPatchable(vnode);
- while (ancestor) {
- for (var i = 0; i < cbs.destroy.length; ++i) {
- cbs.destroy[i](ancestor);
- }
- ancestor.elm = vnode.elm;
- if (patchable) {
- for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
- cbs.create[i$1](emptyNode, ancestor);
- }
- // #6513
- // invoke insert hooks that may have been merged by create hooks.
- // e.g. for directives that uses the "inserted" hook.
- var insert = ancestor.data.hook.insert;
- if (insert.merged) {
- // start at index 1 to avoid re-invoking component mounted hook
- for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
- insert.fns[i$2]();
- }
- }
- } else {
- registerRef(ancestor);
- }
- ancestor = ancestor.parent;
- }
- }
- // destroy old node
- if (isDef(parentElm)) {
- removeVnodes([oldVnode], 0, 0);
- } else if (isDef(oldVnode.tag)) {
- invokeDestroyHook(oldVnode);
- }
- }
- }
- invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
- return vnode.elm
- }
- }
- /* */
- var directives = {
- create: updateDirectives,
- update: updateDirectives,
- destroy: function unbindDirectives (vnode) {
- updateDirectives(vnode, emptyNode);
- }
- };
- function updateDirectives (oldVnode, vnode) {
- if (oldVnode.data.directives || vnode.data.directives) {
- _update(oldVnode, vnode);
- }
- }
- function _update (oldVnode, vnode) {
- var isCreate = oldVnode === emptyNode;
- var isDestroy = vnode === emptyNode;
- var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
- var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
- var dirsWithInsert = [];
- var dirsWithPostpatch = [];
- var key, oldDir, dir;
- for (key in newDirs) {
- oldDir = oldDirs[key];
- dir = newDirs[key];
- if (!oldDir) {
- // new directive, bind
- callHook$1(dir, 'bind', vnode, oldVnode);
- if (dir.def && dir.def.inserted) {
- dirsWithInsert.push(dir);
- }
- } else {
- // existing directive, update
- dir.oldValue = oldDir.value;
- dir.oldArg = oldDir.arg;
- callHook$1(dir, 'update', vnode, oldVnode);
- if (dir.def && dir.def.componentUpdated) {
- dirsWithPostpatch.push(dir);
- }
- }
- }
- if (dirsWithInsert.length) {
- var callInsert = function () {
- for (var i = 0; i < dirsWithInsert.length; i++) {
- callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
- }
- };
- if (isCreate) {
- mergeVNodeHook(vnode, 'insert', callInsert);
- } else {
- callInsert();
- }
- }
- if (dirsWithPostpatch.length) {
- mergeVNodeHook(vnode, 'postpatch', function () {
- for (var i = 0; i < dirsWithPostpatch.length; i++) {
- callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
- }
- });
- }
- if (!isCreate) {
- for (key in oldDirs) {
- if (!newDirs[key]) {
- // no longer present, unbind
- callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
- }
- }
- }
- }
- var emptyModifiers = Object.create(null);
- function normalizeDirectives$1 (
- dirs,
- vm
- ) {
- var res = Object.create(null);
- if (!dirs) {
- // $flow-disable-line
- return res
- }
- var i, dir;
- for (i = 0; i < dirs.length; i++) {
- dir = dirs[i];
- if (!dir.modifiers) {
- // $flow-disable-line
- dir.modifiers = emptyModifiers;
- }
- res[getRawDirName(dir)] = dir;
- dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
- }
- // $flow-disable-line
- return res
- }
- function getRawDirName (dir) {
- return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
- }
- function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
- var fn = dir.def && dir.def[hook];
- if (fn) {
- try {
- fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
- } catch (e) {
- handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
- }
- }
- }
- var baseModules = [
- ref,
- directives
- ];
- /* */
- function updateAttrs (oldVnode, vnode) {
- var opts = vnode.componentOptions;
- if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
- return
- }
- if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
- return
- }
- var key, cur, old;
- var elm = vnode.elm;
- var oldAttrs = oldVnode.data.attrs || {};
- var attrs = vnode.data.attrs || {};
- // clone observed objects, as the user probably wants to mutate it
- if (isDef(attrs.__ob__)) {
- attrs = vnode.data.attrs = extend({}, attrs);
- }
- for (key in attrs) {
- cur = attrs[key];
- old = oldAttrs[key];
- if (old !== cur) {
- setAttr(elm, key, cur);
- }
- }
- // #4391: in IE9, setting type can reset value for input[type=radio]
- // #6666: IE/Edge forces progress value down to 1 before setting a max
- /* istanbul ignore if */
- if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
- setAttr(elm, 'value', attrs.value);
- }
- for (key in oldAttrs) {
- if (isUndef(attrs[key])) {
- if (isXlink(key)) {
- elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
- } else if (!isEnumeratedAttr(key)) {
- elm.removeAttribute(key);
- }
- }
- }
- }
- function setAttr (el, key, value) {
- if (el.tagName.indexOf('-') > -1) {
- baseSetAttr(el, key, value);
- } else if (isBooleanAttr(key)) {
- // set attribute for blank value
- // e.g. <option disabled>Select one</option>
- if (isFalsyAttrValue(value)) {
- el.removeAttribute(key);
- } else {
- // technically allowfullscreen is a boolean attribute for <iframe>,
- // but Flash expects a value of "true" when used on <embed> tag
- value = key === 'allowfullscreen' && el.tagName === 'EMBED'
- ? 'true'
- : key;
- el.setAttribute(key, value);
- }
- } else if (isEnumeratedAttr(key)) {
- el.setAttribute(key, convertEnumeratedValue(key, value));
- } else if (isXlink(key)) {
- if (isFalsyAttrValue(value)) {
- el.removeAttributeNS(xlinkNS, getXlinkProp(key));
- } else {
- el.setAttributeNS(xlinkNS, key, value);
- }
- } else {
- baseSetAttr(el, key, value);
- }
- }
- function baseSetAttr (el, key, value) {
- if (isFalsyAttrValue(value)) {
- el.removeAttribute(key);
- } else {
- // #7138: IE10 & 11 fires input event when setting placeholder on
- // <textarea>... block the first input event and remove the blocker
- // immediately.
- /* istanbul ignore if */
- if (
- isIE && !isIE9 &&
- el.tagName === 'TEXTAREA' &&
- key === 'placeholder' && value !== '' && !el.__ieph
- ) {
- var blocker = function (e) {
- e.stopImmediatePropagation();
- el.removeEventListener('input', blocker);
- };
- el.addEventListener('input', blocker);
- // $flow-disable-line
- el.__ieph = true; /* IE placeholder patched */
- }
- el.setAttribute(key, value);
- }
- }
- var attrs = {
- create: updateAttrs,
- update: updateAttrs
- };
- /* */
- function updateClass (oldVnode, vnode) {
- var el = vnode.elm;
- var data = vnode.data;
- var oldData = oldVnode.data;
- if (
- isUndef(data.staticClass) &&
- isUndef(data.class) && (
- isUndef(oldData) || (
- isUndef(oldData.staticClass) &&
- isUndef(oldData.class)
- )
- )
- ) {
- return
- }
- var cls = genClassForVnode(vnode);
- // handle transition classes
- var transitionClass = el._transitionClasses;
- if (isDef(transitionClass)) {
- cls = concat(cls, stringifyClass(transitionClass));
- }
- // set the class
- if (cls !== el._prevClass) {
- el.setAttribute('class', cls);
- el._prevClass = cls;
- }
- }
- var klass = {
- create: updateClass,
- update: updateClass
- };
- /* */
- /* */
- /* */
- /* */
- // in some cases, the event used has to be determined at runtime
- // so we used some reserved tokens during compile.
- var RANGE_TOKEN = '__r';
- var CHECKBOX_RADIO_TOKEN = '__c';
- /* */
- // normalize v-model event tokens that can only be determined at runtime.
- // it's important to place the event as the first in the array because
- // the whole point is ensuring the v-model callback gets called before
- // user-attached handlers.
- function normalizeEvents (on) {
- /* istanbul ignore if */
- if (isDef(on[RANGE_TOKEN])) {
- // IE input[type=range] only supports `change` event
- var event = isIE ? 'change' : 'input';
- on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
- delete on[RANGE_TOKEN];
- }
- // This was originally intended to fix #4521 but no longer necessary
- // after 2.5. Keeping it for backwards compat with generated code from < 2.4
- /* istanbul ignore if */
- if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
- on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
- delete on[CHECKBOX_RADIO_TOKEN];
- }
- }
- var target$1;
- function createOnceHandler$1 (event, handler, capture) {
- var _target = target$1; // save current target element in closure
- return function onceHandler () {
- var res = handler.apply(null, arguments);
- if (res !== null) {
- remove$2(event, onceHandler, capture, _target);
- }
- }
- }
- // #9446: Firefox <= 53 (in particular, ESR 52) has incorrect Event.timeStamp
- // implementation and does not fire microtasks in between event propagation, so
- // safe to exclude.
- var useMicrotaskFix = isUsingMicroTask && !(isFF && Number(isFF[1]) <= 53);
- function add$1 (
- name,
- handler,
- capture,
- passive
- ) {
- // async edge case #6566: inner click event triggers patch, event handler
- // attached to outer element during patch, and triggered again. This
- // happens because browsers fire microtask ticks between event propagation.
- // the solution is simple: we save the timestamp when a handler is attached,
- // and the handler would only fire if the event passed to it was fired
- // AFTER it was attached.
- if (useMicrotaskFix) {
- var attachedTimestamp = currentFlushTimestamp;
- var original = handler;
- handler = original._wrapper = function (e) {
- if (
- // no bubbling, should always fire.
- // this is just a safety net in case event.timeStamp is unreliable in
- // certain weird environments...
- e.target === e.currentTarget ||
- // event is fired after handler attachment
- e.timeStamp >= attachedTimestamp ||
- // bail for environments that have buggy event.timeStamp implementations
- // #9462 iOS 9 bug: event.timeStamp is 0 after history.pushState
- // #9681 QtWebEngine event.timeStamp is negative value
- e.timeStamp <= 0 ||
- // #9448 bail if event is fired in another document in a multi-page
- // electron/nw.js app, since event.timeStamp will be using a different
- // starting reference
- e.target.ownerDocument !== document
- ) {
- return original.apply(this, arguments)
- }
- };
- }
- target$1.addEventListener(
- name,
- handler,
- supportsPassive
- ? { capture: capture, passive: passive }
- : capture
- );
- }
- function remove$2 (
- name,
- handler,
- capture,
- _target
- ) {
- (_target || target$1).removeEventListener(
- name,
- handler._wrapper || handler,
- capture
- );
- }
- function updateDOMListeners (oldVnode, vnode) {
- if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
- return
- }
- var on = vnode.data.on || {};
- var oldOn = oldVnode.data.on || {};
- target$1 = vnode.elm;
- normalizeEvents(on);
- updateListeners(on, oldOn, add$1, remove$2, createOnceHandler$1, vnode.context);
- target$1 = undefined;
- }
- var events = {
- create: updateDOMListeners,
- update: updateDOMListeners
- };
- /* */
- var svgContainer;
- function updateDOMProps (oldVnode, vnode) {
- if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
- return
- }
- var key, cur;
- var elm = vnode.elm;
- var oldProps = oldVnode.data.domProps || {};
- var props = vnode.data.domProps || {};
- // clone observed objects, as the user probably wants to mutate it
- if (isDef(props.__ob__)) {
- props = vnode.data.domProps = extend({}, props);
- }
- for (key in oldProps) {
- if (!(key in props)) {
- elm[key] = '';
- }
- }
- for (key in props) {
- cur = props[key];
- // ignore children if the node has textContent or innerHTML,
- // as these will throw away existing DOM nodes and cause removal errors
- // on subsequent patches (#3360)
- if (key === 'textContent' || key === 'innerHTML') {
- if (vnode.children) { vnode.children.length = 0; }
- if (cur === oldProps[key]) { continue }
- // #6601 work around Chrome version <= 55 bug where single textNode
- // replaced by innerHTML/textContent retains its parentNode property
- if (elm.childNodes.length === 1) {
- elm.removeChild(elm.childNodes[0]);
- }
- }
- if (key === 'value' && elm.tagName !== 'PROGRESS') {
- // store value as _value as well since
- // non-string values will be stringified
- elm._value = cur;
- // avoid resetting cursor position when value is the same
- var strCur = isUndef(cur) ? '' : String(cur);
- if (shouldUpdateValue(elm, strCur)) {
- elm.value = strCur;
- }
- } else if (key === 'innerHTML' && isSVG(elm.tagName) && isUndef(elm.innerHTML)) {
- // IE doesn't support innerHTML for SVG elements
- svgContainer = svgContainer || document.createElement('div');
- svgContainer.innerHTML = "<svg>" + cur + "</svg>";
- var svg = svgContainer.firstChild;
- while (elm.firstChild) {
- elm.removeChild(elm.firstChild);
- }
- while (svg.firstChild) {
- elm.appendChild(svg.firstChild);
- }
- } else if (
- // skip the update if old and new VDOM state is the same.
- // `value` is handled separately because the DOM value may be temporarily
- // out of sync with VDOM state due to focus, composition and modifiers.
- // This #4521 by skipping the unnecessary `checked` update.
- cur !== oldProps[key]
- ) {
- // some property updates can throw
- // e.g. `value` on <progress> w/ non-finite value
- try {
- elm[key] = cur;
- } catch (e) {}
- }
- }
- }
- // check platforms/web/util/attrs.js acceptValue
- function shouldUpdateValue (elm, checkVal) {
- return (!elm.composing && (
- elm.tagName === 'OPTION' ||
- isNotInFocusAndDirty(elm, checkVal) ||
- isDirtyWithModifiers(elm, checkVal)
- ))
- }
- function isNotInFocusAndDirty (elm, checkVal) {
- // return true when textbox (.number and .trim) loses focus and its value is
- // not equal to the updated value
- var notInFocus = true;
- // #6157
- // work around IE bug when accessing document.activeElement in an iframe
- try { notInFocus = document.activeElement !== elm; } catch (e) {}
- return notInFocus && elm.value !== checkVal
- }
- function isDirtyWithModifiers (elm, newVal) {
- var value = elm.value;
- var modifiers = elm._vModifiers; // injected by v-model runtime
- if (isDef(modifiers)) {
- if (modifiers.number) {
- return toNumber(value) !== toNumber(newVal)
- }
- if (modifiers.trim) {
- return value.trim() !== newVal.trim()
- }
- }
- return value !== newVal
- }
- var domProps = {
- create: updateDOMProps,
- update: updateDOMProps
- };
- /* */
- var parseStyleText = cached(function (cssText) {
- var res = {};
- var listDelimiter = /;(?![^(]*\))/g;
- var propertyDelimiter = /:(.+)/;
- cssText.split(listDelimiter).forEach(function (item) {
- if (item) {
- var tmp = item.split(propertyDelimiter);
- tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
- }
- });
- return res
- });
- // merge static and dynamic style data on the same vnode
- function normalizeStyleData (data) {
- var style = normalizeStyleBinding(data.style);
- // static style is pre-processed into an object during compilation
- // and is always a fresh object, so it's safe to merge into it
- return data.staticStyle
- ? extend(data.staticStyle, style)
- : style
- }
- // normalize possible array / string values into Object
- function normalizeStyleBinding (bindingStyle) {
- if (Array.isArray(bindingStyle)) {
- return toObject(bindingStyle)
- }
- if (typeof bindingStyle === 'string') {
- return parseStyleText(bindingStyle)
- }
- return bindingStyle
- }
- /**
- * parent component style should be after child's
- * so that parent component's style could override it
- */
- function getStyle (vnode, checkChild) {
- var res = {};
- var styleData;
- if (checkChild) {
- var childNode = vnode;
- while (childNode.componentInstance) {
- childNode = childNode.componentInstance._vnode;
- if (
- childNode && childNode.data &&
- (styleData = normalizeStyleData(childNode.data))
- ) {
- extend(res, styleData);
- }
- }
- }
- if ((styleData = normalizeStyleData(vnode.data))) {
- extend(res, styleData);
- }
- var parentNode = vnode;
- while ((parentNode = parentNode.parent)) {
- if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
- extend(res, styleData);
- }
- }
- return res
- }
- /* */
- var cssVarRE = /^--/;
- var importantRE = /\s*!important$/;
- var setProp = function (el, name, val) {
- /* istanbul ignore if */
- if (cssVarRE.test(name)) {
- el.style.setProperty(name, val);
- } else if (importantRE.test(val)) {
- el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important');
- } else {
- var normalizedName = normalize(name);
- if (Array.isArray(val)) {
- // Support values array created by autoprefixer, e.g.
- // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
- // Set them one by one, and the browser will only set those it can recognize
- for (var i = 0, len = val.length; i < len; i++) {
- el.style[normalizedName] = val[i];
- }
- } else {
- el.style[normalizedName] = val;
- }
- }
- };
- var vendorNames = ['Webkit', 'Moz', 'ms'];
- var emptyStyle;
- var normalize = cached(function (prop) {
- emptyStyle = emptyStyle || document.createElement('div').style;
- prop = camelize(prop);
- if (prop !== 'filter' && (prop in emptyStyle)) {
- return prop
- }
- var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
- for (var i = 0; i < vendorNames.length; i++) {
- var name = vendorNames[i] + capName;
- if (name in emptyStyle) {
- return name
- }
- }
- });
- function updateStyle (oldVnode, vnode) {
- var data = vnode.data;
- var oldData = oldVnode.data;
- if (isUndef(data.staticStyle) && isUndef(data.style) &&
- isUndef(oldData.staticStyle) && isUndef(oldData.style)
- ) {
- return
- }
- var cur, name;
- var el = vnode.elm;
- var oldStaticStyle = oldData.staticStyle;
- var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
- // if static style exists, stylebinding already merged into it when doing normalizeStyleData
- var oldStyle = oldStaticStyle || oldStyleBinding;
- var style = normalizeStyleBinding(vnode.data.style) || {};
- // store normalized style under a different key for next diff
- // make sure to clone it if it's reactive, since the user likely wants
- // to mutate it.
- vnode.data.normalizedStyle = isDef(style.__ob__)
- ? extend({}, style)
- : style;
- var newStyle = getStyle(vnode, true);
- for (name in oldStyle) {
- if (isUndef(newStyle[name])) {
- setProp(el, name, '');
- }
- }
- for (name in newStyle) {
- cur = newStyle[name];
- if (cur !== oldStyle[name]) {
- // ie9 setting to null has no effect, must use empty string
- setProp(el, name, cur == null ? '' : cur);
- }
- }
- }
- var style = {
- create: updateStyle,
- update: updateStyle
- };
- /* */
- var whitespaceRE = /\s+/;
- /**
- * Add class with compatibility for SVG since classList is not supported on
- * SVG elements in IE
- */
- function addClass (el, cls) {
- /* istanbul ignore if */
- if (!cls || !(cls = cls.trim())) {
- return
- }
- /* istanbul ignore else */
- if (el.classList) {
- if (cls.indexOf(' ') > -1) {
- cls.split(whitespaceRE).forEach(function (c) { return el.classList.add(c); });
- } else {
- el.classList.add(cls);
- }
- } else {
- var cur = " " + (el.getAttribute('class') || '') + " ";
- if (cur.indexOf(' ' + cls + ' ') < 0) {
- el.setAttribute('class', (cur + cls).trim());
- }
- }
- }
- /**
- * Remove class with compatibility for SVG since classList is not supported on
- * SVG elements in IE
- */
- function removeClass (el, cls) {
- /* istanbul ignore if */
- if (!cls || !(cls = cls.trim())) {
- return
- }
- /* istanbul ignore else */
- if (el.classList) {
- if (cls.indexOf(' ') > -1) {
- cls.split(whitespaceRE).forEach(function (c) { return el.classList.remove(c); });
- } else {
- el.classList.remove(cls);
- }
- if (!el.classList.length) {
- el.removeAttribute('class');
- }
- } else {
- var cur = " " + (el.getAttribute('class') || '') + " ";
- var tar = ' ' + cls + ' ';
- while (cur.indexOf(tar) >= 0) {
- cur = cur.replace(tar, ' ');
- }
- cur = cur.trim();
- if (cur) {
- el.setAttribute('class', cur);
- } else {
- el.removeAttribute('class');
- }
- }
- }
- /* */
- function resolveTransition (def$$1) {
- if (!def$$1) {
- return
- }
- /* istanbul ignore else */
- if (typeof def$$1 === 'object') {
- var res = {};
- if (def$$1.css !== false) {
- extend(res, autoCssTransition(def$$1.name || 'v'));
- }
- extend(res, def$$1);
- return res
- } else if (typeof def$$1 === 'string') {
- return autoCssTransition(def$$1)
- }
- }
- var autoCssTransition = cached(function (name) {
- return {
- enterClass: (name + "-enter"),
- enterToClass: (name + "-enter-to"),
- enterActiveClass: (name + "-enter-active"),
- leaveClass: (name + "-leave"),
- leaveToClass: (name + "-leave-to"),
- leaveActiveClass: (name + "-leave-active")
- }
- });
- var hasTransition = inBrowser && !isIE9;
- var TRANSITION = 'transition';
- var ANIMATION = 'animation';
- // Transition property/event sniffing
- var transitionProp = 'transition';
- var transitionEndEvent = 'transitionend';
- var animationProp = 'animation';
- var animationEndEvent = 'animationend';
- if (hasTransition) {
- /* istanbul ignore if */
- if (window.ontransitionend === undefined &&
- window.onwebkittransitionend !== undefined
- ) {
- transitionProp = 'WebkitTransition';
- transitionEndEvent = 'webkitTransitionEnd';
- }
- if (window.onanimationend === undefined &&
- window.onwebkitanimationend !== undefined
- ) {
- animationProp = 'WebkitAnimation';
- animationEndEvent = 'webkitAnimationEnd';
- }
- }
- // binding to window is necessary to make hot reload work in IE in strict mode
- var raf = inBrowser
- ? window.requestAnimationFrame
- ? window.requestAnimationFrame.bind(window)
- : setTimeout
- : /* istanbul ignore next */ function (fn) { return fn(); };
- function nextFrame (fn) {
- raf(function () {
- raf(fn);
- });
- }
- function addTransitionClass (el, cls) {
- var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
- if (transitionClasses.indexOf(cls) < 0) {
- transitionClasses.push(cls);
- addClass(el, cls);
- }
- }
- function removeTransitionClass (el, cls) {
- if (el._transitionClasses) {
- remove(el._transitionClasses, cls);
- }
- removeClass(el, cls);
- }
- function whenTransitionEnds (
- el,
- expectedType,
- cb
- ) {
- var ref = getTransitionInfo(el, expectedType);
- var type = ref.type;
- var timeout = ref.timeout;
- var propCount = ref.propCount;
- if (!type) { return cb() }
- var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
- var ended = 0;
- var end = function () {
- el.removeEventListener(event, onEnd);
- cb();
- };
- var onEnd = function (e) {
- if (e.target === el) {
- if (++ended >= propCount) {
- end();
- }
- }
- };
- setTimeout(function () {
- if (ended < propCount) {
- end();
- }
- }, timeout + 1);
- el.addEventListener(event, onEnd);
- }
- var transformRE = /\b(transform|all)(,|$)/;
- function getTransitionInfo (el, expectedType) {
- var styles = window.getComputedStyle(el);
- // JSDOM may return undefined for transition properties
- var transitionDelays = (styles[transitionProp + 'Delay'] || '').split(', ');
- var transitionDurations = (styles[transitionProp + 'Duration'] || '').split(', ');
- var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
- var animationDelays = (styles[animationProp + 'Delay'] || '').split(', ');
- var animationDurations = (styles[animationProp + 'Duration'] || '').split(', ');
- var animationTimeout = getTimeout(animationDelays, animationDurations);
- var type;
- var timeout = 0;
- var propCount = 0;
- /* istanbul ignore if */
- if (expectedType === TRANSITION) {
- if (transitionTimeout > 0) {
- type = TRANSITION;
- timeout = transitionTimeout;
- propCount = transitionDurations.length;
- }
- } else if (expectedType === ANIMATION) {
- if (animationTimeout > 0) {
- type = ANIMATION;
- timeout = animationTimeout;
- propCount = animationDurations.length;
- }
- } else {
- timeout = Math.max(transitionTimeout, animationTimeout);
- type = timeout > 0
- ? transitionTimeout > animationTimeout
- ? TRANSITION
- : ANIMATION
- : null;
- propCount = type
- ? type === TRANSITION
- ? transitionDurations.length
- : animationDurations.length
- : 0;
- }
- var hasTransform =
- type === TRANSITION &&
- transformRE.test(styles[transitionProp + 'Property']);
- return {
- type: type,
- timeout: timeout,
- propCount: propCount,
- hasTransform: hasTransform
- }
- }
- function getTimeout (delays, durations) {
- /* istanbul ignore next */
- while (delays.length < durations.length) {
- delays = delays.concat(delays);
- }
- return Math.max.apply(null, durations.map(function (d, i) {
- return toMs(d) + toMs(delays[i])
- }))
- }
- // Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers
- // in a locale-dependent way, using a comma instead of a dot.
- // If comma is not replaced with a dot, the input will be rounded down (i.e. acting
- // as a floor function) causing unexpected behaviors
- function toMs (s) {
- return Number(s.slice(0, -1).replace(',', '.')) * 1000
- }
- /* */
- function enter (vnode, toggleDisplay) {
- var el = vnode.elm;
- // call leave callback now
- if (isDef(el._leaveCb)) {
- el._leaveCb.cancelled = true;
- el._leaveCb();
- }
- var data = resolveTransition(vnode.data.transition);
- if (isUndef(data)) {
- return
- }
- /* istanbul ignore if */
- if (isDef(el._enterCb) || el.nodeType !== 1) {
- return
- }
- var css = data.css;
- var type = data.type;
- var enterClass = data.enterClass;
- var enterToClass = data.enterToClass;
- var enterActiveClass = data.enterActiveClass;
- var appearClass = data.appearClass;
- var appearToClass = data.appearToClass;
- var appearActiveClass = data.appearActiveClass;
- var beforeEnter = data.beforeEnter;
- var enter = data.enter;
- var afterEnter = data.afterEnter;
- var enterCancelled = data.enterCancelled;
- var beforeAppear = data.beforeAppear;
- var appear = data.appear;
- var afterAppear = data.afterAppear;
- var appearCancelled = data.appearCancelled;
- var duration = data.duration;
- // activeInstance will always be the <transition> component managing this
- // transition. One edge case to check is when the <transition> is placed
- // as the root node of a child component. In that case we need to check
- // <transition>'s parent for appear check.
- var context = activeInstance;
- var transitionNode = activeInstance.$vnode;
- while (transitionNode && transitionNode.parent) {
- context = transitionNode.context;
- transitionNode = transitionNode.parent;
- }
- var isAppear = !context._isMounted || !vnode.isRootInsert;
- if (isAppear && !appear && appear !== '') {
- return
- }
- var startClass = isAppear && appearClass
- ? appearClass
- : enterClass;
- var activeClass = isAppear && appearActiveClass
- ? appearActiveClass
- : enterActiveClass;
- var toClass = isAppear && appearToClass
- ? appearToClass
- : enterToClass;
- var beforeEnterHook = isAppear
- ? (beforeAppear || beforeEnter)
- : beforeEnter;
- var enterHook = isAppear
- ? (typeof appear === 'function' ? appear : enter)
- : enter;
- var afterEnterHook = isAppear
- ? (afterAppear || afterEnter)
- : afterEnter;
- var enterCancelledHook = isAppear
- ? (appearCancelled || enterCancelled)
- : enterCancelled;
- var explicitEnterDuration = toNumber(
- isObject(duration)
- ? duration.enter
- : duration
- );
- if ( true && explicitEnterDuration != null) {
- checkDuration(explicitEnterDuration, 'enter', vnode);
- }
- var expectsCSS = css !== false && !isIE9;
- var userWantsControl = getHookArgumentsLength(enterHook);
- var cb = el._enterCb = once(function () {
- if (expectsCSS) {
- removeTransitionClass(el, toClass);
- removeTransitionClass(el, activeClass);
- }
- if (cb.cancelled) {
- if (expectsCSS) {
- removeTransitionClass(el, startClass);
- }
- enterCancelledHook && enterCancelledHook(el);
- } else {
- afterEnterHook && afterEnterHook(el);
- }
- el._enterCb = null;
- });
- if (!vnode.data.show) {
- // remove pending leave element on enter by injecting an insert hook
- mergeVNodeHook(vnode, 'insert', function () {
- var parent = el.parentNode;
- var pendingNode = parent && parent._pending && parent._pending[vnode.key];
- if (pendingNode &&
- pendingNode.tag === vnode.tag &&
- pendingNode.elm._leaveCb
- ) {
- pendingNode.elm._leaveCb();
- }
- enterHook && enterHook(el, cb);
- });
- }
- // start enter transition
- beforeEnterHook && beforeEnterHook(el);
- if (expectsCSS) {
- addTransitionClass(el, startClass);
- addTransitionClass(el, activeClass);
- nextFrame(function () {
- removeTransitionClass(el, startClass);
- if (!cb.cancelled) {
- addTransitionClass(el, toClass);
- if (!userWantsControl) {
- if (isValidDuration(explicitEnterDuration)) {
- setTimeout(cb, explicitEnterDuration);
- } else {
- whenTransitionEnds(el, type, cb);
- }
- }
- }
- });
- }
- if (vnode.data.show) {
- toggleDisplay && toggleDisplay();
- enterHook && enterHook(el, cb);
- }
- if (!expectsCSS && !userWantsControl) {
- cb();
- }
- }
- function leave (vnode, rm) {
- var el = vnode.elm;
- // call enter callback now
- if (isDef(el._enterCb)) {
- el._enterCb.cancelled = true;
- el._enterCb();
- }
- var data = resolveTransition(vnode.data.transition);
- if (isUndef(data) || el.nodeType !== 1) {
- return rm()
- }
- /* istanbul ignore if */
- if (isDef(el._leaveCb)) {
- return
- }
- var css = data.css;
- var type = data.type;
- var leaveClass = data.leaveClass;
- var leaveToClass = data.leaveToClass;
- var leaveActiveClass = data.leaveActiveClass;
- var beforeLeave = data.beforeLeave;
- var leave = data.leave;
- var afterLeave = data.afterLeave;
- var leaveCancelled = data.leaveCancelled;
- var delayLeave = data.delayLeave;
- var duration = data.duration;
- var expectsCSS = css !== false && !isIE9;
- var userWantsControl = getHookArgumentsLength(leave);
- var explicitLeaveDuration = toNumber(
- isObject(duration)
- ? duration.leave
- : duration
- );
- if ( true && isDef(explicitLeaveDuration)) {
- checkDuration(explicitLeaveDuration, 'leave', vnode);
- }
- var cb = el._leaveCb = once(function () {
- if (el.parentNode && el.parentNode._pending) {
- el.parentNode._pending[vnode.key] = null;
- }
- if (expectsCSS) {
- removeTransitionClass(el, leaveToClass);
- removeTransitionClass(el, leaveActiveClass);
- }
- if (cb.cancelled) {
- if (expectsCSS) {
- removeTransitionClass(el, leaveClass);
- }
- leaveCancelled && leaveCancelled(el);
- } else {
- rm();
- afterLeave && afterLeave(el);
- }
- el._leaveCb = null;
- });
- if (delayLeave) {
- delayLeave(performLeave);
- } else {
- performLeave();
- }
- function performLeave () {
- // the delayed leave may have already been cancelled
- if (cb.cancelled) {
- return
- }
- // record leaving element
- if (!vnode.data.show && el.parentNode) {
- (el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
- }
- beforeLeave && beforeLeave(el);
- if (expectsCSS) {
- addTransitionClass(el, leaveClass);
- addTransitionClass(el, leaveActiveClass);
- nextFrame(function () {
- removeTransitionClass(el, leaveClass);
- if (!cb.cancelled) {
- addTransitionClass(el, leaveToClass);
- if (!userWantsControl) {
- if (isValidDuration(explicitLeaveDuration)) {
- setTimeout(cb, explicitLeaveDuration);
- } else {
- whenTransitionEnds(el, type, cb);
- }
- }
- }
- });
- }
- leave && leave(el, cb);
- if (!expectsCSS && !userWantsControl) {
- cb();
- }
- }
- }
- // only used in dev mode
- function checkDuration (val, name, vnode) {
- if (typeof val !== 'number') {
- warn(
- "<transition> explicit " + name + " duration is not a valid number - " +
- "got " + (JSON.stringify(val)) + ".",
- vnode.context
- );
- } else if (isNaN(val)) {
- warn(
- "<transition> explicit " + name + " duration is NaN - " +
- 'the duration expression might be incorrect.',
- vnode.context
- );
- }
- }
- function isValidDuration (val) {
- return typeof val === 'number' && !isNaN(val)
- }
- /**
- * Normalize a transition hook's argument length. The hook may be:
- * - a merged hook (invoker) with the original in .fns
- * - a wrapped component method (check ._length)
- * - a plain function (.length)
- */
- function getHookArgumentsLength (fn) {
- if (isUndef(fn)) {
- return false
- }
- var invokerFns = fn.fns;
- if (isDef(invokerFns)) {
- // invoker
- return getHookArgumentsLength(
- Array.isArray(invokerFns)
- ? invokerFns[0]
- : invokerFns
- )
- } else {
- return (fn._length || fn.length) > 1
- }
- }
- function _enter (_, vnode) {
- if (vnode.data.show !== true) {
- enter(vnode);
- }
- }
- var transition = inBrowser ? {
- create: _enter,
- activate: _enter,
- remove: function remove$$1 (vnode, rm) {
- /* istanbul ignore else */
- if (vnode.data.show !== true) {
- leave(vnode, rm);
- } else {
- rm();
- }
- }
- } : {};
- var platformModules = [
- attrs,
- klass,
- events,
- domProps,
- style,
- transition
- ];
- /* */
- // the directive module should be applied last, after all
- // built-in modules have been applied.
- var modules = platformModules.concat(baseModules);
- var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });
- /**
- * Not type checking this file because flow doesn't like attaching
- * properties to Elements.
- */
- /* istanbul ignore if */
- if (isIE9) {
- // http://www.matts411.com/post/internet-explorer-9-oninput/
- document.addEventListener('selectionchange', function () {
- var el = document.activeElement;
- if (el && el.vmodel) {
- trigger(el, 'input');
- }
- });
- }
- var directive = {
- inserted: function inserted (el, binding, vnode, oldVnode) {
- if (vnode.tag === 'select') {
- // #6903
- if (oldVnode.elm && !oldVnode.elm._vOptions) {
- mergeVNodeHook(vnode, 'postpatch', function () {
- directive.componentUpdated(el, binding, vnode);
- });
- } else {
- setSelected(el, binding, vnode.context);
- }
- el._vOptions = [].map.call(el.options, getValue);
- } else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
- el._vModifiers = binding.modifiers;
- if (!binding.modifiers.lazy) {
- el.addEventListener('compositionstart', onCompositionStart);
- el.addEventListener('compositionend', onCompositionEnd);
- // Safari < 10.2 & UIWebView doesn't fire compositionend when
- // switching focus before confirming composition choice
- // this also fixes the issue where some browsers e.g. iOS Chrome
- // fires "change" instead of "input" on autocomplete.
- el.addEventListener('change', onCompositionEnd);
- /* istanbul ignore if */
- if (isIE9) {
- el.vmodel = true;
- }
- }
- }
- },
- componentUpdated: function componentUpdated (el, binding, vnode) {
- if (vnode.tag === 'select') {
- setSelected(el, binding, vnode.context);
- // in case the options rendered by v-for have changed,
- // it's possible that the value is out-of-sync with the rendered options.
- // detect such cases and filter out values that no longer has a matching
- // option in the DOM.
- var prevOptions = el._vOptions;
- var curOptions = el._vOptions = [].map.call(el.options, getValue);
- if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {
- // trigger change event if
- // no matching option found for at least one value
- var needReset = el.multiple
- ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })
- : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);
- if (needReset) {
- trigger(el, 'change');
- }
- }
- }
- }
- };
- function setSelected (el, binding, vm) {
- actuallySetSelected(el, binding, vm);
- /* istanbul ignore if */
- if (isIE || isEdge) {
- setTimeout(function () {
- actuallySetSelected(el, binding, vm);
- }, 0);
- }
- }
- function actuallySetSelected (el, binding, vm) {
- var value = binding.value;
- var isMultiple = el.multiple;
- if (isMultiple && !Array.isArray(value)) {
- true && warn(
- "<select multiple v-model=\"" + (binding.expression) + "\"> " +
- "expects an Array value for its binding, but got " + (Object.prototype.toString.call(value).slice(8, -1)),
- vm
- );
- return
- }
- var selected, option;
- for (var i = 0, l = el.options.length; i < l; i++) {
- option = el.options[i];
- if (isMultiple) {
- selected = looseIndexOf(value, getValue(option)) > -1;
- if (option.selected !== selected) {
- option.selected = selected;
- }
- } else {
- if (looseEqual(getValue(option), value)) {
- if (el.selectedIndex !== i) {
- el.selectedIndex = i;
- }
- return
- }
- }
- }
- if (!isMultiple) {
- el.selectedIndex = -1;
- }
- }
- function hasNoMatchingOption (value, options) {
- return options.every(function (o) { return !looseEqual(o, value); })
- }
- function getValue (option) {
- return '_value' in option
- ? option._value
- : option.value
- }
- function onCompositionStart (e) {
- e.target.composing = true;
- }
- function onCompositionEnd (e) {
- // prevent triggering an input event for no reason
- if (!e.target.composing) { return }
- e.target.composing = false;
- trigger(e.target, 'input');
- }
- function trigger (el, type) {
- var e = document.createEvent('HTMLEvents');
- e.initEvent(type, true, true);
- el.dispatchEvent(e);
- }
- /* */
- // recursively search for possible transition defined inside the component root
- function locateNode (vnode) {
- return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
- ? locateNode(vnode.componentInstance._vnode)
- : vnode
- }
- var show = {
- bind: function bind (el, ref, vnode) {
- var value = ref.value;
- vnode = locateNode(vnode);
- var transition$$1 = vnode.data && vnode.data.transition;
- var originalDisplay = el.__vOriginalDisplay =
- el.style.display === 'none' ? '' : el.style.display;
- if (value && transition$$1) {
- vnode.data.show = true;
- enter(vnode, function () {
- el.style.display = originalDisplay;
- });
- } else {
- el.style.display = value ? originalDisplay : 'none';
- }
- },
- update: function update (el, ref, vnode) {
- var value = ref.value;
- var oldValue = ref.oldValue;
- /* istanbul ignore if */
- if (!value === !oldValue) { return }
- vnode = locateNode(vnode);
- var transition$$1 = vnode.data && vnode.data.transition;
- if (transition$$1) {
- vnode.data.show = true;
- if (value) {
- enter(vnode, function () {
- el.style.display = el.__vOriginalDisplay;
- });
- } else {
- leave(vnode, function () {
- el.style.display = 'none';
- });
- }
- } else {
- el.style.display = value ? el.__vOriginalDisplay : 'none';
- }
- },
- unbind: function unbind (
- el,
- binding,
- vnode,
- oldVnode,
- isDestroy
- ) {
- if (!isDestroy) {
- el.style.display = el.__vOriginalDisplay;
- }
- }
- };
- var platformDirectives = {
- model: directive,
- show: show
- };
- /* */
- var transitionProps = {
- name: String,
- appear: Boolean,
- css: Boolean,
- mode: String,
- type: String,
- enterClass: String,
- leaveClass: String,
- enterToClass: String,
- leaveToClass: String,
- enterActiveClass: String,
- leaveActiveClass: String,
- appearClass: String,
- appearActiveClass: String,
- appearToClass: String,
- duration: [Number, String, Object]
- };
- // in case the child is also an abstract component, e.g. <keep-alive>
- // we want to recursively retrieve the real component to be rendered
- function getRealChild (vnode) {
- var compOptions = vnode && vnode.componentOptions;
- if (compOptions && compOptions.Ctor.options.abstract) {
- return getRealChild(getFirstComponentChild(compOptions.children))
- } else {
- return vnode
- }
- }
- function extractTransitionData (comp) {
- var data = {};
- var options = comp.$options;
- // props
- for (var key in options.propsData) {
- data[key] = comp[key];
- }
- // events.
- // extract listeners and pass them directly to the transition methods
- var listeners = options._parentListeners;
- for (var key$1 in listeners) {
- data[camelize(key$1)] = listeners[key$1];
- }
- return data
- }
- function placeholder (h, rawChild) {
- if (/\d-keep-alive$/.test(rawChild.tag)) {
- return h('keep-alive', {
- props: rawChild.componentOptions.propsData
- })
- }
- }
- function hasParentTransition (vnode) {
- while ((vnode = vnode.parent)) {
- if (vnode.data.transition) {
- return true
- }
- }
- }
- function isSameChild (child, oldChild) {
- return oldChild.key === child.key && oldChild.tag === child.tag
- }
- var isNotTextNode = function (c) { return c.tag || isAsyncPlaceholder(c); };
- var isVShowDirective = function (d) { return d.name === 'show'; };
- var Transition = {
- name: 'transition',
- props: transitionProps,
- abstract: true,
- render: function render (h) {
- var this$1 = this;
- var children = this.$slots.default;
- if (!children) {
- return
- }
- // filter out text nodes (possible whitespaces)
- children = children.filter(isNotTextNode);
- /* istanbul ignore if */
- if (!children.length) {
- return
- }
- // warn multiple elements
- if ( true && children.length > 1) {
- warn(
- '<transition> can only be used on a single element. Use ' +
- '<transition-group> for lists.',
- this.$parent
- );
- }
- var mode = this.mode;
- // warn invalid mode
- if ( true &&
- mode && mode !== 'in-out' && mode !== 'out-in'
- ) {
- warn(
- 'invalid <transition> mode: ' + mode,
- this.$parent
- );
- }
- var rawChild = children[0];
- // if this is a component root node and the component's
- // parent container node also has transition, skip.
- if (hasParentTransition(this.$vnode)) {
- return rawChild
- }
- // apply transition data to child
- // use getRealChild() to ignore abstract components e.g. keep-alive
- var child = getRealChild(rawChild);
- /* istanbul ignore if */
- if (!child) {
- return rawChild
- }
- if (this._leaving) {
- return placeholder(h, rawChild)
- }
- // ensure a key that is unique to the vnode type and to this transition
- // component instance. This key will be used to remove pending leaving nodes
- // during entering.
- var id = "__transition-" + (this._uid) + "-";
- child.key = child.key == null
- ? child.isComment
- ? id + 'comment'
- : id + child.tag
- : isPrimitive(child.key)
- ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
- : child.key;
- var data = (child.data || (child.data = {})).transition = extractTransitionData(this);
- var oldRawChild = this._vnode;
- var oldChild = getRealChild(oldRawChild);
- // mark v-show
- // so that the transition module can hand over the control to the directive
- if (child.data.directives && child.data.directives.some(isVShowDirective)) {
- child.data.show = true;
- }
- if (
- oldChild &&
- oldChild.data &&
- !isSameChild(child, oldChild) &&
- !isAsyncPlaceholder(oldChild) &&
- // #6687 component root is a comment node
- !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
- ) {
- // replace old child transition data with fresh one
- // important for dynamic transitions!
- var oldData = oldChild.data.transition = extend({}, data);
- // handle transition mode
- if (mode === 'out-in') {
- // return placeholder node and queue update when leave finishes
- this._leaving = true;
- mergeVNodeHook(oldData, 'afterLeave', function () {
- this$1._leaving = false;
- this$1.$forceUpdate();
- });
- return placeholder(h, rawChild)
- } else if (mode === 'in-out') {
- if (isAsyncPlaceholder(child)) {
- return oldRawChild
- }
- var delayedLeave;
- var performLeave = function () { delayedLeave(); };
- mergeVNodeHook(data, 'afterEnter', performLeave);
- mergeVNodeHook(data, 'enterCancelled', performLeave);
- mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });
- }
- }
- return rawChild
- }
- };
- /* */
- var props = extend({
- tag: String,
- moveClass: String
- }, transitionProps);
- delete props.mode;
- var TransitionGroup = {
- props: props,
- beforeMount: function beforeMount () {
- var this$1 = this;
- var update = this._update;
- this._update = function (vnode, hydrating) {
- var restoreActiveInstance = setActiveInstance(this$1);
- // force removing pass
- this$1.__patch__(
- this$1._vnode,
- this$1.kept,
- false, // hydrating
- true // removeOnly (!important, avoids unnecessary moves)
- );
- this$1._vnode = this$1.kept;
- restoreActiveInstance();
- update.call(this$1, vnode, hydrating);
- };
- },
- render: function render (h) {
- var tag = this.tag || this.$vnode.data.tag || 'span';
- var map = Object.create(null);
- var prevChildren = this.prevChildren = this.children;
- var rawChildren = this.$slots.default || [];
- var children = this.children = [];
- var transitionData = extractTransitionData(this);
- for (var i = 0; i < rawChildren.length; i++) {
- var c = rawChildren[i];
- if (c.tag) {
- if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
- children.push(c);
- map[c.key] = c
- ;(c.data || (c.data = {})).transition = transitionData;
- } else if (true) {
- var opts = c.componentOptions;
- var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;
- warn(("<transition-group> children must be keyed: <" + name + ">"));
- }
- }
- }
- if (prevChildren) {
- var kept = [];
- var removed = [];
- for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {
- var c$1 = prevChildren[i$1];
- c$1.data.transition = transitionData;
- c$1.data.pos = c$1.elm.getBoundingClientRect();
- if (map[c$1.key]) {
- kept.push(c$1);
- } else {
- removed.push(c$1);
- }
- }
- this.kept = h(tag, null, kept);
- this.removed = removed;
- }
- return h(tag, null, children)
- },
- updated: function updated () {
- var children = this.prevChildren;
- var moveClass = this.moveClass || ((this.name || 'v') + '-move');
- if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
- return
- }
- // we divide the work into three loops to avoid mixing DOM reads and writes
- // in each iteration - which helps prevent layout thrashing.
- children.forEach(callPendingCbs);
- children.forEach(recordPosition);
- children.forEach(applyTranslation);
- // force reflow to put everything in position
- // assign to this to avoid being removed in tree-shaking
- // $flow-disable-line
- this._reflow = document.body.offsetHeight;
- children.forEach(function (c) {
- if (c.data.moved) {
- var el = c.elm;
- var s = el.style;
- addTransitionClass(el, moveClass);
- s.transform = s.WebkitTransform = s.transitionDuration = '';
- el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
- if (e && e.target !== el) {
- return
- }
- if (!e || /transform$/.test(e.propertyName)) {
- el.removeEventListener(transitionEndEvent, cb);
- el._moveCb = null;
- removeTransitionClass(el, moveClass);
- }
- });
- }
- });
- },
- methods: {
- hasMove: function hasMove (el, moveClass) {
- /* istanbul ignore if */
- if (!hasTransition) {
- return false
- }
- /* istanbul ignore if */
- if (this._hasMove) {
- return this._hasMove
- }
- // Detect whether an element with the move class applied has
- // CSS transitions. Since the element may be inside an entering
- // transition at this very moment, we make a clone of it and remove
- // all other transition classes applied to ensure only the move class
- // is applied.
- var clone = el.cloneNode();
- if (el._transitionClasses) {
- el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });
- }
- addClass(clone, moveClass);
- clone.style.display = 'none';
- this.$el.appendChild(clone);
- var info = getTransitionInfo(clone);
- this.$el.removeChild(clone);
- return (this._hasMove = info.hasTransform)
- }
- }
- };
- function callPendingCbs (c) {
- /* istanbul ignore if */
- if (c.elm._moveCb) {
- c.elm._moveCb();
- }
- /* istanbul ignore if */
- if (c.elm._enterCb) {
- c.elm._enterCb();
- }
- }
- function recordPosition (c) {
- c.data.newPos = c.elm.getBoundingClientRect();
- }
- function applyTranslation (c) {
- var oldPos = c.data.pos;
- var newPos = c.data.newPos;
- var dx = oldPos.left - newPos.left;
- var dy = oldPos.top - newPos.top;
- if (dx || dy) {
- c.data.moved = true;
- var s = c.elm.style;
- s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
- s.transitionDuration = '0s';
- }
- }
- var platformComponents = {
- Transition: Transition,
- TransitionGroup: TransitionGroup
- };
- /* */
- // install platform specific utils
- Vue.config.mustUseProp = mustUseProp;
- Vue.config.isReservedTag = isReservedTag;
- Vue.config.isReservedAttr = isReservedAttr;
- Vue.config.getTagNamespace = getTagNamespace;
- Vue.config.isUnknownElement = isUnknownElement;
- // install platform runtime directives & components
- extend(Vue.options.directives, platformDirectives);
- extend(Vue.options.components, platformComponents);
- // install platform patch function
- Vue.prototype.__patch__ = inBrowser ? patch : noop;
- // public mount method
- Vue.prototype.$mount = function (
- el,
- hydrating
- ) {
- el = el && inBrowser ? query(el) : undefined;
- return mountComponent(this, el, hydrating)
- };
- // devtools global hook
- /* istanbul ignore next */
- if (inBrowser) {
- setTimeout(function () {
- if (config.devtools) {
- if (devtools) {
- devtools.emit('init', Vue);
- } else if (
- true
- ) {
- console[console.info ? 'info' : 'log'](
- 'Download the Vue Devtools extension for a better development experience:\n' +
- 'https://github.com/vuejs/vue-devtools'
- );
- }
- }
- if ( true &&
- config.productionTip !== false &&
- typeof console !== 'undefined'
- ) {
- console[console.info ? 'info' : 'log'](
- "You are running Vue in development mode.\n" +
- "Make sure to turn on production mode when deploying for production.\n" +
- "See more tips at https://vuejs.org/guide/deployment.html"
- );
- }
- }, 0);
- }
- /* */
- /* harmony default export */ __webpack_exports__["default"] = (Vue);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/vuex/dist/vuex.esm.js":
- /*!********************************************!*\
- !*** ./node_modules/vuex/dist/vuex.esm.js ***!
- \********************************************/
- /*! exports provided: default, Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Store", function() { return Store; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLogger", function() { return createLogger; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNamespacedHelpers", function() { return createNamespacedHelpers; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapActions", function() { return mapActions; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapGetters", function() { return mapGetters; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapMutations", function() { return mapMutations; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapState", function() { return mapState; });
- /*!
- * vuex v3.5.1
- * (c) 2020 Evan You
- * @license MIT
- */
- function applyMixin (Vue) {
- var version = Number(Vue.version.split('.')[0]);
- if (version >= 2) {
- Vue.mixin({ beforeCreate: vuexInit });
- } else {
- // override init and inject vuex init procedure
- // for 1.x backwards compatibility.
- var _init = Vue.prototype._init;
- Vue.prototype._init = function (options) {
- if ( options === void 0 ) options = {};
- options.init = options.init
- ? [vuexInit].concat(options.init)
- : vuexInit;
- _init.call(this, options);
- };
- }
- /**
- * Vuex init hook, injected into each instances init hooks list.
- */
- function vuexInit () {
- var options = this.$options;
- // store injection
- if (options.store) {
- this.$store = typeof options.store === 'function'
- ? options.store()
- : options.store;
- } else if (options.parent && options.parent.$store) {
- this.$store = options.parent.$store;
- }
- }
- }
- var target = typeof window !== 'undefined'
- ? window
- : typeof global !== 'undefined'
- ? global
- : {};
- var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- function devtoolPlugin (store) {
- if (!devtoolHook) { return }
- store._devtoolHook = devtoolHook;
- devtoolHook.emit('vuex:init', store);
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
- store.replaceState(targetState);
- });
- store.subscribe(function (mutation, state) {
- devtoolHook.emit('vuex:mutation', mutation, state);
- }, { prepend: true });
- store.subscribeAction(function (action, state) {
- devtoolHook.emit('vuex:action', action, state);
- }, { prepend: true });
- }
- /**
- * Get the first item that pass the test
- * by second argument function
- *
- * @param {Array} list
- * @param {Function} f
- * @return {*}
- */
- function find (list, f) {
- return list.filter(f)[0]
- }
- /**
- * Deep copy the given object considering circular structure.
- * This function caches all nested objects and its copies.
- * If it detects circular structure, use cached copy to avoid infinite loop.
- *
- * @param {*} obj
- * @param {Array<Object>} cache
- * @return {*}
- */
- function deepCopy (obj, cache) {
- if ( cache === void 0 ) cache = [];
- // just return if obj is immutable value
- if (obj === null || typeof obj !== 'object') {
- return obj
- }
- // if obj is hit, it is in circular structure
- var hit = find(cache, function (c) { return c.original === obj; });
- if (hit) {
- return hit.copy
- }
- var copy = Array.isArray(obj) ? [] : {};
- // put the copy into cache at first
- // because we want to refer it in recursive deepCopy
- cache.push({
- original: obj,
- copy: copy
- });
- Object.keys(obj).forEach(function (key) {
- copy[key] = deepCopy(obj[key], cache);
- });
- return copy
- }
- /**
- * forEach for object
- */
- function forEachValue (obj, fn) {
- Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
- }
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- function isPromise (val) {
- return val && typeof val.then === 'function'
- }
- function assert (condition, msg) {
- if (!condition) { throw new Error(("[vuex] " + msg)) }
- }
- function partial (fn, arg) {
- return function () {
- return fn(arg)
- }
- }
- // Base data struct for store's module, package with some attribute and method
- var Module = function Module (rawModule, runtime) {
- this.runtime = runtime;
- // Store some children item
- this._children = Object.create(null);
- // Store the origin module object which passed by programmer
- this._rawModule = rawModule;
- var rawState = rawModule.state;
- // Store the origin module's state
- this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
- };
- var prototypeAccessors = { namespaced: { configurable: true } };
- prototypeAccessors.namespaced.get = function () {
- return !!this._rawModule.namespaced
- };
- Module.prototype.addChild = function addChild (key, module) {
- this._children[key] = module;
- };
- Module.prototype.removeChild = function removeChild (key) {
- delete this._children[key];
- };
- Module.prototype.getChild = function getChild (key) {
- return this._children[key]
- };
- Module.prototype.hasChild = function hasChild (key) {
- return key in this._children
- };
- Module.prototype.update = function update (rawModule) {
- this._rawModule.namespaced = rawModule.namespaced;
- if (rawModule.actions) {
- this._rawModule.actions = rawModule.actions;
- }
- if (rawModule.mutations) {
- this._rawModule.mutations = rawModule.mutations;
- }
- if (rawModule.getters) {
- this._rawModule.getters = rawModule.getters;
- }
- };
- Module.prototype.forEachChild = function forEachChild (fn) {
- forEachValue(this._children, fn);
- };
- Module.prototype.forEachGetter = function forEachGetter (fn) {
- if (this._rawModule.getters) {
- forEachValue(this._rawModule.getters, fn);
- }
- };
- Module.prototype.forEachAction = function forEachAction (fn) {
- if (this._rawModule.actions) {
- forEachValue(this._rawModule.actions, fn);
- }
- };
- Module.prototype.forEachMutation = function forEachMutation (fn) {
- if (this._rawModule.mutations) {
- forEachValue(this._rawModule.mutations, fn);
- }
- };
- Object.defineProperties( Module.prototype, prototypeAccessors );
- var ModuleCollection = function ModuleCollection (rawRootModule) {
- // register root module (Vuex.Store options)
- this.register([], rawRootModule, false);
- };
- ModuleCollection.prototype.get = function get (path) {
- return path.reduce(function (module, key) {
- return module.getChild(key)
- }, this.root)
- };
- ModuleCollection.prototype.getNamespace = function getNamespace (path) {
- var module = this.root;
- return path.reduce(function (namespace, key) {
- module = module.getChild(key);
- return namespace + (module.namespaced ? key + '/' : '')
- }, '')
- };
- ModuleCollection.prototype.update = function update$1 (rawRootModule) {
- update([], this.root, rawRootModule);
- };
- ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
- var this$1 = this;
- if ( runtime === void 0 ) runtime = true;
- if ((true)) {
- assertRawModule(path, rawModule);
- }
- var newModule = new Module(rawModule, runtime);
- if (path.length === 0) {
- this.root = newModule;
- } else {
- var parent = this.get(path.slice(0, -1));
- parent.addChild(path[path.length - 1], newModule);
- }
- // register nested modules
- if (rawModule.modules) {
- forEachValue(rawModule.modules, function (rawChildModule, key) {
- this$1.register(path.concat(key), rawChildModule, runtime);
- });
- }
- };
- ModuleCollection.prototype.unregister = function unregister (path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- var child = parent.getChild(key);
- if (!child) {
- if ((true)) {
- console.warn(
- "[vuex] trying to unregister module '" + key + "', which is " +
- "not registered"
- );
- }
- return
- }
- if (!child.runtime) {
- return
- }
- parent.removeChild(key);
- };
- ModuleCollection.prototype.isRegistered = function isRegistered (path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- return parent.hasChild(key)
- };
- function update (path, targetModule, newModule) {
- if ((true)) {
- assertRawModule(path, newModule);
- }
- // update target module
- targetModule.update(newModule);
- // update nested modules
- if (newModule.modules) {
- for (var key in newModule.modules) {
- if (!targetModule.getChild(key)) {
- if ((true)) {
- console.warn(
- "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
- 'manual reload is needed'
- );
- }
- return
- }
- update(
- path.concat(key),
- targetModule.getChild(key),
- newModule.modules[key]
- );
- }
- }
- }
- var functionAssert = {
- assert: function (value) { return typeof value === 'function'; },
- expected: 'function'
- };
- var objectAssert = {
- assert: function (value) { return typeof value === 'function' ||
- (typeof value === 'object' && typeof value.handler === 'function'); },
- expected: 'function or object with "handler" function'
- };
- var assertTypes = {
- getters: functionAssert,
- mutations: functionAssert,
- actions: objectAssert
- };
- function assertRawModule (path, rawModule) {
- Object.keys(assertTypes).forEach(function (key) {
- if (!rawModule[key]) { return }
- var assertOptions = assertTypes[key];
- forEachValue(rawModule[key], function (value, type) {
- assert(
- assertOptions.assert(value),
- makeAssertionMessage(path, key, type, value, assertOptions.expected)
- );
- });
- });
- }
- function makeAssertionMessage (path, key, type, value, expected) {
- var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
- if (path.length > 0) {
- buf += " in module \"" + (path.join('.')) + "\"";
- }
- buf += " is " + (JSON.stringify(value)) + ".";
- return buf
- }
- var Vue; // bind on install
- var Store = function Store (options) {
- var this$1 = this;
- if ( options === void 0 ) options = {};
- // Auto install if it is not done yet and `window` has `Vue`.
- // To allow users to avoid auto-installation in some cases,
- // this code should be placed here. See #731
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- }
- if ((true)) {
- assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
- assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
- assert(this instanceof Store, "store must be called with the new operator.");
- }
- var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
- var strict = options.strict; if ( strict === void 0 ) strict = false;
- // store internal state
- this._committing = false;
- this._actions = Object.create(null);
- this._actionSubscribers = [];
- this._mutations = Object.create(null);
- this._wrappedGetters = Object.create(null);
- this._modules = new ModuleCollection(options);
- this._modulesNamespaceMap = Object.create(null);
- this._subscribers = [];
- this._watcherVM = new Vue();
- this._makeLocalGettersCache = Object.create(null);
- // bind commit and dispatch to self
- var store = this;
- var ref = this;
- var dispatch = ref.dispatch;
- var commit = ref.commit;
- this.dispatch = function boundDispatch (type, payload) {
- return dispatch.call(store, type, payload)
- };
- this.commit = function boundCommit (type, payload, options) {
- return commit.call(store, type, payload, options)
- };
- // strict mode
- this.strict = strict;
- var state = this._modules.root.state;
- // init root module.
- // this also recursively registers all sub-modules
- // and collects all module getters inside this._wrappedGetters
- installModule(this, state, [], this._modules.root);
- // initialize the store vm, which is responsible for the reactivity
- // (also registers _wrappedGetters as computed properties)
- resetStoreVM(this, state);
- // apply plugins
- plugins.forEach(function (plugin) { return plugin(this$1); });
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
- if (useDevtools) {
- devtoolPlugin(this);
- }
- };
- var prototypeAccessors$1 = { state: { configurable: true } };
- prototypeAccessors$1.state.get = function () {
- return this._vm._data.$$state
- };
- prototypeAccessors$1.state.set = function (v) {
- if ((true)) {
- assert(false, "use store.replaceState() to explicit replace store state.");
- }
- };
- Store.prototype.commit = function commit (_type, _payload, _options) {
- var this$1 = this;
- // check object-style commit
- var ref = unifyObjectStyle(_type, _payload, _options);
- var type = ref.type;
- var payload = ref.payload;
- var options = ref.options;
- var mutation = { type: type, payload: payload };
- var entry = this._mutations[type];
- if (!entry) {
- if ((true)) {
- console.error(("[vuex] unknown mutation type: " + type));
- }
- return
- }
- this._withCommit(function () {
- entry.forEach(function commitIterator (handler) {
- handler(payload);
- });
- });
- this._subscribers
- .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
- .forEach(function (sub) { return sub(mutation, this$1.state); });
- if (
- ( true) &&
- options && options.silent
- ) {
- console.warn(
- "[vuex] mutation type: " + type + ". Silent option has been removed. " +
- 'Use the filter functionality in the vue-devtools'
- );
- }
- };
- Store.prototype.dispatch = function dispatch (_type, _payload) {
- var this$1 = this;
- // check object-style dispatch
- var ref = unifyObjectStyle(_type, _payload);
- var type = ref.type;
- var payload = ref.payload;
- var action = { type: type, payload: payload };
- var entry = this._actions[type];
- if (!entry) {
- if ((true)) {
- console.error(("[vuex] unknown action type: " + type));
- }
- return
- }
- try {
- this._actionSubscribers
- .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
- .filter(function (sub) { return sub.before; })
- .forEach(function (sub) { return sub.before(action, this$1.state); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in before action subscribers: ");
- console.error(e);
- }
- }
- var result = entry.length > 1
- ? Promise.all(entry.map(function (handler) { return handler(payload); }))
- : entry[0](payload);
- return new Promise(function (resolve, reject) {
- result.then(function (res) {
- try {
- this$1._actionSubscribers
- .filter(function (sub) { return sub.after; })
- .forEach(function (sub) { return sub.after(action, this$1.state); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in after action subscribers: ");
- console.error(e);
- }
- }
- resolve(res);
- }, function (error) {
- try {
- this$1._actionSubscribers
- .filter(function (sub) { return sub.error; })
- .forEach(function (sub) { return sub.error(action, this$1.state, error); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in error action subscribers: ");
- console.error(e);
- }
- }
- reject(error);
- });
- })
- };
- Store.prototype.subscribe = function subscribe (fn, options) {
- return genericSubscribe(fn, this._subscribers, options)
- };
- Store.prototype.subscribeAction = function subscribeAction (fn, options) {
- var subs = typeof fn === 'function' ? { before: fn } : fn;
- return genericSubscribe(subs, this._actionSubscribers, options)
- };
- Store.prototype.watch = function watch (getter, cb, options) {
- var this$1 = this;
- if ((true)) {
- assert(typeof getter === 'function', "store.watch only accepts a function.");
- }
- return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
- };
- Store.prototype.replaceState = function replaceState (state) {
- var this$1 = this;
- this._withCommit(function () {
- this$1._vm._data.$$state = state;
- });
- };
- Store.prototype.registerModule = function registerModule (path, rawModule, options) {
- if ( options === void 0 ) options = {};
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- assert(path.length > 0, 'cannot register the root module by using registerModule.');
- }
- this._modules.register(path, rawModule);
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
- // reset store to update getters...
- resetStoreVM(this, this.state);
- };
- Store.prototype.unregisterModule = function unregisterModule (path) {
- var this$1 = this;
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- this._modules.unregister(path);
- this._withCommit(function () {
- var parentState = getNestedState(this$1.state, path.slice(0, -1));
- Vue.delete(parentState, path[path.length - 1]);
- });
- resetStore(this);
- };
- Store.prototype.hasModule = function hasModule (path) {
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- return this._modules.isRegistered(path)
- };
- Store.prototype.hotUpdate = function hotUpdate (newOptions) {
- this._modules.update(newOptions);
- resetStore(this, true);
- };
- Store.prototype._withCommit = function _withCommit (fn) {
- var committing = this._committing;
- this._committing = true;
- fn();
- this._committing = committing;
- };
- Object.defineProperties( Store.prototype, prototypeAccessors$1 );
- function genericSubscribe (fn, subs, options) {
- if (subs.indexOf(fn) < 0) {
- options && options.prepend
- ? subs.unshift(fn)
- : subs.push(fn);
- }
- return function () {
- var i = subs.indexOf(fn);
- if (i > -1) {
- subs.splice(i, 1);
- }
- }
- }
- function resetStore (store, hot) {
- store._actions = Object.create(null);
- store._mutations = Object.create(null);
- store._wrappedGetters = Object.create(null);
- store._modulesNamespaceMap = Object.create(null);
- var state = store.state;
- // init all modules
- installModule(store, state, [], store._modules.root, true);
- // reset vm
- resetStoreVM(store, state, hot);
- }
- function resetStoreVM (store, state, hot) {
- var oldVm = store._vm;
- // bind store public getters
- store.getters = {};
- // reset local getters cache
- store._makeLocalGettersCache = Object.create(null);
- var wrappedGetters = store._wrappedGetters;
- var computed = {};
- forEachValue(wrappedGetters, function (fn, key) {
- // use computed to leverage its lazy-caching mechanism
- // direct inline function use will lead to closure preserving oldVm.
- // using partial to return function with only arguments preserved in closure environment.
- computed[key] = partial(fn, store);
- Object.defineProperty(store.getters, key, {
- get: function () { return store._vm[key]; },
- enumerable: true // for local getters
- });
- });
- // use a Vue instance to store the state tree
- // suppress warnings just in case the user has added
- // some funky global mixins
- var silent = Vue.config.silent;
- Vue.config.silent = true;
- store._vm = new Vue({
- data: {
- $$state: state
- },
- computed: computed
- });
- Vue.config.silent = silent;
- // enable strict mode for new vm
- if (store.strict) {
- enableStrictMode(store);
- }
- if (oldVm) {
- if (hot) {
- // dispatch changes in all subscribed watchers
- // to force getter re-evaluation for hot reloading.
- store._withCommit(function () {
- oldVm._data.$$state = null;
- });
- }
- Vue.nextTick(function () { return oldVm.$destroy(); });
- }
- }
- function installModule (store, rootState, path, module, hot) {
- var isRoot = !path.length;
- var namespace = store._modules.getNamespace(path);
- // register in namespace map
- if (module.namespaced) {
- if (store._modulesNamespaceMap[namespace] && ("dev" !== 'production')) {
- console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
- }
- store._modulesNamespaceMap[namespace] = module;
- }
- // set state
- if (!isRoot && !hot) {
- var parentState = getNestedState(rootState, path.slice(0, -1));
- var moduleName = path[path.length - 1];
- store._withCommit(function () {
- if ((true)) {
- if (moduleName in parentState) {
- console.warn(
- ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
- );
- }
- }
- Vue.set(parentState, moduleName, module.state);
- });
- }
- var local = module.context = makeLocalContext(store, namespace, path);
- module.forEachMutation(function (mutation, key) {
- var namespacedType = namespace + key;
- registerMutation(store, namespacedType, mutation, local);
- });
- module.forEachAction(function (action, key) {
- var type = action.root ? key : namespace + key;
- var handler = action.handler || action;
- registerAction(store, type, handler, local);
- });
- module.forEachGetter(function (getter, key) {
- var namespacedType = namespace + key;
- registerGetter(store, namespacedType, getter, local);
- });
- module.forEachChild(function (child, key) {
- installModule(store, rootState, path.concat(key), child, hot);
- });
- }
- /**
- * make localized dispatch, commit, getters and state
- * if there is no namespace, just use root ones
- */
- function makeLocalContext (store, namespace, path) {
- var noNamespace = namespace === '';
- var local = {
- dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (( true) && !store._actions[type]) {
- console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- return store.dispatch(type, payload)
- },
- commit: noNamespace ? store.commit : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (( true) && !store._mutations[type]) {
- console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- store.commit(type, payload, options);
- }
- };
- // getters and state object must be gotten lazily
- // because they will be changed by vm update
- Object.defineProperties(local, {
- getters: {
- get: noNamespace
- ? function () { return store.getters; }
- : function () { return makeLocalGetters(store, namespace); }
- },
- state: {
- get: function () { return getNestedState(store.state, path); }
- }
- });
- return local
- }
- function makeLocalGetters (store, namespace) {
- if (!store._makeLocalGettersCache[namespace]) {
- var gettersProxy = {};
- var splitPos = namespace.length;
- Object.keys(store.getters).forEach(function (type) {
- // skip if the target getter is not match this namespace
- if (type.slice(0, splitPos) !== namespace) { return }
- // extract local getter type
- var localType = type.slice(splitPos);
- // Add a port to the getters proxy.
- // Define as getter property because
- // we do not want to evaluate the getters in this time.
- Object.defineProperty(gettersProxy, localType, {
- get: function () { return store.getters[type]; },
- enumerable: true
- });
- });
- store._makeLocalGettersCache[namespace] = gettersProxy;
- }
- return store._makeLocalGettersCache[namespace]
- }
- function registerMutation (store, type, handler, local) {
- var entry = store._mutations[type] || (store._mutations[type] = []);
- entry.push(function wrappedMutationHandler (payload) {
- handler.call(store, local.state, payload);
- });
- }
- function registerAction (store, type, handler, local) {
- var entry = store._actions[type] || (store._actions[type] = []);
- entry.push(function wrappedActionHandler (payload) {
- var res = handler.call(store, {
- dispatch: local.dispatch,
- commit: local.commit,
- getters: local.getters,
- state: local.state,
- rootGetters: store.getters,
- rootState: store.state
- }, payload);
- if (!isPromise(res)) {
- res = Promise.resolve(res);
- }
- if (store._devtoolHook) {
- return res.catch(function (err) {
- store._devtoolHook.emit('vuex:error', err);
- throw err
- })
- } else {
- return res
- }
- });
- }
- function registerGetter (store, type, rawGetter, local) {
- if (store._wrappedGetters[type]) {
- if ((true)) {
- console.error(("[vuex] duplicate getter key: " + type));
- }
- return
- }
- store._wrappedGetters[type] = function wrappedGetter (store) {
- return rawGetter(
- local.state, // local state
- local.getters, // local getters
- store.state, // root state
- store.getters // root getters
- )
- };
- }
- function enableStrictMode (store) {
- store._vm.$watch(function () { return this._data.$$state }, function () {
- if ((true)) {
- assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
- }
- }, { deep: true, sync: true });
- }
- function getNestedState (state, path) {
- return path.reduce(function (state, key) { return state[key]; }, state)
- }
- function unifyObjectStyle (type, payload, options) {
- if (isObject(type) && type.type) {
- options = payload;
- payload = type;
- type = type.type;
- }
- if ((true)) {
- assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
- }
- return { type: type, payload: payload, options: options }
- }
- function install (_Vue) {
- if (Vue && _Vue === Vue) {
- if ((true)) {
- console.error(
- '[vuex] already installed. Vue.use(Vuex) should be called only once.'
- );
- }
- return
- }
- Vue = _Vue;
- applyMixin(Vue);
- }
- /**
- * Reduce the code which written in Vue.js for getting the state.
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
- * @param {Object}
- */
- var mapState = normalizeNamespace(function (namespace, states) {
- var res = {};
- if (( true) && !isValidMap(states)) {
- console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(states).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedState () {
- var state = this.$store.state;
- var getters = this.$store.getters;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapState', namespace);
- if (!module) {
- return
- }
- state = module.context.state;
- getters = module.context.getters;
- }
- return typeof val === 'function'
- ? val.call(this, state, getters)
- : state[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for committing the mutation
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
- * @return {Object}
- */
- var mapMutations = normalizeNamespace(function (namespace, mutations) {
- var res = {};
- if (( true) && !isValidMap(mutations)) {
- console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(mutations).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedMutation () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // Get the commit method from store
- var commit = this.$store.commit;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
- if (!module) {
- return
- }
- commit = module.context.commit;
- }
- return typeof val === 'function'
- ? val.apply(this, [commit].concat(args))
- : commit.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for getting the getters
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} getters
- * @return {Object}
- */
- var mapGetters = normalizeNamespace(function (namespace, getters) {
- var res = {};
- if (( true) && !isValidMap(getters)) {
- console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(getters).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- // The namespace has been mutated by normalizeNamespace
- val = namespace + val;
- res[key] = function mappedGetter () {
- if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
- return
- }
- if (( true) && !(val in this.$store.getters)) {
- console.error(("[vuex] unknown getter: " + val));
- return
- }
- return this.$store.getters[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for dispatch the action
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
- * @return {Object}
- */
- var mapActions = normalizeNamespace(function (namespace, actions) {
- var res = {};
- if (( true) && !isValidMap(actions)) {
- console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(actions).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedAction () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // get dispatch function from store
- var dispatch = this.$store.dispatch;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
- if (!module) {
- return
- }
- dispatch = module.context.dispatch;
- }
- return typeof val === 'function'
- ? val.apply(this, [dispatch].concat(args))
- : dispatch.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
- * @param {String} namespace
- * @return {Object}
- */
- var createNamespacedHelpers = function (namespace) { return ({
- mapState: mapState.bind(null, namespace),
- mapGetters: mapGetters.bind(null, namespace),
- mapMutations: mapMutations.bind(null, namespace),
- mapActions: mapActions.bind(null, namespace)
- }); };
- /**
- * Normalize the map
- * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
- * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
- * @param {Array|Object} map
- * @return {Object}
- */
- function normalizeMap (map) {
- if (!isValidMap(map)) {
- return []
- }
- return Array.isArray(map)
- ? map.map(function (key) { return ({ key: key, val: key }); })
- : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
- }
- /**
- * Validate whether given map is valid or not
- * @param {*} map
- * @return {Boolean}
- */
- function isValidMap (map) {
- return Array.isArray(map) || isObject(map)
- }
- /**
- * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
- * @param {Function} fn
- * @return {Function}
- */
- function normalizeNamespace (fn) {
- return function (namespace, map) {
- if (typeof namespace !== 'string') {
- map = namespace;
- namespace = '';
- } else if (namespace.charAt(namespace.length - 1) !== '/') {
- namespace += '/';
- }
- return fn(namespace, map)
- }
- }
- /**
- * Search a special module from store by namespace. if module not exist, print error message.
- * @param {Object} store
- * @param {String} helper
- * @param {String} namespace
- * @return {Object}
- */
- function getModuleByNamespace (store, helper, namespace) {
- var module = store._modulesNamespaceMap[namespace];
- if (( true) && !module) {
- console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
- }
- return module
- }
- // Credits: borrowed code from fcomb/redux-logger
- function createLogger (ref) {
- if ( ref === void 0 ) ref = {};
- var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
- var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
- var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
- var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
- var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
- var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
- var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
- var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
- var logger = ref.logger; if ( logger === void 0 ) logger = console;
- return function (store) {
- var prevState = deepCopy(store.state);
- if (typeof logger === 'undefined') {
- return
- }
- if (logMutations) {
- store.subscribe(function (mutation, state) {
- var nextState = deepCopy(state);
- if (filter(mutation, prevState, nextState)) {
- var formattedTime = getFormattedTime();
- var formattedMutation = mutationTransformer(mutation);
- var message = "mutation " + (mutation.type) + formattedTime;
- startMessage(logger, message, collapsed);
- logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
- logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
- logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
- endMessage(logger);
- }
- prevState = nextState;
- });
- }
- if (logActions) {
- store.subscribeAction(function (action, state) {
- if (actionFilter(action, state)) {
- var formattedTime = getFormattedTime();
- var formattedAction = actionTransformer(action);
- var message = "action " + (action.type) + formattedTime;
- startMessage(logger, message, collapsed);
- logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
- endMessage(logger);
- }
- });
- }
- }
- }
- function startMessage (logger, message, collapsed) {
- var startMessage = collapsed
- ? logger.groupCollapsed
- : logger.group;
- // render
- try {
- startMessage.call(logger, message);
- } catch (e) {
- logger.log(message);
- }
- }
- function endMessage (logger) {
- try {
- logger.groupEnd();
- } catch (e) {
- logger.log('—— log end ——');
- }
- }
- function getFormattedTime () {
- var time = new Date();
- return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
- }
- function repeat (str, times) {
- return (new Array(times + 1)).join(str)
- }
- function pad (num, maxLength) {
- return repeat('0', maxLength - num.toString().length) + num
- }
- var index = {
- Store: Store,
- install: install,
- version: '3.5.1',
- mapState: mapState,
- mapMutations: mapMutations,
- mapGetters: mapGetters,
- mapActions: mapActions,
- createNamespacedHelpers: createNamespacedHelpers,
- createLogger: createLogger
- };
- /* harmony default export */ __webpack_exports__["default"] = (index);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/webpack/buildin/global.js":
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ })
- }]);
- //# sourceMappingURL=chunk-vendors.js.map
|