doesburg.umd.js 175 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("vue"));
  4. else if(typeof define === 'function' && define.amd)
  5. define([], factory);
  6. else if(typeof exports === 'object')
  7. exports["doesburg"] = factory(require("vue"));
  8. else
  9. root["doesburg"] = factory(root["Vue"]);
  10. })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "fb15");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "014b":
  99. /***/ (function(module, exports, __webpack_require__) {
  100. "use strict";
  101. // ECMAScript 6 symbols shim
  102. var global = __webpack_require__("e53d");
  103. var has = __webpack_require__("07e3");
  104. var DESCRIPTORS = __webpack_require__("8e60");
  105. var $export = __webpack_require__("63b6");
  106. var redefine = __webpack_require__("9138");
  107. var META = __webpack_require__("ebfd").KEY;
  108. var $fails = __webpack_require__("294c");
  109. var shared = __webpack_require__("dbdb");
  110. var setToStringTag = __webpack_require__("45f2");
  111. var uid = __webpack_require__("62a0");
  112. var wks = __webpack_require__("5168");
  113. var wksExt = __webpack_require__("ccb9");
  114. var wksDefine = __webpack_require__("6718");
  115. var enumKeys = __webpack_require__("47ee");
  116. var isArray = __webpack_require__("9003");
  117. var anObject = __webpack_require__("e4ae");
  118. var isObject = __webpack_require__("f772");
  119. var toIObject = __webpack_require__("36c3");
  120. var toPrimitive = __webpack_require__("1bc3");
  121. var createDesc = __webpack_require__("aebd");
  122. var _create = __webpack_require__("a159");
  123. var gOPNExt = __webpack_require__("0395");
  124. var $GOPD = __webpack_require__("bf0b");
  125. var $DP = __webpack_require__("d9f6");
  126. var $keys = __webpack_require__("c3a1");
  127. var gOPD = $GOPD.f;
  128. var dP = $DP.f;
  129. var gOPN = gOPNExt.f;
  130. var $Symbol = global.Symbol;
  131. var $JSON = global.JSON;
  132. var _stringify = $JSON && $JSON.stringify;
  133. var PROTOTYPE = 'prototype';
  134. var HIDDEN = wks('_hidden');
  135. var TO_PRIMITIVE = wks('toPrimitive');
  136. var isEnum = {}.propertyIsEnumerable;
  137. var SymbolRegistry = shared('symbol-registry');
  138. var AllSymbols = shared('symbols');
  139. var OPSymbols = shared('op-symbols');
  140. var ObjectProto = Object[PROTOTYPE];
  141. var USE_NATIVE = typeof $Symbol == 'function';
  142. var QObject = global.QObject;
  143. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  144. var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
  145. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  146. var setSymbolDesc = DESCRIPTORS && $fails(function () {
  147. return _create(dP({}, 'a', {
  148. get: function () { return dP(this, 'a', { value: 7 }).a; }
  149. })).a != 7;
  150. }) ? function (it, key, D) {
  151. var protoDesc = gOPD(ObjectProto, key);
  152. if (protoDesc) delete ObjectProto[key];
  153. dP(it, key, D);
  154. if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
  155. } : dP;
  156. var wrap = function (tag) {
  157. var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  158. sym._k = tag;
  159. return sym;
  160. };
  161. var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  162. return typeof it == 'symbol';
  163. } : function (it) {
  164. return it instanceof $Symbol;
  165. };
  166. var $defineProperty = function defineProperty(it, key, D) {
  167. if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  168. anObject(it);
  169. key = toPrimitive(key, true);
  170. anObject(D);
  171. if (has(AllSymbols, key)) {
  172. if (!D.enumerable) {
  173. if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
  174. it[HIDDEN][key] = true;
  175. } else {
  176. if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
  177. D = _create(D, { enumerable: createDesc(0, false) });
  178. } return setSymbolDesc(it, key, D);
  179. } return dP(it, key, D);
  180. };
  181. var $defineProperties = function defineProperties(it, P) {
  182. anObject(it);
  183. var keys = enumKeys(P = toIObject(P));
  184. var i = 0;
  185. var l = keys.length;
  186. var key;
  187. while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  188. return it;
  189. };
  190. var $create = function create(it, P) {
  191. return P === undefined ? _create(it) : $defineProperties(_create(it), P);
  192. };
  193. var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  194. var E = isEnum.call(this, key = toPrimitive(key, true));
  195. if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  196. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
  197. };
  198. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  199. it = toIObject(it);
  200. key = toPrimitive(key, true);
  201. if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  202. var D = gOPD(it, key);
  203. if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  204. return D;
  205. };
  206. var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  207. var names = gOPN(toIObject(it));
  208. var result = [];
  209. var i = 0;
  210. var key;
  211. while (names.length > i) {
  212. if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  213. } return result;
  214. };
  215. var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  216. var IS_OP = it === ObjectProto;
  217. var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  218. var result = [];
  219. var i = 0;
  220. var key;
  221. while (names.length > i) {
  222. if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  223. } return result;
  224. };
  225. // 19.4.1.1 Symbol([description])
  226. if (!USE_NATIVE) {
  227. $Symbol = function Symbol() {
  228. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
  229. var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
  230. var $set = function (value) {
  231. if (this === ObjectProto) $set.call(OPSymbols, value);
  232. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  233. setSymbolDesc(this, tag, createDesc(1, value));
  234. };
  235. if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
  236. return wrap(tag);
  237. };
  238. redefine($Symbol[PROTOTYPE], 'toString', function toString() {
  239. return this._k;
  240. });
  241. $GOPD.f = $getOwnPropertyDescriptor;
  242. $DP.f = $defineProperty;
  243. __webpack_require__("6abf").f = gOPNExt.f = $getOwnPropertyNames;
  244. __webpack_require__("355d").f = $propertyIsEnumerable;
  245. __webpack_require__("9aa9").f = $getOwnPropertySymbols;
  246. if (DESCRIPTORS && !__webpack_require__("b8e3")) {
  247. redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  248. }
  249. wksExt.f = function (name) {
  250. return wrap(wks(name));
  251. };
  252. }
  253. $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
  254. for (var es6Symbols = (
  255. // 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
  256. 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
  257. ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
  258. for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
  259. $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  260. // 19.4.2.1 Symbol.for(key)
  261. 'for': function (key) {
  262. return has(SymbolRegistry, key += '')
  263. ? SymbolRegistry[key]
  264. : SymbolRegistry[key] = $Symbol(key);
  265. },
  266. // 19.4.2.5 Symbol.keyFor(sym)
  267. keyFor: function keyFor(sym) {
  268. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
  269. for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  270. },
  271. useSetter: function () { setter = true; },
  272. useSimple: function () { setter = false; }
  273. });
  274. $export($export.S + $export.F * !USE_NATIVE, 'Object', {
  275. // 19.1.2.2 Object.create(O [, Properties])
  276. create: $create,
  277. // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  278. defineProperty: $defineProperty,
  279. // 19.1.2.3 Object.defineProperties(O, Properties)
  280. defineProperties: $defineProperties,
  281. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  282. getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  283. // 19.1.2.7 Object.getOwnPropertyNames(O)
  284. getOwnPropertyNames: $getOwnPropertyNames,
  285. // 19.1.2.8 Object.getOwnPropertySymbols(O)
  286. getOwnPropertySymbols: $getOwnPropertySymbols
  287. });
  288. // 24.3.2 JSON.stringify(value [, replacer [, space]])
  289. $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  290. var S = $Symbol();
  291. // MS Edge converts symbol values to JSON as {}
  292. // WebKit converts symbol values to JSON as null
  293. // V8 throws on boxed symbols
  294. return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
  295. })), 'JSON', {
  296. stringify: function stringify(it) {
  297. var args = [it];
  298. var i = 1;
  299. var replacer, $replacer;
  300. while (arguments.length > i) args.push(arguments[i++]);
  301. $replacer = replacer = args[1];
  302. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  303. if (!isArray(replacer)) replacer = function (key, value) {
  304. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  305. if (!isSymbol(value)) return value;
  306. };
  307. args[1] = replacer;
  308. return _stringify.apply($JSON, args);
  309. }
  310. });
  311. // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
  312. $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("35e8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
  313. // 19.4.3.5 Symbol.prototype[@@toStringTag]
  314. setToStringTag($Symbol, 'Symbol');
  315. // 20.2.1.9 Math[@@toStringTag]
  316. setToStringTag(Math, 'Math', true);
  317. // 24.3.3 JSON[@@toStringTag]
  318. setToStringTag(global.JSON, 'JSON', true);
  319. /***/ }),
  320. /***/ "01f9":
  321. /***/ (function(module, exports, __webpack_require__) {
  322. "use strict";
  323. var LIBRARY = __webpack_require__("2d00");
  324. var $export = __webpack_require__("5ca1");
  325. var redefine = __webpack_require__("2aba");
  326. var hide = __webpack_require__("32e9");
  327. var Iterators = __webpack_require__("84f2");
  328. var $iterCreate = __webpack_require__("41a0");
  329. var setToStringTag = __webpack_require__("7f20");
  330. var getPrototypeOf = __webpack_require__("38fd");
  331. var ITERATOR = __webpack_require__("2b4c")('iterator');
  332. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  333. var FF_ITERATOR = '@@iterator';
  334. var KEYS = 'keys';
  335. var VALUES = 'values';
  336. var returnThis = function () { return this; };
  337. module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  338. $iterCreate(Constructor, NAME, next);
  339. var getMethod = function (kind) {
  340. if (!BUGGY && kind in proto) return proto[kind];
  341. switch (kind) {
  342. case KEYS: return function keys() { return new Constructor(this, kind); };
  343. case VALUES: return function values() { return new Constructor(this, kind); };
  344. } return function entries() { return new Constructor(this, kind); };
  345. };
  346. var TAG = NAME + ' Iterator';
  347. var DEF_VALUES = DEFAULT == VALUES;
  348. var VALUES_BUG = false;
  349. var proto = Base.prototype;
  350. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  351. var $default = $native || getMethod(DEFAULT);
  352. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  353. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  354. var methods, key, IteratorPrototype;
  355. // Fix native
  356. if ($anyNative) {
  357. IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
  358. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  359. // Set @@toStringTag to native iterators
  360. setToStringTag(IteratorPrototype, TAG, true);
  361. // fix for some old engines
  362. if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
  363. }
  364. }
  365. // fix Array#{values, @@iterator}.name in V8 / FF
  366. if (DEF_VALUES && $native && $native.name !== VALUES) {
  367. VALUES_BUG = true;
  368. $default = function values() { return $native.call(this); };
  369. }
  370. // Define iterator
  371. if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  372. hide(proto, ITERATOR, $default);
  373. }
  374. // Plug for library
  375. Iterators[NAME] = $default;
  376. Iterators[TAG] = returnThis;
  377. if (DEFAULT) {
  378. methods = {
  379. values: DEF_VALUES ? $default : getMethod(VALUES),
  380. keys: IS_SET ? $default : getMethod(KEYS),
  381. entries: $entries
  382. };
  383. if (FORCED) for (key in methods) {
  384. if (!(key in proto)) redefine(proto, key, methods[key]);
  385. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  386. }
  387. return methods;
  388. };
  389. /***/ }),
  390. /***/ "02f4":
  391. /***/ (function(module, exports, __webpack_require__) {
  392. var toInteger = __webpack_require__("4588");
  393. var defined = __webpack_require__("be13");
  394. // true -> String#at
  395. // false -> String#codePointAt
  396. module.exports = function (TO_STRING) {
  397. return function (that, pos) {
  398. var s = String(defined(that));
  399. var i = toInteger(pos);
  400. var l = s.length;
  401. var a, b;
  402. if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
  403. a = s.charCodeAt(i);
  404. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
  405. ? TO_STRING ? s.charAt(i) : a
  406. : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  407. };
  408. };
  409. /***/ }),
  410. /***/ "0390":
  411. /***/ (function(module, exports, __webpack_require__) {
  412. "use strict";
  413. var at = __webpack_require__("02f4")(true);
  414. // `AdvanceStringIndex` abstract operation
  415. // https://tc39.github.io/ecma262/#sec-advancestringindex
  416. module.exports = function (S, index, unicode) {
  417. return index + (unicode ? at(S, index).length : 1);
  418. };
  419. /***/ }),
  420. /***/ "0395":
  421. /***/ (function(module, exports, __webpack_require__) {
  422. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  423. var toIObject = __webpack_require__("36c3");
  424. var gOPN = __webpack_require__("6abf").f;
  425. var toString = {}.toString;
  426. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  427. ? Object.getOwnPropertyNames(window) : [];
  428. var getWindowNames = function (it) {
  429. try {
  430. return gOPN(it);
  431. } catch (e) {
  432. return windowNames.slice();
  433. }
  434. };
  435. module.exports.f = function getOwnPropertyNames(it) {
  436. return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
  437. };
  438. /***/ }),
  439. /***/ "07e3":
  440. /***/ (function(module, exports) {
  441. var hasOwnProperty = {}.hasOwnProperty;
  442. module.exports = function (it, key) {
  443. return hasOwnProperty.call(it, key);
  444. };
  445. /***/ }),
  446. /***/ "0bfb":
  447. /***/ (function(module, exports, __webpack_require__) {
  448. "use strict";
  449. // 21.2.5.3 get RegExp.prototype.flags
  450. var anObject = __webpack_require__("cb7c");
  451. module.exports = function () {
  452. var that = anObject(this);
  453. var result = '';
  454. if (that.global) result += 'g';
  455. if (that.ignoreCase) result += 'i';
  456. if (that.multiline) result += 'm';
  457. if (that.unicode) result += 'u';
  458. if (that.sticky) result += 'y';
  459. return result;
  460. };
  461. /***/ }),
  462. /***/ "0d58":
  463. /***/ (function(module, exports, __webpack_require__) {
  464. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  465. var $keys = __webpack_require__("ce10");
  466. var enumBugKeys = __webpack_require__("e11e");
  467. module.exports = Object.keys || function keys(O) {
  468. return $keys(O, enumBugKeys);
  469. };
  470. /***/ }),
  471. /***/ "0fc9":
  472. /***/ (function(module, exports, __webpack_require__) {
  473. var toInteger = __webpack_require__("3a38");
  474. var max = Math.max;
  475. var min = Math.min;
  476. module.exports = function (index, length) {
  477. index = toInteger(index);
  478. return index < 0 ? max(index + length, 0) : min(index, length);
  479. };
  480. /***/ }),
  481. /***/ "11e9":
  482. /***/ (function(module, exports, __webpack_require__) {
  483. var pIE = __webpack_require__("52a7");
  484. var createDesc = __webpack_require__("4630");
  485. var toIObject = __webpack_require__("6821");
  486. var toPrimitive = __webpack_require__("6a99");
  487. var has = __webpack_require__("69a8");
  488. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  489. var gOPD = Object.getOwnPropertyDescriptor;
  490. exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  491. O = toIObject(O);
  492. P = toPrimitive(P, true);
  493. if (IE8_DOM_DEFINE) try {
  494. return gOPD(O, P);
  495. } catch (e) { /* empty */ }
  496. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  497. };
  498. /***/ }),
  499. /***/ "1495":
  500. /***/ (function(module, exports, __webpack_require__) {
  501. var dP = __webpack_require__("86cc");
  502. var anObject = __webpack_require__("cb7c");
  503. var getKeys = __webpack_require__("0d58");
  504. module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
  505. anObject(O);
  506. var keys = getKeys(Properties);
  507. var length = keys.length;
  508. var i = 0;
  509. var P;
  510. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  511. return O;
  512. };
  513. /***/ }),
  514. /***/ "1691":
  515. /***/ (function(module, exports) {
  516. // IE 8- don't enum bug keys
  517. module.exports = (
  518. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  519. ).split(',');
  520. /***/ }),
  521. /***/ "1bc3":
  522. /***/ (function(module, exports, __webpack_require__) {
  523. // 7.1.1 ToPrimitive(input [, PreferredType])
  524. var isObject = __webpack_require__("f772");
  525. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  526. // and the second argument - flag - preferred type is a string
  527. module.exports = function (it, S) {
  528. if (!isObject(it)) return it;
  529. var fn, val;
  530. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  531. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  532. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  533. throw TypeError("Can't convert object to primitive value");
  534. };
  535. /***/ }),
  536. /***/ "1ec9":
  537. /***/ (function(module, exports, __webpack_require__) {
  538. var isObject = __webpack_require__("f772");
  539. var document = __webpack_require__("e53d").document;
  540. // typeof document.createElement is 'object' in old IE
  541. var is = isObject(document) && isObject(document.createElement);
  542. module.exports = function (it) {
  543. return is ? document.createElement(it) : {};
  544. };
  545. /***/ }),
  546. /***/ "214f":
  547. /***/ (function(module, exports, __webpack_require__) {
  548. "use strict";
  549. __webpack_require__("b0c5");
  550. var redefine = __webpack_require__("2aba");
  551. var hide = __webpack_require__("32e9");
  552. var fails = __webpack_require__("79e5");
  553. var defined = __webpack_require__("be13");
  554. var wks = __webpack_require__("2b4c");
  555. var regexpExec = __webpack_require__("520a");
  556. var SPECIES = wks('species');
  557. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  558. // #replace needs built-in support for named groups.
  559. // #match works fine because it just return the exec results, even if it has
  560. // a "grops" property.
  561. var re = /./;
  562. re.exec = function () {
  563. var result = [];
  564. result.groups = { a: '7' };
  565. return result;
  566. };
  567. return ''.replace(re, '$<a>') !== '7';
  568. });
  569. var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
  570. // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
  571. var re = /(?:)/;
  572. var originalExec = re.exec;
  573. re.exec = function () { return originalExec.apply(this, arguments); };
  574. var result = 'ab'.split(re);
  575. return result.length === 2 && result[0] === 'a' && result[1] === 'b';
  576. })();
  577. module.exports = function (KEY, length, exec) {
  578. var SYMBOL = wks(KEY);
  579. var DELEGATES_TO_SYMBOL = !fails(function () {
  580. // String methods call symbol-named RegEp methods
  581. var O = {};
  582. O[SYMBOL] = function () { return 7; };
  583. return ''[KEY](O) != 7;
  584. });
  585. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
  586. // Symbol-named RegExp methods call .exec
  587. var execCalled = false;
  588. var re = /a/;
  589. re.exec = function () { execCalled = true; return null; };
  590. if (KEY === 'split') {
  591. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  592. // a new one. We need to return the patched regex when creating the new one.
  593. re.constructor = {};
  594. re.constructor[SPECIES] = function () { return re; };
  595. }
  596. re[SYMBOL]('');
  597. return !execCalled;
  598. }) : undefined;
  599. if (
  600. !DELEGATES_TO_SYMBOL ||
  601. !DELEGATES_TO_EXEC ||
  602. (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
  603. (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
  604. ) {
  605. var nativeRegExpMethod = /./[SYMBOL];
  606. var fns = exec(
  607. defined,
  608. SYMBOL,
  609. ''[KEY],
  610. function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
  611. if (regexp.exec === regexpExec) {
  612. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  613. // The native String method already delegates to @@method (this
  614. // polyfilled function), leasing to infinite recursion.
  615. // We avoid it by directly calling the native @@method method.
  616. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
  617. }
  618. return { done: true, value: nativeMethod.call(str, regexp, arg2) };
  619. }
  620. return { done: false };
  621. }
  622. );
  623. var strfn = fns[0];
  624. var rxfn = fns[1];
  625. redefine(String.prototype, KEY, strfn);
  626. hide(RegExp.prototype, SYMBOL, length == 2
  627. // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
  628. // 21.2.5.11 RegExp.prototype[@@split](string, limit)
  629. ? function (string, arg) { return rxfn.call(string, this, arg); }
  630. // 21.2.5.6 RegExp.prototype[@@match](string)
  631. // 21.2.5.9 RegExp.prototype[@@search](string)
  632. : function (string) { return rxfn.call(string, this); }
  633. );
  634. }
  635. };
  636. /***/ }),
  637. /***/ "230e":
  638. /***/ (function(module, exports, __webpack_require__) {
  639. var isObject = __webpack_require__("d3f4");
  640. var document = __webpack_require__("7726").document;
  641. // typeof document.createElement is 'object' in old IE
  642. var is = isObject(document) && isObject(document.createElement);
  643. module.exports = function (it) {
  644. return is ? document.createElement(it) : {};
  645. };
  646. /***/ }),
  647. /***/ "2350":
  648. /***/ (function(module, exports) {
  649. /*
  650. MIT License http://www.opensource.org/licenses/mit-license.php
  651. Author Tobias Koppers @sokra
  652. */
  653. // css base code, injected by the css-loader
  654. module.exports = function(useSourceMap) {
  655. var list = [];
  656. // return the list of modules as css string
  657. list.toString = function toString() {
  658. return this.map(function (item) {
  659. var content = cssWithMappingToString(item, useSourceMap);
  660. if(item[2]) {
  661. return "@media " + item[2] + "{" + content + "}";
  662. } else {
  663. return content;
  664. }
  665. }).join("");
  666. };
  667. // import a list of modules into the list
  668. list.i = function(modules, mediaQuery) {
  669. if(typeof modules === "string")
  670. modules = [[null, modules, ""]];
  671. var alreadyImportedModules = {};
  672. for(var i = 0; i < this.length; i++) {
  673. var id = this[i][0];
  674. if(typeof id === "number")
  675. alreadyImportedModules[id] = true;
  676. }
  677. for(i = 0; i < modules.length; i++) {
  678. var item = modules[i];
  679. // skip already imported module
  680. // this implementation is not 100% perfect for weird media query combinations
  681. // when a module is imported multiple times with different media queries.
  682. // I hope this will never occur (Hey this way we have smaller bundles)
  683. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  684. if(mediaQuery && !item[2]) {
  685. item[2] = mediaQuery;
  686. } else if(mediaQuery) {
  687. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  688. }
  689. list.push(item);
  690. }
  691. }
  692. };
  693. return list;
  694. };
  695. function cssWithMappingToString(item, useSourceMap) {
  696. var content = item[1] || '';
  697. var cssMapping = item[3];
  698. if (!cssMapping) {
  699. return content;
  700. }
  701. if (useSourceMap && typeof btoa === 'function') {
  702. var sourceMapping = toComment(cssMapping);
  703. var sourceURLs = cssMapping.sources.map(function (source) {
  704. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  705. });
  706. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  707. }
  708. return [content].join('\n');
  709. }
  710. // Adapted from convert-source-map (MIT)
  711. function toComment(sourceMap) {
  712. // eslint-disable-next-line no-undef
  713. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  714. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  715. return '/*# ' + data + ' */';
  716. }
  717. /***/ }),
  718. /***/ "23c6":
  719. /***/ (function(module, exports, __webpack_require__) {
  720. // getting tag from 19.1.3.6 Object.prototype.toString()
  721. var cof = __webpack_require__("2d95");
  722. var TAG = __webpack_require__("2b4c")('toStringTag');
  723. // ES3 wrong here
  724. var ARG = cof(function () { return arguments; }()) == 'Arguments';
  725. // fallback for IE11 Script Access Denied error
  726. var tryGet = function (it, key) {
  727. try {
  728. return it[key];
  729. } catch (e) { /* empty */ }
  730. };
  731. module.exports = function (it) {
  732. var O, T, B;
  733. return it === undefined ? 'Undefined' : it === null ? 'Null'
  734. // @@toStringTag case
  735. : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
  736. // builtinTag case
  737. : ARG ? cof(O)
  738. // ES3 arguments fallback
  739. : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  740. };
  741. /***/ }),
  742. /***/ "241e":
  743. /***/ (function(module, exports, __webpack_require__) {
  744. // 7.1.13 ToObject(argument)
  745. var defined = __webpack_require__("25eb");
  746. module.exports = function (it) {
  747. return Object(defined(it));
  748. };
  749. /***/ }),
  750. /***/ "25eb":
  751. /***/ (function(module, exports) {
  752. // 7.2.1 RequireObjectCoercible(argument)
  753. module.exports = function (it) {
  754. if (it == undefined) throw TypeError("Can't call method on " + it);
  755. return it;
  756. };
  757. /***/ }),
  758. /***/ "268f":
  759. /***/ (function(module, exports, __webpack_require__) {
  760. module.exports = __webpack_require__("fde4");
  761. /***/ }),
  762. /***/ "28a5":
  763. /***/ (function(module, exports, __webpack_require__) {
  764. "use strict";
  765. var isRegExp = __webpack_require__("aae3");
  766. var anObject = __webpack_require__("cb7c");
  767. var speciesConstructor = __webpack_require__("ebd6");
  768. var advanceStringIndex = __webpack_require__("0390");
  769. var toLength = __webpack_require__("9def");
  770. var callRegExpExec = __webpack_require__("5f1b");
  771. var regexpExec = __webpack_require__("520a");
  772. var fails = __webpack_require__("79e5");
  773. var $min = Math.min;
  774. var $push = [].push;
  775. var $SPLIT = 'split';
  776. var LENGTH = 'length';
  777. var LAST_INDEX = 'lastIndex';
  778. var MAX_UINT32 = 0xffffffff;
  779. // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
  780. var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
  781. // @@split logic
  782. __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
  783. var internalSplit;
  784. if (
  785. 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
  786. 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
  787. 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
  788. '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
  789. '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
  790. ''[$SPLIT](/.?/)[LENGTH]
  791. ) {
  792. // based on es5-shim implementation, need to rework it
  793. internalSplit = function (separator, limit) {
  794. var string = String(this);
  795. if (separator === undefined && limit === 0) return [];
  796. // If `separator` is not a regex, use native split
  797. if (!isRegExp(separator)) return $split.call(string, separator, limit);
  798. var output = [];
  799. var flags = (separator.ignoreCase ? 'i' : '') +
  800. (separator.multiline ? 'm' : '') +
  801. (separator.unicode ? 'u' : '') +
  802. (separator.sticky ? 'y' : '');
  803. var lastLastIndex = 0;
  804. var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
  805. // Make `global` and avoid `lastIndex` issues by working with a copy
  806. var separatorCopy = new RegExp(separator.source, flags + 'g');
  807. var match, lastIndex, lastLength;
  808. while (match = regexpExec.call(separatorCopy, string)) {
  809. lastIndex = separatorCopy[LAST_INDEX];
  810. if (lastIndex > lastLastIndex) {
  811. output.push(string.slice(lastLastIndex, match.index));
  812. if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
  813. lastLength = match[0][LENGTH];
  814. lastLastIndex = lastIndex;
  815. if (output[LENGTH] >= splitLimit) break;
  816. }
  817. if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
  818. }
  819. if (lastLastIndex === string[LENGTH]) {
  820. if (lastLength || !separatorCopy.test('')) output.push('');
  821. } else output.push(string.slice(lastLastIndex));
  822. return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
  823. };
  824. // Chakra, V8
  825. } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
  826. internalSplit = function (separator, limit) {
  827. return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
  828. };
  829. } else {
  830. internalSplit = $split;
  831. }
  832. return [
  833. // `String.prototype.split` method
  834. // https://tc39.github.io/ecma262/#sec-string.prototype.split
  835. function split(separator, limit) {
  836. var O = defined(this);
  837. var splitter = separator == undefined ? undefined : separator[SPLIT];
  838. return splitter !== undefined
  839. ? splitter.call(separator, O, limit)
  840. : internalSplit.call(String(O), separator, limit);
  841. },
  842. // `RegExp.prototype[@@split]` method
  843. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
  844. //
  845. // NOTE: This cannot be properly polyfilled in engines that don't support
  846. // the 'y' flag.
  847. function (regexp, limit) {
  848. var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
  849. if (res.done) return res.value;
  850. var rx = anObject(regexp);
  851. var S = String(this);
  852. var C = speciesConstructor(rx, RegExp);
  853. var unicodeMatching = rx.unicode;
  854. var flags = (rx.ignoreCase ? 'i' : '') +
  855. (rx.multiline ? 'm' : '') +
  856. (rx.unicode ? 'u' : '') +
  857. (SUPPORTS_Y ? 'y' : 'g');
  858. // ^(? + rx + ) is needed, in combination with some S slicing, to
  859. // simulate the 'y' flag.
  860. var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
  861. var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
  862. if (lim === 0) return [];
  863. if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
  864. var p = 0;
  865. var q = 0;
  866. var A = [];
  867. while (q < S.length) {
  868. splitter.lastIndex = SUPPORTS_Y ? q : 0;
  869. var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
  870. var e;
  871. if (
  872. z === null ||
  873. (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
  874. ) {
  875. q = advanceStringIndex(S, q, unicodeMatching);
  876. } else {
  877. A.push(S.slice(p, q));
  878. if (A.length === lim) return A;
  879. for (var i = 1; i <= z.length - 1; i++) {
  880. A.push(z[i]);
  881. if (A.length === lim) return A;
  882. }
  883. q = p = e;
  884. }
  885. }
  886. A.push(S.slice(p));
  887. return A;
  888. }
  889. ];
  890. });
  891. /***/ }),
  892. /***/ "294c":
  893. /***/ (function(module, exports) {
  894. module.exports = function (exec) {
  895. try {
  896. return !!exec();
  897. } catch (e) {
  898. return true;
  899. }
  900. };
  901. /***/ }),
  902. /***/ "2aba":
  903. /***/ (function(module, exports, __webpack_require__) {
  904. var global = __webpack_require__("7726");
  905. var hide = __webpack_require__("32e9");
  906. var has = __webpack_require__("69a8");
  907. var SRC = __webpack_require__("ca5a")('src');
  908. var $toString = __webpack_require__("fa5b");
  909. var TO_STRING = 'toString';
  910. var TPL = ('' + $toString).split(TO_STRING);
  911. __webpack_require__("8378").inspectSource = function (it) {
  912. return $toString.call(it);
  913. };
  914. (module.exports = function (O, key, val, safe) {
  915. var isFunction = typeof val == 'function';
  916. if (isFunction) has(val, 'name') || hide(val, 'name', key);
  917. if (O[key] === val) return;
  918. if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  919. if (O === global) {
  920. O[key] = val;
  921. } else if (!safe) {
  922. delete O[key];
  923. hide(O, key, val);
  924. } else if (O[key]) {
  925. O[key] = val;
  926. } else {
  927. hide(O, key, val);
  928. }
  929. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  930. })(Function.prototype, TO_STRING, function toString() {
  931. return typeof this == 'function' && this[SRC] || $toString.call(this);
  932. });
  933. /***/ }),
  934. /***/ "2aeb":
  935. /***/ (function(module, exports, __webpack_require__) {
  936. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  937. var anObject = __webpack_require__("cb7c");
  938. var dPs = __webpack_require__("1495");
  939. var enumBugKeys = __webpack_require__("e11e");
  940. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  941. var Empty = function () { /* empty */ };
  942. var PROTOTYPE = 'prototype';
  943. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  944. var createDict = function () {
  945. // Thrash, waste and sodomy: IE GC bug
  946. var iframe = __webpack_require__("230e")('iframe');
  947. var i = enumBugKeys.length;
  948. var lt = '<';
  949. var gt = '>';
  950. var iframeDocument;
  951. iframe.style.display = 'none';
  952. __webpack_require__("fab2").appendChild(iframe);
  953. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  954. // createDict = iframe.contentWindow.Object;
  955. // html.removeChild(iframe);
  956. iframeDocument = iframe.contentWindow.document;
  957. iframeDocument.open();
  958. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  959. iframeDocument.close();
  960. createDict = iframeDocument.F;
  961. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  962. return createDict();
  963. };
  964. module.exports = Object.create || function create(O, Properties) {
  965. var result;
  966. if (O !== null) {
  967. Empty[PROTOTYPE] = anObject(O);
  968. result = new Empty();
  969. Empty[PROTOTYPE] = null;
  970. // add "__proto__" for Object.getPrototypeOf polyfill
  971. result[IE_PROTO] = O;
  972. } else result = createDict();
  973. return Properties === undefined ? result : dPs(result, Properties);
  974. };
  975. /***/ }),
  976. /***/ "2b4c":
  977. /***/ (function(module, exports, __webpack_require__) {
  978. var store = __webpack_require__("5537")('wks');
  979. var uid = __webpack_require__("ca5a");
  980. var Symbol = __webpack_require__("7726").Symbol;
  981. var USE_SYMBOL = typeof Symbol == 'function';
  982. var $exports = module.exports = function (name) {
  983. return store[name] || (store[name] =
  984. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  985. };
  986. $exports.store = store;
  987. /***/ }),
  988. /***/ "2d00":
  989. /***/ (function(module, exports) {
  990. module.exports = false;
  991. /***/ }),
  992. /***/ "2d95":
  993. /***/ (function(module, exports) {
  994. var toString = {}.toString;
  995. module.exports = function (it) {
  996. return toString.call(it).slice(8, -1);
  997. };
  998. /***/ }),
  999. /***/ "32a6":
  1000. /***/ (function(module, exports, __webpack_require__) {
  1001. // 19.1.2.14 Object.keys(O)
  1002. var toObject = __webpack_require__("241e");
  1003. var $keys = __webpack_require__("c3a1");
  1004. __webpack_require__("ce7e")('keys', function () {
  1005. return function keys(it) {
  1006. return $keys(toObject(it));
  1007. };
  1008. });
  1009. /***/ }),
  1010. /***/ "32e9":
  1011. /***/ (function(module, exports, __webpack_require__) {
  1012. var dP = __webpack_require__("86cc");
  1013. var createDesc = __webpack_require__("4630");
  1014. module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
  1015. return dP.f(object, key, createDesc(1, value));
  1016. } : function (object, key, value) {
  1017. object[key] = value;
  1018. return object;
  1019. };
  1020. /***/ }),
  1021. /***/ "32fc":
  1022. /***/ (function(module, exports, __webpack_require__) {
  1023. var document = __webpack_require__("e53d").document;
  1024. module.exports = document && document.documentElement;
  1025. /***/ }),
  1026. /***/ "335c":
  1027. /***/ (function(module, exports, __webpack_require__) {
  1028. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1029. var cof = __webpack_require__("6b4c");
  1030. // eslint-disable-next-line no-prototype-builtins
  1031. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  1032. return cof(it) == 'String' ? it.split('') : Object(it);
  1033. };
  1034. /***/ }),
  1035. /***/ "355d":
  1036. /***/ (function(module, exports) {
  1037. exports.f = {}.propertyIsEnumerable;
  1038. /***/ }),
  1039. /***/ "35e8":
  1040. /***/ (function(module, exports, __webpack_require__) {
  1041. var dP = __webpack_require__("d9f6");
  1042. var createDesc = __webpack_require__("aebd");
  1043. module.exports = __webpack_require__("8e60") ? function (object, key, value) {
  1044. return dP.f(object, key, createDesc(1, value));
  1045. } : function (object, key, value) {
  1046. object[key] = value;
  1047. return object;
  1048. };
  1049. /***/ }),
  1050. /***/ "36bd":
  1051. /***/ (function(module, exports, __webpack_require__) {
  1052. "use strict";
  1053. // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
  1054. var toObject = __webpack_require__("4bf8");
  1055. var toAbsoluteIndex = __webpack_require__("77f1");
  1056. var toLength = __webpack_require__("9def");
  1057. module.exports = function fill(value /* , start = 0, end = @length */) {
  1058. var O = toObject(this);
  1059. var length = toLength(O.length);
  1060. var aLen = arguments.length;
  1061. var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
  1062. var end = aLen > 2 ? arguments[2] : undefined;
  1063. var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
  1064. while (endPos > index) O[index++] = value;
  1065. return O;
  1066. };
  1067. /***/ }),
  1068. /***/ "36c3":
  1069. /***/ (function(module, exports, __webpack_require__) {
  1070. // to indexed object, toObject with fallback for non-array-like ES3 strings
  1071. var IObject = __webpack_require__("335c");
  1072. var defined = __webpack_require__("25eb");
  1073. module.exports = function (it) {
  1074. return IObject(defined(it));
  1075. };
  1076. /***/ }),
  1077. /***/ "382e":
  1078. /***/ (function(module, exports, __webpack_require__) {
  1079. exports = module.exports = __webpack_require__("2350")(false);
  1080. // imports
  1081. // module
  1082. exports.push([module.i, ".alt-grid-container{position:relative}.alt-grid-container .alt-grid-item{position:absolute;background:grey}.alt-grid-container .alt-grid-item.can-drag{cursor:move}.alt-grid-container.alt-grid-container-operating .alt-grid-item{-webkit-transition-duration:.3s;transition-duration:.3s}.alt-grid-container.alt-grid-container-operating .alt-grid-item.operated-item{-webkit-transition-duration:.1s;transition-duration:.1s}.alt-grid-container .alt-grid-item:hover .alt-grid-item-resize-handler{display:block}.alt-grid-container .alt-grid-item-resize-handler{display:none;position:absolute;right:1px;bottom:1px;cursor:se-resize}.alt-grid-container .alt-g-i-r-h-default-style{width:0;height:0;border-top:5px solid transparent;border-left:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000}.alt-grid-item-drag-placeholder{position:absolute;width:0;height:0;background:red;visibility:hidden}.alt-grid-container-operating .alt-grid-item-drag-placeholder{visibility:visible}.alt-grid-container-operating{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.alt-grid-container-operating .mask{width:100%;height:100%;position:absolute;z-index:2}.alt-grid-container-operating.alt-move .mask{cursor:move}.alt-grid-container-operating.alt-resize .mask{cursor:se-resize}", ""]);
  1083. // exports
  1084. /***/ }),
  1085. /***/ "3846":
  1086. /***/ (function(module, exports, __webpack_require__) {
  1087. // 21.2.5.3 get RegExp.prototype.flags()
  1088. if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', {
  1089. configurable: true,
  1090. get: __webpack_require__("0bfb")
  1091. });
  1092. /***/ }),
  1093. /***/ "386d":
  1094. /***/ (function(module, exports, __webpack_require__) {
  1095. "use strict";
  1096. var anObject = __webpack_require__("cb7c");
  1097. var sameValue = __webpack_require__("83a1");
  1098. var regExpExec = __webpack_require__("5f1b");
  1099. // @@search logic
  1100. __webpack_require__("214f")('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
  1101. return [
  1102. // `String.prototype.search` method
  1103. // https://tc39.github.io/ecma262/#sec-string.prototype.search
  1104. function search(regexp) {
  1105. var O = defined(this);
  1106. var fn = regexp == undefined ? undefined : regexp[SEARCH];
  1107. return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
  1108. },
  1109. // `RegExp.prototype[@@search]` method
  1110. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
  1111. function (regexp) {
  1112. var res = maybeCallNative($search, regexp, this);
  1113. if (res.done) return res.value;
  1114. var rx = anObject(regexp);
  1115. var S = String(this);
  1116. var previousLastIndex = rx.lastIndex;
  1117. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  1118. var result = regExpExec(rx, S);
  1119. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  1120. return result === null ? -1 : result.index;
  1121. }
  1122. ];
  1123. });
  1124. /***/ }),
  1125. /***/ "38fd":
  1126. /***/ (function(module, exports, __webpack_require__) {
  1127. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  1128. var has = __webpack_require__("69a8");
  1129. var toObject = __webpack_require__("4bf8");
  1130. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  1131. var ObjectProto = Object.prototype;
  1132. module.exports = Object.getPrototypeOf || function (O) {
  1133. O = toObject(O);
  1134. if (has(O, IE_PROTO)) return O[IE_PROTO];
  1135. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  1136. return O.constructor.prototype;
  1137. } return O instanceof Object ? ObjectProto : null;
  1138. };
  1139. /***/ }),
  1140. /***/ "3a38":
  1141. /***/ (function(module, exports) {
  1142. // 7.1.4 ToInteger
  1143. var ceil = Math.ceil;
  1144. var floor = Math.floor;
  1145. module.exports = function (it) {
  1146. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1147. };
  1148. /***/ }),
  1149. /***/ "3b2b":
  1150. /***/ (function(module, exports, __webpack_require__) {
  1151. var global = __webpack_require__("7726");
  1152. var inheritIfRequired = __webpack_require__("5dbc");
  1153. var dP = __webpack_require__("86cc").f;
  1154. var gOPN = __webpack_require__("9093").f;
  1155. var isRegExp = __webpack_require__("aae3");
  1156. var $flags = __webpack_require__("0bfb");
  1157. var $RegExp = global.RegExp;
  1158. var Base = $RegExp;
  1159. var proto = $RegExp.prototype;
  1160. var re1 = /a/g;
  1161. var re2 = /a/g;
  1162. // "new" creates a new object, old webkit buggy here
  1163. var CORRECT_NEW = new $RegExp(re1) !== re1;
  1164. if (__webpack_require__("9e1e") && (!CORRECT_NEW || __webpack_require__("79e5")(function () {
  1165. re2[__webpack_require__("2b4c")('match')] = false;
  1166. // RegExp constructor can alter flags and IsRegExp works correct with @@match
  1167. return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
  1168. }))) {
  1169. $RegExp = function RegExp(p, f) {
  1170. var tiRE = this instanceof $RegExp;
  1171. var piRE = isRegExp(p);
  1172. var fiU = f === undefined;
  1173. return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
  1174. : inheritIfRequired(CORRECT_NEW
  1175. ? new Base(piRE && !fiU ? p.source : p, f)
  1176. : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
  1177. , tiRE ? this : proto, $RegExp);
  1178. };
  1179. var proxy = function (key) {
  1180. key in $RegExp || dP($RegExp, key, {
  1181. configurable: true,
  1182. get: function () { return Base[key]; },
  1183. set: function (it) { Base[key] = it; }
  1184. });
  1185. };
  1186. for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
  1187. proto.constructor = $RegExp;
  1188. $RegExp.prototype = proto;
  1189. __webpack_require__("2aba")(global, 'RegExp', $RegExp);
  1190. }
  1191. __webpack_require__("7a56")('RegExp');
  1192. /***/ }),
  1193. /***/ "41a0":
  1194. /***/ (function(module, exports, __webpack_require__) {
  1195. "use strict";
  1196. var create = __webpack_require__("2aeb");
  1197. var descriptor = __webpack_require__("4630");
  1198. var setToStringTag = __webpack_require__("7f20");
  1199. var IteratorPrototype = {};
  1200. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1201. __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
  1202. module.exports = function (Constructor, NAME, next) {
  1203. Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  1204. setToStringTag(Constructor, NAME + ' Iterator');
  1205. };
  1206. /***/ }),
  1207. /***/ "454f":
  1208. /***/ (function(module, exports, __webpack_require__) {
  1209. __webpack_require__("46a7");
  1210. var $Object = __webpack_require__("584a").Object;
  1211. module.exports = function defineProperty(it, key, desc) {
  1212. return $Object.defineProperty(it, key, desc);
  1213. };
  1214. /***/ }),
  1215. /***/ "456d":
  1216. /***/ (function(module, exports, __webpack_require__) {
  1217. // 19.1.2.14 Object.keys(O)
  1218. var toObject = __webpack_require__("4bf8");
  1219. var $keys = __webpack_require__("0d58");
  1220. __webpack_require__("5eda")('keys', function () {
  1221. return function keys(it) {
  1222. return $keys(toObject(it));
  1223. };
  1224. });
  1225. /***/ }),
  1226. /***/ "4588":
  1227. /***/ (function(module, exports) {
  1228. // 7.1.4 ToInteger
  1229. var ceil = Math.ceil;
  1230. var floor = Math.floor;
  1231. module.exports = function (it) {
  1232. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1233. };
  1234. /***/ }),
  1235. /***/ "45f2":
  1236. /***/ (function(module, exports, __webpack_require__) {
  1237. var def = __webpack_require__("d9f6").f;
  1238. var has = __webpack_require__("07e3");
  1239. var TAG = __webpack_require__("5168")('toStringTag');
  1240. module.exports = function (it, tag, stat) {
  1241. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  1242. };
  1243. /***/ }),
  1244. /***/ "4630":
  1245. /***/ (function(module, exports) {
  1246. module.exports = function (bitmap, value) {
  1247. return {
  1248. enumerable: !(bitmap & 1),
  1249. configurable: !(bitmap & 2),
  1250. writable: !(bitmap & 4),
  1251. value: value
  1252. };
  1253. };
  1254. /***/ }),
  1255. /***/ "46a7":
  1256. /***/ (function(module, exports, __webpack_require__) {
  1257. var $export = __webpack_require__("63b6");
  1258. // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
  1259. $export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f });
  1260. /***/ }),
  1261. /***/ "47ee":
  1262. /***/ (function(module, exports, __webpack_require__) {
  1263. // all enumerable object keys, includes symbols
  1264. var getKeys = __webpack_require__("c3a1");
  1265. var gOPS = __webpack_require__("9aa9");
  1266. var pIE = __webpack_require__("355d");
  1267. module.exports = function (it) {
  1268. var result = getKeys(it);
  1269. var getSymbols = gOPS.f;
  1270. if (getSymbols) {
  1271. var symbols = getSymbols(it);
  1272. var isEnum = pIE.f;
  1273. var i = 0;
  1274. var key;
  1275. while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  1276. } return result;
  1277. };
  1278. /***/ }),
  1279. /***/ "4917":
  1280. /***/ (function(module, exports, __webpack_require__) {
  1281. "use strict";
  1282. var anObject = __webpack_require__("cb7c");
  1283. var toLength = __webpack_require__("9def");
  1284. var advanceStringIndex = __webpack_require__("0390");
  1285. var regExpExec = __webpack_require__("5f1b");
  1286. // @@match logic
  1287. __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeCallNative) {
  1288. return [
  1289. // `String.prototype.match` method
  1290. // https://tc39.github.io/ecma262/#sec-string.prototype.match
  1291. function match(regexp) {
  1292. var O = defined(this);
  1293. var fn = regexp == undefined ? undefined : regexp[MATCH];
  1294. return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
  1295. },
  1296. // `RegExp.prototype[@@match]` method
  1297. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
  1298. function (regexp) {
  1299. var res = maybeCallNative($match, regexp, this);
  1300. if (res.done) return res.value;
  1301. var rx = anObject(regexp);
  1302. var S = String(this);
  1303. if (!rx.global) return regExpExec(rx, S);
  1304. var fullUnicode = rx.unicode;
  1305. rx.lastIndex = 0;
  1306. var A = [];
  1307. var n = 0;
  1308. var result;
  1309. while ((result = regExpExec(rx, S)) !== null) {
  1310. var matchStr = String(result[0]);
  1311. A[n] = matchStr;
  1312. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1313. n++;
  1314. }
  1315. return n === 0 ? null : A;
  1316. }
  1317. ];
  1318. });
  1319. /***/ }),
  1320. /***/ "499e":
  1321. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1322. "use strict";
  1323. __webpack_require__.r(__webpack_exports__);
  1324. // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
  1325. /**
  1326. * Translates the list format produced by css-loader into something
  1327. * easier to manipulate.
  1328. */
  1329. function listToStyles (parentId, list) {
  1330. var styles = []
  1331. var newStyles = {}
  1332. for (var i = 0; i < list.length; i++) {
  1333. var item = list[i]
  1334. var id = item[0]
  1335. var css = item[1]
  1336. var media = item[2]
  1337. var sourceMap = item[3]
  1338. var part = {
  1339. id: parentId + ':' + i,
  1340. css: css,
  1341. media: media,
  1342. sourceMap: sourceMap
  1343. }
  1344. if (!newStyles[id]) {
  1345. styles.push(newStyles[id] = { id: id, parts: [part] })
  1346. } else {
  1347. newStyles[id].parts.push(part)
  1348. }
  1349. }
  1350. return styles
  1351. }
  1352. // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
  1353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
  1354. /*
  1355. MIT License http://www.opensource.org/licenses/mit-license.php
  1356. Author Tobias Koppers @sokra
  1357. Modified by Evan You @yyx990803
  1358. */
  1359. var hasDocument = typeof document !== 'undefined'
  1360. if (typeof DEBUG !== 'undefined' && DEBUG) {
  1361. if (!hasDocument) {
  1362. throw new Error(
  1363. 'vue-style-loader cannot be used in a non-browser environment. ' +
  1364. "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
  1365. ) }
  1366. }
  1367. /*
  1368. type StyleObject = {
  1369. id: number;
  1370. parts: Array<StyleObjectPart>
  1371. }
  1372. type StyleObjectPart = {
  1373. css: string;
  1374. media: string;
  1375. sourceMap: ?string
  1376. }
  1377. */
  1378. var stylesInDom = {/*
  1379. [id: number]: {
  1380. id: number,
  1381. refs: number,
  1382. parts: Array<(obj?: StyleObjectPart) => void>
  1383. }
  1384. */}
  1385. var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
  1386. var singletonElement = null
  1387. var singletonCounter = 0
  1388. var isProduction = false
  1389. var noop = function () {}
  1390. var options = null
  1391. var ssrIdKey = 'data-vue-ssr-id'
  1392. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1393. // tags it will allow on a page
  1394. var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
  1395. function addStylesClient (parentId, list, _isProduction, _options) {
  1396. isProduction = _isProduction
  1397. options = _options || {}
  1398. var styles = listToStyles(parentId, list)
  1399. addStylesToDom(styles)
  1400. return function update (newList) {
  1401. var mayRemove = []
  1402. for (var i = 0; i < styles.length; i++) {
  1403. var item = styles[i]
  1404. var domStyle = stylesInDom[item.id]
  1405. domStyle.refs--
  1406. mayRemove.push(domStyle)
  1407. }
  1408. if (newList) {
  1409. styles = listToStyles(parentId, newList)
  1410. addStylesToDom(styles)
  1411. } else {
  1412. styles = []
  1413. }
  1414. for (var i = 0; i < mayRemove.length; i++) {
  1415. var domStyle = mayRemove[i]
  1416. if (domStyle.refs === 0) {
  1417. for (var j = 0; j < domStyle.parts.length; j++) {
  1418. domStyle.parts[j]()
  1419. }
  1420. delete stylesInDom[domStyle.id]
  1421. }
  1422. }
  1423. }
  1424. }
  1425. function addStylesToDom (styles /* Array<StyleObject> */) {
  1426. for (var i = 0; i < styles.length; i++) {
  1427. var item = styles[i]
  1428. var domStyle = stylesInDom[item.id]
  1429. if (domStyle) {
  1430. domStyle.refs++
  1431. for (var j = 0; j < domStyle.parts.length; j++) {
  1432. domStyle.parts[j](item.parts[j])
  1433. }
  1434. for (; j < item.parts.length; j++) {
  1435. domStyle.parts.push(addStyle(item.parts[j]))
  1436. }
  1437. if (domStyle.parts.length > item.parts.length) {
  1438. domStyle.parts.length = item.parts.length
  1439. }
  1440. } else {
  1441. var parts = []
  1442. for (var j = 0; j < item.parts.length; j++) {
  1443. parts.push(addStyle(item.parts[j]))
  1444. }
  1445. stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
  1446. }
  1447. }
  1448. }
  1449. function createStyleElement () {
  1450. var styleElement = document.createElement('style')
  1451. styleElement.type = 'text/css'
  1452. head.appendChild(styleElement)
  1453. return styleElement
  1454. }
  1455. function addStyle (obj /* StyleObjectPart */) {
  1456. var update, remove
  1457. var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
  1458. if (styleElement) {
  1459. if (isProduction) {
  1460. // has SSR styles and in production mode.
  1461. // simply do nothing.
  1462. return noop
  1463. } else {
  1464. // has SSR styles but in dev mode.
  1465. // for some reason Chrome can't handle source map in server-rendered
  1466. // style tags - source maps in <style> only works if the style tag is
  1467. // created and inserted dynamically. So we remove the server rendered
  1468. // styles and inject new ones.
  1469. styleElement.parentNode.removeChild(styleElement)
  1470. }
  1471. }
  1472. if (isOldIE) {
  1473. // use singleton mode for IE9.
  1474. var styleIndex = singletonCounter++
  1475. styleElement = singletonElement || (singletonElement = createStyleElement())
  1476. update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
  1477. remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
  1478. } else {
  1479. // use multi-style-tag mode in all other cases
  1480. styleElement = createStyleElement()
  1481. update = applyToTag.bind(null, styleElement)
  1482. remove = function () {
  1483. styleElement.parentNode.removeChild(styleElement)
  1484. }
  1485. }
  1486. update(obj)
  1487. return function updateStyle (newObj /* StyleObjectPart */) {
  1488. if (newObj) {
  1489. if (newObj.css === obj.css &&
  1490. newObj.media === obj.media &&
  1491. newObj.sourceMap === obj.sourceMap) {
  1492. return
  1493. }
  1494. update(obj = newObj)
  1495. } else {
  1496. remove()
  1497. }
  1498. }
  1499. }
  1500. var replaceText = (function () {
  1501. var textStore = []
  1502. return function (index, replacement) {
  1503. textStore[index] = replacement
  1504. return textStore.filter(Boolean).join('\n')
  1505. }
  1506. })()
  1507. function applyToSingletonTag (styleElement, index, remove, obj) {
  1508. var css = remove ? '' : obj.css
  1509. if (styleElement.styleSheet) {
  1510. styleElement.styleSheet.cssText = replaceText(index, css)
  1511. } else {
  1512. var cssNode = document.createTextNode(css)
  1513. var childNodes = styleElement.childNodes
  1514. if (childNodes[index]) styleElement.removeChild(childNodes[index])
  1515. if (childNodes.length) {
  1516. styleElement.insertBefore(cssNode, childNodes[index])
  1517. } else {
  1518. styleElement.appendChild(cssNode)
  1519. }
  1520. }
  1521. }
  1522. function applyToTag (styleElement, obj) {
  1523. var css = obj.css
  1524. var media = obj.media
  1525. var sourceMap = obj.sourceMap
  1526. if (media) {
  1527. styleElement.setAttribute('media', media)
  1528. }
  1529. if (options.ssrId) {
  1530. styleElement.setAttribute(ssrIdKey, obj.id)
  1531. }
  1532. if (sourceMap) {
  1533. // https://developer.chrome.com/devtools/docs/javascript-debugging
  1534. // this makes source maps inside style tags work properly in Chrome
  1535. css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
  1536. // http://stackoverflow.com/a/26603875
  1537. css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
  1538. }
  1539. if (styleElement.styleSheet) {
  1540. styleElement.styleSheet.cssText = css
  1541. } else {
  1542. while (styleElement.firstChild) {
  1543. styleElement.removeChild(styleElement.firstChild)
  1544. }
  1545. styleElement.appendChild(document.createTextNode(css))
  1546. }
  1547. }
  1548. /***/ }),
  1549. /***/ "4bf8":
  1550. /***/ (function(module, exports, __webpack_require__) {
  1551. // 7.1.13 ToObject(argument)
  1552. var defined = __webpack_require__("be13");
  1553. module.exports = function (it) {
  1554. return Object(defined(it));
  1555. };
  1556. /***/ }),
  1557. /***/ "4f6b":
  1558. /***/ (function(module, exports, __webpack_require__) {
  1559. // style-loader: Adds some css to the DOM by adding a <style> tag
  1560. // load the styles
  1561. var content = __webpack_require__("382e");
  1562. if(typeof content === 'string') content = [[module.i, content, '']];
  1563. if(content.locals) module.exports = content.locals;
  1564. // add the styles to the DOM
  1565. var add = __webpack_require__("499e").default
  1566. var update = add("1d0f7901", content, true, {"sourceMap":false,"shadowMode":false});
  1567. /***/ }),
  1568. /***/ "5168":
  1569. /***/ (function(module, exports, __webpack_require__) {
  1570. var store = __webpack_require__("dbdb")('wks');
  1571. var uid = __webpack_require__("62a0");
  1572. var Symbol = __webpack_require__("e53d").Symbol;
  1573. var USE_SYMBOL = typeof Symbol == 'function';
  1574. var $exports = module.exports = function (name) {
  1575. return store[name] || (store[name] =
  1576. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  1577. };
  1578. $exports.store = store;
  1579. /***/ }),
  1580. /***/ "520a":
  1581. /***/ (function(module, exports, __webpack_require__) {
  1582. "use strict";
  1583. var regexpFlags = __webpack_require__("0bfb");
  1584. var nativeExec = RegExp.prototype.exec;
  1585. // This always refers to the native implementation, because the
  1586. // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
  1587. // which loads this file before patching the method.
  1588. var nativeReplace = String.prototype.replace;
  1589. var patchedExec = nativeExec;
  1590. var LAST_INDEX = 'lastIndex';
  1591. var UPDATES_LAST_INDEX_WRONG = (function () {
  1592. var re1 = /a/,
  1593. re2 = /b*/g;
  1594. nativeExec.call(re1, 'a');
  1595. nativeExec.call(re2, 'a');
  1596. return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
  1597. })();
  1598. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1599. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1600. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
  1601. if (PATCH) {
  1602. patchedExec = function exec(str) {
  1603. var re = this;
  1604. var lastIndex, reCopy, match, i;
  1605. if (NPCG_INCLUDED) {
  1606. reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
  1607. }
  1608. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
  1609. match = nativeExec.call(re, str);
  1610. if (UPDATES_LAST_INDEX_WRONG && match) {
  1611. re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
  1612. }
  1613. if (NPCG_INCLUDED && match && match.length > 1) {
  1614. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1615. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1616. // eslint-disable-next-line no-loop-func
  1617. nativeReplace.call(match[0], reCopy, function () {
  1618. for (i = 1; i < arguments.length - 2; i++) {
  1619. if (arguments[i] === undefined) match[i] = undefined;
  1620. }
  1621. });
  1622. }
  1623. return match;
  1624. };
  1625. }
  1626. module.exports = patchedExec;
  1627. /***/ }),
  1628. /***/ "52a7":
  1629. /***/ (function(module, exports) {
  1630. exports.f = {}.propertyIsEnumerable;
  1631. /***/ }),
  1632. /***/ "5537":
  1633. /***/ (function(module, exports, __webpack_require__) {
  1634. var core = __webpack_require__("8378");
  1635. var global = __webpack_require__("7726");
  1636. var SHARED = '__core-js_shared__';
  1637. var store = global[SHARED] || (global[SHARED] = {});
  1638. (module.exports = function (key, value) {
  1639. return store[key] || (store[key] = value !== undefined ? value : {});
  1640. })('versions', []).push({
  1641. version: core.version,
  1642. mode: __webpack_require__("2d00") ? 'pure' : 'global',
  1643. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  1644. });
  1645. /***/ }),
  1646. /***/ "5559":
  1647. /***/ (function(module, exports, __webpack_require__) {
  1648. var shared = __webpack_require__("dbdb")('keys');
  1649. var uid = __webpack_require__("62a0");
  1650. module.exports = function (key) {
  1651. return shared[key] || (shared[key] = uid(key));
  1652. };
  1653. /***/ }),
  1654. /***/ "584a":
  1655. /***/ (function(module, exports) {
  1656. var core = module.exports = { version: '2.6.5' };
  1657. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  1658. /***/ }),
  1659. /***/ "5b4e":
  1660. /***/ (function(module, exports, __webpack_require__) {
  1661. // false -> Array#indexOf
  1662. // true -> Array#includes
  1663. var toIObject = __webpack_require__("36c3");
  1664. var toLength = __webpack_require__("b447");
  1665. var toAbsoluteIndex = __webpack_require__("0fc9");
  1666. module.exports = function (IS_INCLUDES) {
  1667. return function ($this, el, fromIndex) {
  1668. var O = toIObject($this);
  1669. var length = toLength(O.length);
  1670. var index = toAbsoluteIndex(fromIndex, length);
  1671. var value;
  1672. // Array#includes uses SameValueZero equality algorithm
  1673. // eslint-disable-next-line no-self-compare
  1674. if (IS_INCLUDES && el != el) while (length > index) {
  1675. value = O[index++];
  1676. // eslint-disable-next-line no-self-compare
  1677. if (value != value) return true;
  1678. // Array#indexOf ignores holes, Array#includes - not
  1679. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  1680. if (O[index] === el) return IS_INCLUDES || index || 0;
  1681. } return !IS_INCLUDES && -1;
  1682. };
  1683. };
  1684. /***/ }),
  1685. /***/ "5ca1":
  1686. /***/ (function(module, exports, __webpack_require__) {
  1687. var global = __webpack_require__("7726");
  1688. var core = __webpack_require__("8378");
  1689. var hide = __webpack_require__("32e9");
  1690. var redefine = __webpack_require__("2aba");
  1691. var ctx = __webpack_require__("9b43");
  1692. var PROTOTYPE = 'prototype';
  1693. var $export = function (type, name, source) {
  1694. var IS_FORCED = type & $export.F;
  1695. var IS_GLOBAL = type & $export.G;
  1696. var IS_STATIC = type & $export.S;
  1697. var IS_PROTO = type & $export.P;
  1698. var IS_BIND = type & $export.B;
  1699. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
  1700. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  1701. var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  1702. var key, own, out, exp;
  1703. if (IS_GLOBAL) source = name;
  1704. for (key in source) {
  1705. // contains in native
  1706. own = !IS_FORCED && target && target[key] !== undefined;
  1707. // export native or passed
  1708. out = (own ? target : source)[key];
  1709. // bind timers to global for call from export context
  1710. exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  1711. // extend global
  1712. if (target) redefine(target, key, out, type & $export.U);
  1713. // export
  1714. if (exports[key] != out) hide(exports, key, exp);
  1715. if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  1716. }
  1717. };
  1718. global.core = core;
  1719. // type bitmap
  1720. $export.F = 1; // forced
  1721. $export.G = 2; // global
  1722. $export.S = 4; // static
  1723. $export.P = 8; // proto
  1724. $export.B = 16; // bind
  1725. $export.W = 32; // wrap
  1726. $export.U = 64; // safe
  1727. $export.R = 128; // real proto method for `library`
  1728. module.exports = $export;
  1729. /***/ }),
  1730. /***/ "5dbc":
  1731. /***/ (function(module, exports, __webpack_require__) {
  1732. var isObject = __webpack_require__("d3f4");
  1733. var setPrototypeOf = __webpack_require__("8b97").set;
  1734. module.exports = function (that, target, C) {
  1735. var S = target.constructor;
  1736. var P;
  1737. if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
  1738. setPrototypeOf(that, P);
  1739. } return that;
  1740. };
  1741. /***/ }),
  1742. /***/ "5eda":
  1743. /***/ (function(module, exports, __webpack_require__) {
  1744. // most Object methods by ES6 should accept primitives
  1745. var $export = __webpack_require__("5ca1");
  1746. var core = __webpack_require__("8378");
  1747. var fails = __webpack_require__("79e5");
  1748. module.exports = function (KEY, exec) {
  1749. var fn = (core.Object || {})[KEY] || Object[KEY];
  1750. var exp = {};
  1751. exp[KEY] = exec(fn);
  1752. $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
  1753. };
  1754. /***/ }),
  1755. /***/ "5f1b":
  1756. /***/ (function(module, exports, __webpack_require__) {
  1757. "use strict";
  1758. var classof = __webpack_require__("23c6");
  1759. var builtinExec = RegExp.prototype.exec;
  1760. // `RegExpExec` abstract operation
  1761. // https://tc39.github.io/ecma262/#sec-regexpexec
  1762. module.exports = function (R, S) {
  1763. var exec = R.exec;
  1764. if (typeof exec === 'function') {
  1765. var result = exec.call(R, S);
  1766. if (typeof result !== 'object') {
  1767. throw new TypeError('RegExp exec method returned something other than an Object or null');
  1768. }
  1769. return result;
  1770. }
  1771. if (classof(R) !== 'RegExp') {
  1772. throw new TypeError('RegExp#exec called on incompatible receiver');
  1773. }
  1774. return builtinExec.call(R, S);
  1775. };
  1776. /***/ }),
  1777. /***/ "613b":
  1778. /***/ (function(module, exports, __webpack_require__) {
  1779. var shared = __webpack_require__("5537")('keys');
  1780. var uid = __webpack_require__("ca5a");
  1781. module.exports = function (key) {
  1782. return shared[key] || (shared[key] = uid(key));
  1783. };
  1784. /***/ }),
  1785. /***/ "626a":
  1786. /***/ (function(module, exports, __webpack_require__) {
  1787. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1788. var cof = __webpack_require__("2d95");
  1789. // eslint-disable-next-line no-prototype-builtins
  1790. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  1791. return cof(it) == 'String' ? it.split('') : Object(it);
  1792. };
  1793. /***/ }),
  1794. /***/ "62a0":
  1795. /***/ (function(module, exports) {
  1796. var id = 0;
  1797. var px = Math.random();
  1798. module.exports = function (key) {
  1799. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  1800. };
  1801. /***/ }),
  1802. /***/ "63b6":
  1803. /***/ (function(module, exports, __webpack_require__) {
  1804. var global = __webpack_require__("e53d");
  1805. var core = __webpack_require__("584a");
  1806. var ctx = __webpack_require__("d864");
  1807. var hide = __webpack_require__("35e8");
  1808. var has = __webpack_require__("07e3");
  1809. var PROTOTYPE = 'prototype';
  1810. var $export = function (type, name, source) {
  1811. var IS_FORCED = type & $export.F;
  1812. var IS_GLOBAL = type & $export.G;
  1813. var IS_STATIC = type & $export.S;
  1814. var IS_PROTO = type & $export.P;
  1815. var IS_BIND = type & $export.B;
  1816. var IS_WRAP = type & $export.W;
  1817. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  1818. var expProto = exports[PROTOTYPE];
  1819. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  1820. var key, own, out;
  1821. if (IS_GLOBAL) source = name;
  1822. for (key in source) {
  1823. // contains in native
  1824. own = !IS_FORCED && target && target[key] !== undefined;
  1825. if (own && has(exports, key)) continue;
  1826. // export native or passed
  1827. out = own ? target[key] : source[key];
  1828. // prevent global pollution for namespaces
  1829. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  1830. // bind timers to global for call from export context
  1831. : IS_BIND && own ? ctx(out, global)
  1832. // wrap global constructors for prevent change them in library
  1833. : IS_WRAP && target[key] == out ? (function (C) {
  1834. var F = function (a, b, c) {
  1835. if (this instanceof C) {
  1836. switch (arguments.length) {
  1837. case 0: return new C();
  1838. case 1: return new C(a);
  1839. case 2: return new C(a, b);
  1840. } return new C(a, b, c);
  1841. } return C.apply(this, arguments);
  1842. };
  1843. F[PROTOTYPE] = C[PROTOTYPE];
  1844. return F;
  1845. // make static versions for prototype methods
  1846. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  1847. // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
  1848. if (IS_PROTO) {
  1849. (exports.virtual || (exports.virtual = {}))[key] = out;
  1850. // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
  1851. if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
  1852. }
  1853. }
  1854. };
  1855. // type bitmap
  1856. $export.F = 1; // forced
  1857. $export.G = 2; // global
  1858. $export.S = 4; // static
  1859. $export.P = 8; // proto
  1860. $export.B = 16; // bind
  1861. $export.W = 32; // wrap
  1862. $export.U = 64; // safe
  1863. $export.R = 128; // real proto method for `library`
  1864. module.exports = $export;
  1865. /***/ }),
  1866. /***/ "6718":
  1867. /***/ (function(module, exports, __webpack_require__) {
  1868. var global = __webpack_require__("e53d");
  1869. var core = __webpack_require__("584a");
  1870. var LIBRARY = __webpack_require__("b8e3");
  1871. var wksExt = __webpack_require__("ccb9");
  1872. var defineProperty = __webpack_require__("d9f6").f;
  1873. module.exports = function (name) {
  1874. var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  1875. if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
  1876. };
  1877. /***/ }),
  1878. /***/ "6821":
  1879. /***/ (function(module, exports, __webpack_require__) {
  1880. // to indexed object, toObject with fallback for non-array-like ES3 strings
  1881. var IObject = __webpack_require__("626a");
  1882. var defined = __webpack_require__("be13");
  1883. module.exports = function (it) {
  1884. return IObject(defined(it));
  1885. };
  1886. /***/ }),
  1887. /***/ "69a8":
  1888. /***/ (function(module, exports) {
  1889. var hasOwnProperty = {}.hasOwnProperty;
  1890. module.exports = function (it, key) {
  1891. return hasOwnProperty.call(it, key);
  1892. };
  1893. /***/ }),
  1894. /***/ "6a99":
  1895. /***/ (function(module, exports, __webpack_require__) {
  1896. // 7.1.1 ToPrimitive(input [, PreferredType])
  1897. var isObject = __webpack_require__("d3f4");
  1898. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  1899. // and the second argument - flag - preferred type is a string
  1900. module.exports = function (it, S) {
  1901. if (!isObject(it)) return it;
  1902. var fn, val;
  1903. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  1904. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  1905. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  1906. throw TypeError("Can't convert object to primitive value");
  1907. };
  1908. /***/ }),
  1909. /***/ "6abf":
  1910. /***/ (function(module, exports, __webpack_require__) {
  1911. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  1912. var $keys = __webpack_require__("e6f3");
  1913. var hiddenKeys = __webpack_require__("1691").concat('length', 'prototype');
  1914. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1915. return $keys(O, hiddenKeys);
  1916. };
  1917. /***/ }),
  1918. /***/ "6b4c":
  1919. /***/ (function(module, exports) {
  1920. var toString = {}.toString;
  1921. module.exports = function (it) {
  1922. return toString.call(it).slice(8, -1);
  1923. };
  1924. /***/ }),
  1925. /***/ "6b54":
  1926. /***/ (function(module, exports, __webpack_require__) {
  1927. "use strict";
  1928. __webpack_require__("3846");
  1929. var anObject = __webpack_require__("cb7c");
  1930. var $flags = __webpack_require__("0bfb");
  1931. var DESCRIPTORS = __webpack_require__("9e1e");
  1932. var TO_STRING = 'toString';
  1933. var $toString = /./[TO_STRING];
  1934. var define = function (fn) {
  1935. __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true);
  1936. };
  1937. // 21.2.5.14 RegExp.prototype.toString()
  1938. if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
  1939. define(function toString() {
  1940. var R = anObject(this);
  1941. return '/'.concat(R.source, '/',
  1942. 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
  1943. });
  1944. // FF44- RegExp#toString has a wrong name
  1945. } else if ($toString.name != TO_STRING) {
  1946. define(function toString() {
  1947. return $toString.call(this);
  1948. });
  1949. }
  1950. /***/ }),
  1951. /***/ "6c7b":
  1952. /***/ (function(module, exports, __webpack_require__) {
  1953. // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
  1954. var $export = __webpack_require__("5ca1");
  1955. $export($export.P, 'Array', { fill: __webpack_require__("36bd") });
  1956. __webpack_require__("9c6c")('fill');
  1957. /***/ }),
  1958. /***/ "7726":
  1959. /***/ (function(module, exports) {
  1960. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  1961. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  1962. ? window : typeof self != 'undefined' && self.Math == Math ? self
  1963. // eslint-disable-next-line no-new-func
  1964. : Function('return this')();
  1965. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  1966. /***/ }),
  1967. /***/ "77f1":
  1968. /***/ (function(module, exports, __webpack_require__) {
  1969. var toInteger = __webpack_require__("4588");
  1970. var max = Math.max;
  1971. var min = Math.min;
  1972. module.exports = function (index, length) {
  1973. index = toInteger(index);
  1974. return index < 0 ? max(index + length, 0) : min(index, length);
  1975. };
  1976. /***/ }),
  1977. /***/ "794b":
  1978. /***/ (function(module, exports, __webpack_require__) {
  1979. module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () {
  1980. return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7;
  1981. });
  1982. /***/ }),
  1983. /***/ "79aa":
  1984. /***/ (function(module, exports) {
  1985. module.exports = function (it) {
  1986. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  1987. return it;
  1988. };
  1989. /***/ }),
  1990. /***/ "79e5":
  1991. /***/ (function(module, exports) {
  1992. module.exports = function (exec) {
  1993. try {
  1994. return !!exec();
  1995. } catch (e) {
  1996. return true;
  1997. }
  1998. };
  1999. /***/ }),
  2000. /***/ "7a56":
  2001. /***/ (function(module, exports, __webpack_require__) {
  2002. "use strict";
  2003. var global = __webpack_require__("7726");
  2004. var dP = __webpack_require__("86cc");
  2005. var DESCRIPTORS = __webpack_require__("9e1e");
  2006. var SPECIES = __webpack_require__("2b4c")('species');
  2007. module.exports = function (KEY) {
  2008. var C = global[KEY];
  2009. if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
  2010. configurable: true,
  2011. get: function () { return this; }
  2012. });
  2013. };
  2014. /***/ }),
  2015. /***/ "7cdf":
  2016. /***/ (function(module, exports, __webpack_require__) {
  2017. // 20.1.2.3 Number.isInteger(number)
  2018. var $export = __webpack_require__("5ca1");
  2019. $export($export.S, 'Number', { isInteger: __webpack_require__("9c12") });
  2020. /***/ }),
  2021. /***/ "7e90":
  2022. /***/ (function(module, exports, __webpack_require__) {
  2023. var dP = __webpack_require__("d9f6");
  2024. var anObject = __webpack_require__("e4ae");
  2025. var getKeys = __webpack_require__("c3a1");
  2026. module.exports = __webpack_require__("8e60") ? Object.defineProperties : function defineProperties(O, Properties) {
  2027. anObject(O);
  2028. var keys = getKeys(Properties);
  2029. var length = keys.length;
  2030. var i = 0;
  2031. var P;
  2032. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  2033. return O;
  2034. };
  2035. /***/ }),
  2036. /***/ "7f20":
  2037. /***/ (function(module, exports, __webpack_require__) {
  2038. var def = __webpack_require__("86cc").f;
  2039. var has = __webpack_require__("69a8");
  2040. var TAG = __webpack_require__("2b4c")('toStringTag');
  2041. module.exports = function (it, tag, stat) {
  2042. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  2043. };
  2044. /***/ }),
  2045. /***/ "8378":
  2046. /***/ (function(module, exports) {
  2047. var core = module.exports = { version: '2.6.5' };
  2048. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  2049. /***/ }),
  2050. /***/ "83a1":
  2051. /***/ (function(module, exports) {
  2052. // 7.2.9 SameValue(x, y)
  2053. module.exports = Object.is || function is(x, y) {
  2054. // eslint-disable-next-line no-self-compare
  2055. return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
  2056. };
  2057. /***/ }),
  2058. /***/ "84f2":
  2059. /***/ (function(module, exports) {
  2060. module.exports = {};
  2061. /***/ }),
  2062. /***/ "85f2":
  2063. /***/ (function(module, exports, __webpack_require__) {
  2064. module.exports = __webpack_require__("454f");
  2065. /***/ }),
  2066. /***/ "86cc":
  2067. /***/ (function(module, exports, __webpack_require__) {
  2068. var anObject = __webpack_require__("cb7c");
  2069. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  2070. var toPrimitive = __webpack_require__("6a99");
  2071. var dP = Object.defineProperty;
  2072. exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  2073. anObject(O);
  2074. P = toPrimitive(P, true);
  2075. anObject(Attributes);
  2076. if (IE8_DOM_DEFINE) try {
  2077. return dP(O, P, Attributes);
  2078. } catch (e) { /* empty */ }
  2079. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  2080. if ('value' in Attributes) O[P] = Attributes.value;
  2081. return O;
  2082. };
  2083. /***/ }),
  2084. /***/ "8aae":
  2085. /***/ (function(module, exports, __webpack_require__) {
  2086. __webpack_require__("32a6");
  2087. module.exports = __webpack_require__("584a").Object.keys;
  2088. /***/ }),
  2089. /***/ "8b97":
  2090. /***/ (function(module, exports, __webpack_require__) {
  2091. // Works with __proto__ only. Old v8 can't work with null proto objects.
  2092. /* eslint-disable no-proto */
  2093. var isObject = __webpack_require__("d3f4");
  2094. var anObject = __webpack_require__("cb7c");
  2095. var check = function (O, proto) {
  2096. anObject(O);
  2097. if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
  2098. };
  2099. module.exports = {
  2100. set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
  2101. function (test, buggy, set) {
  2102. try {
  2103. set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
  2104. set(test, []);
  2105. buggy = !(test instanceof Array);
  2106. } catch (e) { buggy = true; }
  2107. return function setPrototypeOf(O, proto) {
  2108. check(O, proto);
  2109. if (buggy) O.__proto__ = proto;
  2110. else set(O, proto);
  2111. return O;
  2112. };
  2113. }({}, false) : undefined),
  2114. check: check
  2115. };
  2116. /***/ }),
  2117. /***/ "8bbf":
  2118. /***/ (function(module, exports) {
  2119. module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
  2120. /***/ }),
  2121. /***/ "8e60":
  2122. /***/ (function(module, exports, __webpack_require__) {
  2123. // Thank's IE8 for his funny defineProperty
  2124. module.exports = !__webpack_require__("294c")(function () {
  2125. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  2126. });
  2127. /***/ }),
  2128. /***/ "9003":
  2129. /***/ (function(module, exports, __webpack_require__) {
  2130. // 7.2.2 IsArray(argument)
  2131. var cof = __webpack_require__("6b4c");
  2132. module.exports = Array.isArray || function isArray(arg) {
  2133. return cof(arg) == 'Array';
  2134. };
  2135. /***/ }),
  2136. /***/ "9093":
  2137. /***/ (function(module, exports, __webpack_require__) {
  2138. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  2139. var $keys = __webpack_require__("ce10");
  2140. var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
  2141. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  2142. return $keys(O, hiddenKeys);
  2143. };
  2144. /***/ }),
  2145. /***/ "9138":
  2146. /***/ (function(module, exports, __webpack_require__) {
  2147. module.exports = __webpack_require__("35e8");
  2148. /***/ }),
  2149. /***/ "9aa9":
  2150. /***/ (function(module, exports) {
  2151. exports.f = Object.getOwnPropertySymbols;
  2152. /***/ }),
  2153. /***/ "9b43":
  2154. /***/ (function(module, exports, __webpack_require__) {
  2155. // optional / simple context binding
  2156. var aFunction = __webpack_require__("d8e8");
  2157. module.exports = function (fn, that, length) {
  2158. aFunction(fn);
  2159. if (that === undefined) return fn;
  2160. switch (length) {
  2161. case 1: return function (a) {
  2162. return fn.call(that, a);
  2163. };
  2164. case 2: return function (a, b) {
  2165. return fn.call(that, a, b);
  2166. };
  2167. case 3: return function (a, b, c) {
  2168. return fn.call(that, a, b, c);
  2169. };
  2170. }
  2171. return function (/* ...args */) {
  2172. return fn.apply(that, arguments);
  2173. };
  2174. };
  2175. /***/ }),
  2176. /***/ "9c12":
  2177. /***/ (function(module, exports, __webpack_require__) {
  2178. // 20.1.2.3 Number.isInteger(number)
  2179. var isObject = __webpack_require__("d3f4");
  2180. var floor = Math.floor;
  2181. module.exports = function isInteger(it) {
  2182. return !isObject(it) && isFinite(it) && floor(it) === it;
  2183. };
  2184. /***/ }),
  2185. /***/ "9c6c":
  2186. /***/ (function(module, exports, __webpack_require__) {
  2187. // 22.1.3.31 Array.prototype[@@unscopables]
  2188. var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
  2189. var ArrayProto = Array.prototype;
  2190. if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
  2191. module.exports = function (key) {
  2192. ArrayProto[UNSCOPABLES][key] = true;
  2193. };
  2194. /***/ }),
  2195. /***/ "9def":
  2196. /***/ (function(module, exports, __webpack_require__) {
  2197. // 7.1.15 ToLength
  2198. var toInteger = __webpack_require__("4588");
  2199. var min = Math.min;
  2200. module.exports = function (it) {
  2201. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  2202. };
  2203. /***/ }),
  2204. /***/ "9e1e":
  2205. /***/ (function(module, exports, __webpack_require__) {
  2206. // Thank's IE8 for his funny defineProperty
  2207. module.exports = !__webpack_require__("79e5")(function () {
  2208. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  2209. });
  2210. /***/ }),
  2211. /***/ "a159":
  2212. /***/ (function(module, exports, __webpack_require__) {
  2213. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  2214. var anObject = __webpack_require__("e4ae");
  2215. var dPs = __webpack_require__("7e90");
  2216. var enumBugKeys = __webpack_require__("1691");
  2217. var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
  2218. var Empty = function () { /* empty */ };
  2219. var PROTOTYPE = 'prototype';
  2220. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  2221. var createDict = function () {
  2222. // Thrash, waste and sodomy: IE GC bug
  2223. var iframe = __webpack_require__("1ec9")('iframe');
  2224. var i = enumBugKeys.length;
  2225. var lt = '<';
  2226. var gt = '>';
  2227. var iframeDocument;
  2228. iframe.style.display = 'none';
  2229. __webpack_require__("32fc").appendChild(iframe);
  2230. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  2231. // createDict = iframe.contentWindow.Object;
  2232. // html.removeChild(iframe);
  2233. iframeDocument = iframe.contentWindow.document;
  2234. iframeDocument.open();
  2235. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  2236. iframeDocument.close();
  2237. createDict = iframeDocument.F;
  2238. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  2239. return createDict();
  2240. };
  2241. module.exports = Object.create || function create(O, Properties) {
  2242. var result;
  2243. if (O !== null) {
  2244. Empty[PROTOTYPE] = anObject(O);
  2245. result = new Empty();
  2246. Empty[PROTOTYPE] = null;
  2247. // add "__proto__" for Object.getPrototypeOf polyfill
  2248. result[IE_PROTO] = O;
  2249. } else result = createDict();
  2250. return Properties === undefined ? result : dPs(result, Properties);
  2251. };
  2252. /***/ }),
  2253. /***/ "a481":
  2254. /***/ (function(module, exports, __webpack_require__) {
  2255. "use strict";
  2256. var anObject = __webpack_require__("cb7c");
  2257. var toObject = __webpack_require__("4bf8");
  2258. var toLength = __webpack_require__("9def");
  2259. var toInteger = __webpack_require__("4588");
  2260. var advanceStringIndex = __webpack_require__("0390");
  2261. var regExpExec = __webpack_require__("5f1b");
  2262. var max = Math.max;
  2263. var min = Math.min;
  2264. var floor = Math.floor;
  2265. var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
  2266. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
  2267. var maybeToString = function (it) {
  2268. return it === undefined ? it : String(it);
  2269. };
  2270. // @@replace logic
  2271. __webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
  2272. return [
  2273. // `String.prototype.replace` method
  2274. // https://tc39.github.io/ecma262/#sec-string.prototype.replace
  2275. function replace(searchValue, replaceValue) {
  2276. var O = defined(this);
  2277. var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
  2278. return fn !== undefined
  2279. ? fn.call(searchValue, O, replaceValue)
  2280. : $replace.call(String(O), searchValue, replaceValue);
  2281. },
  2282. // `RegExp.prototype[@@replace]` method
  2283. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
  2284. function (regexp, replaceValue) {
  2285. var res = maybeCallNative($replace, regexp, this, replaceValue);
  2286. if (res.done) return res.value;
  2287. var rx = anObject(regexp);
  2288. var S = String(this);
  2289. var functionalReplace = typeof replaceValue === 'function';
  2290. if (!functionalReplace) replaceValue = String(replaceValue);
  2291. var global = rx.global;
  2292. if (global) {
  2293. var fullUnicode = rx.unicode;
  2294. rx.lastIndex = 0;
  2295. }
  2296. var results = [];
  2297. while (true) {
  2298. var result = regExpExec(rx, S);
  2299. if (result === null) break;
  2300. results.push(result);
  2301. if (!global) break;
  2302. var matchStr = String(result[0]);
  2303. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  2304. }
  2305. var accumulatedResult = '';
  2306. var nextSourcePosition = 0;
  2307. for (var i = 0; i < results.length; i++) {
  2308. result = results[i];
  2309. var matched = String(result[0]);
  2310. var position = max(min(toInteger(result.index), S.length), 0);
  2311. var captures = [];
  2312. // NOTE: This is equivalent to
  2313. // captures = result.slice(1).map(maybeToString)
  2314. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  2315. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  2316. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  2317. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
  2318. var namedCaptures = result.groups;
  2319. if (functionalReplace) {
  2320. var replacerArgs = [matched].concat(captures, position, S);
  2321. if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
  2322. var replacement = String(replaceValue.apply(undefined, replacerArgs));
  2323. } else {
  2324. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  2325. }
  2326. if (position >= nextSourcePosition) {
  2327. accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
  2328. nextSourcePosition = position + matched.length;
  2329. }
  2330. }
  2331. return accumulatedResult + S.slice(nextSourcePosition);
  2332. }
  2333. ];
  2334. // https://tc39.github.io/ecma262/#sec-getsubstitution
  2335. function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
  2336. var tailPos = position + matched.length;
  2337. var m = captures.length;
  2338. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  2339. if (namedCaptures !== undefined) {
  2340. namedCaptures = toObject(namedCaptures);
  2341. symbols = SUBSTITUTION_SYMBOLS;
  2342. }
  2343. return $replace.call(replacement, symbols, function (match, ch) {
  2344. var capture;
  2345. switch (ch.charAt(0)) {
  2346. case '$': return '$';
  2347. case '&': return matched;
  2348. case '`': return str.slice(0, position);
  2349. case "'": return str.slice(tailPos);
  2350. case '<':
  2351. capture = namedCaptures[ch.slice(1, -1)];
  2352. break;
  2353. default: // \d\d?
  2354. var n = +ch;
  2355. if (n === 0) return match;
  2356. if (n > m) {
  2357. var f = floor(n / 10);
  2358. if (f === 0) return match;
  2359. if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
  2360. return match;
  2361. }
  2362. capture = captures[n - 1];
  2363. }
  2364. return capture === undefined ? '' : capture;
  2365. });
  2366. }
  2367. });
  2368. /***/ }),
  2369. /***/ "a4bb":
  2370. /***/ (function(module, exports, __webpack_require__) {
  2371. module.exports = __webpack_require__("8aae");
  2372. /***/ }),
  2373. /***/ "aa77":
  2374. /***/ (function(module, exports, __webpack_require__) {
  2375. var $export = __webpack_require__("5ca1");
  2376. var defined = __webpack_require__("be13");
  2377. var fails = __webpack_require__("79e5");
  2378. var spaces = __webpack_require__("fdef");
  2379. var space = '[' + spaces + ']';
  2380. var non = '\u200b\u0085';
  2381. var ltrim = RegExp('^' + space + space + '*');
  2382. var rtrim = RegExp(space + space + '*$');
  2383. var exporter = function (KEY, exec, ALIAS) {
  2384. var exp = {};
  2385. var FORCE = fails(function () {
  2386. return !!spaces[KEY]() || non[KEY]() != non;
  2387. });
  2388. var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  2389. if (ALIAS) exp[ALIAS] = fn;
  2390. $export($export.P + $export.F * FORCE, 'String', exp);
  2391. };
  2392. // 1 -> String#trimLeft
  2393. // 2 -> String#trimRight
  2394. // 3 -> String#trim
  2395. var trim = exporter.trim = function (string, TYPE) {
  2396. string = String(defined(string));
  2397. if (TYPE & 1) string = string.replace(ltrim, '');
  2398. if (TYPE & 2) string = string.replace(rtrim, '');
  2399. return string;
  2400. };
  2401. module.exports = exporter;
  2402. /***/ }),
  2403. /***/ "aae3":
  2404. /***/ (function(module, exports, __webpack_require__) {
  2405. // 7.2.8 IsRegExp(argument)
  2406. var isObject = __webpack_require__("d3f4");
  2407. var cof = __webpack_require__("2d95");
  2408. var MATCH = __webpack_require__("2b4c")('match');
  2409. module.exports = function (it) {
  2410. var isRegExp;
  2411. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
  2412. };
  2413. /***/ }),
  2414. /***/ "ac6a":
  2415. /***/ (function(module, exports, __webpack_require__) {
  2416. var $iterators = __webpack_require__("cadf");
  2417. var getKeys = __webpack_require__("0d58");
  2418. var redefine = __webpack_require__("2aba");
  2419. var global = __webpack_require__("7726");
  2420. var hide = __webpack_require__("32e9");
  2421. var Iterators = __webpack_require__("84f2");
  2422. var wks = __webpack_require__("2b4c");
  2423. var ITERATOR = wks('iterator');
  2424. var TO_STRING_TAG = wks('toStringTag');
  2425. var ArrayValues = Iterators.Array;
  2426. var DOMIterables = {
  2427. CSSRuleList: true, // TODO: Not spec compliant, should be false.
  2428. CSSStyleDeclaration: false,
  2429. CSSValueList: false,
  2430. ClientRectList: false,
  2431. DOMRectList: false,
  2432. DOMStringList: false,
  2433. DOMTokenList: true,
  2434. DataTransferItemList: false,
  2435. FileList: false,
  2436. HTMLAllCollection: false,
  2437. HTMLCollection: false,
  2438. HTMLFormElement: false,
  2439. HTMLSelectElement: false,
  2440. MediaList: true, // TODO: Not spec compliant, should be false.
  2441. MimeTypeArray: false,
  2442. NamedNodeMap: false,
  2443. NodeList: true,
  2444. PaintRequestList: false,
  2445. Plugin: false,
  2446. PluginArray: false,
  2447. SVGLengthList: false,
  2448. SVGNumberList: false,
  2449. SVGPathSegList: false,
  2450. SVGPointList: false,
  2451. SVGStringList: false,
  2452. SVGTransformList: false,
  2453. SourceBufferList: false,
  2454. StyleSheetList: true, // TODO: Not spec compliant, should be false.
  2455. TextTrackCueList: false,
  2456. TextTrackList: false,
  2457. TouchList: false
  2458. };
  2459. for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
  2460. var NAME = collections[i];
  2461. var explicit = DOMIterables[NAME];
  2462. var Collection = global[NAME];
  2463. var proto = Collection && Collection.prototype;
  2464. var key;
  2465. if (proto) {
  2466. if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
  2467. if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  2468. Iterators[NAME] = ArrayValues;
  2469. if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
  2470. }
  2471. }
  2472. /***/ }),
  2473. /***/ "aebd":
  2474. /***/ (function(module, exports) {
  2475. module.exports = function (bitmap, value) {
  2476. return {
  2477. enumerable: !(bitmap & 1),
  2478. configurable: !(bitmap & 2),
  2479. writable: !(bitmap & 4),
  2480. value: value
  2481. };
  2482. };
  2483. /***/ }),
  2484. /***/ "b0c5":
  2485. /***/ (function(module, exports, __webpack_require__) {
  2486. "use strict";
  2487. var regexpExec = __webpack_require__("520a");
  2488. __webpack_require__("5ca1")({
  2489. target: 'RegExp',
  2490. proto: true,
  2491. forced: regexpExec !== /./.exec
  2492. }, {
  2493. exec: regexpExec
  2494. });
  2495. /***/ }),
  2496. /***/ "b447":
  2497. /***/ (function(module, exports, __webpack_require__) {
  2498. // 7.1.15 ToLength
  2499. var toInteger = __webpack_require__("3a38");
  2500. var min = Math.min;
  2501. module.exports = function (it) {
  2502. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  2503. };
  2504. /***/ }),
  2505. /***/ "b8e3":
  2506. /***/ (function(module, exports) {
  2507. module.exports = true;
  2508. /***/ }),
  2509. /***/ "be13":
  2510. /***/ (function(module, exports) {
  2511. // 7.2.1 RequireObjectCoercible(argument)
  2512. module.exports = function (it) {
  2513. if (it == undefined) throw TypeError("Can't call method on " + it);
  2514. return it;
  2515. };
  2516. /***/ }),
  2517. /***/ "bf0b":
  2518. /***/ (function(module, exports, __webpack_require__) {
  2519. var pIE = __webpack_require__("355d");
  2520. var createDesc = __webpack_require__("aebd");
  2521. var toIObject = __webpack_require__("36c3");
  2522. var toPrimitive = __webpack_require__("1bc3");
  2523. var has = __webpack_require__("07e3");
  2524. var IE8_DOM_DEFINE = __webpack_require__("794b");
  2525. var gOPD = Object.getOwnPropertyDescriptor;
  2526. exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  2527. O = toIObject(O);
  2528. P = toPrimitive(P, true);
  2529. if (IE8_DOM_DEFINE) try {
  2530. return gOPD(O, P);
  2531. } catch (e) { /* empty */ }
  2532. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  2533. };
  2534. /***/ }),
  2535. /***/ "bf90":
  2536. /***/ (function(module, exports, __webpack_require__) {
  2537. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  2538. var toIObject = __webpack_require__("36c3");
  2539. var $getOwnPropertyDescriptor = __webpack_require__("bf0b").f;
  2540. __webpack_require__("ce7e")('getOwnPropertyDescriptor', function () {
  2541. return function getOwnPropertyDescriptor(it, key) {
  2542. return $getOwnPropertyDescriptor(toIObject(it), key);
  2543. };
  2544. });
  2545. /***/ }),
  2546. /***/ "c366":
  2547. /***/ (function(module, exports, __webpack_require__) {
  2548. // false -> Array#indexOf
  2549. // true -> Array#includes
  2550. var toIObject = __webpack_require__("6821");
  2551. var toLength = __webpack_require__("9def");
  2552. var toAbsoluteIndex = __webpack_require__("77f1");
  2553. module.exports = function (IS_INCLUDES) {
  2554. return function ($this, el, fromIndex) {
  2555. var O = toIObject($this);
  2556. var length = toLength(O.length);
  2557. var index = toAbsoluteIndex(fromIndex, length);
  2558. var value;
  2559. // Array#includes uses SameValueZero equality algorithm
  2560. // eslint-disable-next-line no-self-compare
  2561. if (IS_INCLUDES && el != el) while (length > index) {
  2562. value = O[index++];
  2563. // eslint-disable-next-line no-self-compare
  2564. if (value != value) return true;
  2565. // Array#indexOf ignores holes, Array#includes - not
  2566. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  2567. if (O[index] === el) return IS_INCLUDES || index || 0;
  2568. } return !IS_INCLUDES && -1;
  2569. };
  2570. };
  2571. /***/ }),
  2572. /***/ "c3a1":
  2573. /***/ (function(module, exports, __webpack_require__) {
  2574. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  2575. var $keys = __webpack_require__("e6f3");
  2576. var enumBugKeys = __webpack_require__("1691");
  2577. module.exports = Object.keys || function keys(O) {
  2578. return $keys(O, enumBugKeys);
  2579. };
  2580. /***/ }),
  2581. /***/ "c5f6":
  2582. /***/ (function(module, exports, __webpack_require__) {
  2583. "use strict";
  2584. var global = __webpack_require__("7726");
  2585. var has = __webpack_require__("69a8");
  2586. var cof = __webpack_require__("2d95");
  2587. var inheritIfRequired = __webpack_require__("5dbc");
  2588. var toPrimitive = __webpack_require__("6a99");
  2589. var fails = __webpack_require__("79e5");
  2590. var gOPN = __webpack_require__("9093").f;
  2591. var gOPD = __webpack_require__("11e9").f;
  2592. var dP = __webpack_require__("86cc").f;
  2593. var $trim = __webpack_require__("aa77").trim;
  2594. var NUMBER = 'Number';
  2595. var $Number = global[NUMBER];
  2596. var Base = $Number;
  2597. var proto = $Number.prototype;
  2598. // Opera ~12 has broken Object#toString
  2599. var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
  2600. var TRIM = 'trim' in String.prototype;
  2601. // 7.1.3 ToNumber(argument)
  2602. var toNumber = function (argument) {
  2603. var it = toPrimitive(argument, false);
  2604. if (typeof it == 'string' && it.length > 2) {
  2605. it = TRIM ? it.trim() : $trim(it, 3);
  2606. var first = it.charCodeAt(0);
  2607. var third, radix, maxCode;
  2608. if (first === 43 || first === 45) {
  2609. third = it.charCodeAt(2);
  2610. if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
  2611. } else if (first === 48) {
  2612. switch (it.charCodeAt(1)) {
  2613. case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
  2614. case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
  2615. default: return +it;
  2616. }
  2617. for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
  2618. code = digits.charCodeAt(i);
  2619. // parseInt parses a string to a first unavailable symbol
  2620. // but ToNumber should return NaN if a string contains unavailable symbols
  2621. if (code < 48 || code > maxCode) return NaN;
  2622. } return parseInt(digits, radix);
  2623. }
  2624. } return +it;
  2625. };
  2626. if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
  2627. $Number = function Number(value) {
  2628. var it = arguments.length < 1 ? 0 : value;
  2629. var that = this;
  2630. return that instanceof $Number
  2631. // check on 1..constructor(foo) case
  2632. && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
  2633. ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
  2634. };
  2635. for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
  2636. // ES3:
  2637. 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
  2638. // ES6 (in case, if modules with ES6 Number statics required before):
  2639. 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
  2640. 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
  2641. ).split(','), j = 0, key; keys.length > j; j++) {
  2642. if (has(Base, key = keys[j]) && !has($Number, key)) {
  2643. dP($Number, key, gOPD(Base, key));
  2644. }
  2645. }
  2646. $Number.prototype = proto;
  2647. proto.constructor = $Number;
  2648. __webpack_require__("2aba")(global, NUMBER, $Number);
  2649. }
  2650. /***/ }),
  2651. /***/ "c69a":
  2652. /***/ (function(module, exports, __webpack_require__) {
  2653. module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
  2654. return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
  2655. });
  2656. /***/ }),
  2657. /***/ "ca5a":
  2658. /***/ (function(module, exports) {
  2659. var id = 0;
  2660. var px = Math.random();
  2661. module.exports = function (key) {
  2662. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  2663. };
  2664. /***/ }),
  2665. /***/ "cadf":
  2666. /***/ (function(module, exports, __webpack_require__) {
  2667. "use strict";
  2668. var addToUnscopables = __webpack_require__("9c6c");
  2669. var step = __webpack_require__("d53b");
  2670. var Iterators = __webpack_require__("84f2");
  2671. var toIObject = __webpack_require__("6821");
  2672. // 22.1.3.4 Array.prototype.entries()
  2673. // 22.1.3.13 Array.prototype.keys()
  2674. // 22.1.3.29 Array.prototype.values()
  2675. // 22.1.3.30 Array.prototype[@@iterator]()
  2676. module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
  2677. this._t = toIObject(iterated); // target
  2678. this._i = 0; // next index
  2679. this._k = kind; // kind
  2680. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  2681. }, function () {
  2682. var O = this._t;
  2683. var kind = this._k;
  2684. var index = this._i++;
  2685. if (!O || index >= O.length) {
  2686. this._t = undefined;
  2687. return step(1);
  2688. }
  2689. if (kind == 'keys') return step(0, index);
  2690. if (kind == 'values') return step(0, O[index]);
  2691. return step(0, [index, O[index]]);
  2692. }, 'values');
  2693. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  2694. Iterators.Arguments = Iterators.Array;
  2695. addToUnscopables('keys');
  2696. addToUnscopables('values');
  2697. addToUnscopables('entries');
  2698. /***/ }),
  2699. /***/ "cb7c":
  2700. /***/ (function(module, exports, __webpack_require__) {
  2701. var isObject = __webpack_require__("d3f4");
  2702. module.exports = function (it) {
  2703. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  2704. return it;
  2705. };
  2706. /***/ }),
  2707. /***/ "ccb9":
  2708. /***/ (function(module, exports, __webpack_require__) {
  2709. exports.f = __webpack_require__("5168");
  2710. /***/ }),
  2711. /***/ "ce10":
  2712. /***/ (function(module, exports, __webpack_require__) {
  2713. var has = __webpack_require__("69a8");
  2714. var toIObject = __webpack_require__("6821");
  2715. var arrayIndexOf = __webpack_require__("c366")(false);
  2716. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  2717. module.exports = function (object, names) {
  2718. var O = toIObject(object);
  2719. var i = 0;
  2720. var result = [];
  2721. var key;
  2722. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  2723. // Don't enum bug & hidden keys
  2724. while (names.length > i) if (has(O, key = names[i++])) {
  2725. ~arrayIndexOf(result, key) || result.push(key);
  2726. }
  2727. return result;
  2728. };
  2729. /***/ }),
  2730. /***/ "ce7e":
  2731. /***/ (function(module, exports, __webpack_require__) {
  2732. // most Object methods by ES6 should accept primitives
  2733. var $export = __webpack_require__("63b6");
  2734. var core = __webpack_require__("584a");
  2735. var fails = __webpack_require__("294c");
  2736. module.exports = function (KEY, exec) {
  2737. var fn = (core.Object || {})[KEY] || Object[KEY];
  2738. var exp = {};
  2739. exp[KEY] = exec(fn);
  2740. $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
  2741. };
  2742. /***/ }),
  2743. /***/ "d3f4":
  2744. /***/ (function(module, exports) {
  2745. module.exports = function (it) {
  2746. return typeof it === 'object' ? it !== null : typeof it === 'function';
  2747. };
  2748. /***/ }),
  2749. /***/ "d53b":
  2750. /***/ (function(module, exports) {
  2751. module.exports = function (done, value) {
  2752. return { value: value, done: !!done };
  2753. };
  2754. /***/ }),
  2755. /***/ "d812":
  2756. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2757. "use strict";
  2758. /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4f6b");
  2759. /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  2760. /* unused harmony reexport * */
  2761. /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
  2762. /***/ }),
  2763. /***/ "d864":
  2764. /***/ (function(module, exports, __webpack_require__) {
  2765. // optional / simple context binding
  2766. var aFunction = __webpack_require__("79aa");
  2767. module.exports = function (fn, that, length) {
  2768. aFunction(fn);
  2769. if (that === undefined) return fn;
  2770. switch (length) {
  2771. case 1: return function (a) {
  2772. return fn.call(that, a);
  2773. };
  2774. case 2: return function (a, b) {
  2775. return fn.call(that, a, b);
  2776. };
  2777. case 3: return function (a, b, c) {
  2778. return fn.call(that, a, b, c);
  2779. };
  2780. }
  2781. return function (/* ...args */) {
  2782. return fn.apply(that, arguments);
  2783. };
  2784. };
  2785. /***/ }),
  2786. /***/ "d8e8":
  2787. /***/ (function(module, exports) {
  2788. module.exports = function (it) {
  2789. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  2790. return it;
  2791. };
  2792. /***/ }),
  2793. /***/ "d9f6":
  2794. /***/ (function(module, exports, __webpack_require__) {
  2795. var anObject = __webpack_require__("e4ae");
  2796. var IE8_DOM_DEFINE = __webpack_require__("794b");
  2797. var toPrimitive = __webpack_require__("1bc3");
  2798. var dP = Object.defineProperty;
  2799. exports.f = __webpack_require__("8e60") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  2800. anObject(O);
  2801. P = toPrimitive(P, true);
  2802. anObject(Attributes);
  2803. if (IE8_DOM_DEFINE) try {
  2804. return dP(O, P, Attributes);
  2805. } catch (e) { /* empty */ }
  2806. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  2807. if ('value' in Attributes) O[P] = Attributes.value;
  2808. return O;
  2809. };
  2810. /***/ }),
  2811. /***/ "dbdb":
  2812. /***/ (function(module, exports, __webpack_require__) {
  2813. var core = __webpack_require__("584a");
  2814. var global = __webpack_require__("e53d");
  2815. var SHARED = '__core-js_shared__';
  2816. var store = global[SHARED] || (global[SHARED] = {});
  2817. (module.exports = function (key, value) {
  2818. return store[key] || (store[key] = value !== undefined ? value : {});
  2819. })('versions', []).push({
  2820. version: core.version,
  2821. mode: __webpack_require__("b8e3") ? 'pure' : 'global',
  2822. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  2823. });
  2824. /***/ }),
  2825. /***/ "e11e":
  2826. /***/ (function(module, exports) {
  2827. // IE 8- don't enum bug keys
  2828. module.exports = (
  2829. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  2830. ).split(',');
  2831. /***/ }),
  2832. /***/ "e265":
  2833. /***/ (function(module, exports, __webpack_require__) {
  2834. module.exports = __webpack_require__("ed33");
  2835. /***/ }),
  2836. /***/ "e4ae":
  2837. /***/ (function(module, exports, __webpack_require__) {
  2838. var isObject = __webpack_require__("f772");
  2839. module.exports = function (it) {
  2840. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  2841. return it;
  2842. };
  2843. /***/ }),
  2844. /***/ "e53d":
  2845. /***/ (function(module, exports) {
  2846. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  2847. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  2848. ? window : typeof self != 'undefined' && self.Math == Math ? self
  2849. // eslint-disable-next-line no-new-func
  2850. : Function('return this')();
  2851. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  2852. /***/ }),
  2853. /***/ "e6f3":
  2854. /***/ (function(module, exports, __webpack_require__) {
  2855. var has = __webpack_require__("07e3");
  2856. var toIObject = __webpack_require__("36c3");
  2857. var arrayIndexOf = __webpack_require__("5b4e")(false);
  2858. var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
  2859. module.exports = function (object, names) {
  2860. var O = toIObject(object);
  2861. var i = 0;
  2862. var result = [];
  2863. var key;
  2864. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  2865. // Don't enum bug & hidden keys
  2866. while (names.length > i) if (has(O, key = names[i++])) {
  2867. ~arrayIndexOf(result, key) || result.push(key);
  2868. }
  2869. return result;
  2870. };
  2871. /***/ }),
  2872. /***/ "ebd6":
  2873. /***/ (function(module, exports, __webpack_require__) {
  2874. // 7.3.20 SpeciesConstructor(O, defaultConstructor)
  2875. var anObject = __webpack_require__("cb7c");
  2876. var aFunction = __webpack_require__("d8e8");
  2877. var SPECIES = __webpack_require__("2b4c")('species');
  2878. module.exports = function (O, D) {
  2879. var C = anObject(O).constructor;
  2880. var S;
  2881. return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
  2882. };
  2883. /***/ }),
  2884. /***/ "ebfd":
  2885. /***/ (function(module, exports, __webpack_require__) {
  2886. var META = __webpack_require__("62a0")('meta');
  2887. var isObject = __webpack_require__("f772");
  2888. var has = __webpack_require__("07e3");
  2889. var setDesc = __webpack_require__("d9f6").f;
  2890. var id = 0;
  2891. var isExtensible = Object.isExtensible || function () {
  2892. return true;
  2893. };
  2894. var FREEZE = !__webpack_require__("294c")(function () {
  2895. return isExtensible(Object.preventExtensions({}));
  2896. });
  2897. var setMeta = function (it) {
  2898. setDesc(it, META, { value: {
  2899. i: 'O' + ++id, // object ID
  2900. w: {} // weak collections IDs
  2901. } });
  2902. };
  2903. var fastKey = function (it, create) {
  2904. // return primitive with prefix
  2905. if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  2906. if (!has(it, META)) {
  2907. // can't set metadata to uncaught frozen object
  2908. if (!isExtensible(it)) return 'F';
  2909. // not necessary to add metadata
  2910. if (!create) return 'E';
  2911. // add missing metadata
  2912. setMeta(it);
  2913. // return object ID
  2914. } return it[META].i;
  2915. };
  2916. var getWeak = function (it, create) {
  2917. if (!has(it, META)) {
  2918. // can't set metadata to uncaught frozen object
  2919. if (!isExtensible(it)) return true;
  2920. // not necessary to add metadata
  2921. if (!create) return false;
  2922. // add missing metadata
  2923. setMeta(it);
  2924. // return hash weak collections IDs
  2925. } return it[META].w;
  2926. };
  2927. // add metadata on freeze-family methods calling
  2928. var onFreeze = function (it) {
  2929. if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  2930. return it;
  2931. };
  2932. var meta = module.exports = {
  2933. KEY: META,
  2934. NEED: false,
  2935. fastKey: fastKey,
  2936. getWeak: getWeak,
  2937. onFreeze: onFreeze
  2938. };
  2939. /***/ }),
  2940. /***/ "ed33":
  2941. /***/ (function(module, exports, __webpack_require__) {
  2942. __webpack_require__("014b");
  2943. module.exports = __webpack_require__("584a").Object.getOwnPropertySymbols;
  2944. /***/ }),
  2945. /***/ "f6fd":
  2946. /***/ (function(module, exports) {
  2947. // document.currentScript polyfill by Adam Miller
  2948. // MIT license
  2949. (function(document){
  2950. var currentScript = "currentScript",
  2951. scripts = document.getElementsByTagName('script'); // Live NodeList collection
  2952. // If browser needs currentScript polyfill, add get currentScript() to the document object
  2953. if (!(currentScript in document)) {
  2954. Object.defineProperty(document, currentScript, {
  2955. get: function(){
  2956. // IE 6-10 supports script readyState
  2957. // IE 10+ support stack trace
  2958. try { throw new Error(); }
  2959. catch (err) {
  2960. // Find the second match for the "at" string to get file src url from stack.
  2961. // Specifically works with the format of stack traces in IE.
  2962. var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
  2963. // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
  2964. for(i in scripts){
  2965. if(scripts[i].src == res || scripts[i].readyState == "interactive"){
  2966. return scripts[i];
  2967. }
  2968. }
  2969. // If no match, return null
  2970. return null;
  2971. }
  2972. }
  2973. });
  2974. }
  2975. })(document);
  2976. /***/ }),
  2977. /***/ "f772":
  2978. /***/ (function(module, exports) {
  2979. module.exports = function (it) {
  2980. return typeof it === 'object' ? it !== null : typeof it === 'function';
  2981. };
  2982. /***/ }),
  2983. /***/ "fa5b":
  2984. /***/ (function(module, exports, __webpack_require__) {
  2985. module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
  2986. /***/ }),
  2987. /***/ "fab2":
  2988. /***/ (function(module, exports, __webpack_require__) {
  2989. var document = __webpack_require__("7726").document;
  2990. module.exports = document && document.documentElement;
  2991. /***/ }),
  2992. /***/ "fb15":
  2993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2994. "use strict";
  2995. __webpack_require__.r(__webpack_exports__);
  2996. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
  2997. // This file is imported into lib/wc client bundles.
  2998. if (typeof window !== 'undefined') {
  2999. if (true) {
  3000. __webpack_require__("f6fd")
  3001. }
  3002. var setPublicPath_i
  3003. if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
  3004. __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
  3005. }
  3006. }
  3007. // Indicate to webpack that this file can be concatenated
  3008. /* harmony default export */ var setPublicPath = (null);
  3009. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js
  3010. var get_own_property_descriptor = __webpack_require__("268f");
  3011. var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor);
  3012. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js
  3013. var get_own_property_symbols = __webpack_require__("e265");
  3014. var get_own_property_symbols_default = /*#__PURE__*/__webpack_require__.n(get_own_property_symbols);
  3015. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js
  3016. var keys = __webpack_require__("a4bb");
  3017. var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
  3018. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js
  3019. var define_property = __webpack_require__("85f2");
  3020. var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property);
  3021. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js
  3022. function _defineProperty(obj, key, value) {
  3023. if (key in obj) {
  3024. define_property_default()(obj, key, {
  3025. value: value,
  3026. enumerable: true,
  3027. configurable: true,
  3028. writable: true
  3029. });
  3030. } else {
  3031. obj[key] = value;
  3032. }
  3033. return obj;
  3034. }
  3035. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread.js
  3036. function _objectSpread(target) {
  3037. for (var i = 1; i < arguments.length; i++) {
  3038. var source = arguments[i] != null ? arguments[i] : {};
  3039. var ownKeys = keys_default()(source);
  3040. if (typeof get_own_property_symbols_default.a === 'function') {
  3041. ownKeys = ownKeys.concat(get_own_property_symbols_default()(source).filter(function (sym) {
  3042. return get_own_property_descriptor_default()(source, sym).enumerable;
  3043. }));
  3044. }
  3045. ownKeys.forEach(function (key) {
  3046. _defineProperty(target, key, source[key]);
  3047. });
  3048. }
  3049. return target;
  3050. }
  3051. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=template&id=1b71c16c&
  3052. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"alt-grid-container",class:_vm.operatorClass,style:(_vm.containerStyle)},[_c('div',{staticClass:"alt-grid-item-drag-placeholder",class:_vm.placeholderClass,style:(_vm.getCardStyleForPlaceholder(_vm.placeholder))}),_vm._l((_vm.innerLayout),function(item,index){return _c('div',{key:item._id,ref:"cards",refInFor:true,staticClass:"alt-grid-item",class:[_vm.canDragClass(item.isDraggable), _vm.gridItemClass, item.gridItemClass],style:(item._alt_style),attrs:{"dg-id":item._id}},[(_vm.getFirstSetValue(item.isShowOriginCloseBtn, _vm.isShowOriginCloseBtn, true))?_c('button',{class:[_vm.closeHandlerClass, item.closeHandlerClass],on:{"click":function($event){return _vm.closeWidget(item._id)}}},[_vm._v("关闭")]):_vm._e(),_c(item.type,{ref:item._id,refInFor:true,tag:"component",attrs:{"alt-card-props":_vm.getPropsForInject(index, item)}}),(_vm.getFirstSetValue(item.isResizable, _vm.isResizable, true))?_c('span',{staticClass:"alt-grid-item-resize-handler",class:[_vm.resizeHandlerClass, item.resizeHandlerClass]}):_vm._e()],1)}),_c('div',{staticClass:"mask"})],2)}
  3053. var staticRenderFns = []
  3054. // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=template&id=1b71c16c&
  3055. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js
  3056. var es6_regexp_match = __webpack_require__("4917");
  3057. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.search.js
  3058. var es6_regexp_search = __webpack_require__("386d");
  3059. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
  3060. var es6_array_iterator = __webpack_require__("cadf");
  3061. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
  3062. var es6_object_keys = __webpack_require__("456d");
  3063. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js
  3064. var es6_regexp_replace = __webpack_require__("a481");
  3065. // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
  3066. var web_dom_iterable = __webpack_require__("ac6a");
  3067. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
  3068. var es6_regexp_split = __webpack_require__("28a5");
  3069. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js
  3070. var es6_regexp_constructor = __webpack_require__("3b2b");
  3071. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
  3072. var es6_number_constructor = __webpack_require__("c5f6");
  3073. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.is-integer.js
  3074. var es6_number_is_integer = __webpack_require__("7cdf");
  3075. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js
  3076. var es6_regexp_to_string = __webpack_require__("6b54");
  3077. // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
  3078. var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
  3079. var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
  3080. // CONCATENATED MODULE: ./src/utils/util.js
  3081. // 深拷贝
  3082. function deepCopy() {
  3083. return JSON.parse(JSON.stringify(arguments.length <= 0 ? undefined : arguments[0]));
  3084. } // 获取变量类型
  3085. function getVariType(vari) {
  3086. return Object.prototype.toString.call(vari).slice(8, -1).toLowerCase();
  3087. } // 判断值是否为 undefined 或 null
  3088. function isNil(val) {
  3089. return val === undefined || val === null;
  3090. } // 获取vue对象
  3091. function getVue() {
  3092. var temp = external_commonjs_vue_commonjs2_vue_root_Vue_default.a;
  3093. if (temp) return temp;
  3094. if (window.Vue) return window.Vue;
  3095. return null;
  3096. } // 判断是否为整数
  3097. function isInteger(num) {
  3098. if (Number.isInteger) return Number.isInteger(num);
  3099. var s = num + '';
  3100. return !~s.indexOf('.');
  3101. } // 判断是否含有某个class
  3102. function hasClass(dom, className) {
  3103. var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
  3104. var domClassName = dom.className;
  3105. return reg.test(domClassName); // return ~domClassName.indexOf(className);
  3106. } // 从event.path中遍历查找包含某个class的元素
  3107. function findParentThoughEvtPath(evtPath, parentClass, stopClass) {
  3108. var dom = null;
  3109. for (var i = 0, l = evtPath.length; i < l; i++) {
  3110. dom = evtPath[i];
  3111. if (hasClass(dom, parentClass)) {
  3112. return dom;
  3113. }
  3114. if (hasClass(dom, stopClass)) {
  3115. return null;
  3116. }
  3117. }
  3118. return null;
  3119. }
  3120. function util_getFirstSetValue() {
  3121. var args = arguments;
  3122. var l = args.length;
  3123. for (var i = 0; i < l; i++) {
  3124. if (!isNil(args[i])) return args[i];
  3125. }
  3126. return args[l - 1];
  3127. }
  3128. function forEach(arr, callBack) {
  3129. for (var i = 0, j = arr.length; i < j; i++) {
  3130. callBack && callBack(arr[i], i);
  3131. }
  3132. }
  3133. function forEachValue(obj, fn) {
  3134. Object.keys(obj).forEach(function (key) {
  3135. return fn(obj[key], key);
  3136. });
  3137. }
  3138. function getIndexOfArrayByAttr(arr, value, attr) {
  3139. for (var i = 0; i < arr.length; i++) {
  3140. if (attr) {
  3141. if (arr[i][attr] === value) return i;
  3142. } else {
  3143. if (arr[i] === value) return i;
  3144. }
  3145. }
  3146. return -1;
  3147. } // 获取event.path的polyfill
  3148. function getEventPath(event) {
  3149. var target = event.target || null;
  3150. var pathArr = [target];
  3151. if (!target || !target.parentElement) {
  3152. return [];
  3153. }
  3154. while (target.parentElement) {
  3155. target = target.parentElement;
  3156. pathArr.unshift(target);
  3157. }
  3158. return pathArr;
  3159. } // 标准化event对象
  3160. function normalizeEvent(event) {
  3161. var evt = event;
  3162. if (!evt.path) {
  3163. evt.path = evt.composedPath && evt.composedPath() || getEventPath(event);
  3164. }
  3165. return evt;
  3166. }
  3167. function isDragIgnoreFrom(target, currentCard, ignoreFrom) {
  3168. var ignoreElementList = currentCard.querySelectorAll(ignoreFrom);
  3169. for (var i = 0, j = ignoreElementList.length; i < j; i++) {
  3170. if (ignoreElementList[i] === target) {
  3171. return true;
  3172. }
  3173. }
  3174. return false;
  3175. }
  3176. function getUniqueID(len, radix) {
  3177. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  3178. var uuid = [],
  3179. i;
  3180. radix = radix || chars.length;
  3181. if (len) {
  3182. // Compact form
  3183. for (i = 0; i < len; i++) {
  3184. uuid[i] = chars[0 | Math.random() * radix];
  3185. }
  3186. } else {
  3187. // 参考rfc4122,https://tools.ietf.org/html/rfc4122
  3188. var r;
  3189. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  3190. uuid[14] = '4';
  3191. for (i = 0; i < 36; i++) {
  3192. if (!uuid[i]) {
  3193. r = 0 | Math.random() * 16;
  3194. uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
  3195. }
  3196. }
  3197. }
  3198. return uuid.join('');
  3199. }
  3200. // CONCATENATED MODULE: ./src/utils/watch-box-size.js
  3201. function watchBoxSizeChange(el, handler) {
  3202. if (!(el instanceof HTMLElement)) {
  3203. throw new TypeError('第一个参数必须是一个html元素');
  3204. }
  3205. if (/^(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style|textarea|title)$/i.test(el.tagName)) {
  3206. throw new TypeError('不支持当前元素类型,可以尝试使用div');
  3207. }
  3208. if (typeof handler !== 'function') {
  3209. throw new TypeError('第二个参数必须是一个函数');
  3210. }
  3211. this.el = el;
  3212. this.handler = handler;
  3213. this.hadInitScrollListener = false;
  3214. this.checkHidden();
  3215. }
  3216. watchBoxSizeChange.prototype.checkHidden = function checkHidden() {
  3217. var _this = this;
  3218. requestAnimationFrame(function () {
  3219. var width = _this.el.offsetWidth;
  3220. var height = _this.el.offsetHeight;
  3221. if (width === 0 && height === 0) {
  3222. _this.checkHidden();
  3223. } else {
  3224. _this.handler();
  3225. _this.init();
  3226. _this.hadInitScrollListener = true;
  3227. }
  3228. });
  3229. };
  3230. watchBoxSizeChange.prototype.init = function init() {
  3231. // 最后一次变动的宽高
  3232. this.lastWidth = this.el.offsetWidth || 1;
  3233. this.lastHeight = this.el.offsetHeight || 1; // 最大宽高
  3234. this.maxWidth = 10000 * this.lastWidth;
  3235. this.maxHeight = 10000 * this.lastHeight; // 变动宽高
  3236. this.newWidth = 0;
  3237. this.newHeight = 0;
  3238. this.expand = document.createElement('div');
  3239. this.expand.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;z-index=-10000;overflow:hidden;visibility:hidden;';
  3240. this.shrink = this.expand.cloneNode(false);
  3241. var expandChild = document.createElement('div');
  3242. expandChild.style.cssText = 'transition:0s;animation:none;';
  3243. var shrinkChild = expandChild.cloneNode(false);
  3244. expandChild.style.width = this.maxWidth + 'px';
  3245. expandChild.style.height = this.maxHeight + 'px';
  3246. shrinkChild.style.width = '250%';
  3247. shrinkChild.style.height = '250%';
  3248. this.expand.appendChild(expandChild);
  3249. this.shrink.appendChild(shrinkChild);
  3250. this.el.appendChild(this.expand);
  3251. this.el.appendChild(this.shrink);
  3252. if (this.expand.offsetParent !== this.el) {
  3253. this.el.style.position = 'relative';
  3254. }
  3255. this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
  3256. this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
  3257. this.bindOnScroll = null;
  3258. this.addListener();
  3259. };
  3260. watchBoxSizeChange.prototype.onScroll = function onScroll() {
  3261. this.newWidth = this.el.offsetWidth || 1;
  3262. this.newHeight = this.el.offsetHeight || 1;
  3263. if (this.newWidth !== this.lastWidth || this.newHeight !== this.lastHeight) {
  3264. requestAnimationFrame(this.onResize.bind(this));
  3265. }
  3266. this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
  3267. this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
  3268. };
  3269. watchBoxSizeChange.prototype.onResize = function onResize() {
  3270. this.lastWidth = this.newWidth;
  3271. this.lastHeight = this.newHeight;
  3272. this.handler(this.lastWidth, this.lastHeight);
  3273. };
  3274. watchBoxSizeChange.prototype.addListener = function addListener() {
  3275. this.bindOnScroll = this.onScroll.bind(this);
  3276. this.expand.addEventListener('scroll', this.bindOnScroll, false);
  3277. this.shrink.addEventListener('scroll', this.bindOnScroll, false);
  3278. };
  3279. watchBoxSizeChange.prototype.removeListener = function removeListener() {
  3280. this.expand.removeEventListener('scroll', this.bindOnScroll, false);
  3281. this.shrink.removeEventListener('scroll', this.bindOnScroll, false);
  3282. };
  3283. watchBoxSizeChange.prototype.destroy = function destroy() {
  3284. if (this.hadInitScrollListener) {
  3285. this.removeListener();
  3286. this.el.removeChild(this.expand);
  3287. this.el.removeChild(this.shrink);
  3288. }
  3289. };
  3290. /* harmony default export */ var watch_box_size = (watchBoxSizeChange);
  3291. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.fill.js
  3292. var es6_array_fill = __webpack_require__("6c7b");
  3293. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/classCallCheck.js
  3294. function _classCallCheck(instance, Constructor) {
  3295. if (!(instance instanceof Constructor)) {
  3296. throw new TypeError("Cannot call a class as a function");
  3297. }
  3298. }
  3299. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
  3300. function _defineProperties(target, props) {
  3301. for (var i = 0; i < props.length; i++) {
  3302. var descriptor = props[i];
  3303. descriptor.enumerable = descriptor.enumerable || false;
  3304. descriptor.configurable = true;
  3305. if ("value" in descriptor) descriptor.writable = true;
  3306. define_property_default()(target, descriptor.key, descriptor);
  3307. }
  3308. }
  3309. function _createClass(Constructor, protoProps, staticProps) {
  3310. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3311. if (staticProps) _defineProperties(Constructor, staticProps);
  3312. return Constructor;
  3313. }
  3314. // CONCATENATED MODULE: ./src/utils/rect.js
  3315. var rect_Rect =
  3316. /*#__PURE__*/
  3317. function () {
  3318. function Rect() {
  3319. var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3320. var coors = arguments.length > 1 ? arguments[1] : undefined;
  3321. _classCallCheck(this, Rect);
  3322. this.appendUniqueId(info);
  3323. this.x = this.isNotNegativeNumber(info.x) ? info.x : 0;
  3324. this.y = this.isNotNegativeNumber(info.y) ? info.y : 0;
  3325. this.w = this.isPositiveNumber(info.w) ? info.w : 1;
  3326. this.h = this.isPositiveNumber(info.h) ? info.h : 1;
  3327. this.id = info._id;
  3328. this.rawInfo = info;
  3329. this.coors = coors;
  3330. }
  3331. _createClass(Rect, [{
  3332. key: "setPos",
  3333. value: function setPos(pos) {
  3334. var attrs = ['x', 'y', 'w', 'h'];
  3335. var attrName;
  3336. var tempValue;
  3337. for (var i = 0, j = attrs.length; i < j; i++) {
  3338. attrName = attrs[i];
  3339. tempValue = pos[attrName];
  3340. if (!isNil(tempValue)) {
  3341. this[attrName] = tempValue;
  3342. this.rawInfo[attrName] = tempValue;
  3343. }
  3344. }
  3345. }
  3346. }, {
  3347. key: "moveTo",
  3348. value: function moveTo(x, y) {
  3349. if (this.coors.maxWidth && x + this.w > this.coors.maxWidth) {
  3350. x = this.coors.maxWidth - this.w;
  3351. }
  3352. if (x < 0) x = 0;
  3353. if (y < 0) y = 0;
  3354. this.coors._moveTo(this.id, {
  3355. x: x,
  3356. y: y
  3357. });
  3358. }
  3359. }, {
  3360. key: "resizeTo",
  3361. value: function resizeTo(w, h) {
  3362. if (this.coors.maxWidth && w + this.x > this.coors.maxWidth) {
  3363. w = this.coors.maxWidth - this.x;
  3364. }
  3365. if (w < 1) w = 1;
  3366. if (h < 1) h = 1;
  3367. this.coors._resizeTo(this.id, {
  3368. w: w,
  3369. h: h
  3370. });
  3371. }
  3372. }, {
  3373. key: "moveDown",
  3374. value: function moveDown(rows) {
  3375. this.coors._moveDown(this.id, rows);
  3376. }
  3377. }, {
  3378. key: "fill",
  3379. value: function fill(value) {
  3380. this.coors.coorsFillRect(this.x, this.y, this.w, this.h, value);
  3381. } // 判断是否是正整数
  3382. }, {
  3383. key: "isPositiveNumber",
  3384. value: function isPositiveNumber(num) {
  3385. if (isNil(num)) return false;
  3386. return num > 0;
  3387. } // 判断是否为非负数 也就是 大于等于0
  3388. }, {
  3389. key: "isNotNegativeNumber",
  3390. value: function isNotNegativeNumber(num) {
  3391. if (isNil(num)) return false;
  3392. return num >= 0;
  3393. }
  3394. }, {
  3395. key: "appendUniqueId",
  3396. value: function appendUniqueId(item) {
  3397. if (!item._id) {
  3398. item._id = this.getUniqueId();
  3399. }
  3400. }
  3401. }, {
  3402. key: "getUniqueId",
  3403. value: function getUniqueId(len, radix) {
  3404. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  3405. var uuid = [],
  3406. i;
  3407. radix = radix || chars.length;
  3408. if (len) {
  3409. // Compact form
  3410. for (i = 0; i < len; i++) {
  3411. uuid[i] = chars[0 | Math.random() * radix];
  3412. }
  3413. } else {
  3414. // 参考rfc4122,https://tools.ietf.org/html/rfc4122
  3415. var r;
  3416. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  3417. uuid[14] = '4';
  3418. for (i = 0; i < 36; i++) {
  3419. if (!uuid[i]) {
  3420. r = 0 | Math.random() * 16;
  3421. uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
  3422. }
  3423. }
  3424. }
  3425. return uuid.join('');
  3426. }
  3427. }]);
  3428. return Rect;
  3429. }();
  3430. /* harmony default export */ var utils_rect = (rect_Rect);
  3431. // CONCATENATED MODULE: ./src/utils/coordinate.js
  3432. var coordinate_Coordinate =
  3433. /*#__PURE__*/
  3434. function () {
  3435. function Coordinate() {
  3436. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3437. _classCallCheck(this, Coordinate);
  3438. this.coors = [];
  3439. this.coorItemsMap = {};
  3440. this.maxWidth = options.maxWidth;
  3441. }
  3442. _createClass(Coordinate, [{
  3443. key: "add",
  3444. value: function add(info) {
  3445. /**
  3446. * 1. 判断位置参数合法性,不合法则自动分配
  3447. * 2. 添加到坐标系
  3448. * 3. 返回 id
  3449. */
  3450. var rectItem = new utils_rect(info, this);
  3451. this.distributeRectPosition(rectItem);
  3452. this.coorsFillRect(rectItem.x, rectItem.y, rectItem.w, rectItem.h, rectItem);
  3453. this.coorItemsMap[rectItem.id] = rectItem;
  3454. return rectItem;
  3455. }
  3456. }, {
  3457. key: "coorsFillRect",
  3458. value: function coorsFillRect(x, y, w, h, value) {
  3459. var arr = this.coors;
  3460. var row;
  3461. for (var i = y; i < y + h; i++) {
  3462. row = arr[i];
  3463. if (isNil(row)) {
  3464. arr[i] = [];
  3465. }
  3466. for (var j = x; j < x + w; j++) {
  3467. arr[i][j] = value;
  3468. }
  3469. }
  3470. }
  3471. }, {
  3472. key: "coorsGetRectItems",
  3473. value: function coorsGetRectItems(x, y, w, h) {
  3474. var itemsList = [];
  3475. var row, cell;
  3476. for (var i = y; i < y + h; i++) {
  3477. row = this.coors[i] || [];
  3478. for (var j = x; j < x + w; j++) {
  3479. cell = row[j];
  3480. if (!isNil(cell)) {
  3481. itemsList.push(cell);
  3482. }
  3483. }
  3484. }
  3485. return itemsList;
  3486. }
  3487. }, {
  3488. key: "distributeRectPosition",
  3489. value: function distributeRectPosition(rectInstance) {
  3490. if (!this.checkRectPositionIsLegal(rectInstance, this.coors)) {
  3491. var legalPos = this.getLegalPosition(rectInstance, this.coorItemsMap);
  3492. rectInstance.setPos(legalPos);
  3493. }
  3494. }
  3495. }, {
  3496. key: "getLegalPosition",
  3497. value: function getLegalPosition(rectInstance, itemsMap) {
  3498. var x = rectInstance.x;
  3499. var y = rectInstance.y;
  3500. var w = rectInstance.w;
  3501. var h = rectInstance.h;
  3502. var colsHeight = [];
  3503. var tempItem = null;
  3504. var tempY = 0;
  3505. forEach(Object.keys(itemsMap), function (key) {
  3506. tempItem = itemsMap[key];
  3507. tempY = tempItem.y + tempItem.h;
  3508. for (var m = tempItem.x; m < tempItem.x + tempItem.w; m++) {
  3509. if (tempY > (colsHeight[m] || 0)) {
  3510. colsHeight[m] = tempY;
  3511. }
  3512. }
  3513. });
  3514. var max = this.maxWidth || colsHeight.length + w;
  3515. for (var i = 0; i < max; i++) {
  3516. if (isNil(colsHeight[i])) {
  3517. colsHeight[i] = 0;
  3518. }
  3519. }
  3520. var index = this.getMinPeek(colsHeight, w);
  3521. x = ~index ? index : 0;
  3522. y = colsHeight[x] || 0;
  3523. return {
  3524. x: x,
  3525. y: y,
  3526. w: w,
  3527. h: h
  3528. };
  3529. }
  3530. }, {
  3531. key: "getMinPeek",
  3532. value: function getMinPeek(arr, w) {
  3533. if (w === 1) {
  3534. var minVal = Math.min.apply(null, arr);
  3535. return arr.indexOf(minVal);
  3536. }
  3537. var index = -1;
  3538. var value = Infinity;
  3539. for (var i = 0; i < arr.length - w + 1; i++) {
  3540. var flag = true;
  3541. var item = arr[i];
  3542. for (var j = i + 1; j < i + w; j++) {
  3543. if (item < arr[j]) {
  3544. flag = false;
  3545. break;
  3546. }
  3547. }
  3548. if (flag && item < value) {
  3549. value = item;
  3550. index = i;
  3551. }
  3552. }
  3553. return index;
  3554. } // 检查位置是否合法
  3555. }, {
  3556. key: "checkRectPositionIsLegal",
  3557. value: function checkRectPositionIsLegal(item, coors) {
  3558. var x = item.x;
  3559. var y = item.y;
  3560. var w = item.w;
  3561. var h = item.h;
  3562. for (var i = y; i < y + h; i++) {
  3563. if (isNil(coors[i])) continue;
  3564. for (var j = x; j < x + w; j++) {
  3565. if (!isNil(coors[i][j])) {
  3566. return false;
  3567. }
  3568. }
  3569. }
  3570. return true;
  3571. }
  3572. }, {
  3573. key: "_moveTo",
  3574. value: function _moveTo(id) {
  3575. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3576. /**
  3577. * 1. 找到对应的id
  3578. * 2. 判断移动的
  3579. */
  3580. if (isNil(pos.x) || isNil(pos.y)) return;
  3581. var rectItem = this.coorItemsMap[id];
  3582. rectItem.fill(null);
  3583. var targetRect = {
  3584. x: pos.x,
  3585. y: pos.y,
  3586. w: rectItem.w,
  3587. h: rectItem.h
  3588. };
  3589. var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
  3590. var targetBottomLine = {
  3591. x: targetRect.x,
  3592. y: targetRect.y + targetRect.h,
  3593. w: targetRect.w
  3594. };
  3595. forEach(targetAreaRectItems, function (item) {
  3596. item.moveDown(targetBottomLine.y - item.y);
  3597. });
  3598. rectItem.setPos(targetRect);
  3599. this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
  3600. this._moveUpAll();
  3601. }
  3602. }, {
  3603. key: "_resizeTo",
  3604. value: function _resizeTo(id) {
  3605. var rect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3606. if (isNil(rect.w) || isNil(rect.h)) return;
  3607. var rectItem = this.coorItemsMap[id];
  3608. rectItem.fill(null);
  3609. var targetRect = {
  3610. x: rectItem.x,
  3611. y: rectItem.y,
  3612. w: rect.w,
  3613. h: rect.h
  3614. };
  3615. var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
  3616. var targetBottomLine = {
  3617. x: targetRect.x,
  3618. y: targetRect.y + targetRect.h,
  3619. w: targetRect.w
  3620. };
  3621. forEach(targetAreaRectItems, function (item) {
  3622. item.moveDown(targetBottomLine.y - item.y);
  3623. });
  3624. rectItem.setPos(targetRect);
  3625. rectItem.fill(rectItem); // this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
  3626. this._moveUpAll();
  3627. }
  3628. }, {
  3629. key: "_moveDown",
  3630. value: function _moveDown(id, rows) {
  3631. var rectItem = this.coorItemsMap[id];
  3632. rectItem.fill(null);
  3633. var belowItems = this.coorsGetFirstItemForColsInRect({
  3634. x: rectItem.x,
  3635. y: rectItem.y + rectItem.h,
  3636. w: rectItem.w,
  3637. h: rectItem.h + rows
  3638. });
  3639. var targetBottomLine = {
  3640. x: rectItem.x,
  3641. y: rectItem.y + rectItem.h + rows,
  3642. w: rectItem.w
  3643. };
  3644. forEach(belowItems, function (item) {
  3645. item.moveDown(targetBottomLine.y - item.y);
  3646. });
  3647. rectItem.setPos({
  3648. y: rectItem.y + rows
  3649. });
  3650. rectItem.fill(rectItem);
  3651. }
  3652. }, {
  3653. key: "coorsGetFirstItemForColsInRect",
  3654. value: function coorsGetFirstItemForColsInRect(rect) {
  3655. var x = rect.x,
  3656. y = rect.y,
  3657. w = rect.w,
  3658. h = rect.h;
  3659. var itemsList = [];
  3660. var mapList = [];
  3661. var row, cell;
  3662. for (var i = y; i < y + h; i++) {
  3663. row = this.coors[i] || [];
  3664. for (var j = x; j < x + w; j++) {
  3665. cell = row[j];
  3666. if (!isNil(cell) && !mapList[j] && this.checkLineIsLegal(cell, mapList)) {
  3667. mapList[j] = cell;
  3668. if (!~itemsList.indexOf(cell)) {
  3669. itemsList.push(cell);
  3670. }
  3671. }
  3672. }
  3673. if (itemsList.length >= w) break;
  3674. }
  3675. return itemsList;
  3676. }
  3677. }, {
  3678. key: "checkLineIsLegal",
  3679. value: function checkLineIsLegal(cell, line) {
  3680. for (var i = cell.x; i < cell.x + cell.w; i++) {
  3681. if (!isNil(line[i]) && cell !== line[i]) {
  3682. return false;
  3683. }
  3684. }
  3685. return true;
  3686. }
  3687. }, {
  3688. key: "getEmptyRowsBeforeLine",
  3689. value: function getEmptyRowsBeforeLine(x, y, w) {
  3690. if (y === 0) return 0;
  3691. var count = 0;
  3692. var row, cell;
  3693. for (var rowNum = y - 1; rowNum >= 0; rowNum--) {
  3694. row = this.coors[rowNum] || [];
  3695. for (var colNum = x; colNum < x + w; colNum++) {
  3696. cell = row[colNum];
  3697. if (!isNil(cell)) {
  3698. return count;
  3699. }
  3700. }
  3701. count++;
  3702. }
  3703. return count;
  3704. }
  3705. }, {
  3706. key: "_moveUpAll",
  3707. value: function _moveUpAll() {
  3708. var me = this;
  3709. forEach(this.coors, function (row) {
  3710. forEach(row, function (cell) {
  3711. if (!cell || cell.y === 0) return;
  3712. var canUpRows = me.getEmptyRowsBeforeLine(cell.x, cell.y, cell.w);
  3713. cell.fill(null);
  3714. cell.setPos({
  3715. y: cell.y - canUpRows
  3716. });
  3717. cell.fill(cell);
  3718. });
  3719. });
  3720. }
  3721. }, {
  3722. key: "clear",
  3723. value: function clear() {
  3724. this.coors = [];
  3725. this.coorItemsMap = {};
  3726. }
  3727. }, {
  3728. key: "batchAddItem",
  3729. value: function batchAddItem(itemList) {
  3730. var me = this;
  3731. forEach(itemList, function (item) {
  3732. me.add(item);
  3733. });
  3734. }
  3735. }, {
  3736. key: "getAllItems",
  3737. value: function getAllItems() {
  3738. var list = [];
  3739. var itemMap = this.coorItemsMap;
  3740. forEach(Object.keys(itemMap), function (key) {
  3741. list.push(itemMap[key].rawInfo);
  3742. });
  3743. return list;
  3744. }
  3745. }, {
  3746. key: "remove",
  3747. value: function remove(id) {
  3748. var rectItem = this.coorItemsMap[id];
  3749. if (rectItem) {
  3750. rectItem.fill(null);
  3751. delete this.coorItemsMap[id];
  3752. this._moveUpAll();
  3753. }
  3754. return rectItem;
  3755. }
  3756. }, {
  3757. key: "replace",
  3758. value: function replace(id, info) {
  3759. var rectItem = this.coorItemsMap[id];
  3760. if (rectItem && rectItem.x === info.x && rectItem.y === info.y && rectItem.w === info.w && rectItem.h === info.h) {
  3761. rectItem.fill(null);
  3762. delete this.coorItemsMap[id];
  3763. var newRectItem = new utils_rect(info, this);
  3764. newRectItem.fill(newRectItem);
  3765. this.coorItemsMap[newRectItem.id] = newRectItem;
  3766. return newRectItem;
  3767. }
  3768. return null;
  3769. }
  3770. }, {
  3771. key: "getItemById",
  3772. value: function getItemById(id) {
  3773. return this.coorItemsMap[id];
  3774. }
  3775. }]);
  3776. return Coordinate;
  3777. }();
  3778. /* harmony default export */ var coordinate = (coordinate_Coordinate);
  3779. // CONCATENATED MODULE: ./src/utils/coordinate.test.js
  3780. function autoMove(that, layout) {
  3781. // that.coors.moveItemTo(layout[6], {
  3782. // x: layout[6].x,
  3783. // y: layout[6].y - 1
  3784. // })
  3785. // for(let i = 4; i > 0; i--){
  3786. // that.coors.moveItemTo(layout[3], {
  3787. // x: layout[3].x - 1,
  3788. // y: layout[3].y
  3789. // })
  3790. // }
  3791. // for(let i = 4; i > 0; i--){
  3792. // that.coors.moveItemTo(layout[3], {
  3793. // x: layout[3].x + 1,
  3794. // y: layout[3].y
  3795. // })
  3796. // }
  3797. // that.coors.moveItemTo(layout[0], {
  3798. // x: layout[0].x + 1,
  3799. // y: layout[0].y
  3800. // })
  3801. // that.coors.moveItemTo(layout[0], {
  3802. // x: layout[0].x + 1,
  3803. // y: layout[0].y
  3804. // })
  3805. // that.coors.moveItemTo(layout[2], {
  3806. // x: layout[2].x - 1,
  3807. // y: layout[2].y
  3808. // })
  3809. // for(let i = 4; i > 0; i--){
  3810. // that.coors.moveItemTo(layout[3], {
  3811. // x: layout[3].x - 1,
  3812. // y: layout[3].y
  3813. // })
  3814. // }
  3815. // that.coors.moveItemTo(layout[3], {
  3816. // x: layout[3].x,
  3817. // y: layout[3].y + 1
  3818. // })
  3819. that.coors.moveItemTo(layout[6], {
  3820. x: 2,
  3821. y: 1
  3822. });
  3823. }
  3824. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=template&id=67aab659&
  3825. var Widget_rendervue_type_template_id_67aab659_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
  3826. var Widget_rendervue_type_template_id_67aab659_staticRenderFns = []
  3827. // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=template&id=67aab659&
  3828. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=script&lang=js&
  3829. //
  3830. //
  3831. //
  3832. //
  3833. /* harmony default export */ var Widget_rendervue_type_script_lang_js_ = ({
  3834. props: ['altCardProps']
  3835. });
  3836. // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=script&lang=js&
  3837. /* harmony default export */ var components_Widget_rendervue_type_script_lang_js_ = (Widget_rendervue_type_script_lang_js_);
  3838. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  3839. /* globals __VUE_SSR_CONTEXT__ */
  3840. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  3841. // This module is a runtime utility for cleaner component module output and will
  3842. // be included in the final webpack user bundle.
  3843. function normalizeComponent (
  3844. scriptExports,
  3845. render,
  3846. staticRenderFns,
  3847. functionalTemplate,
  3848. injectStyles,
  3849. scopeId,
  3850. moduleIdentifier, /* server only */
  3851. shadowMode /* vue-cli only */
  3852. ) {
  3853. // Vue.extend constructor export interop
  3854. var options = typeof scriptExports === 'function'
  3855. ? scriptExports.options
  3856. : scriptExports
  3857. // render functions
  3858. if (render) {
  3859. options.render = render
  3860. options.staticRenderFns = staticRenderFns
  3861. options._compiled = true
  3862. }
  3863. // functional template
  3864. if (functionalTemplate) {
  3865. options.functional = true
  3866. }
  3867. // scopedId
  3868. if (scopeId) {
  3869. options._scopeId = 'data-v-' + scopeId
  3870. }
  3871. var hook
  3872. if (moduleIdentifier) { // server build
  3873. hook = function (context) {
  3874. // 2.3 injection
  3875. context =
  3876. context || // cached call
  3877. (this.$vnode && this.$vnode.ssrContext) || // stateful
  3878. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  3879. // 2.2 with runInNewContext: true
  3880. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  3881. context = __VUE_SSR_CONTEXT__
  3882. }
  3883. // inject component styles
  3884. if (injectStyles) {
  3885. injectStyles.call(this, context)
  3886. }
  3887. // register component module identifier for async chunk inferrence
  3888. if (context && context._registeredComponents) {
  3889. context._registeredComponents.add(moduleIdentifier)
  3890. }
  3891. }
  3892. // used by ssr in case component is cached and beforeCreate
  3893. // never gets called
  3894. options._ssrRegister = hook
  3895. } else if (injectStyles) {
  3896. hook = shadowMode
  3897. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  3898. : injectStyles
  3899. }
  3900. if (hook) {
  3901. if (options.functional) {
  3902. // for template-only hot-reload because in that case the render fn doesn't
  3903. // go through the normalizer
  3904. options._injectStyles = hook
  3905. // register for functioal component in vue file
  3906. var originalRender = options.render
  3907. options.render = function renderWithStyleInjection (h, context) {
  3908. hook.call(context)
  3909. return originalRender(h, context)
  3910. }
  3911. } else {
  3912. // inject component registration as beforeCreate hook
  3913. var existing = options.beforeCreate
  3914. options.beforeCreate = existing
  3915. ? [].concat(existing, hook)
  3916. : [hook]
  3917. }
  3918. }
  3919. return {
  3920. exports: scriptExports,
  3921. options: options
  3922. }
  3923. }
  3924. // CONCATENATED MODULE: ./src/components/Widget.render.vue
  3925. /* normalize component */
  3926. var component = normalizeComponent(
  3927. components_Widget_rendervue_type_script_lang_js_,
  3928. Widget_rendervue_type_template_id_67aab659_render,
  3929. Widget_rendervue_type_template_id_67aab659_staticRenderFns,
  3930. false,
  3931. null,
  3932. null,
  3933. null
  3934. )
  3935. /* harmony default export */ var Widget_render = (component.exports);
  3936. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.template.vue?vue&type=script&lang=js&
  3937. /* harmony default export */ var Widget_templatevue_type_script_lang_js_ = ({
  3938. props: ['altCardProps'],
  3939. template: '<div></div>'
  3940. });
  3941. // CONCATENATED MODULE: ./src/components/Widget.template.vue?vue&type=script&lang=js&
  3942. /* harmony default export */ var components_Widget_templatevue_type_script_lang_js_ = (Widget_templatevue_type_script_lang_js_);
  3943. // CONCATENATED MODULE: ./src/components/Widget.template.vue
  3944. var Widget_template_render, Widget_template_staticRenderFns
  3945. /* normalize component */
  3946. var Widget_template_component = normalizeComponent(
  3947. components_Widget_templatevue_type_script_lang_js_,
  3948. Widget_template_render,
  3949. Widget_template_staticRenderFns,
  3950. false,
  3951. null,
  3952. null,
  3953. null
  3954. )
  3955. /* harmony default export */ var Widget_template = (Widget_template_component.exports);
  3956. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
  3957. /* harmony default export */ var Widget_vuecomponentvue_type_script_lang_js_ = ({
  3958. props: ['altCardProps']
  3959. });
  3960. // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
  3961. /* harmony default export */ var components_Widget_vuecomponentvue_type_script_lang_js_ = (Widget_vuecomponentvue_type_script_lang_js_);
  3962. // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue
  3963. var Widget_vuecomponent_render, Widget_vuecomponent_staticRenderFns
  3964. /* normalize component */
  3965. var Widget_vuecomponent_component = normalizeComponent(
  3966. components_Widget_vuecomponentvue_type_script_lang_js_,
  3967. Widget_vuecomponent_render,
  3968. Widget_vuecomponent_staticRenderFns,
  3969. false,
  3970. null,
  3971. null,
  3972. null
  3973. )
  3974. /* harmony default export */ var Widget_vuecomponent = (Widget_vuecomponent_component.exports);
  3975. // CONCATENATED MODULE: ./src/components/props.js
  3976. var props_props = {
  3977. layout: {
  3978. type: Array,
  3979. default: function _default() {
  3980. return [];
  3981. }
  3982. },
  3983. isDraggable: {
  3984. // 是否可以拖拽
  3985. type: Boolean,
  3986. default: true
  3987. },
  3988. isResizable: {
  3989. // 是否可以调整大小
  3990. type: Boolean,
  3991. default: true
  3992. },
  3993. rowHeight: {
  3994. // 每行高度
  3995. type: Number,
  3996. default: 150,
  3997. validator: function validator(value) {
  3998. return !isNaN(value) && value > 0;
  3999. }
  4000. },
  4001. maxRows: {
  4002. // 最大
  4003. type: Number,
  4004. default: Infinity
  4005. },
  4006. margin: {
  4007. type: Array,
  4008. default: function _default() {
  4009. return [10, 10];
  4010. }
  4011. },
  4012. // 元素的右边距和下边距
  4013. colNum: {
  4014. // 列数
  4015. type: Number,
  4016. default: 12
  4017. },
  4018. backgroundColor: {
  4019. // 背景颜色
  4020. type: String,
  4021. default: 'rgba(200,200,200,1)'
  4022. },
  4023. gridItemClass: {
  4024. // 每一个卡片的class
  4025. type: String,
  4026. default: ''
  4027. },
  4028. closeHandlerClass: {
  4029. // 关闭按钮的class
  4030. type: String,
  4031. default: ''
  4032. },
  4033. resizeHandlerClass: {
  4034. // 设置大小按钮的class
  4035. type: String,
  4036. default: 'alt-g-i-r-h-default-style'
  4037. },
  4038. placeholderClass: {
  4039. // 拖拽时 placeholder 的class
  4040. type: String,
  4041. default: ''
  4042. },
  4043. isShowOriginCloseBtn: {
  4044. type: Boolean,
  4045. default: true
  4046. },
  4047. width: {
  4048. type: [Number, Boolean],
  4049. default: false
  4050. }
  4051. };
  4052. /* harmony default export */ var components_props = (props_props);
  4053. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=script&lang=js&
  4054. //
  4055. //
  4056. //
  4057. //
  4058. //
  4059. //
  4060. //
  4061. //
  4062. //
  4063. //
  4064. //
  4065. //
  4066. //
  4067. //
  4068. //
  4069. //
  4070. //
  4071. //
  4072. //
  4073. //
  4074. //
  4075. //
  4076. //
  4077. //
  4078. //
  4079. //
  4080. //
  4081. //
  4082. //
  4083. //
  4084. //
  4085. //
  4086. // import elementResizeDetectorMaker from 'element-resize-detector'
  4087. var Vue = getVue();
  4088. /* harmony default export */ var gridvue_type_script_lang_js_ = ({
  4089. name: 'alt-grid-layout',
  4090. addWidgetType: function addWidgetType() {
  4091. var args0 = arguments[0];
  4092. var type = getVariType(args0);
  4093. if (type === 'string') {
  4094. this._addWidgetType.apply(this, arguments);
  4095. } else if (type === 'object') {
  4096. for (var key in args0) {
  4097. args0.hasOwnProperty(key) && this._addWidgetType(key, args0[key]);
  4098. }
  4099. }
  4100. },
  4101. // 添加组件类型处理函数
  4102. _addWidgetType: function _addWidgetType(type, widget) {
  4103. var parentWidget = widget.template ? Widget_template : Widget_render;
  4104. if (widget.super == Vue) {
  4105. this.components[type] = widget.extend(Widget_vuecomponent);
  4106. return;
  4107. }
  4108. this.components[type] = _objectSpread({}, widget, {
  4109. extends: parentWidget
  4110. });
  4111. },
  4112. props: components_props,
  4113. data: function data() {
  4114. return {
  4115. innerLayout: [],
  4116. // 布局源数据
  4117. defVal: {
  4118. minH: 1,
  4119. // 默认每个卡片的最小高度
  4120. minW: 1,
  4121. // 默认每个卡片的最小宽度
  4122. maxH: Infinity,
  4123. // 默认每个卡片的最大高度
  4124. maxW: Infinity,
  4125. // 默认每个卡片的最大宽度
  4126. isDraggable: true,
  4127. // 默认每个卡片是否支持拖拽
  4128. isResizable: true,
  4129. // 默认每个卡片是否支持设置大小
  4130. isShowOriginCloseBtn: true,
  4131. // 是否显示默认的关闭按钮
  4132. dragIgnoreFrom: 'a, input, button, textarea'
  4133. },
  4134. containerHeight: 0,
  4135. // 容器高度
  4136. cols: [],
  4137. cacheComputed: {},
  4138. placeholder: null,
  4139. // 拖拽的placeholder
  4140. preOperator: 0,
  4141. // 防止点击事件是触发拖动样式,先赋值给preOperator,如果用户继续执行move,则将preOperator赋值给operator
  4142. operator: 0,
  4143. // 当前操作状态,0 - 无操作,1 - 拖拽, 2 - 缩放
  4144. operatedItem: null,
  4145. // 当前被操作的元素的状态
  4146. containerWidth: 0,
  4147. boxWatchHandler: null,
  4148. coors: null,
  4149. timer: null,
  4150. animation: null,
  4151. animationHandler: null,
  4152. eventHandler: {
  4153. mousedown: null,
  4154. mousemove: null,
  4155. mouseup: null
  4156. }
  4157. };
  4158. },
  4159. mounted: function mounted() {
  4160. var _this = this;
  4161. this.initCols();
  4162. if (this.width === false) {
  4163. this.boxWatchHandler = new watch_box_size(this.$el, function () {
  4164. _this.initCols();
  4165. });
  4166. } // 绑定拖拽事件
  4167. this.bindEvents();
  4168. this.setLayout(this.layout);
  4169. },
  4170. destroyed: function destroyed() {
  4171. this.boxWatchHandler.destroy(); // this.erd.uninstall(this.$el);
  4172. this.unbindEvents();
  4173. clearTimeout(this.timer);
  4174. },
  4175. watch: {
  4176. // layout(val){
  4177. // this.setLayout(val);
  4178. // },
  4179. rowHeight: function rowHeight() {
  4180. this.reRenderStyle({
  4181. triggerEventEnd: true,
  4182. onlyReRender: true
  4183. });
  4184. },
  4185. colNum: function colNum(val) {
  4186. // console.log('change col number');
  4187. if (this.coors) {
  4188. this.coors.setMaxWidth = parseInt(val);
  4189. }
  4190. this.initCols();
  4191. },
  4192. cols: function cols() {
  4193. // console.log('cols change');
  4194. this.cacheComputed = {};
  4195. if (this.operator) return;
  4196. this.reRenderStyle({
  4197. triggerEventEnd: true,
  4198. onlyReRender: true
  4199. });
  4200. },
  4201. margin: function margin() {
  4202. this.cacheComputed = {};
  4203. this.reRenderStyle();
  4204. },
  4205. backgroundColor: function backgroundColor() {
  4206. // this.reRenderStyle();
  4207. this.forceReRenderStyle();
  4208. },
  4209. width: function width() {
  4210. this.initCols();
  4211. }
  4212. },
  4213. computed: {
  4214. containerStyle: function containerStyle() {
  4215. return {
  4216. height: this.containerHeight + 'px'
  4217. };
  4218. },
  4219. operatorClass: function operatorClass() {
  4220. if (!this.operator) return '';
  4221. if (this.operator === 1) {
  4222. return 'alt-grid-container-operating alt-move';
  4223. } else if (this.operator === 2) {
  4224. return 'alt-grid-container-operating alt-resize';
  4225. }
  4226. return '';
  4227. }
  4228. },
  4229. methods: {
  4230. resetResize: function resetResize() {
  4231. var _this2 = this;
  4232. this.boxWatchHandler.destroy();
  4233. this.boxWatchHandler = new watch_box_size(this.$el, function () {
  4234. _this2.initCols();
  4235. });
  4236. },
  4237. bindEvents: function bindEvents() {
  4238. this.eventHandler.mousedown = this.mousedown.bind(this);
  4239. this.eventHandler.mousemove = this.mousemove.bind(this);
  4240. this.eventHandler.mouseup = this.mouseup.bind(this);
  4241. this.$el.addEventListener('mousedown', this.eventHandler.mousedown);
  4242. document.addEventListener('mousemove', this.eventHandler.mousemove);
  4243. document.addEventListener('mouseup', this.eventHandler.mouseup);
  4244. },
  4245. unbindEvents: function unbindEvents() {
  4246. this.$el.removeEventListener('mousedown', this.eventHandler.mousedown);
  4247. document.removeEventListener('mousemove', this.eventHandler.mousemove);
  4248. document.removeEventListener('mouseup', this.eventHandler.mouseup);
  4249. },
  4250. canDragClass: function canDragClass(isDraggable) {
  4251. return util_getFirstSetValue(isDraggable, this.isDraggable, true) ? 'can-drag' : '';
  4252. },
  4253. forceReRenderStyle: function forceReRenderStyle() {
  4254. var _this3 = this;
  4255. if (this.timer) clearTimeout(this.timer);
  4256. this.timer = setTimeout(function () {
  4257. _this3.innerLayout.forEach(function (item) {
  4258. var style = _this3.getCardStyle(item);
  4259. _this3.$set(item, '_alt_style', style); // item.style = style;
  4260. });
  4261. }, 10);
  4262. },
  4263. reRenderStyle: function reRenderStyle() {
  4264. var _this4 = this;
  4265. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4266. var ignoreId = options.ignoreId;
  4267. var triggerEventEnd = options.triggerEventEnd;
  4268. var onlyReRender = options.onlyReRender;
  4269. if (this.timer) clearTimeout(this.timer);
  4270. this.timer = setTimeout(function () {
  4271. _this4.containerHeight = 0;
  4272. _this4.innerLayout.forEach(function (item, index) {
  4273. if (item._id === ignoreId) return;
  4274. var card = _this4.$refs.cards[index];
  4275. var oldStyle = {
  4276. style: card.style,
  4277. width: card.style.width,
  4278. height: card.style.height,
  4279. transform: card.style.transform
  4280. };
  4281. if (oldStyle.transform) {
  4282. oldStyle.transform = oldStyle.transform.replace(/\s/g, '');
  4283. }
  4284. var styleRaw = _this4.getCardStyle(item, true);
  4285. _this4.$set(item, '_alt_style', styleRaw.style); // item.style = style;
  4286. var status = _this4.getCardRectChangeStatus(oldStyle, styleRaw, ['width', 'height', 'transform'], {
  4287. triggerEventEnd: triggerEventEnd
  4288. });
  4289. if (status === 'none') return;
  4290. _this4.dispatchEvent(item._id, status, {
  4291. w: item.w,
  4292. h: item.h,
  4293. x: item.x,
  4294. y: item.y,
  4295. layout: _this4.innerLayout,
  4296. onlyReRender: onlyReRender
  4297. }); // console.log('create Style:', styleRaw, oldStyle, index);
  4298. });
  4299. }, 10);
  4300. },
  4301. getCardRectChangeStatus: function getCardRectChangeStatus(arg1, arg2, range) {
  4302. var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  4303. var triggerEventEnd = options.triggerEventEnd;
  4304. var keys = range || Object.keys(arg1);
  4305. for (var i = 0, l = keys.length; i < l; i++) {
  4306. var key = keys[i];
  4307. if (arg1[key] !== arg2[key]) {
  4308. if (key === 'width' || key === 'height') {
  4309. if (triggerEventEnd) {
  4310. return 'resized';
  4311. }
  4312. return 'resize';
  4313. }
  4314. if (key === 'transform') {
  4315. if (triggerEventEnd) {
  4316. return 'moved';
  4317. }
  4318. return 'move';
  4319. }
  4320. }
  4321. }
  4322. return 'none';
  4323. },
  4324. dispatchEvent: function dispatchEvent(dragId, type, pos) {
  4325. var _this5 = this;
  4326. this.$nextTick(function () {
  4327. _this5.$nextTick(function () {
  4328. _this5.$refs[dragId] && _this5.$refs[dragId][0].$emit(type, pos);
  4329. });
  4330. });
  4331. },
  4332. getFirstSetValue: function getFirstSetValue() {
  4333. return util_getFirstSetValue.apply(void 0, arguments);
  4334. },
  4335. getPropsForInject: function getPropsForInject(index, item) {
  4336. return {
  4337. id: item._id,
  4338. card: item,
  4339. layout: this.innerLayout,
  4340. close: this.closeWidget.bind(this, item._id)
  4341. };
  4342. },
  4343. // 初始化每个列宽
  4344. initCols: function initCols() {
  4345. // // // console.log('init cols');
  4346. var containerWidth = 0;
  4347. if (this.width === false) {
  4348. containerWidth = this.$el.clientWidth;
  4349. } else {
  4350. containerWidth = this.width > 0 ? this.width : 0;
  4351. } // let containerWidth = this.$el.clientWidth;
  4352. if (this.colNum === this.cols.length && this.containerWidth && this.containerWidth === containerWidth) {
  4353. return;
  4354. }
  4355. this.containerWidth = containerWidth;
  4356. var colNum = this.colNum;
  4357. var cols = []; // let containerWidth = this.$el.clientWidth;
  4358. var remainder = containerWidth % colNum; // 余数
  4359. var quotient = Math.floor(containerWidth / colNum); // 商数
  4360. for (var i = 0; i < colNum; i++) {
  4361. if (remainder) {
  4362. cols[i] = quotient + 1;
  4363. remainder--;
  4364. } else {
  4365. cols[i] = quotient;
  4366. }
  4367. }
  4368. this.cols = cols;
  4369. },
  4370. // 设置布局layout数组
  4371. setLayout: function setLayout() {
  4372. var _this6 = this;
  4373. var layout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  4374. // this.layout = deepCopy(layout);
  4375. // this.layout = layout;
  4376. // // console.log(deepCopy)
  4377. if (!this.coors) {
  4378. this.coors = new coordinate({
  4379. maxWidth: this.colNum
  4380. });
  4381. }
  4382. this.coors.clear();
  4383. this.coors.batchAddItem(layout);
  4384. var layoutOverCalc = this.coors.getAllItems();
  4385. layoutOverCalc.forEach(function (item) {
  4386. var style = _this6.getCardStyle(item);
  4387. _this6.$set(item, '_alt_style', style); // item.style = style;
  4388. });
  4389. this.innerLayout = layoutOverCalc;
  4390. if (/_env=altdev/.test(window.location.search)) {
  4391. autoMove(this, this.innerLayout);
  4392. }
  4393. },
  4394. // 设置总容器高度
  4395. setContainerHeight: function setContainerHeight(y, h) {
  4396. var containerHeight = this.containerHeight;
  4397. var height = y + h;
  4398. if (height > containerHeight) {
  4399. this.containerHeight = height;
  4400. }
  4401. },
  4402. // 获取卡片大小和位移
  4403. getCardStyle: function getCardStyle(item, raw) {
  4404. if (!item) return {};
  4405. var x = this.computeColsWidth(0, item.x) + 'px';
  4406. var w = this.getCardWidth(item.x, item.x + item.w) + 'px';
  4407. var y = item.y * this.rowHeight;
  4408. var yPx = y + 'px';
  4409. var h = item.h * this.rowHeight - this.margin[1];
  4410. var hPx = h + 'px';
  4411. this.setContainerHeight(y, h);
  4412. var transform = "translate3d(".concat(x, ",").concat(yPx, ",0px)");
  4413. var style = "transform:".concat(transform, ";width:").concat(w, ";height:").concat(hPx, ";background-color:").concat(this.backgroundColor, ";");
  4414. if (raw) {
  4415. return {
  4416. style: style,
  4417. x: x,
  4418. y: y,
  4419. width: w,
  4420. height: h,
  4421. transform: transform
  4422. };
  4423. }
  4424. return style; // return {
  4425. // transform: `translate(${x}px,${y}px)`,
  4426. // width: w + 'px',
  4427. // height: h + 'px'
  4428. // }
  4429. },
  4430. getCardStyleForRealTime: function getCardStyleForRealTime(item) {
  4431. if (!item) return;
  4432. var w = item.w;
  4433. var x = item.x;
  4434. if (x < 0) {
  4435. x = 0;
  4436. } else if (x + w > this.containerWidth) {
  4437. x = this.containerWidth - w;
  4438. }
  4439. var y = item.y;
  4440. if (y < 0) {
  4441. y = 0;
  4442. }
  4443. var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
  4444. var style = "".concat(transform, "width:").concat(w, "px;height:").concat(item.h, "px;background-color:").concat(this.backgroundColor, ";z-index:1;");
  4445. return style;
  4446. },
  4447. getCardStyleForPlaceholder: function getCardStyleForPlaceholder(item) {
  4448. if (!item) return {};
  4449. var x = this.computeColsWidth(0, item.x);
  4450. var w = this.getCardWidth(item.x, item.x + item.w);
  4451. var y = item.y * this.rowHeight;
  4452. var h = item.h * this.rowHeight - this.margin[1];
  4453. this.setContainerHeight(y, h);
  4454. var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
  4455. var style = "".concat(transform, "width:").concat(w, "px;height:").concat(h, "px;");
  4456. return style;
  4457. },
  4458. // 计算卡片的宽度
  4459. getCardWidth: function getCardWidth(start, end) {
  4460. var width = this.computeColsWidth(start, end);
  4461. if (end !== this.cols.length) {
  4462. width -= this.margin[0];
  4463. }
  4464. return width;
  4465. },
  4466. // 计算某几列的宽度
  4467. computeColsWidth: function computeColsWidth(start, end) {
  4468. var key = start + ';' + end;
  4469. if (this.cacheComputed[key]) return this.cacheComputed[key];
  4470. var cols = this.cols;
  4471. var width = 0;
  4472. for (var i = start; i < end; i++) {
  4473. width += cols[i];
  4474. }
  4475. this.cacheComputed[key] = width;
  4476. return width;
  4477. },
  4478. computeRowsHeight: function computeRowsHeight(start, end) {
  4479. return (end - start) * this.rowHeight;
  4480. },
  4481. mousedown: function mousedown(event) {
  4482. this.mousedownTimeStamp = new Date().getTime();
  4483. var evt = normalizeEvent(event);
  4484. var srcElement = evt.srcElement;
  4485. var target = evt.target;
  4486. var targetCard = findParentThoughEvtPath(evt.path, 'alt-grid-item', 'alt-grid-container');
  4487. if (!targetCard) return;
  4488. var dragId = this.getDragId(targetCard);
  4489. var node = this.getNodeByDragId(dragId);
  4490. if (hasClass(target, this.resizeHandlerClass)) {
  4491. if (!util_getFirstSetValue(node.isResizable, this.isResizable, this.defVal.isResizable)) {
  4492. return;
  4493. }
  4494. this.preOperator = 2; // resize
  4495. }
  4496. if (targetCard && !this.preOperator) {
  4497. if (!util_getFirstSetValue(node.isDraggable, this.isDraggable, this.defVal.isDraggable)) {
  4498. return;
  4499. }
  4500. var dragIgnoreFrom = util_getFirstSetValue(node.dragIgnoreFrom, this.defVal.dragIgnoreFrom);
  4501. if (isDragIgnoreFrom(target, targetCard, dragIgnoreFrom)) return;
  4502. this.preOperator = 1; // 拖拽
  4503. }
  4504. if (!targetCard && !this.preOperator) return; // if(!hasClass(target, 'alt-grid-item')) return;
  4505. var targetCardStyle = targetCard.style;
  4506. var translate = targetCardStyle.transform.match(/\(([-.\d]*)px, ([-.\d]*)px/);
  4507. this.operatedItem = {
  4508. srcElement: srcElement,
  4509. el: targetCard,
  4510. node: node,
  4511. dragId: dragId,
  4512. linkEmit: this.$refs[dragId] ? this.$refs[dragId][0].$emit : function () {},
  4513. startX: evt.clientX,
  4514. startY: evt.clientY,
  4515. cacheStyle: {
  4516. x: parseInt(translate[1]),
  4517. y: parseInt(translate[2]),
  4518. w: parseInt(targetCardStyle.width.match(/\d+/)[0]),
  4519. h: parseInt(targetCardStyle.height.match(/\d+/)[0])
  4520. }
  4521. };
  4522. this.placeholder = {
  4523. _id: '__placeHolder__',
  4524. x: node.x,
  4525. y: node.y,
  4526. w: node.w,
  4527. h: node.h
  4528. };
  4529. this.coors.replace(node._id, this.placeholder); // this.coors.remove(node._id);
  4530. // this.coors.add(this.placeholder);
  4531. // console.log('down', evt, this.operatedItem);
  4532. // if(hasClass(target, this.resizeHandlerClass)){
  4533. // this.operator = 2;
  4534. // } else {
  4535. // this.operator = 1;
  4536. // }
  4537. },
  4538. mousemove: function mousemove(evt) {
  4539. if (!this.preOperator) return;
  4540. this.operator = this.preOperator; // console.log('mouse move');
  4541. this.operatedItem.el.classList.add('operated-item');
  4542. var ex = evt.clientX;
  4543. var ey = evt.clientY;
  4544. var sx = this.operatedItem.startX;
  4545. var sy = this.operatedItem.startY;
  4546. if (this.operator === 1) {
  4547. this.dragMove(this.operatedItem, sx, sy, ex, ey);
  4548. } else if (this.operator === 2) {
  4549. this.resizeMove(this.operatedItem, sx, sy, ex, ey);
  4550. }
  4551. },
  4552. mouseup: function mouseup() {
  4553. var time = new Date().getTime();
  4554. if (time - this.mousedownTimeStamp < 10) {
  4555. this.operatedItem && this.operatedItem.srcElement && this.operatedItem.srcElement.click();
  4556. }
  4557. var operatedItem = this.operatedItem;
  4558. if (operatedItem) {
  4559. this.applyChange();
  4560. this.$set(operatedItem.node, '_alt_style', this.getCardStyle(operatedItem.node)); // item.node[] = this.getCardStyle(item.node);
  4561. this.coors.replace(this.placeholder._id, operatedItem.node); // this.coors.remove(this.placeholder._id);
  4562. // this.coors.add(operatedItem.node);
  4563. }
  4564. this.clearDragEnv();
  4565. this.$emit('update:layout', this.innerLayout);
  4566. },
  4567. applyChange: function applyChange() {
  4568. var x = this.placeholder.x;
  4569. var y = this.placeholder.y;
  4570. var w = this.placeholder.w;
  4571. var h = this.placeholder.h;
  4572. var dragId = this.operatedItem.dragId;
  4573. var node = this.operatedItem.node;
  4574. if (this.operator === 1) {
  4575. if (node.x === x && node.y === y) return;
  4576. node.x = x;
  4577. node.y = y;
  4578. this.dispatchEvent(dragId, 'moved', {
  4579. x: x,
  4580. y: y,
  4581. w: node.w,
  4582. h: node.h,
  4583. layout: this.innerLayout
  4584. });
  4585. } else if (this.operator === 2) {
  4586. if (node.w === w && node.h === h) return;
  4587. node.w = this.placeholder.w;
  4588. node.h = this.placeholder.h;
  4589. node.x = this.placeholder.x;
  4590. node.y = this.placeholder.y;
  4591. this.dispatchEvent(dragId, 'resized', {
  4592. x: x,
  4593. y: y,
  4594. w: w,
  4595. h: h,
  4596. layout: this.innerLayout
  4597. });
  4598. }
  4599. },
  4600. clearDragEnv: function clearDragEnv() {
  4601. this.preOperator = 0;
  4602. this.operator = 0;
  4603. this.operatedItem = null;
  4604. this.placeholder = null;
  4605. },
  4606. getNodeByDragId: function getNodeByDragId(dragId) {
  4607. var index = getIndexOfArrayByAttr(this.innerLayout, dragId, '_id');
  4608. if (index === -1) return null;
  4609. return this.innerLayout[index];
  4610. },
  4611. getDragId: function getDragId(target) {
  4612. return target.getAttribute('dg-id');
  4613. },
  4614. dragMove: function dragMove(operatedItem, sx, sy, ex, ey) {
  4615. // console.log('drag move');
  4616. var placeholder = this.placeholder;
  4617. var cacheStyle = operatedItem.cacheStyle;
  4618. var dx = ex - sx;
  4619. var dy = ey - sy;
  4620. var startCol = dx > 0 ? operatedItem.node.x + operatedItem.node.w : operatedItem.node.x;
  4621. var stepX = this.getMoveCols(dx, startCol);
  4622. var stepY = this.getMoveRows(dy, operatedItem.node.y); // console.log('calc over step');
  4623. var targetX = operatedItem.node.x + stepX;
  4624. var targetY = operatedItem.node.y + stepY;
  4625. this.coors.getItemById(placeholder._id).moveTo(targetX, targetY);
  4626. var x = cacheStyle.x + dx;
  4627. var y = cacheStyle.y + dy;
  4628. operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
  4629. x: x,
  4630. y: y,
  4631. w: cacheStyle.w,
  4632. h: cacheStyle.h
  4633. }); // this.coors.moveAllItemUp();
  4634. this.reRenderStyle({
  4635. ignoreId: operatedItem.dragId
  4636. });
  4637. this.dispatchEvent(operatedItem.dragId, 'move', {
  4638. x: this.placeholder.x,
  4639. y: this.placeholder.y,
  4640. w: this.placeholder.w,
  4641. h: this.placeholder.h,
  4642. layout: this.innerLayout
  4643. });
  4644. },
  4645. resizeMove: function resizeMove(operatedItem, sx, sy, ex, ey) {
  4646. var placeholder = this.placeholder;
  4647. var node = operatedItem.node;
  4648. var cacheStyle = operatedItem.cacheStyle;
  4649. var dx = ex - sx;
  4650. var dy = ey - sy;
  4651. var stepX = this.getMoveCols(dx, node.x + node.w);
  4652. var stepY = this.getMoveRows(dy, node.y + node.h);
  4653. var size = this.getItemLegalSize(node, {
  4654. w: node.w + stepX,
  4655. h: node.h + stepY
  4656. });
  4657. this.coors.getItemById(placeholder._id).resizeTo(size.w, size.h);
  4658. var pixiesSize = this.getItemLegalSizeInPixies(node, {
  4659. width: cacheStyle.w + dx,
  4660. height: cacheStyle.h + dy
  4661. });
  4662. if (cacheStyle.x + pixiesSize.width > this.containerWidth) {
  4663. pixiesSize.width = this.containerWidth - cacheStyle.x;
  4664. }
  4665. operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
  4666. x: cacheStyle.x,
  4667. y: cacheStyle.y,
  4668. w: pixiesSize.width,
  4669. h: pixiesSize.height
  4670. });
  4671. this.reRenderStyle({
  4672. ignoreId: operatedItem.dragId
  4673. });
  4674. this.dispatchEvent(operatedItem.dragId, 'resize', {
  4675. x: this.placeholder.x,
  4676. y: this.placeholder.y,
  4677. w: this.placeholder.w,
  4678. h: this.placeholder.h,
  4679. layout: this.innerLayout
  4680. });
  4681. },
  4682. getItemLegalSizeInPixies: function getItemLegalSizeInPixies(node, size) {
  4683. var pixiesLimit = this.getPixiesLimit(node);
  4684. var width = size.width;
  4685. var height = size.height;
  4686. if (width > pixiesLimit.maxWidth) {
  4687. width = pixiesLimit.maxWidth;
  4688. } else if (width < pixiesLimit.minWidth - 10) {
  4689. width = pixiesLimit.minWidth - 10;
  4690. }
  4691. if (height > pixiesLimit.maxHeight) {
  4692. height = pixiesLimit.maxHeight;
  4693. } else if (height < pixiesLimit.minHeight - 10) {
  4694. height = pixiesLimit.minHeight - 10;
  4695. }
  4696. return {
  4697. width: width,
  4698. height: height
  4699. };
  4700. },
  4701. getPixiesLimit: function getPixiesLimit(node) {
  4702. var pixiesLimit = {
  4703. minWidth: 0,
  4704. minHeight: 0,
  4705. maxWidth: Infinity,
  4706. maxHeight: Infinity
  4707. };
  4708. var minW = util_getFirstSetValue(node.minW, this.defVal.minW);
  4709. var minH = util_getFirstSetValue(node.minH, this.defVal.minH);
  4710. if (minW && minW > 0) {
  4711. pixiesLimit.minWidth = this.getCardWidth(node.x, node.x + minW);
  4712. }
  4713. if (minH && minH > 0) {
  4714. pixiesLimit.minHeight = minH * this.rowHeight - this.margin[1];
  4715. }
  4716. if (node.maxW && node.maxW > 0) {
  4717. pixiesLimit.maxWidth = this.getCardWidth(node.x, node.x + node.maxW);
  4718. }
  4719. if (node.maxH && node.maxH > 0) {
  4720. pixiesLimit.maxHeight = node.maxH * this.rowHeight - this.margin[1];
  4721. }
  4722. return pixiesLimit;
  4723. },
  4724. getMoveCols: function getMoveCols(dx, startCol) {
  4725. if (startCol <= 0 && dx < 0) return 0;
  4726. var flag = dx < 0 ? '-' : '+';
  4727. var absDx = Math.abs(dx);
  4728. if (absDx < 15) return 0;
  4729. var i = 0;
  4730. var c = startCol;
  4731. while (absDx > 0) {
  4732. if (flag === '-') {
  4733. c--;
  4734. absDx -= this.cols[c] || 0;
  4735. i++;
  4736. if (c <= 0) break;
  4737. } else {
  4738. c++;
  4739. absDx -= this.cols[c] || 0;
  4740. i++;
  4741. if (c >= this.cols.length) break;
  4742. }
  4743. }
  4744. return parseInt(flag + i);
  4745. },
  4746. getMoveRows: function getMoveRows(dy, startRow) {
  4747. if (startRow <= 0 && dy < 0) return 0;
  4748. var flag = dy < 0 ? '-' : '+';
  4749. var absDy = Math.abs(dy);
  4750. if (absDy < this.rowHeight / 2) return 0;
  4751. var i = 0;
  4752. var row = startRow;
  4753. while (absDy > 0) {
  4754. if (flag === '-') {
  4755. absDy -= this.rowHeight;
  4756. i++;
  4757. row--;
  4758. if (row <= 0) break;
  4759. } else {
  4760. absDy -= this.rowHeight;
  4761. i++;
  4762. row++;
  4763. }
  4764. }
  4765. return parseInt(flag + i);
  4766. },
  4767. addItem: function addItem(item) {
  4768. if (!this.coors) {
  4769. this.setLayout();
  4770. }
  4771. var distributeItem = this.coors.add(item);
  4772. var style = this.getCardStyle(distributeItem);
  4773. this.$set(distributeItem.rawInfo, '_alt_style', style);
  4774. this.innerLayout.push(distributeItem.rawInfo);
  4775. this.$emit('update:layout', this.innerLayout);
  4776. return distributeItem.id;
  4777. },
  4778. deleteItem: function deleteItem(id) {
  4779. return this.closeWidget(id);
  4780. },
  4781. getAllItems: function getAllItems() {
  4782. return this.innerLayout;
  4783. },
  4784. getItemLegalSize: function getItemLegalSize(item, size) {
  4785. var minH = util_getFirstSetValue(item.minH, this.defVal.minH);
  4786. var minW = util_getFirstSetValue(item.minW, this.defVal.minW);
  4787. var maxH = util_getFirstSetValue(item.maxH, this.defVal.maxH);
  4788. var maxW = util_getFirstSetValue(item.maxW, this.defVal.maxW);
  4789. var h = size.h;
  4790. var w = size.w;
  4791. if (size.h <= minH) {
  4792. h = minH;
  4793. }
  4794. if (size.h >= maxH) {
  4795. h = maxH;
  4796. }
  4797. if (size.w <= minW) {
  4798. w = minW;
  4799. }
  4800. if (size.w >= maxW) {
  4801. w = maxW;
  4802. }
  4803. return {
  4804. h: h,
  4805. w: w
  4806. };
  4807. },
  4808. closeWidget: function closeWidget(_id) {
  4809. var index = getIndexOfArrayByAttr(this.innerLayout, _id, '_id');
  4810. if (index === -1) return false;
  4811. var item = this.innerLayout[index];
  4812. this.coors.remove(item._id); // this.coors.moveAllItemUp();
  4813. this.innerLayout.splice(index, 1);
  4814. this.reRenderStyle(); // this.reRenderCount++;
  4815. this.clearDragEnv();
  4816. this.$emit('update:layout', this.innerLayout);
  4817. }
  4818. },
  4819. updated: function updated() {
  4820. this.$emit('updated');
  4821. }
  4822. });
  4823. // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=script&lang=js&
  4824. /* harmony default export */ var components_gridvue_type_script_lang_js_ = (gridvue_type_script_lang_js_);
  4825. // EXTERNAL MODULE: ./src/components/grid.vue?vue&type=style&index=0&lang=css&
  4826. var gridvue_type_style_index_0_lang_css_ = __webpack_require__("d812");
  4827. // CONCATENATED MODULE: ./src/components/grid.vue
  4828. /* normalize component */
  4829. var grid_component = normalizeComponent(
  4830. components_gridvue_type_script_lang_js_,
  4831. render,
  4832. staticRenderFns,
  4833. false,
  4834. null,
  4835. null,
  4836. null
  4837. )
  4838. /* harmony default export */ var components_grid = (grid_component.exports);
  4839. // CONCATENATED MODULE: ./src/alt-store/mixin.js
  4840. function mixin(Vue) {
  4841. Vue.mixin({
  4842. beforeCreate: altStoreInit
  4843. });
  4844. function altStoreInit() {
  4845. var options = this.$options;
  4846. if (options.altStore) {
  4847. this.$altStore = options.altStore;
  4848. } else if (options.parent && options.parent.$altStore) {
  4849. this.$altStore = options.parent.$altStore;
  4850. }
  4851. }
  4852. }
  4853. // CONCATENATED MODULE: ./src/alt-store/util.js
  4854. function util_forEachValue(obj, fn) {
  4855. Object.keys(obj).forEach(function (key) {
  4856. return fn(obj[key], key);
  4857. });
  4858. }
  4859. // CONCATENATED MODULE: ./src/alt-store/store.js
  4860. var store_Vue;
  4861. var store_AltStore =
  4862. /*#__PURE__*/
  4863. function () {
  4864. function AltStore(options) {
  4865. _classCallCheck(this, AltStore);
  4866. this._mutations = Object.create(null);
  4867. this.initVm(options.state);
  4868. this.initMutations(options.mutations);
  4869. }
  4870. _createClass(AltStore, [{
  4871. key: "commit",
  4872. value: function commit(type, payload) {
  4873. var entry = this._mutations[type];
  4874. if (!entry) {
  4875. console.error('[altStore] unknown commit type.');
  4876. return;
  4877. }
  4878. entry.forEach(function (handler) {
  4879. handler(payload);
  4880. });
  4881. }
  4882. }, {
  4883. key: "getOriginState",
  4884. value: function getOriginState() {
  4885. return this._vm._data.$$state;
  4886. }
  4887. }, {
  4888. key: "initMutations",
  4889. value: function initMutations(mutations) {
  4890. var store = this;
  4891. var state = this.getOriginState();
  4892. util_forEachValue(mutations, function (handler, key) {
  4893. var entry = store._mutations[key] || (store._mutations[key] = []);
  4894. entry.push(function wrapperHandler(payload) {
  4895. handler.call(store, state, payload);
  4896. });
  4897. });
  4898. }
  4899. }, {
  4900. key: "initVm",
  4901. value: function initVm(state) {
  4902. var oldVm = this._vm;
  4903. this._vm = new store_Vue({
  4904. data: {
  4905. $$state: state
  4906. }
  4907. });
  4908. if (oldVm) {
  4909. store_Vue.nextTick(function () {
  4910. return oldVm.$destroy();
  4911. });
  4912. }
  4913. }
  4914. }, {
  4915. key: "state",
  4916. get: function get() {
  4917. return this._vm._data.$$state;
  4918. },
  4919. set: function set(v) {
  4920. console.error('cannot set state directly.');
  4921. }
  4922. }]);
  4923. return AltStore;
  4924. }();
  4925. function install(_Vue) {
  4926. if (store_Vue && _Vue === store_Vue) {
  4927. if (false) {}
  4928. return;
  4929. }
  4930. store_Vue = _Vue;
  4931. mixin(store_Vue);
  4932. }
  4933. // CONCATENATED MODULE: ./src/alt-store/index.js
  4934. /* harmony default export */ var alt_store = ({
  4935. Store: store_AltStore,
  4936. install: install
  4937. });
  4938. // CONCATENATED MODULE: ./src/index.js
  4939. // import Vue from "vue";
  4940. // Vue.component('AltVueGridLayout', VueGridLayout);
  4941. function factory() {
  4942. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4943. var grid = _objectSpread({}, components_grid, {
  4944. components: {}
  4945. });
  4946. if (options.altStore && options.altStore instanceof alt_store.Store) {
  4947. grid.altStore = options.altStore;
  4948. }
  4949. return grid;
  4950. } // export default VueGridLayout;
  4951. /* harmony default export */ var src = ({
  4952. createGrid: factory,
  4953. grid: components_grid,
  4954. altStore: alt_store
  4955. });
  4956. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
  4957. /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
  4958. /***/ }),
  4959. /***/ "fde4":
  4960. /***/ (function(module, exports, __webpack_require__) {
  4961. __webpack_require__("bf90");
  4962. var $Object = __webpack_require__("584a").Object;
  4963. module.exports = function getOwnPropertyDescriptor(it, key) {
  4964. return $Object.getOwnPropertyDescriptor(it, key);
  4965. };
  4966. /***/ }),
  4967. /***/ "fdef":
  4968. /***/ (function(module, exports) {
  4969. module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  4970. '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  4971. /***/ })
  4972. /******/ })["default"];
  4973. });
  4974. //# sourceMappingURL=doesburg.umd.js.map