1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051 |
- import {
- require_vue
- } from "./chunk-IND6KQVK.js";
- import "./chunk-S6VK5PVK.js";
- import "./chunk-YVHZHMSQ.js";
- import "./chunk-VNBICN6T.js";
- import {
- __commonJS,
- __esm,
- __export,
- __toCommonJS
- } from "./chunk-2LSFTFF7.js";
- // node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.js
- var sortable_esm_exports = {};
- __export(sortable_esm_exports, {
- MultiDrag: () => MultiDragPlugin,
- Sortable: () => Sortable,
- Swap: () => SwapPlugin,
- default: () => sortable_esm_default
- });
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) {
- symbols = symbols.filter(function(sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- }
- keys.push.apply(keys, symbols);
- }
- return keys;
- }
- function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- if (i % 2) {
- ownKeys(Object(source), true).forEach(function(key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(Object(source)).forEach(function(key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
- return target;
- }
- function _typeof(obj) {
- "@babel/helpers - typeof";
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- _typeof = function(obj2) {
- return typeof obj2;
- };
- } else {
- _typeof = function(obj2) {
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
- };
- }
- return _typeof(obj);
- }
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- function _extends() {
- _extends = Object.assign || function(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- return _extends.apply(this, arguments);
- }
- function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null)
- return {};
- var target = {};
- var sourceKeys = Object.keys(source);
- var key, i;
- for (i = 0; i < sourceKeys.length; i++) {
- key = sourceKeys[i];
- if (excluded.indexOf(key) >= 0)
- continue;
- target[key] = source[key];
- }
- return target;
- }
- function _objectWithoutProperties(source, excluded) {
- if (source == null)
- return {};
- var target = _objectWithoutPropertiesLoose(source, excluded);
- var key, i;
- if (Object.getOwnPropertySymbols) {
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
- for (i = 0; i < sourceSymbolKeys.length; i++) {
- key = sourceSymbolKeys[i];
- if (excluded.indexOf(key) >= 0)
- continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
- continue;
- target[key] = source[key];
- }
- }
- return target;
- }
- function _toConsumableArray(arr) {
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
- }
- function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr))
- return _arrayLikeToArray(arr);
- }
- function _iterableToArray(iter) {
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
- return Array.from(iter);
- }
- function _unsupportedIterableToArray(o, minLen) {
- if (!o)
- return;
- if (typeof o === "string")
- return _arrayLikeToArray(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor)
- n = o.constructor.name;
- if (n === "Map" || n === "Set")
- return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return _arrayLikeToArray(o, minLen);
- }
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length)
- len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++)
- arr2[i] = arr[i];
- return arr2;
- }
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- function userAgent(pattern) {
- if (typeof window !== "undefined" && window.navigator) {
- return !!navigator.userAgent.match(pattern);
- }
- }
- function on(el, event, fn) {
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
- }
- function off(el, event, fn) {
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
- }
- function matches(el, selector) {
- if (!selector)
- return;
- selector[0] === ">" && (selector = selector.substring(1));
- if (el) {
- try {
- if (el.matches) {
- return el.matches(selector);
- } else if (el.msMatchesSelector) {
- return el.msMatchesSelector(selector);
- } else if (el.webkitMatchesSelector) {
- return el.webkitMatchesSelector(selector);
- }
- } catch (_) {
- return false;
- }
- }
- return false;
- }
- function getParentOrHost(el) {
- return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
- }
- function closest(el, selector, ctx, includeCTX) {
- if (el) {
- ctx = ctx || document;
- do {
- if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
- return el;
- }
- if (el === ctx)
- break;
- } while (el = getParentOrHost(el));
- }
- return null;
- }
- function toggleClass(el, name, state) {
- if (el && name) {
- if (el.classList) {
- el.classList[state ? "add" : "remove"](name);
- } else {
- var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
- el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
- }
- }
- }
- function css(el, prop, val) {
- var style = el && el.style;
- if (style) {
- if (val === void 0) {
- if (document.defaultView && document.defaultView.getComputedStyle) {
- val = document.defaultView.getComputedStyle(el, "");
- } else if (el.currentStyle) {
- val = el.currentStyle;
- }
- return prop === void 0 ? val : val[prop];
- } else {
- if (!(prop in style) && prop.indexOf("webkit") === -1) {
- prop = "-webkit-" + prop;
- }
- style[prop] = val + (typeof val === "string" ? "" : "px");
- }
- }
- }
- function matrix(el, selfOnly) {
- var appliedTransforms = "";
- if (typeof el === "string") {
- appliedTransforms = el;
- } else {
- do {
- var transform = css(el, "transform");
- if (transform && transform !== "none") {
- appliedTransforms = transform + " " + appliedTransforms;
- }
- } while (!selfOnly && (el = el.parentNode));
- }
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
- return matrixFn && new matrixFn(appliedTransforms);
- }
- function find(ctx, tagName, iterator) {
- if (ctx) {
- var list = ctx.getElementsByTagName(tagName), i = 0, n = list.length;
- if (iterator) {
- for (; i < n; i++) {
- iterator(list[i], i);
- }
- }
- return list;
- }
- return [];
- }
- function getWindowScrollingElement() {
- var scrollingElement = document.scrollingElement;
- if (scrollingElement) {
- return scrollingElement;
- } else {
- return document.documentElement;
- }
- }
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
- if (!el.getBoundingClientRect && el !== window)
- return;
- var elRect, top, left, bottom, right, height, width;
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
- elRect = el.getBoundingClientRect();
- top = elRect.top;
- left = elRect.left;
- bottom = elRect.bottom;
- right = elRect.right;
- height = elRect.height;
- width = elRect.width;
- } else {
- top = 0;
- left = 0;
- bottom = window.innerHeight;
- right = window.innerWidth;
- height = window.innerHeight;
- width = window.innerWidth;
- }
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
- container = container || el.parentNode;
- if (!IE11OrLess) {
- do {
- if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
- var containerRect = container.getBoundingClientRect();
- top -= containerRect.top + parseInt(css(container, "border-top-width"));
- left -= containerRect.left + parseInt(css(container, "border-left-width"));
- bottom = top + elRect.height;
- right = left + elRect.width;
- break;
- }
- } while (container = container.parentNode);
- }
- }
- if (undoScale && el !== window) {
- var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
- if (elMatrix) {
- top /= scaleY;
- left /= scaleX;
- width /= scaleX;
- height /= scaleY;
- bottom = top + height;
- right = left + width;
- }
- }
- return {
- top,
- left,
- bottom,
- right,
- width,
- height
- };
- }
- function isScrolledPast(el, elSide, parentSide) {
- var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
- while (parent) {
- var parentSideVal = getRect(parent)[parentSide], visible = void 0;
- if (parentSide === "top" || parentSide === "left") {
- visible = elSideVal >= parentSideVal;
- } else {
- visible = elSideVal <= parentSideVal;
- }
- if (!visible)
- return parent;
- if (parent === getWindowScrollingElement())
- break;
- parent = getParentAutoScrollElement(parent, false);
- }
- return false;
- }
- function getChild(el, childNum, options, includeDragEl) {
- var currentChild = 0, i = 0, children = el.children;
- while (i < children.length) {
- if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
- if (currentChild === childNum) {
- return children[i];
- }
- currentChild++;
- }
- i++;
- }
- return null;
- }
- function lastChild(el, selector) {
- var last = el.lastElementChild;
- while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
- last = last.previousElementSibling;
- }
- return last || null;
- }
- function index(el, selector) {
- var index2 = 0;
- if (!el || !el.parentNode) {
- return -1;
- }
- while (el = el.previousElementSibling) {
- if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
- index2++;
- }
- }
- return index2;
- }
- function getRelativeScrollOffset(el) {
- var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
- if (el) {
- do {
- var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
- offsetLeft += el.scrollLeft * scaleX;
- offsetTop += el.scrollTop * scaleY;
- } while (el !== winScroller && (el = el.parentNode));
- }
- return [offsetLeft, offsetTop];
- }
- function indexOfObject(arr, obj) {
- for (var i in arr) {
- if (!arr.hasOwnProperty(i))
- continue;
- for (var key in obj) {
- if (obj.hasOwnProperty(key) && obj[key] === arr[i][key])
- return Number(i);
- }
- }
- return -1;
- }
- function getParentAutoScrollElement(el, includeSelf) {
- if (!el || !el.getBoundingClientRect)
- return getWindowScrollingElement();
- var elem = el;
- var gotSelf = false;
- do {
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
- var elemCSS = css(elem);
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
- if (!elem.getBoundingClientRect || elem === document.body)
- return getWindowScrollingElement();
- if (gotSelf || includeSelf)
- return elem;
- gotSelf = true;
- }
- }
- } while (elem = elem.parentNode);
- return getWindowScrollingElement();
- }
- function extend(dst, src) {
- if (dst && src) {
- for (var key in src) {
- if (src.hasOwnProperty(key)) {
- dst[key] = src[key];
- }
- }
- }
- return dst;
- }
- function isRectEqual(rect1, rect2) {
- return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
- }
- function throttle(callback, ms) {
- return function() {
- if (!_throttleTimeout) {
- var args = arguments, _this = this;
- if (args.length === 1) {
- callback.call(_this, args[0]);
- } else {
- callback.apply(_this, args);
- }
- _throttleTimeout = setTimeout(function() {
- _throttleTimeout = void 0;
- }, ms);
- }
- };
- }
- function cancelThrottle() {
- clearTimeout(_throttleTimeout);
- _throttleTimeout = void 0;
- }
- function scrollBy(el, x, y) {
- el.scrollLeft += x;
- el.scrollTop += y;
- }
- function clone(el) {
- var Polymer = window.Polymer;
- var $ = window.jQuery || window.Zepto;
- if (Polymer && Polymer.dom) {
- return Polymer.dom(el).cloneNode(true);
- } else if ($) {
- return $(el).clone(true)[0];
- } else {
- return el.cloneNode(true);
- }
- }
- function setRect(el, rect) {
- css(el, "position", "absolute");
- css(el, "top", rect.top);
- css(el, "left", rect.left);
- css(el, "width", rect.width);
- css(el, "height", rect.height);
- }
- function unsetRect(el) {
- css(el, "position", "");
- css(el, "top", "");
- css(el, "left", "");
- css(el, "width", "");
- css(el, "height", "");
- }
- function AnimationStateManager() {
- var animationStates = [], animationCallbackId;
- return {
- captureAnimationState: function captureAnimationState() {
- animationStates = [];
- if (!this.options.animation)
- return;
- var children = [].slice.call(this.el.children);
- children.forEach(function(child) {
- if (css(child, "display") === "none" || child === Sortable.ghost)
- return;
- animationStates.push({
- target: child,
- rect: getRect(child)
- });
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
- if (child.thisAnimationDuration) {
- var childMatrix = matrix(child, true);
- if (childMatrix) {
- fromRect.top -= childMatrix.f;
- fromRect.left -= childMatrix.e;
- }
- }
- child.fromRect = fromRect;
- });
- },
- addAnimationState: function addAnimationState(state) {
- animationStates.push(state);
- },
- removeAnimationState: function removeAnimationState(target) {
- animationStates.splice(indexOfObject(animationStates, {
- target
- }), 1);
- },
- animateAll: function animateAll(callback) {
- var _this = this;
- if (!this.options.animation) {
- clearTimeout(animationCallbackId);
- if (typeof callback === "function")
- callback();
- return;
- }
- var animating = false, animationTime = 0;
- animationStates.forEach(function(state) {
- var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true);
- if (targetMatrix) {
- toRect.top -= targetMatrix.f;
- toRect.left -= targetMatrix.e;
- }
- target.toRect = toRect;
- if (target.thisAnimationDuration) {
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
- (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
- time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
- }
- }
- if (!isRectEqual(toRect, fromRect)) {
- target.prevFromRect = fromRect;
- target.prevToRect = toRect;
- if (!time) {
- time = _this.options.animation;
- }
- _this.animate(target, animatingRect, toRect, time);
- }
- if (time) {
- animating = true;
- animationTime = Math.max(animationTime, time);
- clearTimeout(target.animationResetTimer);
- target.animationResetTimer = setTimeout(function() {
- target.animationTime = 0;
- target.prevFromRect = null;
- target.fromRect = null;
- target.prevToRect = null;
- target.thisAnimationDuration = null;
- }, time);
- target.thisAnimationDuration = time;
- }
- });
- clearTimeout(animationCallbackId);
- if (!animating) {
- if (typeof callback === "function")
- callback();
- } else {
- animationCallbackId = setTimeout(function() {
- if (typeof callback === "function")
- callback();
- }, animationTime);
- }
- animationStates = [];
- },
- animate: function animate(target, currentRect, toRect, duration) {
- if (duration) {
- css(target, "transition", "");
- css(target, "transform", "");
- var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
- target.animatingX = !!translateX;
- target.animatingY = !!translateY;
- css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
- this.forRepaintDummy = repaint(target);
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
- css(target, "transform", "translate3d(0,0,0)");
- typeof target.animated === "number" && clearTimeout(target.animated);
- target.animated = setTimeout(function() {
- css(target, "transition", "");
- css(target, "transform", "");
- target.animated = false;
- target.animatingX = false;
- target.animatingY = false;
- }, duration);
- }
- }
- };
- }
- function repaint(target) {
- return target.offsetWidth;
- }
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
- return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
- }
- function dispatchEvent(_ref) {
- var sortable = _ref.sortable, rootEl2 = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl2 = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex2 = _ref.oldIndex, newIndex2 = _ref.newIndex, oldDraggableIndex2 = _ref.oldDraggableIndex, newDraggableIndex2 = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
- sortable = sortable || rootEl2 && rootEl2[expando];
- if (!sortable)
- return;
- var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
- if (window.CustomEvent && !IE11OrLess && !Edge) {
- evt = new CustomEvent(name, {
- bubbles: true,
- cancelable: true
- });
- } else {
- evt = document.createEvent("Event");
- evt.initEvent(name, true, true);
- }
- evt.to = toEl || rootEl2;
- evt.from = fromEl || rootEl2;
- evt.item = targetEl || rootEl2;
- evt.clone = cloneEl2;
- evt.oldIndex = oldIndex2;
- evt.newIndex = newIndex2;
- evt.oldDraggableIndex = oldDraggableIndex2;
- evt.newDraggableIndex = newDraggableIndex2;
- evt.originalEvent = originalEvent;
- evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
- for (var option2 in allEventProperties) {
- evt[option2] = allEventProperties[option2];
- }
- if (rootEl2) {
- rootEl2.dispatchEvent(evt);
- }
- if (options[onName]) {
- options[onName].call(sortable, evt);
- }
- }
- function _dispatchEvent(info) {
- dispatchEvent(_objectSpread2({
- putSortable,
- cloneEl,
- targetEl: dragEl,
- rootEl,
- oldIndex,
- oldDraggableIndex,
- newIndex,
- newDraggableIndex
- }, info));
- }
- function Sortable(el, options) {
- if (!(el && el.nodeType && el.nodeType === 1)) {
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
- }
- this.el = el;
- this.options = options = _extends({}, options);
- el[expando] = this;
- var defaults2 = {
- group: null,
- sort: true,
- disabled: false,
- store: null,
- handle: null,
- draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
- swapThreshold: 1,
- // percentage; 0 <= x <= 1
- invertSwap: false,
- // invert always
- invertedSwapThreshold: null,
- // will be set to same as swapThreshold if default
- removeCloneOnHide: true,
- direction: function direction() {
- return _detectDirection(el, this.options);
- },
- ghostClass: "sortable-ghost",
- chosenClass: "sortable-chosen",
- dragClass: "sortable-drag",
- ignore: "a, img",
- filter: null,
- preventOnFilter: true,
- animation: 0,
- easing: null,
- setData: function setData(dataTransfer, dragEl2) {
- dataTransfer.setData("Text", dragEl2.textContent);
- },
- dropBubble: false,
- dragoverBubble: false,
- dataIdAttr: "data-id",
- delay: 0,
- delayOnTouchOnly: false,
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
- forceFallback: false,
- fallbackClass: "sortable-fallback",
- fallbackOnBody: false,
- fallbackTolerance: 0,
- fallbackOffset: {
- x: 0,
- y: 0
- },
- supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && !Safari,
- emptyInsertThreshold: 5
- };
- PluginManager.initializePlugins(this, el, defaults2);
- for (var name in defaults2) {
- !(name in options) && (options[name] = defaults2[name]);
- }
- _prepareGroup(options);
- for (var fn in this) {
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
- this[fn] = this[fn].bind(this);
- }
- }
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
- if (this.nativeDraggable) {
- this.options.touchStartThreshold = 1;
- }
- if (options.supportPointer) {
- on(el, "pointerdown", this._onTapStart);
- } else {
- on(el, "mousedown", this._onTapStart);
- on(el, "touchstart", this._onTapStart);
- }
- if (this.nativeDraggable) {
- on(el, "dragover", this);
- on(el, "dragenter", this);
- }
- sortables.push(this.el);
- options.store && options.store.get && this.sort(options.store.get(this) || []);
- _extends(this, AnimationStateManager());
- }
- function _globalDragOver(evt) {
- if (evt.dataTransfer) {
- evt.dataTransfer.dropEffect = "move";
- }
- evt.cancelable && evt.preventDefault();
- }
- function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
- var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
- if (window.CustomEvent && !IE11OrLess && !Edge) {
- evt = new CustomEvent("move", {
- bubbles: true,
- cancelable: true
- });
- } else {
- evt = document.createEvent("Event");
- evt.initEvent("move", true, true);
- }
- evt.to = toEl;
- evt.from = fromEl;
- evt.dragged = dragEl2;
- evt.draggedRect = dragRect;
- evt.related = targetEl || toEl;
- evt.relatedRect = targetRect || getRect(toEl);
- evt.willInsertAfter = willInsertAfter;
- evt.originalEvent = originalEvent;
- fromEl.dispatchEvent(evt);
- if (onMoveFn) {
- retVal = onMoveFn.call(sortable, evt, originalEvent);
- }
- return retVal;
- }
- function _disableDraggable(el) {
- el.draggable = false;
- }
- function _unsilent() {
- _silent = false;
- }
- function _ghostIsFirst(evt, vertical, sortable) {
- var rect = getRect(getChild(sortable.el, 0, sortable.options, true));
- var spacer = 10;
- return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;
- }
- function _ghostIsLast(evt, vertical, sortable) {
- var rect = getRect(lastChild(sortable.el, sortable.options.draggable));
- var spacer = 10;
- return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;
- }
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
- var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false;
- if (!invertSwap) {
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
- pastFirstInvertThresh = true;
- }
- if (!pastFirstInvertThresh) {
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
- return -lastDirection;
- }
- } else {
- invert = true;
- }
- } else {
- if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
- return _getInsertDirection(target);
- }
- }
- }
- invert = invert || invertSwap;
- if (invert) {
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
- return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
- }
- }
- return 0;
- }
- function _getInsertDirection(target) {
- if (index(dragEl) < index(target)) {
- return 1;
- } else {
- return -1;
- }
- }
- function _generateId(el) {
- var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
- while (i--) {
- sum += str.charCodeAt(i);
- }
- return sum.toString(36);
- }
- function _saveInputCheckedState(root) {
- savedInputChecked.length = 0;
- var inputs = root.getElementsByTagName("input");
- var idx = inputs.length;
- while (idx--) {
- var el = inputs[idx];
- el.checked && savedInputChecked.push(el);
- }
- }
- function _nextTick(fn) {
- return setTimeout(fn, 0);
- }
- function _cancelNextTick(id) {
- return clearTimeout(id);
- }
- function AutoScrollPlugin() {
- function AutoScroll() {
- this.defaults = {
- scroll: true,
- forceAutoScrollFallback: false,
- scrollSensitivity: 30,
- scrollSpeed: 10,
- bubbleScroll: true
- };
- for (var fn in this) {
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
- this[fn] = this[fn].bind(this);
- }
- }
- }
- AutoScroll.prototype = {
- dragStarted: function dragStarted2(_ref) {
- var originalEvent = _ref.originalEvent;
- if (this.sortable.nativeDraggable) {
- on(document, "dragover", this._handleAutoScroll);
- } else {
- if (this.options.supportPointer) {
- on(document, "pointermove", this._handleFallbackAutoScroll);
- } else if (originalEvent.touches) {
- on(document, "touchmove", this._handleFallbackAutoScroll);
- } else {
- on(document, "mousemove", this._handleFallbackAutoScroll);
- }
- }
- },
- dragOverCompleted: function dragOverCompleted(_ref2) {
- var originalEvent = _ref2.originalEvent;
- if (!this.options.dragOverBubble && !originalEvent.rootEl) {
- this._handleAutoScroll(originalEvent);
- }
- },
- drop: function drop3() {
- if (this.sortable.nativeDraggable) {
- off(document, "dragover", this._handleAutoScroll);
- } else {
- off(document, "pointermove", this._handleFallbackAutoScroll);
- off(document, "touchmove", this._handleFallbackAutoScroll);
- off(document, "mousemove", this._handleFallbackAutoScroll);
- }
- clearPointerElemChangedInterval();
- clearAutoScrolls();
- cancelThrottle();
- },
- nulling: function nulling() {
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
- autoScrolls.length = 0;
- },
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
- this._handleAutoScroll(evt, true);
- },
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
- var _this = this;
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
- touchEvt$1 = evt;
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
- autoScroll(evt, this.options, elem, fallback);
- var ogElemScroller = getParentAutoScrollElement(elem, true);
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
- pointerElemChangedInterval && clearPointerElemChangedInterval();
- pointerElemChangedInterval = setInterval(function() {
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
- if (newElem !== ogElemScroller) {
- ogElemScroller = newElem;
- clearAutoScrolls();
- }
- autoScroll(evt, _this.options, newElem, fallback);
- }, 10);
- lastAutoScrollX = x;
- lastAutoScrollY = y;
- }
- } else {
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
- clearAutoScrolls();
- return;
- }
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
- }
- }
- };
- return _extends(AutoScroll, {
- pluginName: "scroll",
- initializeByDefault: true
- });
- }
- function clearAutoScrolls() {
- autoScrolls.forEach(function(autoScroll2) {
- clearInterval(autoScroll2.pid);
- });
- autoScrolls = [];
- }
- function clearPointerElemChangedInterval() {
- clearInterval(pointerElemChangedInterval);
- }
- function Revert() {
- }
- function Remove() {
- }
- function SwapPlugin() {
- function Swap() {
- this.defaults = {
- swapClass: "sortable-swap-highlight"
- };
- }
- Swap.prototype = {
- dragStart: function dragStart2(_ref) {
- var dragEl2 = _ref.dragEl;
- lastSwapEl = dragEl2;
- },
- dragOverValid: function dragOverValid(_ref2) {
- var completed = _ref2.completed, target = _ref2.target, onMove = _ref2.onMove, activeSortable = _ref2.activeSortable, changed = _ref2.changed, cancel = _ref2.cancel;
- if (!activeSortable.options.swap)
- return;
- var el = this.sortable.el, options = this.options;
- if (target && target !== el) {
- var prevSwapEl = lastSwapEl;
- if (onMove(target) !== false) {
- toggleClass(target, options.swapClass, true);
- lastSwapEl = target;
- } else {
- lastSwapEl = null;
- }
- if (prevSwapEl && prevSwapEl !== lastSwapEl) {
- toggleClass(prevSwapEl, options.swapClass, false);
- }
- }
- changed();
- completed(true);
- cancel();
- },
- drop: function drop3(_ref3) {
- var activeSortable = _ref3.activeSortable, putSortable2 = _ref3.putSortable, dragEl2 = _ref3.dragEl;
- var toSortable = putSortable2 || this.sortable;
- var options = this.options;
- lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);
- if (lastSwapEl && (options.swap || putSortable2 && putSortable2.options.swap)) {
- if (dragEl2 !== lastSwapEl) {
- toSortable.captureAnimationState();
- if (toSortable !== activeSortable)
- activeSortable.captureAnimationState();
- swapNodes(dragEl2, lastSwapEl);
- toSortable.animateAll();
- if (toSortable !== activeSortable)
- activeSortable.animateAll();
- }
- }
- },
- nulling: function nulling() {
- lastSwapEl = null;
- }
- };
- return _extends(Swap, {
- pluginName: "swap",
- eventProperties: function eventProperties() {
- return {
- swapItem: lastSwapEl
- };
- }
- });
- }
- function swapNodes(n1, n2) {
- var p1 = n1.parentNode, p2 = n2.parentNode, i1, i2;
- if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1))
- return;
- i1 = index(n1);
- i2 = index(n2);
- if (p1.isEqualNode(p2) && i1 < i2) {
- i2++;
- }
- p1.insertBefore(n2, p1.children[i1]);
- p2.insertBefore(n1, p2.children[i2]);
- }
- function MultiDragPlugin() {
- function MultiDrag(sortable) {
- for (var fn in this) {
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
- this[fn] = this[fn].bind(this);
- }
- }
- if (sortable.options.supportPointer) {
- on(document, "pointerup", this._deselectMultiDrag);
- } else {
- on(document, "mouseup", this._deselectMultiDrag);
- on(document, "touchend", this._deselectMultiDrag);
- }
- on(document, "keydown", this._checkKeyDown);
- on(document, "keyup", this._checkKeyUp);
- this.defaults = {
- selectedClass: "sortable-selected",
- multiDragKey: null,
- setData: function setData(dataTransfer, dragEl2) {
- var data = "";
- if (multiDragElements.length && multiDragSortable === sortable) {
- multiDragElements.forEach(function(multiDragElement, i) {
- data += (!i ? "" : ", ") + multiDragElement.textContent;
- });
- } else {
- data = dragEl2.textContent;
- }
- dataTransfer.setData("Text", data);
- }
- };
- }
- MultiDrag.prototype = {
- multiDragKeyDown: false,
- isMultiDrag: false,
- delayStartGlobal: function delayStartGlobal(_ref) {
- var dragged = _ref.dragEl;
- dragEl$1 = dragged;
- },
- delayEnded: function delayEnded() {
- this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);
- },
- setupClone: function setupClone(_ref2) {
- var sortable = _ref2.sortable, cancel = _ref2.cancel;
- if (!this.isMultiDrag)
- return;
- for (var i = 0; i < multiDragElements.length; i++) {
- multiDragClones.push(clone(multiDragElements[i]));
- multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;
- multiDragClones[i].draggable = false;
- multiDragClones[i].style["will-change"] = "";
- toggleClass(multiDragClones[i], this.options.selectedClass, false);
- multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);
- }
- sortable._hideClone();
- cancel();
- },
- clone: function clone2(_ref3) {
- var sortable = _ref3.sortable, rootEl2 = _ref3.rootEl, dispatchSortableEvent = _ref3.dispatchSortableEvent, cancel = _ref3.cancel;
- if (!this.isMultiDrag)
- return;
- if (!this.options.removeCloneOnHide) {
- if (multiDragElements.length && multiDragSortable === sortable) {
- insertMultiDragClones(true, rootEl2);
- dispatchSortableEvent("clone");
- cancel();
- }
- }
- },
- showClone: function showClone(_ref4) {
- var cloneNowShown = _ref4.cloneNowShown, rootEl2 = _ref4.rootEl, cancel = _ref4.cancel;
- if (!this.isMultiDrag)
- return;
- insertMultiDragClones(false, rootEl2);
- multiDragClones.forEach(function(clone2) {
- css(clone2, "display", "");
- });
- cloneNowShown();
- clonesHidden = false;
- cancel();
- },
- hideClone: function hideClone(_ref5) {
- var _this = this;
- var sortable = _ref5.sortable, cloneNowHidden = _ref5.cloneNowHidden, cancel = _ref5.cancel;
- if (!this.isMultiDrag)
- return;
- multiDragClones.forEach(function(clone2) {
- css(clone2, "display", "none");
- if (_this.options.removeCloneOnHide && clone2.parentNode) {
- clone2.parentNode.removeChild(clone2);
- }
- });
- cloneNowHidden();
- clonesHidden = true;
- cancel();
- },
- dragStartGlobal: function dragStartGlobal(_ref6) {
- var sortable = _ref6.sortable;
- if (!this.isMultiDrag && multiDragSortable) {
- multiDragSortable.multiDrag._deselectMultiDrag();
- }
- multiDragElements.forEach(function(multiDragElement) {
- multiDragElement.sortableIndex = index(multiDragElement);
- });
- multiDragElements = multiDragElements.sort(function(a, b) {
- return a.sortableIndex - b.sortableIndex;
- });
- dragStarted = true;
- },
- dragStarted: function dragStarted2(_ref7) {
- var _this2 = this;
- var sortable = _ref7.sortable;
- if (!this.isMultiDrag)
- return;
- if (this.options.sort) {
- sortable.captureAnimationState();
- if (this.options.animation) {
- multiDragElements.forEach(function(multiDragElement) {
- if (multiDragElement === dragEl$1)
- return;
- css(multiDragElement, "position", "absolute");
- });
- var dragRect = getRect(dragEl$1, false, true, true);
- multiDragElements.forEach(function(multiDragElement) {
- if (multiDragElement === dragEl$1)
- return;
- setRect(multiDragElement, dragRect);
- });
- folding = true;
- initialFolding = true;
- }
- }
- sortable.animateAll(function() {
- folding = false;
- initialFolding = false;
- if (_this2.options.animation) {
- multiDragElements.forEach(function(multiDragElement) {
- unsetRect(multiDragElement);
- });
- }
- if (_this2.options.sort) {
- removeMultiDragElements();
- }
- });
- },
- dragOver: function dragOver(_ref8) {
- var target = _ref8.target, completed = _ref8.completed, cancel = _ref8.cancel;
- if (folding && ~multiDragElements.indexOf(target)) {
- completed(false);
- cancel();
- }
- },
- revert: function revert(_ref9) {
- var fromSortable = _ref9.fromSortable, rootEl2 = _ref9.rootEl, sortable = _ref9.sortable, dragRect = _ref9.dragRect;
- if (multiDragElements.length > 1) {
- multiDragElements.forEach(function(multiDragElement) {
- sortable.addAnimationState({
- target: multiDragElement,
- rect: folding ? getRect(multiDragElement) : dragRect
- });
- unsetRect(multiDragElement);
- multiDragElement.fromRect = dragRect;
- fromSortable.removeAnimationState(multiDragElement);
- });
- folding = false;
- insertMultiDragElements(!this.options.removeCloneOnHide, rootEl2);
- }
- },
- dragOverCompleted: function dragOverCompleted(_ref10) {
- var sortable = _ref10.sortable, isOwner = _ref10.isOwner, insertion = _ref10.insertion, activeSortable = _ref10.activeSortable, parentEl2 = _ref10.parentEl, putSortable2 = _ref10.putSortable;
- var options = this.options;
- if (insertion) {
- if (isOwner) {
- activeSortable._hideClone();
- }
- initialFolding = false;
- if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable2)) {
- var dragRectAbsolute = getRect(dragEl$1, false, true, true);
- multiDragElements.forEach(function(multiDragElement) {
- if (multiDragElement === dragEl$1)
- return;
- setRect(multiDragElement, dragRectAbsolute);
- parentEl2.appendChild(multiDragElement);
- });
- folding = true;
- }
- if (!isOwner) {
- if (!folding) {
- removeMultiDragElements();
- }
- if (multiDragElements.length > 1) {
- var clonesHiddenBefore = clonesHidden;
- activeSortable._showClone(sortable);
- if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {
- multiDragClones.forEach(function(clone2) {
- activeSortable.addAnimationState({
- target: clone2,
- rect: clonesFromRect
- });
- clone2.fromRect = clonesFromRect;
- clone2.thisAnimationDuration = null;
- });
- }
- } else {
- activeSortable._showClone(sortable);
- }
- }
- }
- },
- dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {
- var dragRect = _ref11.dragRect, isOwner = _ref11.isOwner, activeSortable = _ref11.activeSortable;
- multiDragElements.forEach(function(multiDragElement) {
- multiDragElement.thisAnimationDuration = null;
- });
- if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {
- clonesFromRect = _extends({}, dragRect);
- var dragMatrix = matrix(dragEl$1, true);
- clonesFromRect.top -= dragMatrix.f;
- clonesFromRect.left -= dragMatrix.e;
- }
- },
- dragOverAnimationComplete: function dragOverAnimationComplete() {
- if (folding) {
- folding = false;
- removeMultiDragElements();
- }
- },
- drop: function drop3(_ref12) {
- var evt = _ref12.originalEvent, rootEl2 = _ref12.rootEl, parentEl2 = _ref12.parentEl, sortable = _ref12.sortable, dispatchSortableEvent = _ref12.dispatchSortableEvent, oldIndex2 = _ref12.oldIndex, putSortable2 = _ref12.putSortable;
- var toSortable = putSortable2 || this.sortable;
- if (!evt)
- return;
- var options = this.options, children = parentEl2.children;
- if (!dragStarted) {
- if (options.multiDragKey && !this.multiDragKeyDown) {
- this._deselectMultiDrag();
- }
- toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));
- if (!~multiDragElements.indexOf(dragEl$1)) {
- multiDragElements.push(dragEl$1);
- dispatchEvent({
- sortable,
- rootEl: rootEl2,
- name: "select",
- targetEl: dragEl$1,
- originalEvt: evt
- });
- if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {
- var lastIndex = index(lastMultiDragSelect), currentIndex = index(dragEl$1);
- if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {
- var n, i;
- if (currentIndex > lastIndex) {
- i = lastIndex;
- n = currentIndex;
- } else {
- i = currentIndex;
- n = lastIndex + 1;
- }
- for (; i < n; i++) {
- if (~multiDragElements.indexOf(children[i]))
- continue;
- toggleClass(children[i], options.selectedClass, true);
- multiDragElements.push(children[i]);
- dispatchEvent({
- sortable,
- rootEl: rootEl2,
- name: "select",
- targetEl: children[i],
- originalEvt: evt
- });
- }
- }
- } else {
- lastMultiDragSelect = dragEl$1;
- }
- multiDragSortable = toSortable;
- } else {
- multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);
- lastMultiDragSelect = null;
- dispatchEvent({
- sortable,
- rootEl: rootEl2,
- name: "deselect",
- targetEl: dragEl$1,
- originalEvt: evt
- });
- }
- }
- if (dragStarted && this.isMultiDrag) {
- folding = false;
- if ((parentEl2[expando].options.sort || parentEl2 !== rootEl2) && multiDragElements.length > 1) {
- var dragRect = getRect(dragEl$1), multiDragIndex = index(dragEl$1, ":not(." + this.options.selectedClass + ")");
- if (!initialFolding && options.animation)
- dragEl$1.thisAnimationDuration = null;
- toSortable.captureAnimationState();
- if (!initialFolding) {
- if (options.animation) {
- dragEl$1.fromRect = dragRect;
- multiDragElements.forEach(function(multiDragElement) {
- multiDragElement.thisAnimationDuration = null;
- if (multiDragElement !== dragEl$1) {
- var rect = folding ? getRect(multiDragElement) : dragRect;
- multiDragElement.fromRect = rect;
- toSortable.addAnimationState({
- target: multiDragElement,
- rect
- });
- }
- });
- }
- removeMultiDragElements();
- multiDragElements.forEach(function(multiDragElement) {
- if (children[multiDragIndex]) {
- parentEl2.insertBefore(multiDragElement, children[multiDragIndex]);
- } else {
- parentEl2.appendChild(multiDragElement);
- }
- multiDragIndex++;
- });
- if (oldIndex2 === index(dragEl$1)) {
- var update = false;
- multiDragElements.forEach(function(multiDragElement) {
- if (multiDragElement.sortableIndex !== index(multiDragElement)) {
- update = true;
- return;
- }
- });
- if (update) {
- dispatchSortableEvent("update");
- }
- }
- }
- multiDragElements.forEach(function(multiDragElement) {
- unsetRect(multiDragElement);
- });
- toSortable.animateAll();
- }
- multiDragSortable = toSortable;
- }
- if (rootEl2 === parentEl2 || putSortable2 && putSortable2.lastPutMode !== "clone") {
- multiDragClones.forEach(function(clone2) {
- clone2.parentNode && clone2.parentNode.removeChild(clone2);
- });
- }
- },
- nullingGlobal: function nullingGlobal() {
- this.isMultiDrag = dragStarted = false;
- multiDragClones.length = 0;
- },
- destroyGlobal: function destroyGlobal() {
- this._deselectMultiDrag();
- off(document, "pointerup", this._deselectMultiDrag);
- off(document, "mouseup", this._deselectMultiDrag);
- off(document, "touchend", this._deselectMultiDrag);
- off(document, "keydown", this._checkKeyDown);
- off(document, "keyup", this._checkKeyUp);
- },
- _deselectMultiDrag: function _deselectMultiDrag(evt) {
- if (typeof dragStarted !== "undefined" && dragStarted)
- return;
- if (multiDragSortable !== this.sortable)
- return;
- if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false))
- return;
- if (evt && evt.button !== 0)
- return;
- while (multiDragElements.length) {
- var el = multiDragElements[0];
- toggleClass(el, this.options.selectedClass, false);
- multiDragElements.shift();
- dispatchEvent({
- sortable: this.sortable,
- rootEl: this.sortable.el,
- name: "deselect",
- targetEl: el,
- originalEvt: evt
- });
- }
- },
- _checkKeyDown: function _checkKeyDown(evt) {
- if (evt.key === this.options.multiDragKey) {
- this.multiDragKeyDown = true;
- }
- },
- _checkKeyUp: function _checkKeyUp(evt) {
- if (evt.key === this.options.multiDragKey) {
- this.multiDragKeyDown = false;
- }
- }
- };
- return _extends(MultiDrag, {
- // Static methods & properties
- pluginName: "multiDrag",
- utils: {
- /**
- * Selects the provided multi-drag item
- * @param {HTMLElement} el The element to be selected
- */
- select: function select(el) {
- var sortable = el.parentNode[expando];
- if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el))
- return;
- if (multiDragSortable && multiDragSortable !== sortable) {
- multiDragSortable.multiDrag._deselectMultiDrag();
- multiDragSortable = sortable;
- }
- toggleClass(el, sortable.options.selectedClass, true);
- multiDragElements.push(el);
- },
- /**
- * Deselects the provided multi-drag item
- * @param {HTMLElement} el The element to be deselected
- */
- deselect: function deselect(el) {
- var sortable = el.parentNode[expando], index2 = multiDragElements.indexOf(el);
- if (!sortable || !sortable.options.multiDrag || !~index2)
- return;
- toggleClass(el, sortable.options.selectedClass, false);
- multiDragElements.splice(index2, 1);
- }
- },
- eventProperties: function eventProperties() {
- var _this3 = this;
- var oldIndicies = [], newIndicies = [];
- multiDragElements.forEach(function(multiDragElement) {
- oldIndicies.push({
- multiDragElement,
- index: multiDragElement.sortableIndex
- });
- var newIndex2;
- if (folding && multiDragElement !== dragEl$1) {
- newIndex2 = -1;
- } else if (folding) {
- newIndex2 = index(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
- } else {
- newIndex2 = index(multiDragElement);
- }
- newIndicies.push({
- multiDragElement,
- index: newIndex2
- });
- });
- return {
- items: _toConsumableArray(multiDragElements),
- clones: [].concat(multiDragClones),
- oldIndicies,
- newIndicies
- };
- },
- optionListeners: {
- multiDragKey: function multiDragKey(key) {
- key = key.toLowerCase();
- if (key === "ctrl") {
- key = "Control";
- } else if (key.length > 1) {
- key = key.charAt(0).toUpperCase() + key.substr(1);
- }
- return key;
- }
- }
- });
- }
- function insertMultiDragElements(clonesInserted, rootEl2) {
- multiDragElements.forEach(function(multiDragElement, i) {
- var target = rootEl2.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];
- if (target) {
- rootEl2.insertBefore(multiDragElement, target);
- } else {
- rootEl2.appendChild(multiDragElement);
- }
- });
- }
- function insertMultiDragClones(elementsInserted, rootEl2) {
- multiDragClones.forEach(function(clone2, i) {
- var target = rootEl2.children[clone2.sortableIndex + (elementsInserted ? Number(i) : 0)];
- if (target) {
- rootEl2.insertBefore(clone2, target);
- } else {
- rootEl2.appendChild(clone2);
- }
- });
- }
- function removeMultiDragElements() {
- multiDragElements.forEach(function(multiDragElement) {
- if (multiDragElement === dragEl$1)
- return;
- multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);
- });
- }
- var version, IE11OrLess, Edge, FireFox, Safari, IOS, ChromeForAndroid, captureMode, R_SPACE, _throttleTimeout, expando, plugins, defaults, PluginManager, _excluded, pluginEvent2, dragEl, parentEl, ghostEl, rootEl, nextEl, lastDownEl, cloneEl, cloneHidden, oldIndex, newIndex, oldDraggableIndex, newDraggableIndex, activeGroup, putSortable, awaitingDragStarted, ignoreNextClick, sortables, tapEvt, touchEvt, lastDx, lastDy, tapDistanceLeft, tapDistanceTop, moved, lastTarget, lastDirection, pastFirstInvertThresh, isCircumstantialInvert, targetMoveDistance, ghostRelativeParent, ghostRelativeParentInitialScroll, _silent, savedInputChecked, documentExists, PositionGhostAbsolutely, CSSFloatProperty, supportDraggable, supportCssPointerEvents, _detectDirection, _dragElInRowColumn, _detectNearestEmptySortable, _prepareGroup, _hideGhostForTarget, _unhideGhostForTarget, nearestEmptyInsertDetectEvent, _checkOutsideTargetEl, autoScrolls, scrollEl, scrollRootEl, scrolling, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval, autoScroll, drop, lastSwapEl, multiDragElements, multiDragClones, lastMultiDragSelect, multiDragSortable, initialFolding, folding, dragStarted, dragEl$1, clonesFromRect, clonesHidden, sortable_esm_default;
- var init_sortable_esm = __esm({
- "node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.js"() {
- version = "1.14.0";
- IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
- Edge = userAgent(/Edge/i);
- FireFox = userAgent(/firefox/i);
- Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
- IOS = userAgent(/iP(ad|od|hone)/i);
- ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
- captureMode = {
- capture: false,
- passive: false
- };
- R_SPACE = /\s+/g;
- expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
- plugins = [];
- defaults = {
- initializeByDefault: true
- };
- PluginManager = {
- mount: function mount(plugin) {
- for (var option2 in defaults) {
- if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
- plugin[option2] = defaults[option2];
- }
- }
- plugins.forEach(function(p) {
- if (p.pluginName === plugin.pluginName) {
- throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
- }
- });
- plugins.push(plugin);
- },
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
- var _this = this;
- this.eventCanceled = false;
- evt.cancel = function() {
- _this.eventCanceled = true;
- };
- var eventNameGlobal = eventName + "Global";
- plugins.forEach(function(plugin) {
- if (!sortable[plugin.pluginName])
- return;
- if (sortable[plugin.pluginName][eventNameGlobal]) {
- sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
- sortable
- }, evt));
- }
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
- sortable[plugin.pluginName][eventName](_objectSpread2({
- sortable
- }, evt));
- }
- });
- },
- initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
- plugins.forEach(function(plugin) {
- var pluginName = plugin.pluginName;
- if (!sortable.options[pluginName] && !plugin.initializeByDefault)
- return;
- var initialized = new plugin(sortable, el, sortable.options);
- initialized.sortable = sortable;
- initialized.options = sortable.options;
- sortable[pluginName] = initialized;
- _extends(defaults2, initialized.defaults);
- });
- for (var option2 in sortable.options) {
- if (!sortable.options.hasOwnProperty(option2))
- continue;
- var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
- if (typeof modified !== "undefined") {
- sortable.options[option2] = modified;
- }
- }
- },
- getEventProperties: function getEventProperties(name, sortable) {
- var eventProperties = {};
- plugins.forEach(function(plugin) {
- if (typeof plugin.eventProperties !== "function")
- return;
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
- });
- return eventProperties;
- },
- modifyOption: function modifyOption(sortable, name, value) {
- var modifiedValue;
- plugins.forEach(function(plugin) {
- if (!sortable[plugin.pluginName])
- return;
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
- modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
- }
- });
- return modifiedValue;
- }
- };
- _excluded = ["evt"];
- pluginEvent2 = function pluginEvent3(eventName, sortable) {
- var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
- dragEl,
- parentEl,
- ghostEl,
- rootEl,
- nextEl,
- lastDownEl,
- cloneEl,
- cloneHidden,
- dragStarted: moved,
- putSortable,
- activeSortable: Sortable.active,
- originalEvent,
- oldIndex,
- oldDraggableIndex,
- newIndex,
- newDraggableIndex,
- hideGhostForTarget: _hideGhostForTarget,
- unhideGhostForTarget: _unhideGhostForTarget,
- cloneNowHidden: function cloneNowHidden() {
- cloneHidden = true;
- },
- cloneNowShown: function cloneNowShown() {
- cloneHidden = false;
- },
- dispatchSortableEvent: function dispatchSortableEvent(name) {
- _dispatchEvent({
- sortable,
- name,
- originalEvent
- });
- }
- }, data));
- };
- awaitingDragStarted = false;
- ignoreNextClick = false;
- sortables = [];
- pastFirstInvertThresh = false;
- isCircumstantialInvert = false;
- ghostRelativeParentInitialScroll = [];
- _silent = false;
- savedInputChecked = [];
- documentExists = typeof document !== "undefined";
- PositionGhostAbsolutely = IOS;
- CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
- supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
- supportCssPointerEvents = function() {
- if (!documentExists)
- return;
- if (IE11OrLess) {
- return false;
- }
- var el = document.createElement("x");
- el.style.cssText = "pointer-events:auto";
- return el.style.pointerEvents === "auto";
- }();
- _detectDirection = function _detectDirection2(el, options) {
- var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
- if (elCSS.display === "flex") {
- return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
- }
- if (elCSS.display === "grid") {
- return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
- }
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
- var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
- return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
- }
- return child1 && (firstChildCSS.display === "block" || firstChildCSS.display === "flex" || firstChildCSS.display === "table" || firstChildCSS.display === "grid" || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === "none" || child2 && elCSS[CSSFloatProperty] === "none" && firstChildWidth + secondChildWidth > elWidth) ? "vertical" : "horizontal";
- };
- _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
- var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height;
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
- };
- _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
- var ret;
- sortables.some(function(sortable) {
- var threshold = sortable[expando].options.emptyInsertThreshold;
- if (!threshold || lastChild(sortable))
- return;
- var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
- if (insideHorizontally && insideVertically) {
- return ret = sortable;
- }
- });
- return ret;
- };
- _prepareGroup = function _prepareGroup2(options) {
- function toFn(value, pull) {
- return function(to, from, dragEl2, evt) {
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
- if (value == null && (pull || sameGroup)) {
- return true;
- } else if (value == null || value === false) {
- return false;
- } else if (pull && value === "clone") {
- return value;
- } else if (typeof value === "function") {
- return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
- } else {
- var otherGroup = (pull ? to : from).options.group.name;
- return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
- }
- };
- }
- var group = {};
- var originalGroup = options.group;
- if (!originalGroup || _typeof(originalGroup) != "object") {
- originalGroup = {
- name: originalGroup
- };
- }
- group.name = originalGroup.name;
- group.checkPull = toFn(originalGroup.pull, true);
- group.checkPut = toFn(originalGroup.put);
- group.revertClone = originalGroup.revertClone;
- options.group = group;
- };
- _hideGhostForTarget = function _hideGhostForTarget2() {
- if (!supportCssPointerEvents && ghostEl) {
- css(ghostEl, "display", "none");
- }
- };
- _unhideGhostForTarget = function _unhideGhostForTarget2() {
- if (!supportCssPointerEvents && ghostEl) {
- css(ghostEl, "display", "");
- }
- };
- if (documentExists) {
- document.addEventListener("click", function(evt) {
- if (ignoreNextClick) {
- evt.preventDefault();
- evt.stopPropagation && evt.stopPropagation();
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
- ignoreNextClick = false;
- return false;
- }
- }, true);
- }
- nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
- if (dragEl) {
- evt = evt.touches ? evt.touches[0] : evt;
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
- if (nearest) {
- var event = {};
- for (var i in evt) {
- if (evt.hasOwnProperty(i)) {
- event[i] = evt[i];
- }
- }
- event.target = event.rootEl = nearest;
- event.preventDefault = void 0;
- event.stopPropagation = void 0;
- nearest[expando]._onDragOver(event);
- }
- }
- };
- _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
- if (dragEl) {
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
- }
- };
- Sortable.prototype = /** @lends Sortable.prototype */
- {
- constructor: Sortable,
- _isOutsideThisEl: function _isOutsideThisEl(target) {
- if (!this.el.contains(target) && target !== this.el) {
- lastTarget = null;
- }
- },
- _getDirection: function _getDirection(evt, target) {
- return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
- },
- _onTapStart: function _onTapStart(evt) {
- if (!evt.cancelable)
- return;
- var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter;
- _saveInputCheckedState(el);
- if (dragEl) {
- return;
- }
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
- return;
- }
- if (originalTarget.isContentEditable) {
- return;
- }
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
- return;
- }
- target = closest(target, options.draggable, el, false);
- if (target && target.animated) {
- return;
- }
- if (lastDownEl === target) {
- return;
- }
- oldIndex = index(target);
- oldDraggableIndex = index(target, options.draggable);
- if (typeof filter === "function") {
- if (filter.call(this, evt, target, this)) {
- _dispatchEvent({
- sortable: _this,
- rootEl: originalTarget,
- name: "filter",
- targetEl: target,
- toEl: el,
- fromEl: el
- });
- pluginEvent2("filter", _this, {
- evt
- });
- preventOnFilter && evt.cancelable && evt.preventDefault();
- return;
- }
- } else if (filter) {
- filter = filter.split(",").some(function(criteria) {
- criteria = closest(originalTarget, criteria.trim(), el, false);
- if (criteria) {
- _dispatchEvent({
- sortable: _this,
- rootEl: criteria,
- name: "filter",
- targetEl: target,
- fromEl: el,
- toEl: el
- });
- pluginEvent2("filter", _this, {
- evt
- });
- return true;
- }
- });
- if (filter) {
- preventOnFilter && evt.cancelable && evt.preventDefault();
- return;
- }
- }
- if (options.handle && !closest(originalTarget, options.handle, el, false)) {
- return;
- }
- this._prepareDragStart(evt, touch, target);
- },
- _prepareDragStart: function _prepareDragStart(evt, touch, target) {
- var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
- if (target && !dragEl && target.parentNode === el) {
- var dragRect = getRect(target);
- rootEl = el;
- dragEl = target;
- parentEl = dragEl.parentNode;
- nextEl = dragEl.nextSibling;
- lastDownEl = target;
- activeGroup = options.group;
- Sortable.dragged = dragEl;
- tapEvt = {
- target: dragEl,
- clientX: (touch || evt).clientX,
- clientY: (touch || evt).clientY
- };
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
- tapDistanceTop = tapEvt.clientY - dragRect.top;
- this._lastX = (touch || evt).clientX;
- this._lastY = (touch || evt).clientY;
- dragEl.style["will-change"] = "all";
- dragStartFn = function dragStartFn2() {
- pluginEvent2("delayEnded", _this, {
- evt
- });
- if (Sortable.eventCanceled) {
- _this._onDrop();
- return;
- }
- _this._disableDelayedDragEvents();
- if (!FireFox && _this.nativeDraggable) {
- dragEl.draggable = true;
- }
- _this._triggerDragStart(evt, touch);
- _dispatchEvent({
- sortable: _this,
- name: "choose",
- originalEvent: evt
- });
- toggleClass(dragEl, options.chosenClass, true);
- };
- options.ignore.split(",").forEach(function(criteria) {
- find(dragEl, criteria.trim(), _disableDraggable);
- });
- on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
- on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
- on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
- on(ownerDocument, "mouseup", _this._onDrop);
- on(ownerDocument, "touchend", _this._onDrop);
- on(ownerDocument, "touchcancel", _this._onDrop);
- if (FireFox && this.nativeDraggable) {
- this.options.touchStartThreshold = 4;
- dragEl.draggable = true;
- }
- pluginEvent2("delayStart", this, {
- evt
- });
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
- if (Sortable.eventCanceled) {
- this._onDrop();
- return;
- }
- on(ownerDocument, "mouseup", _this._disableDelayedDrag);
- on(ownerDocument, "touchend", _this._disableDelayedDrag);
- on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
- on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
- on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
- options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
- } else {
- dragStartFn();
- }
- }
- },
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e) {
- var touch = e.touches ? e.touches[0] : e;
- if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
- this._disableDelayedDrag();
- }
- },
- _disableDelayedDrag: function _disableDelayedDrag() {
- dragEl && _disableDraggable(dragEl);
- clearTimeout(this._dragStartTimer);
- this._disableDelayedDragEvents();
- },
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
- var ownerDocument = this.el.ownerDocument;
- off(ownerDocument, "mouseup", this._disableDelayedDrag);
- off(ownerDocument, "touchend", this._disableDelayedDrag);
- off(ownerDocument, "touchcancel", this._disableDelayedDrag);
- off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
- off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
- off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
- },
- _triggerDragStart: function _triggerDragStart(evt, touch) {
- touch = touch || evt.pointerType == "touch" && evt;
- if (!this.nativeDraggable || touch) {
- if (this.options.supportPointer) {
- on(document, "pointermove", this._onTouchMove);
- } else if (touch) {
- on(document, "touchmove", this._onTouchMove);
- } else {
- on(document, "mousemove", this._onTouchMove);
- }
- } else {
- on(dragEl, "dragend", this);
- on(rootEl, "dragstart", this._onDragStart);
- }
- try {
- if (document.selection) {
- _nextTick(function() {
- document.selection.empty();
- });
- } else {
- window.getSelection().removeAllRanges();
- }
- } catch (err) {
- }
- },
- _dragStarted: function _dragStarted(fallback, evt) {
- awaitingDragStarted = false;
- if (rootEl && dragEl) {
- pluginEvent2("dragStarted", this, {
- evt
- });
- if (this.nativeDraggable) {
- on(document, "dragover", _checkOutsideTargetEl);
- }
- var options = this.options;
- !fallback && toggleClass(dragEl, options.dragClass, false);
- toggleClass(dragEl, options.ghostClass, true);
- Sortable.active = this;
- fallback && this._appendGhost();
- _dispatchEvent({
- sortable: this,
- name: "start",
- originalEvent: evt
- });
- } else {
- this._nulling();
- }
- },
- _emulateDragOver: function _emulateDragOver() {
- if (touchEvt) {
- this._lastX = touchEvt.clientX;
- this._lastY = touchEvt.clientY;
- _hideGhostForTarget();
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
- var parent = target;
- while (target && target.shadowRoot) {
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
- if (target === parent)
- break;
- parent = target;
- }
- dragEl.parentNode[expando]._isOutsideThisEl(target);
- if (parent) {
- do {
- if (parent[expando]) {
- var inserted = void 0;
- inserted = parent[expando]._onDragOver({
- clientX: touchEvt.clientX,
- clientY: touchEvt.clientY,
- target,
- rootEl: parent
- });
- if (inserted && !this.options.dragoverBubble) {
- break;
- }
- }
- target = parent;
- } while (parent = parent.parentNode);
- }
- _unhideGhostForTarget();
- }
- },
- _onTouchMove: function _onTouchMove(evt) {
- if (tapEvt) {
- var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
- if (!Sortable.active && !awaitingDragStarted) {
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
- return;
- }
- this._onDragStart(evt, true);
- }
- if (ghostEl) {
- if (ghostMatrix) {
- ghostMatrix.e += dx - (lastDx || 0);
- ghostMatrix.f += dy - (lastDy || 0);
- } else {
- ghostMatrix = {
- a: 1,
- b: 0,
- c: 0,
- d: 1,
- e: dx,
- f: dy
- };
- }
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
- css(ghostEl, "webkitTransform", cssMatrix);
- css(ghostEl, "mozTransform", cssMatrix);
- css(ghostEl, "msTransform", cssMatrix);
- css(ghostEl, "transform", cssMatrix);
- lastDx = dx;
- lastDy = dy;
- touchEvt = touch;
- }
- evt.cancelable && evt.preventDefault();
- }
- },
- _appendGhost: function _appendGhost() {
- if (!ghostEl) {
- var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
- if (PositionGhostAbsolutely) {
- ghostRelativeParent = container;
- while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
- ghostRelativeParent = ghostRelativeParent.parentNode;
- }
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
- if (ghostRelativeParent === document)
- ghostRelativeParent = getWindowScrollingElement();
- rect.top += ghostRelativeParent.scrollTop;
- rect.left += ghostRelativeParent.scrollLeft;
- } else {
- ghostRelativeParent = getWindowScrollingElement();
- }
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
- }
- ghostEl = dragEl.cloneNode(true);
- toggleClass(ghostEl, options.ghostClass, false);
- toggleClass(ghostEl, options.fallbackClass, true);
- toggleClass(ghostEl, options.dragClass, true);
- css(ghostEl, "transition", "");
- css(ghostEl, "transform", "");
- css(ghostEl, "box-sizing", "border-box");
- css(ghostEl, "margin", 0);
- css(ghostEl, "top", rect.top);
- css(ghostEl, "left", rect.left);
- css(ghostEl, "width", rect.width);
- css(ghostEl, "height", rect.height);
- css(ghostEl, "opacity", "0.8");
- css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
- css(ghostEl, "zIndex", "100000");
- css(ghostEl, "pointerEvents", "none");
- Sortable.ghost = ghostEl;
- container.appendChild(ghostEl);
- css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
- }
- },
- _onDragStart: function _onDragStart(evt, fallback) {
- var _this = this;
- var dataTransfer = evt.dataTransfer;
- var options = _this.options;
- pluginEvent2("dragStart", this, {
- evt
- });
- if (Sortable.eventCanceled) {
- this._onDrop();
- return;
- }
- pluginEvent2("setupClone", this);
- if (!Sortable.eventCanceled) {
- cloneEl = clone(dragEl);
- cloneEl.draggable = false;
- cloneEl.style["will-change"] = "";
- this._hideClone();
- toggleClass(cloneEl, this.options.chosenClass, false);
- Sortable.clone = cloneEl;
- }
- _this.cloneId = _nextTick(function() {
- pluginEvent2("clone", _this);
- if (Sortable.eventCanceled)
- return;
- if (!_this.options.removeCloneOnHide) {
- rootEl.insertBefore(cloneEl, dragEl);
- }
- _this._hideClone();
- _dispatchEvent({
- sortable: _this,
- name: "clone"
- });
- });
- !fallback && toggleClass(dragEl, options.dragClass, true);
- if (fallback) {
- ignoreNextClick = true;
- _this._loopId = setInterval(_this._emulateDragOver, 50);
- } else {
- off(document, "mouseup", _this._onDrop);
- off(document, "touchend", _this._onDrop);
- off(document, "touchcancel", _this._onDrop);
- if (dataTransfer) {
- dataTransfer.effectAllowed = "move";
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
- }
- on(document, "drop", _this);
- css(dragEl, "transform", "translateZ(0)");
- }
- awaitingDragStarted = true;
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
- on(document, "selectstart", _this);
- moved = true;
- if (Safari) {
- css(document.body, "user-select", "none");
- }
- },
- // Returns true - if no further action is needed (either inserted or another condition)
- _onDragOver: function _onDragOver(evt) {
- var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false;
- if (_silent)
- return;
- function dragOverEvent(name, extra) {
- pluginEvent2(name, _this, _objectSpread2({
- evt,
- isOwner,
- axis: vertical ? "vertical" : "horizontal",
- revert,
- dragRect,
- targetRect,
- canSort,
- fromSortable,
- target,
- completed,
- onMove: function onMove(target2, after2) {
- return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
- },
- changed
- }, extra));
- }
- function capture() {
- dragOverEvent("dragOverAnimationCapture");
- _this.captureAnimationState();
- if (_this !== fromSortable) {
- fromSortable.captureAnimationState();
- }
- }
- function completed(insertion) {
- dragOverEvent("dragOverCompleted", {
- insertion
- });
- if (insertion) {
- if (isOwner) {
- activeSortable._hideClone();
- } else {
- activeSortable._showClone(_this);
- }
- if (_this !== fromSortable) {
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
- toggleClass(dragEl, options.ghostClass, true);
- }
- if (putSortable !== _this && _this !== Sortable.active) {
- putSortable = _this;
- } else if (_this === Sortable.active && putSortable) {
- putSortable = null;
- }
- if (fromSortable === _this) {
- _this._ignoreWhileAnimating = target;
- }
- _this.animateAll(function() {
- dragOverEvent("dragOverAnimationComplete");
- _this._ignoreWhileAnimating = null;
- });
- if (_this !== fromSortable) {
- fromSortable.animateAll();
- fromSortable._ignoreWhileAnimating = null;
- }
- }
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
- lastTarget = null;
- }
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
- !insertion && nearestEmptyInsertDetectEvent(evt);
- }
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
- return completedFired = true;
- }
- function changed() {
- newIndex = index(dragEl);
- newDraggableIndex = index(dragEl, options.draggable);
- _dispatchEvent({
- sortable: _this,
- name: "change",
- toEl: el,
- newIndex,
- newDraggableIndex,
- originalEvent: evt
- });
- }
- if (evt.preventDefault !== void 0) {
- evt.cancelable && evt.preventDefault();
- }
- target = closest(target, options.draggable, el, true);
- dragOverEvent("dragOver");
- if (Sortable.eventCanceled)
- return completedFired;
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
- return completed(false);
- }
- ignoreNextClick = false;
- if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
- vertical = this._getDirection(evt, target) === "vertical";
- dragRect = getRect(dragEl);
- dragOverEvent("dragOverValid");
- if (Sortable.eventCanceled)
- return completedFired;
- if (revert) {
- parentEl = rootEl;
- capture();
- this._hideClone();
- dragOverEvent("revert");
- if (!Sortable.eventCanceled) {
- if (nextEl) {
- rootEl.insertBefore(dragEl, nextEl);
- } else {
- rootEl.appendChild(dragEl);
- }
- }
- return completed(true);
- }
- var elLastChild = lastChild(el, options.draggable);
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
- if (elLastChild === dragEl) {
- return completed(false);
- }
- if (elLastChild && el === evt.target) {
- target = elLastChild;
- }
- if (target) {
- targetRect = getRect(target);
- }
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
- capture();
- el.appendChild(dragEl);
- parentEl = el;
- changed();
- return completed(true);
- }
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
- var firstChild = getChild(el, 0, options, true);
- if (firstChild === dragEl) {
- return completed(false);
- }
- target = firstChild;
- targetRect = getRect(target);
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
- capture();
- el.insertBefore(dragEl, firstChild);
- parentEl = el;
- changed();
- return completed(true);
- }
- } else if (target.parentNode === el) {
- targetRect = getRect(target);
- var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? "top" : "left", scrolledPastTop = isScrolledPast(target, "top", "top") || isScrolledPast(dragEl, "top", "top"), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
- if (lastTarget !== target) {
- targetBeforeFirstSwap = targetRect[side1];
- pastFirstInvertThresh = false;
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
- }
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
- var sibling;
- if (direction !== 0) {
- var dragIndex = index(dragEl);
- do {
- dragIndex -= direction;
- sibling = parentEl.children[dragIndex];
- } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
- }
- if (direction === 0 || sibling === target) {
- return completed(false);
- }
- lastTarget = target;
- lastDirection = direction;
- var nextSibling = target.nextElementSibling, after = false;
- after = direction === 1;
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
- if (moveVector !== false) {
- if (moveVector === 1 || moveVector === -1) {
- after = moveVector === 1;
- }
- _silent = true;
- setTimeout(_unsilent, 30);
- capture();
- if (after && !nextSibling) {
- el.appendChild(dragEl);
- } else {
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
- }
- if (scrolledPastTop) {
- scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
- }
- parentEl = dragEl.parentNode;
- if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
- targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
- }
- changed();
- return completed(true);
- }
- }
- if (el.contains(dragEl)) {
- return completed(false);
- }
- }
- return false;
- },
- _ignoreWhileAnimating: null,
- _offMoveEvents: function _offMoveEvents() {
- off(document, "mousemove", this._onTouchMove);
- off(document, "touchmove", this._onTouchMove);
- off(document, "pointermove", this._onTouchMove);
- off(document, "dragover", nearestEmptyInsertDetectEvent);
- off(document, "mousemove", nearestEmptyInsertDetectEvent);
- off(document, "touchmove", nearestEmptyInsertDetectEvent);
- },
- _offUpEvents: function _offUpEvents() {
- var ownerDocument = this.el.ownerDocument;
- off(ownerDocument, "mouseup", this._onDrop);
- off(ownerDocument, "touchend", this._onDrop);
- off(ownerDocument, "pointerup", this._onDrop);
- off(ownerDocument, "touchcancel", this._onDrop);
- off(document, "selectstart", this);
- },
- _onDrop: function _onDrop(evt) {
- var el = this.el, options = this.options;
- newIndex = index(dragEl);
- newDraggableIndex = index(dragEl, options.draggable);
- pluginEvent2("drop", this, {
- evt
- });
- parentEl = dragEl && dragEl.parentNode;
- newIndex = index(dragEl);
- newDraggableIndex = index(dragEl, options.draggable);
- if (Sortable.eventCanceled) {
- this._nulling();
- return;
- }
- awaitingDragStarted = false;
- isCircumstantialInvert = false;
- pastFirstInvertThresh = false;
- clearInterval(this._loopId);
- clearTimeout(this._dragStartTimer);
- _cancelNextTick(this.cloneId);
- _cancelNextTick(this._dragStartId);
- if (this.nativeDraggable) {
- off(document, "drop", this);
- off(el, "dragstart", this._onDragStart);
- }
- this._offMoveEvents();
- this._offUpEvents();
- if (Safari) {
- css(document.body, "user-select", "");
- }
- css(dragEl, "transform", "");
- if (evt) {
- if (moved) {
- evt.cancelable && evt.preventDefault();
- !options.dropBubble && evt.stopPropagation();
- }
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
- cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
- }
- if (dragEl) {
- if (this.nativeDraggable) {
- off(dragEl, "dragend", this);
- }
- _disableDraggable(dragEl);
- dragEl.style["will-change"] = "";
- if (moved && !awaitingDragStarted) {
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
- }
- toggleClass(dragEl, this.options.chosenClass, false);
- _dispatchEvent({
- sortable: this,
- name: "unchoose",
- toEl: parentEl,
- newIndex: null,
- newDraggableIndex: null,
- originalEvent: evt
- });
- if (rootEl !== parentEl) {
- if (newIndex >= 0) {
- _dispatchEvent({
- rootEl: parentEl,
- name: "add",
- toEl: parentEl,
- fromEl: rootEl,
- originalEvent: evt
- });
- _dispatchEvent({
- sortable: this,
- name: "remove",
- toEl: parentEl,
- originalEvent: evt
- });
- _dispatchEvent({
- rootEl: parentEl,
- name: "sort",
- toEl: parentEl,
- fromEl: rootEl,
- originalEvent: evt
- });
- _dispatchEvent({
- sortable: this,
- name: "sort",
- toEl: parentEl,
- originalEvent: evt
- });
- }
- putSortable && putSortable.save();
- } else {
- if (newIndex !== oldIndex) {
- if (newIndex >= 0) {
- _dispatchEvent({
- sortable: this,
- name: "update",
- toEl: parentEl,
- originalEvent: evt
- });
- _dispatchEvent({
- sortable: this,
- name: "sort",
- toEl: parentEl,
- originalEvent: evt
- });
- }
- }
- }
- if (Sortable.active) {
- if (newIndex == null || newIndex === -1) {
- newIndex = oldIndex;
- newDraggableIndex = oldDraggableIndex;
- }
- _dispatchEvent({
- sortable: this,
- name: "end",
- toEl: parentEl,
- originalEvent: evt
- });
- this.save();
- }
- }
- }
- this._nulling();
- },
- _nulling: function _nulling() {
- pluginEvent2("nulling", this);
- rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
- savedInputChecked.forEach(function(el) {
- el.checked = true;
- });
- savedInputChecked.length = lastDx = lastDy = 0;
- },
- handleEvent: function handleEvent(evt) {
- switch (evt.type) {
- case "drop":
- case "dragend":
- this._onDrop(evt);
- break;
- case "dragenter":
- case "dragover":
- if (dragEl) {
- this._onDragOver(evt);
- _globalDragOver(evt);
- }
- break;
- case "selectstart":
- evt.preventDefault();
- break;
- }
- },
- /**
- * Serializes the item into an array of string.
- * @returns {String[]}
- */
- toArray: function toArray() {
- var order = [], el, children = this.el.children, i = 0, n = children.length, options = this.options;
- for (; i < n; i++) {
- el = children[i];
- if (closest(el, options.draggable, this.el, false)) {
- order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
- }
- }
- return order;
- },
- /**
- * Sorts the elements according to the array.
- * @param {String[]} order order of the items
- */
- sort: function sort(order, useAnimation) {
- var items = {}, rootEl2 = this.el;
- this.toArray().forEach(function(id, i) {
- var el = rootEl2.children[i];
- if (closest(el, this.options.draggable, rootEl2, false)) {
- items[id] = el;
- }
- }, this);
- useAnimation && this.captureAnimationState();
- order.forEach(function(id) {
- if (items[id]) {
- rootEl2.removeChild(items[id]);
- rootEl2.appendChild(items[id]);
- }
- });
- useAnimation && this.animateAll();
- },
- /**
- * Save the current sorting
- */
- save: function save() {
- var store = this.options.store;
- store && store.set && store.set(this);
- },
- /**
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
- * @param {HTMLElement} el
- * @param {String} [selector] default: `options.draggable`
- * @returns {HTMLElement|null}
- */
- closest: function closest$1(el, selector) {
- return closest(el, selector || this.options.draggable, this.el, false);
- },
- /**
- * Set/get option
- * @param {string} name
- * @param {*} [value]
- * @returns {*}
- */
- option: function option(name, value) {
- var options = this.options;
- if (value === void 0) {
- return options[name];
- } else {
- var modifiedValue = PluginManager.modifyOption(this, name, value);
- if (typeof modifiedValue !== "undefined") {
- options[name] = modifiedValue;
- } else {
- options[name] = value;
- }
- if (name === "group") {
- _prepareGroup(options);
- }
- }
- },
- /**
- * Destroy
- */
- destroy: function destroy() {
- pluginEvent2("destroy", this);
- var el = this.el;
- el[expando] = null;
- off(el, "mousedown", this._onTapStart);
- off(el, "touchstart", this._onTapStart);
- off(el, "pointerdown", this._onTapStart);
- if (this.nativeDraggable) {
- off(el, "dragover", this);
- off(el, "dragenter", this);
- }
- Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
- el2.removeAttribute("draggable");
- });
- this._onDrop();
- this._disableDelayedDragEvents();
- sortables.splice(sortables.indexOf(this.el), 1);
- this.el = el = null;
- },
- _hideClone: function _hideClone() {
- if (!cloneHidden) {
- pluginEvent2("hideClone", this);
- if (Sortable.eventCanceled)
- return;
- css(cloneEl, "display", "none");
- if (this.options.removeCloneOnHide && cloneEl.parentNode) {
- cloneEl.parentNode.removeChild(cloneEl);
- }
- cloneHidden = true;
- }
- },
- _showClone: function _showClone(putSortable2) {
- if (putSortable2.lastPutMode !== "clone") {
- this._hideClone();
- return;
- }
- if (cloneHidden) {
- pluginEvent2("showClone", this);
- if (Sortable.eventCanceled)
- return;
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
- rootEl.insertBefore(cloneEl, dragEl);
- } else if (nextEl) {
- rootEl.insertBefore(cloneEl, nextEl);
- } else {
- rootEl.appendChild(cloneEl);
- }
- if (this.options.group.revertClone) {
- this.animate(dragEl, cloneEl);
- }
- css(cloneEl, "display", "");
- cloneHidden = false;
- }
- }
- };
- if (documentExists) {
- on(document, "touchmove", function(evt) {
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
- evt.preventDefault();
- }
- });
- }
- Sortable.utils = {
- on,
- off,
- css,
- find,
- is: function is(el, selector) {
- return !!closest(el, selector, el, false);
- },
- extend,
- throttle,
- closest,
- toggleClass,
- clone,
- index,
- nextTick: _nextTick,
- cancelNextTick: _cancelNextTick,
- detectDirection: _detectDirection,
- getChild
- };
- Sortable.get = function(element) {
- return element[expando];
- };
- Sortable.mount = function() {
- for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
- plugins2[_key] = arguments[_key];
- }
- if (plugins2[0].constructor === Array)
- plugins2 = plugins2[0];
- plugins2.forEach(function(plugin) {
- if (!plugin.prototype || !plugin.prototype.constructor) {
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
- }
- if (plugin.utils)
- Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
- PluginManager.mount(plugin);
- });
- };
- Sortable.create = function(el, options) {
- return new Sortable(el, options);
- };
- Sortable.version = version;
- autoScrolls = [];
- scrolling = false;
- autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
- if (!options.scroll)
- return;
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
- var scrollThisInstance = false, scrollCustomFn;
- if (scrollRootEl !== rootEl2) {
- scrollRootEl = rootEl2;
- clearAutoScrolls();
- scrollEl = options.scroll;
- scrollCustomFn = options.scrollFn;
- if (scrollEl === true) {
- scrollEl = getParentAutoScrollElement(rootEl2, true);
- }
- }
- var layersOut = 0;
- var currentParent = scrollEl;
- do {
- var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop;
- if (el === winScroller) {
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
- } else {
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
- }
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
- if (!autoScrolls[layersOut]) {
- for (var i = 0; i <= layersOut; i++) {
- if (!autoScrolls[i]) {
- autoScrolls[i] = {};
- }
- }
- }
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
- autoScrolls[layersOut].el = el;
- autoScrolls[layersOut].vx = vx;
- autoScrolls[layersOut].vy = vy;
- clearInterval(autoScrolls[layersOut].pid);
- if (vx != 0 || vy != 0) {
- scrollThisInstance = true;
- autoScrolls[layersOut].pid = setInterval(function() {
- if (isFallback && this.layer === 0) {
- Sortable.active._onTouchMove(touchEvt$1);
- }
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
- if (typeof scrollCustomFn === "function") {
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
- return;
- }
- }
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
- }.bind({
- layer: layersOut
- }), 24);
- }
- }
- layersOut++;
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
- scrolling = scrollThisInstance;
- }, 30);
- drop = function drop2(_ref) {
- var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
- if (!originalEvent)
- return;
- var toSortable = putSortable2 || activeSortable;
- hideGhostForTarget();
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
- unhideGhostForTarget();
- if (toSortable && !toSortable.el.contains(target)) {
- dispatchSortableEvent("spill");
- this.onSpill({
- dragEl: dragEl2,
- putSortable: putSortable2
- });
- }
- };
- Revert.prototype = {
- startIndex: null,
- dragStart: function dragStart(_ref2) {
- var oldDraggableIndex2 = _ref2.oldDraggableIndex;
- this.startIndex = oldDraggableIndex2;
- },
- onSpill: function onSpill(_ref3) {
- var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
- this.sortable.captureAnimationState();
- if (putSortable2) {
- putSortable2.captureAnimationState();
- }
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
- if (nextSibling) {
- this.sortable.el.insertBefore(dragEl2, nextSibling);
- } else {
- this.sortable.el.appendChild(dragEl2);
- }
- this.sortable.animateAll();
- if (putSortable2) {
- putSortable2.animateAll();
- }
- },
- drop
- };
- _extends(Revert, {
- pluginName: "revertOnSpill"
- });
- Remove.prototype = {
- onSpill: function onSpill2(_ref4) {
- var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
- var parentSortable = putSortable2 || this.sortable;
- parentSortable.captureAnimationState();
- dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
- parentSortable.animateAll();
- },
- drop
- };
- _extends(Remove, {
- pluginName: "removeOnSpill"
- });
- multiDragElements = [];
- multiDragClones = [];
- initialFolding = false;
- folding = false;
- dragStarted = false;
- Sortable.mount(new AutoScrollPlugin());
- Sortable.mount(Remove, Revert);
- sortable_esm_default = Sortable;
- }
- });
- // node_modules/.pnpm/vuedraggable@4.1.0_vue@3.4.27/node_modules/vuedraggable/dist/vuedraggable.umd.js
- var require_vuedraggable_umd = __commonJS({
- "node_modules/.pnpm/vuedraggable@4.1.0_vue@3.4.27/node_modules/vuedraggable/dist/vuedraggable.umd.js"(exports, module) {
- (function webpackUniversalModuleDefinition(root, factory) {
- if (typeof exports === "object" && typeof module === "object")
- module.exports = factory(require_vue(), (init_sortable_esm(), __toCommonJS(sortable_esm_exports)));
- else if (typeof define === "function" && define.amd)
- define([, "sortablejs"], factory);
- else if (typeof exports === "object")
- exports["vuedraggable"] = factory(require_vue(), (init_sortable_esm(), __toCommonJS(sortable_esm_exports)));
- else
- root["vuedraggable"] = factory(root["Vue"], root["Sortable"]);
- })(typeof self !== "undefined" ? self : exports, function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_a352__) {
- return (
- /******/
- function(modules) {
- var installedModules = {};
- function __webpack_require__(moduleId) {
- if (installedModules[moduleId]) {
- return installedModules[moduleId].exports;
- }
- var module2 = installedModules[moduleId] = {
- /******/
- i: moduleId,
- /******/
- l: false,
- /******/
- exports: {}
- /******/
- };
- modules[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__);
- module2.l = true;
- return module2.exports;
- }
- __webpack_require__.m = modules;
- __webpack_require__.c = installedModules;
- __webpack_require__.d = function(exports2, name, getter) {
- if (!__webpack_require__.o(exports2, name)) {
- Object.defineProperty(exports2, name, { enumerable: true, get: getter });
- }
- };
- __webpack_require__.r = function(exports2) {
- if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
- }
- Object.defineProperty(exports2, "__esModule", { value: true });
- };
- __webpack_require__.t = function(value, mode) {
- if (mode & 1)
- value = __webpack_require__(value);
- if (mode & 8)
- return value;
- if (mode & 4 && typeof value === "object" && value && value.__esModule)
- return value;
- var ns = /* @__PURE__ */ Object.create(null);
- __webpack_require__.r(ns);
- Object.defineProperty(ns, "default", { enumerable: true, value });
- if (mode & 2 && typeof value != "string")
- for (var key in value)
- __webpack_require__.d(ns, key, function(key2) {
- return value[key2];
- }.bind(null, key));
- return ns;
- };
- __webpack_require__.n = function(module2) {
- var getter = module2 && module2.__esModule ? (
- /******/
- function getDefault() {
- return module2["default"];
- }
- ) : (
- /******/
- function getModuleExports() {
- return module2;
- }
- );
- __webpack_require__.d(getter, "a", getter);
- return getter;
- };
- __webpack_require__.o = function(object, property) {
- return Object.prototype.hasOwnProperty.call(object, property);
- };
- __webpack_require__.p = "";
- return __webpack_require__(__webpack_require__.s = "fb15");
- }({
- /***/
- "00ee": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
- var test = {};
- test[TO_STRING_TAG] = "z";
- module2.exports = String(test) === "[object z]";
- }
- ),
- /***/
- "0366": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var aFunction = __webpack_require__("1c0b");
- module2.exports = function(fn, that, length) {
- aFunction(fn);
- if (that === void 0)
- return fn;
- switch (length) {
- case 0:
- return function() {
- return fn.call(that);
- };
- case 1:
- return function(a) {
- return fn.call(that, a);
- };
- case 2:
- return function(a, b) {
- return fn.call(that, a, b);
- };
- case 3:
- return function(a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function() {
- return fn.apply(that, arguments);
- };
- };
- }
- ),
- /***/
- "057f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var toIndexedObject = __webpack_require__("fc6a");
- var nativeGetOwnPropertyNames = __webpack_require__("241c").f;
- var toString = {}.toString;
- var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
- var getWindowNames = function(it) {
- try {
- return nativeGetOwnPropertyNames(it);
- } catch (error) {
- return windowNames.slice();
- }
- };
- module2.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == "[object Window]" ? getWindowNames(it) : nativeGetOwnPropertyNames(toIndexedObject(it));
- };
- }
- ),
- /***/
- "06cf": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var propertyIsEnumerableModule = __webpack_require__("d1e7");
- var createPropertyDescriptor = __webpack_require__("5c6c");
- var toIndexedObject = __webpack_require__("fc6a");
- var toPrimitive = __webpack_require__("c04e");
- var has = __webpack_require__("5135");
- var IE8_DOM_DEFINE = __webpack_require__("0cfb");
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
- exports2.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
- O = toIndexedObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE)
- try {
- return nativeGetOwnPropertyDescriptor(O, P);
- } catch (error) {
- }
- if (has(O, P))
- return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
- };
- }
- ),
- /***/
- "0cfb": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var fails = __webpack_require__("d039");
- var createElement = __webpack_require__("cc12");
- module2.exports = !DESCRIPTORS && !fails(function() {
- return Object.defineProperty(createElement("div"), "a", {
- get: function() {
- return 7;
- }
- }).a != 7;
- });
- }
- ),
- /***/
- "13d5": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $reduce = __webpack_require__("d58f").left;
- var arrayMethodIsStrict = __webpack_require__("a640");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var STRICT_METHOD = arrayMethodIsStrict("reduce");
- var USES_TO_LENGTH = arrayMethodUsesToLength("reduce", { 1: 0 });
- $({ target: "Array", proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
- reduce: function reduce(callbackfn) {
- return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- }
- ),
- /***/
- "14c3": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var classof = __webpack_require__("c6b6");
- var regexpExec = __webpack_require__("9263");
- module2.exports = function(R, S) {
- var exec = R.exec;
- if (typeof exec === "function") {
- var result = exec.call(R, S);
- if (typeof result !== "object") {
- throw TypeError("RegExp exec method returned something other than an Object or null");
- }
- return result;
- }
- if (classof(R) !== "RegExp") {
- throw TypeError("RegExp#exec called on incompatible receiver");
- }
- return regexpExec.call(R, S);
- };
- }
- ),
- /***/
- "159b": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var DOMIterables = __webpack_require__("fdbc");
- var forEach = __webpack_require__("17c2");
- var createNonEnumerableProperty = __webpack_require__("9112");
- for (var COLLECTION_NAME in DOMIterables) {
- var Collection = global[COLLECTION_NAME];
- var CollectionPrototype = Collection && Collection.prototype;
- if (CollectionPrototype && CollectionPrototype.forEach !== forEach)
- try {
- createNonEnumerableProperty(CollectionPrototype, "forEach", forEach);
- } catch (error) {
- CollectionPrototype.forEach = forEach;
- }
- }
- }
- ),
- /***/
- "17c2": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $forEach = __webpack_require__("b727").forEach;
- var arrayMethodIsStrict = __webpack_require__("a640");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var STRICT_METHOD = arrayMethodIsStrict("forEach");
- var USES_TO_LENGTH = arrayMethodUsesToLength("forEach");
- module2.exports = !STRICT_METHOD || !USES_TO_LENGTH ? function forEach(callbackfn) {
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
- } : [].forEach;
- }
- ),
- /***/
- "1be4": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var getBuiltIn = __webpack_require__("d066");
- module2.exports = getBuiltIn("document", "documentElement");
- }
- ),
- /***/
- "1c0b": (
- /***/
- function(module2, exports2) {
- module2.exports = function(it) {
- if (typeof it != "function") {
- throw TypeError(String(it) + " is not a function");
- }
- return it;
- };
- }
- ),
- /***/
- "1c7e": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- var ITERATOR = wellKnownSymbol("iterator");
- var SAFE_CLOSING = false;
- try {
- var called = 0;
- var iteratorWithReturn = {
- next: function() {
- return { done: !!called++ };
- },
- "return": function() {
- SAFE_CLOSING = true;
- }
- };
- iteratorWithReturn[ITERATOR] = function() {
- return this;
- };
- Array.from(iteratorWithReturn, function() {
- throw 2;
- });
- } catch (error) {
- }
- module2.exports = function(exec, SKIP_CLOSING) {
- if (!SKIP_CLOSING && !SAFE_CLOSING)
- return false;
- var ITERATION_SUPPORT = false;
- try {
- var object = {};
- object[ITERATOR] = function() {
- return {
- next: function() {
- return { done: ITERATION_SUPPORT = true };
- }
- };
- };
- exec(object);
- } catch (error) {
- }
- return ITERATION_SUPPORT;
- };
- }
- ),
- /***/
- "1d80": (
- /***/
- function(module2, exports2) {
- module2.exports = function(it) {
- if (it == void 0)
- throw TypeError("Can't call method on " + it);
- return it;
- };
- }
- ),
- /***/
- "1dde": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- var wellKnownSymbol = __webpack_require__("b622");
- var V8_VERSION = __webpack_require__("2d00");
- var SPECIES = wellKnownSymbol("species");
- module2.exports = function(METHOD_NAME) {
- return V8_VERSION >= 51 || !fails(function() {
- var array = [];
- var constructor = array.constructor = {};
- constructor[SPECIES] = function() {
- return { foo: 1 };
- };
- return array[METHOD_NAME](Boolean).foo !== 1;
- });
- };
- }
- ),
- /***/
- "23cb": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var toInteger = __webpack_require__("a691");
- var max = Math.max;
- var min = Math.min;
- module2.exports = function(index2, length) {
- var integer = toInteger(index2);
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
- };
- }
- ),
- /***/
- "23e7": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
- var createNonEnumerableProperty = __webpack_require__("9112");
- var redefine = __webpack_require__("6eeb");
- var setGlobal = __webpack_require__("ce4e");
- var copyConstructorProperties = __webpack_require__("e893");
- var isForced = __webpack_require__("94ca");
- module2.exports = function(options, source) {
- var TARGET = options.target;
- var GLOBAL = options.global;
- var STATIC = options.stat;
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
- if (GLOBAL) {
- target = global;
- } else if (STATIC) {
- target = global[TARGET] || setGlobal(TARGET, {});
- } else {
- target = (global[TARGET] || {}).prototype;
- }
- if (target)
- for (key in source) {
- sourceProperty = source[key];
- if (options.noTargetGet) {
- descriptor = getOwnPropertyDescriptor(target, key);
- targetProperty = descriptor && descriptor.value;
- } else
- targetProperty = target[key];
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
- if (!FORCED && targetProperty !== void 0) {
- if (typeof sourceProperty === typeof targetProperty)
- continue;
- copyConstructorProperties(sourceProperty, targetProperty);
- }
- if (options.sham || targetProperty && targetProperty.sham) {
- createNonEnumerableProperty(sourceProperty, "sham", true);
- }
- redefine(target, key, sourceProperty, options);
- }
- };
- }
- ),
- /***/
- "241c": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var internalObjectKeys = __webpack_require__("ca84");
- var enumBugKeys = __webpack_require__("7839");
- var hiddenKeys = enumBugKeys.concat("length", "prototype");
- exports2.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return internalObjectKeys(O, hiddenKeys);
- };
- }
- ),
- /***/
- "25f0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var redefine = __webpack_require__("6eeb");
- var anObject = __webpack_require__("825a");
- var fails = __webpack_require__("d039");
- var flags = __webpack_require__("ad6d");
- var TO_STRING = "toString";
- var RegExpPrototype = RegExp.prototype;
- var nativeToString = RegExpPrototype[TO_STRING];
- var NOT_GENERIC = fails(function() {
- return nativeToString.call({ source: "a", flags: "b" }) != "/a/b";
- });
- var INCORRECT_NAME = nativeToString.name != TO_STRING;
- if (NOT_GENERIC || INCORRECT_NAME) {
- redefine(RegExp.prototype, TO_STRING, function toString() {
- var R = anObject(this);
- var p = String(R.source);
- var rf = R.flags;
- var f = String(rf === void 0 && R instanceof RegExp && !("flags" in RegExpPrototype) ? flags.call(R) : rf);
- return "/" + p + "/" + f;
- }, { unsafe: true });
- }
- }
- ),
- /***/
- "2ca0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
- var toLength = __webpack_require__("50c4");
- var notARegExp = __webpack_require__("5a34");
- var requireObjectCoercible = __webpack_require__("1d80");
- var correctIsRegExpLogic = __webpack_require__("ab13");
- var IS_PURE = __webpack_require__("c430");
- var nativeStartsWith = "".startsWith;
- var min = Math.min;
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith");
- var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
- var descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith");
- return descriptor && !descriptor.writable;
- }();
- $({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
- startsWith: function startsWith(searchString) {
- var that = String(requireObjectCoercible(this));
- notARegExp(searchString);
- var index2 = toLength(min(arguments.length > 1 ? arguments[1] : void 0, that.length));
- var search = String(searchString);
- return nativeStartsWith ? nativeStartsWith.call(that, search, index2) : that.slice(index2, index2 + search.length) === search;
- }
- });
- }
- ),
- /***/
- "2d00": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var userAgent2 = __webpack_require__("342f");
- var process = global.process;
- var versions = process && process.versions;
- var v8 = versions && versions.v8;
- var match, version2;
- if (v8) {
- match = v8.split(".");
- version2 = match[0] + match[1];
- } else if (userAgent2) {
- match = userAgent2.match(/Edge\/(\d+)/);
- if (!match || match[1] >= 74) {
- match = userAgent2.match(/Chrome\/(\d+)/);
- if (match)
- version2 = match[1];
- }
- }
- module2.exports = version2 && +version2;
- }
- ),
- /***/
- "342f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var getBuiltIn = __webpack_require__("d066");
- module2.exports = getBuiltIn("navigator", "userAgent") || "";
- }
- ),
- /***/
- "35a1": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var classof = __webpack_require__("f5df");
- var Iterators = __webpack_require__("3f8c");
- var wellKnownSymbol = __webpack_require__("b622");
- var ITERATOR = wellKnownSymbol("iterator");
- module2.exports = function(it) {
- if (it != void 0)
- return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)];
- };
- }
- ),
- /***/
- "37e8": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var definePropertyModule = __webpack_require__("9bf2");
- var anObject = __webpack_require__("825a");
- var objectKeys = __webpack_require__("df75");
- module2.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = objectKeys(Properties);
- var length = keys.length;
- var index2 = 0;
- var key;
- while (length > index2)
- definePropertyModule.f(O, key = keys[index2++], Properties[key]);
- return O;
- };
- }
- ),
- /***/
- "3bbe": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isObject = __webpack_require__("861d");
- module2.exports = function(it) {
- if (!isObject(it) && it !== null) {
- throw TypeError("Can't set " + String(it) + " as a prototype");
- }
- return it;
- };
- }
- ),
- /***/
- "3ca3": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var charAt = __webpack_require__("6547").charAt;
- var InternalStateModule = __webpack_require__("69f3");
- var defineIterator = __webpack_require__("7dd0");
- var STRING_ITERATOR = "String Iterator";
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
- defineIterator(String, "String", function(iterated) {
- setInternalState(this, {
- type: STRING_ITERATOR,
- string: String(iterated),
- index: 0
- });
- }, function next() {
- var state = getInternalState(this);
- var string = state.string;
- var index2 = state.index;
- var point;
- if (index2 >= string.length)
- return { value: void 0, done: true };
- point = charAt(string, index2);
- state.index += point.length;
- return { value: point, done: false };
- });
- }
- ),
- /***/
- "3f8c": (
- /***/
- function(module2, exports2) {
- module2.exports = {};
- }
- ),
- /***/
- "4160": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var forEach = __webpack_require__("17c2");
- $({ target: "Array", proto: true, forced: [].forEach != forEach }, {
- forEach
- });
- }
- ),
- /***/
- "428f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- module2.exports = global;
- }
- ),
- /***/
- "44ad": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- var classof = __webpack_require__("c6b6");
- var split = "".split;
- module2.exports = fails(function() {
- return !Object("z").propertyIsEnumerable(0);
- }) ? function(it) {
- return classof(it) == "String" ? split.call(it, "") : Object(it);
- } : Object;
- }
- ),
- /***/
- "44d2": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- var create = __webpack_require__("7c73");
- var definePropertyModule = __webpack_require__("9bf2");
- var UNSCOPABLES = wellKnownSymbol("unscopables");
- var ArrayPrototype = Array.prototype;
- if (ArrayPrototype[UNSCOPABLES] == void 0) {
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
- configurable: true,
- value: create(null)
- });
- }
- module2.exports = function(key) {
- ArrayPrototype[UNSCOPABLES][key] = true;
- };
- }
- ),
- /***/
- "44e7": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isObject = __webpack_require__("861d");
- var classof = __webpack_require__("c6b6");
- var wellKnownSymbol = __webpack_require__("b622");
- var MATCH = wellKnownSymbol("match");
- module2.exports = function(it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : classof(it) == "RegExp");
- };
- }
- ),
- /***/
- "4930": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- module2.exports = !!Object.getOwnPropertySymbols && !fails(function() {
- return !String(Symbol());
- });
- }
- ),
- /***/
- "4d64": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var toIndexedObject = __webpack_require__("fc6a");
- var toLength = __webpack_require__("50c4");
- var toAbsoluteIndex = __webpack_require__("23cb");
- var createMethod = function(IS_INCLUDES) {
- return function($this, el, fromIndex) {
- var O = toIndexedObject($this);
- var length = toLength(O.length);
- var index2 = toAbsoluteIndex(fromIndex, length);
- var value;
- if (IS_INCLUDES && el != el)
- while (length > index2) {
- value = O[index2++];
- if (value != value)
- return true;
- }
- else
- for (; length > index2; index2++) {
- if ((IS_INCLUDES || index2 in O) && O[index2] === el)
- return IS_INCLUDES || index2 || 0;
- }
- return !IS_INCLUDES && -1;
- };
- };
- module2.exports = {
- // `Array.prototype.includes` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
- includes: createMethod(true),
- // `Array.prototype.indexOf` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
- indexOf: createMethod(false)
- };
- }
- ),
- /***/
- "4de4": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $filter = __webpack_require__("b727").filter;
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter");
- var USES_TO_LENGTH = arrayMethodUsesToLength("filter");
- $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- filter: function filter(callbackfn) {
- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- }
- ),
- /***/
- "4df4": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var bind = __webpack_require__("0366");
- var toObject = __webpack_require__("7b0b");
- var callWithSafeIterationClosing = __webpack_require__("9bdd");
- var isArrayIteratorMethod = __webpack_require__("e95a");
- var toLength = __webpack_require__("50c4");
- var createProperty = __webpack_require__("8418");
- var getIteratorMethod = __webpack_require__("35a1");
- module2.exports = function from(arrayLike) {
- var O = toObject(arrayLike);
- var C = typeof this == "function" ? this : Array;
- var argumentsLength = arguments.length;
- var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
- var mapping = mapfn !== void 0;
- var iteratorMethod = getIteratorMethod(O);
- var index2 = 0;
- var length, result, step, iterator, next, value;
- if (mapping)
- mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2);
- if (iteratorMethod != void 0 && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
- iterator = iteratorMethod.call(O);
- next = iterator.next;
- result = new C();
- for (; !(step = next.call(iterator)).done; index2++) {
- value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index2], true) : step.value;
- createProperty(result, index2, value);
- }
- } else {
- length = toLength(O.length);
- result = new C(length);
- for (; length > index2; index2++) {
- value = mapping ? mapfn(O[index2], index2) : O[index2];
- createProperty(result, index2, value);
- }
- }
- result.length = index2;
- return result;
- };
- }
- ),
- /***/
- "4fad": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var $ = __webpack_require__("23e7");
- var $entries = __webpack_require__("6f53").entries;
- $({ target: "Object", stat: true }, {
- entries: function entries(O) {
- return $entries(O);
- }
- });
- }
- ),
- /***/
- "50c4": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var toInteger = __webpack_require__("a691");
- var min = Math.min;
- module2.exports = function(argument) {
- return argument > 0 ? min(toInteger(argument), 9007199254740991) : 0;
- };
- }
- ),
- /***/
- "5135": (
- /***/
- function(module2, exports2) {
- var hasOwnProperty = {}.hasOwnProperty;
- module2.exports = function(it, key) {
- return hasOwnProperty.call(it, key);
- };
- }
- ),
- /***/
- "5319": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
- var anObject = __webpack_require__("825a");
- var toObject = __webpack_require__("7b0b");
- var toLength = __webpack_require__("50c4");
- var toInteger = __webpack_require__("a691");
- var requireObjectCoercible = __webpack_require__("1d80");
- var advanceStringIndex = __webpack_require__("8aa5");
- var regExpExec = __webpack_require__("14c3");
- var max = Math.max;
- var min = Math.min;
- var floor = Math.floor;
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
- var maybeToString = function(it) {
- return it === void 0 ? it : String(it);
- };
- fixRegExpWellKnownSymbolLogic("replace", 2, function(REPLACE, nativeReplace, maybeCallNative, reason) {
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = requireObjectCoercible(this);
- var replacer = searchValue == void 0 ? void 0 : searchValue[REPLACE];
- return replacer !== void 0 ? replacer.call(searchValue, O, replaceValue) : nativeReplace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function(regexp, replaceValue) {
- if (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0 || typeof replaceValue === "string" && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1) {
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
- if (res.done)
- return res.value;
- }
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === "function";
- if (!functionalReplace)
- replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null)
- break;
- results.push(result);
- if (!global)
- break;
- var matchStr = String(result[0]);
- if (matchStr === "")
- rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = "";
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- for (var j = 1; j < result.length; j++)
- captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== void 0)
- replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(void 0, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== void 0) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return nativeReplace.call(replacement, symbols, function(match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case "$":
- return "$";
- case "&":
- return matched;
- case "`":
- return str.slice(0, position);
- case "'":
- return str.slice(tailPos);
- case "<":
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default:
- var n = +ch;
- if (n === 0)
- return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0)
- return match;
- if (f <= m)
- return captures[f - 1] === void 0 ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === void 0 ? "" : capture;
- });
- }
- });
- }
- ),
- /***/
- "5692": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var IS_PURE = __webpack_require__("c430");
- var store = __webpack_require__("c6cd");
- (module2.exports = function(key, value) {
- return store[key] || (store[key] = value !== void 0 ? value : {});
- })("versions", []).push({
- version: "3.6.5",
- mode: IS_PURE ? "pure" : "global",
- copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
- });
- }
- ),
- /***/
- "56ef": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var getBuiltIn = __webpack_require__("d066");
- var getOwnPropertyNamesModule = __webpack_require__("241c");
- var getOwnPropertySymbolsModule = __webpack_require__("7418");
- var anObject = __webpack_require__("825a");
- module2.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys2(it) {
- var keys = getOwnPropertyNamesModule.f(anObject(it));
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
- };
- }
- ),
- /***/
- "5a34": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isRegExp = __webpack_require__("44e7");
- module2.exports = function(it) {
- if (isRegExp(it)) {
- throw TypeError("The method doesn't accept regular expressions");
- }
- return it;
- };
- }
- ),
- /***/
- "5c6c": (
- /***/
- function(module2, exports2) {
- module2.exports = function(bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value
- };
- };
- }
- ),
- /***/
- "5db7": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var flattenIntoArray = __webpack_require__("a2bf");
- var toObject = __webpack_require__("7b0b");
- var toLength = __webpack_require__("50c4");
- var aFunction = __webpack_require__("1c0b");
- var arraySpeciesCreate = __webpack_require__("65f0");
- $({ target: "Array", proto: true }, {
- flatMap: function flatMap(callbackfn) {
- var O = toObject(this);
- var sourceLen = toLength(O.length);
- var A;
- aFunction(callbackfn);
- A = arraySpeciesCreate(O, 0);
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
- return A;
- }
- });
- }
- ),
- /***/
- "6547": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var toInteger = __webpack_require__("a691");
- var requireObjectCoercible = __webpack_require__("1d80");
- var createMethod = function(CONVERT_TO_STRING) {
- return function($this, pos) {
- var S = String(requireObjectCoercible($this));
- var position = toInteger(pos);
- var size = S.length;
- var first, second;
- if (position < 0 || position >= size)
- return CONVERT_TO_STRING ? "" : void 0;
- first = S.charCodeAt(position);
- return first < 55296 || first > 56319 || position + 1 === size || (second = S.charCodeAt(position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? S.charAt(position) : first : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
- };
- };
- module2.exports = {
- // `String.prototype.codePointAt` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
- codeAt: createMethod(false),
- // `String.prototype.at` method
- // https://github.com/mathiasbynens/String.prototype.at
- charAt: createMethod(true)
- };
- }
- ),
- /***/
- "65f0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isObject = __webpack_require__("861d");
- var isArray = __webpack_require__("e8b5");
- var wellKnownSymbol = __webpack_require__("b622");
- var SPECIES = wellKnownSymbol("species");
- module2.exports = function(originalArray, length) {
- var C;
- if (isArray(originalArray)) {
- C = originalArray.constructor;
- if (typeof C == "function" && (C === Array || isArray(C.prototype)))
- C = void 0;
- else if (isObject(C)) {
- C = C[SPECIES];
- if (C === null)
- C = void 0;
- }
- }
- return new (C === void 0 ? Array : C)(length === 0 ? 0 : length);
- };
- }
- ),
- /***/
- "69f3": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
- var global = __webpack_require__("da84");
- var isObject = __webpack_require__("861d");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var objectHas = __webpack_require__("5135");
- var sharedKey = __webpack_require__("f772");
- var hiddenKeys = __webpack_require__("d012");
- var WeakMap = global.WeakMap;
- var set, get, has;
- var enforce = function(it) {
- return has(it) ? get(it) : set(it, {});
- };
- var getterFor = function(TYPE) {
- return function(it) {
- var state;
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
- throw TypeError("Incompatible receiver, " + TYPE + " required");
- }
- return state;
- };
- };
- if (NATIVE_WEAK_MAP) {
- var store = new WeakMap();
- var wmget = store.get;
- var wmhas = store.has;
- var wmset = store.set;
- set = function(it, metadata) {
- wmset.call(store, it, metadata);
- return metadata;
- };
- get = function(it) {
- return wmget.call(store, it) || {};
- };
- has = function(it) {
- return wmhas.call(store, it);
- };
- } else {
- var STATE = sharedKey("state");
- hiddenKeys[STATE] = true;
- set = function(it, metadata) {
- createNonEnumerableProperty(it, STATE, metadata);
- return metadata;
- };
- get = function(it) {
- return objectHas(it, STATE) ? it[STATE] : {};
- };
- has = function(it) {
- return objectHas(it, STATE);
- };
- }
- module2.exports = {
- set,
- get,
- has,
- enforce,
- getterFor
- };
- }
- ),
- /***/
- "6eeb": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var has = __webpack_require__("5135");
- var setGlobal = __webpack_require__("ce4e");
- var inspectSource = __webpack_require__("8925");
- var InternalStateModule = __webpack_require__("69f3");
- var getInternalState = InternalStateModule.get;
- var enforceInternalState = InternalStateModule.enforce;
- var TEMPLATE = String(String).split("String");
- (module2.exports = function(O, key, value, options) {
- var unsafe = options ? !!options.unsafe : false;
- var simple = options ? !!options.enumerable : false;
- var noTargetGet = options ? !!options.noTargetGet : false;
- if (typeof value == "function") {
- if (typeof key == "string" && !has(value, "name"))
- createNonEnumerableProperty(value, "name", key);
- enforceInternalState(value).source = TEMPLATE.join(typeof key == "string" ? key : "");
- }
- if (O === global) {
- if (simple)
- O[key] = value;
- else
- setGlobal(key, value);
- return;
- } else if (!unsafe) {
- delete O[key];
- } else if (!noTargetGet && O[key]) {
- simple = true;
- }
- if (simple)
- O[key] = value;
- else
- createNonEnumerableProperty(O, key, value);
- })(Function.prototype, "toString", function toString() {
- return typeof this == "function" && getInternalState(this).source || inspectSource(this);
- });
- }
- ),
- /***/
- "6f53": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var objectKeys = __webpack_require__("df75");
- var toIndexedObject = __webpack_require__("fc6a");
- var propertyIsEnumerable = __webpack_require__("d1e7").f;
- var createMethod = function(TO_ENTRIES) {
- return function(it) {
- var O = toIndexedObject(it);
- var keys = objectKeys(O);
- var length = keys.length;
- var i = 0;
- var result = [];
- var key;
- while (length > i) {
- key = keys[i++];
- if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
- }
- }
- return result;
- };
- };
- module2.exports = {
- // `Object.entries` method
- // https://tc39.github.io/ecma262/#sec-object.entries
- entries: createMethod(true),
- // `Object.values` method
- // https://tc39.github.io/ecma262/#sec-object.values
- values: createMethod(false)
- };
- }
- ),
- /***/
- "73d9": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var addToUnscopables = __webpack_require__("44d2");
- addToUnscopables("flatMap");
- }
- ),
- /***/
- "7418": (
- /***/
- function(module2, exports2) {
- exports2.f = Object.getOwnPropertySymbols;
- }
- ),
- /***/
- "746f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var path = __webpack_require__("428f");
- var has = __webpack_require__("5135");
- var wrappedWellKnownSymbolModule = __webpack_require__("e538");
- var defineProperty = __webpack_require__("9bf2").f;
- module2.exports = function(NAME) {
- var Symbol2 = path.Symbol || (path.Symbol = {});
- if (!has(Symbol2, NAME))
- defineProperty(Symbol2, NAME, {
- value: wrappedWellKnownSymbolModule.f(NAME)
- });
- };
- }
- ),
- /***/
- "7839": (
- /***/
- function(module2, exports2) {
- module2.exports = [
- "constructor",
- "hasOwnProperty",
- "isPrototypeOf",
- "propertyIsEnumerable",
- "toLocaleString",
- "toString",
- "valueOf"
- ];
- }
- ),
- /***/
- "7b0b": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var requireObjectCoercible = __webpack_require__("1d80");
- module2.exports = function(argument) {
- return Object(requireObjectCoercible(argument));
- };
- }
- ),
- /***/
- "7c73": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var anObject = __webpack_require__("825a");
- var defineProperties = __webpack_require__("37e8");
- var enumBugKeys = __webpack_require__("7839");
- var hiddenKeys = __webpack_require__("d012");
- var html = __webpack_require__("1be4");
- var documentCreateElement = __webpack_require__("cc12");
- var sharedKey = __webpack_require__("f772");
- var GT = ">";
- var LT = "<";
- var PROTOTYPE = "prototype";
- var SCRIPT = "script";
- var IE_PROTO = sharedKey("IE_PROTO");
- var EmptyConstructor = function() {
- };
- var scriptTag = function(content) {
- return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
- };
- var NullProtoObjectViaActiveX = function(activeXDocument2) {
- activeXDocument2.write(scriptTag(""));
- activeXDocument2.close();
- var temp = activeXDocument2.parentWindow.Object;
- activeXDocument2 = null;
- return temp;
- };
- var NullProtoObjectViaIFrame = function() {
- var iframe = documentCreateElement("iframe");
- var JS = "java" + SCRIPT + ":";
- var iframeDocument;
- iframe.style.display = "none";
- html.appendChild(iframe);
- iframe.src = String(JS);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(scriptTag("document.F=Object"));
- iframeDocument.close();
- return iframeDocument.F;
- };
- var activeXDocument;
- var NullProtoObject = function() {
- try {
- activeXDocument = document.domain && new ActiveXObject("htmlfile");
- } catch (error) {
- }
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
- var length = enumBugKeys.length;
- while (length--)
- delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
- return NullProtoObject();
- };
- hiddenKeys[IE_PROTO] = true;
- module2.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- EmptyConstructor[PROTOTYPE] = anObject(O);
- result = new EmptyConstructor();
- EmptyConstructor[PROTOTYPE] = null;
- result[IE_PROTO] = O;
- } else
- result = NullProtoObject();
- return Properties === void 0 ? result : defineProperties(result, Properties);
- };
- }
- ),
- /***/
- "7dd0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var createIteratorConstructor = __webpack_require__("9ed3");
- var getPrototypeOf = __webpack_require__("e163");
- var setPrototypeOf = __webpack_require__("d2bb");
- var setToStringTag = __webpack_require__("d44e");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var redefine = __webpack_require__("6eeb");
- var wellKnownSymbol = __webpack_require__("b622");
- var IS_PURE = __webpack_require__("c430");
- var Iterators = __webpack_require__("3f8c");
- var IteratorsCore = __webpack_require__("ae93");
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
- var ITERATOR = wellKnownSymbol("iterator");
- var KEYS = "keys";
- var VALUES = "values";
- var ENTRIES = "entries";
- var returnThis = function() {
- return this;
- };
- module2.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
- createIteratorConstructor(IteratorConstructor, NAME, next);
- var getIterationMethod = function(KIND) {
- if (KIND === DEFAULT && defaultIterator)
- return defaultIterator;
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
- return IterablePrototype[KIND];
- switch (KIND) {
- case KEYS:
- return function keys() {
- return new IteratorConstructor(this, KIND);
- };
- case VALUES:
- return function values() {
- return new IteratorConstructor(this, KIND);
- };
- case ENTRIES:
- return function entries() {
- return new IteratorConstructor(this, KIND);
- };
- }
- return function() {
- return new IteratorConstructor(this);
- };
- };
- var TO_STRING_TAG = NAME + " Iterator";
- var INCORRECT_VALUES_NAME = false;
- var IterablePrototype = Iterable.prototype;
- var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
- var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
- var CurrentIteratorPrototype, methods, KEY;
- if (anyNativeIterator) {
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
- if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
- if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
- if (setPrototypeOf) {
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
- } else if (typeof CurrentIteratorPrototype[ITERATOR] != "function") {
- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
- }
- }
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
- if (IS_PURE)
- Iterators[TO_STRING_TAG] = returnThis;
- }
- }
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
- INCORRECT_VALUES_NAME = true;
- defaultIterator = function values() {
- return nativeIterator.call(this);
- };
- }
- if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
- createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
- }
- Iterators[NAME] = defaultIterator;
- if (DEFAULT) {
- methods = {
- values: getIterationMethod(VALUES),
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
- entries: getIterationMethod(ENTRIES)
- };
- if (FORCED)
- for (KEY in methods) {
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
- redefine(IterablePrototype, KEY, methods[KEY]);
- }
- }
- else
- $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
- }
- return methods;
- };
- }
- ),
- /***/
- "7f9a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var inspectSource = __webpack_require__("8925");
- var WeakMap = global.WeakMap;
- module2.exports = typeof WeakMap === "function" && /native code/.test(inspectSource(WeakMap));
- }
- ),
- /***/
- "825a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isObject = __webpack_require__("861d");
- module2.exports = function(it) {
- if (!isObject(it)) {
- throw TypeError(String(it) + " is not an object");
- }
- return it;
- };
- }
- ),
- /***/
- "83ab": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- module2.exports = !fails(function() {
- return Object.defineProperty({}, 1, { get: function() {
- return 7;
- } })[1] != 7;
- });
- }
- ),
- /***/
- "8418": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var toPrimitive = __webpack_require__("c04e");
- var definePropertyModule = __webpack_require__("9bf2");
- var createPropertyDescriptor = __webpack_require__("5c6c");
- module2.exports = function(object, key, value) {
- var propertyKey = toPrimitive(key);
- if (propertyKey in object)
- definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
- else
- object[propertyKey] = value;
- };
- }
- ),
- /***/
- "861d": (
- /***/
- function(module2, exports2) {
- module2.exports = function(it) {
- return typeof it === "object" ? it !== null : typeof it === "function";
- };
- }
- ),
- /***/
- "8875": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
- (function(root, factory) {
- if (true) {
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports2, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else {
- }
- })(typeof self !== "undefined" ? self : this, function() {
- function getCurrentScript() {
- var descriptor = Object.getOwnPropertyDescriptor(document, "currentScript");
- if (!descriptor && "currentScript" in document && document.currentScript) {
- return document.currentScript;
- }
- if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
- return document.currentScript;
- }
- try {
- throw new Error();
- } catch (err) {
- var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = stackDetails && stackDetails[1] || false, line = stackDetails && stackDetails[2] || false, currentLocation = document.location.href.replace(document.location.hash, ""), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName("script");
- if (scriptLocation === currentLocation) {
- pageSource = document.documentElement.outerHTML;
- inlineScriptSourceRegExp = new RegExp("(?:[^\\n]+?\\n){0," + (line - 2) + "}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*", "i");
- inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, "$1").trim();
- }
- for (var i = 0; i < scripts.length; i++) {
- if (scripts[i].readyState === "interactive") {
- return scripts[i];
- }
- if (scripts[i].src === scriptLocation) {
- return scripts[i];
- }
- if (scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource) {
- return scripts[i];
- }
- }
- return null;
- }
- }
- ;
- return getCurrentScript;
- });
- }
- ),
- /***/
- "8925": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var store = __webpack_require__("c6cd");
- var functionToString = Function.toString;
- if (typeof store.inspectSource != "function") {
- store.inspectSource = function(it) {
- return functionToString.call(it);
- };
- }
- module2.exports = store.inspectSource;
- }
- ),
- /***/
- "8aa5": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var charAt = __webpack_require__("6547").charAt;
- module2.exports = function(S, index2, unicode) {
- return index2 + (unicode ? charAt(S, index2).length : 1);
- };
- }
- ),
- /***/
- "8bbf": (
- /***/
- function(module2, exports2) {
- module2.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
- }
- ),
- /***/
- "90e3": (
- /***/
- function(module2, exports2) {
- var id = 0;
- var postfix = Math.random();
- module2.exports = function(key) {
- return "Symbol(" + String(key === void 0 ? "" : key) + ")_" + (++id + postfix).toString(36);
- };
- }
- ),
- /***/
- "9112": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var definePropertyModule = __webpack_require__("9bf2");
- var createPropertyDescriptor = __webpack_require__("5c6c");
- module2.exports = DESCRIPTORS ? function(object, key, value) {
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
- } : function(object, key, value) {
- object[key] = value;
- return object;
- };
- }
- ),
- /***/
- "9263": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var regexpFlags = __webpack_require__("ad6d");
- var stickyHelpers = __webpack_require__("9f7f");
- var nativeExec = RegExp.prototype.exec;
- var nativeReplace = String.prototype.replace;
- var patchedExec = nativeExec;
- var UPDATES_LAST_INDEX_WRONG = function() {
- var re1 = /a/;
- var re2 = /b*/g;
- nativeExec.call(re1, "a");
- nativeExec.call(re2, "a");
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
- }();
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
- var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
- if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
- var sticky = UNSUPPORTED_Y && re.sticky;
- var flags = regexpFlags.call(re);
- var source = re.source;
- var charsAdded = 0;
- var strCopy = str;
- if (sticky) {
- flags = flags.replace("y", "");
- if (flags.indexOf("g") === -1) {
- flags += "g";
- }
- strCopy = String(str).slice(re.lastIndex);
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== "\n")) {
- source = "(?: " + source + ")";
- strCopy = " " + strCopy;
- charsAdded++;
- }
- reCopy = new RegExp("^(?:" + source + ")", flags);
- }
- if (NPCG_INCLUDED) {
- reCopy = new RegExp("^" + source + "$(?!\\s)", flags);
- }
- if (UPDATES_LAST_INDEX_WRONG)
- lastIndex = re.lastIndex;
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
- if (sticky) {
- if (match) {
- match.input = match.input.slice(charsAdded);
- match[0] = match[0].slice(charsAdded);
- match.index = re.lastIndex;
- re.lastIndex += match[0].length;
- } else
- re.lastIndex = 0;
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- nativeReplace.call(match[0], reCopy, function() {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === void 0)
- match[i] = void 0;
- }
- });
- }
- return match;
- };
- }
- module2.exports = patchedExec;
- }
- ),
- /***/
- "94ca": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- var replacement = /#|\.prototype\./;
- var isForced = function(feature, detection) {
- var value = data[normalize(feature)];
- return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == "function" ? fails(detection) : !!detection;
- };
- var normalize = isForced.normalize = function(string) {
- return String(string).replace(replacement, ".").toLowerCase();
- };
- var data = isForced.data = {};
- var NATIVE = isForced.NATIVE = "N";
- var POLYFILL = isForced.POLYFILL = "P";
- module2.exports = isForced;
- }
- ),
- /***/
- "99af": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var fails = __webpack_require__("d039");
- var isArray = __webpack_require__("e8b5");
- var isObject = __webpack_require__("861d");
- var toObject = __webpack_require__("7b0b");
- var toLength = __webpack_require__("50c4");
- var createProperty = __webpack_require__("8418");
- var arraySpeciesCreate = __webpack_require__("65f0");
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
- var wellKnownSymbol = __webpack_require__("b622");
- var V8_VERSION = __webpack_require__("2d00");
- var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
- var MAX_SAFE_INTEGER = 9007199254740991;
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = "Maximum allowed index exceeded";
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function() {
- var array = [];
- array[IS_CONCAT_SPREADABLE] = false;
- return array.concat()[0] !== array;
- });
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("concat");
- var isConcatSpreadable = function(O) {
- if (!isObject(O))
- return false;
- var spreadable = O[IS_CONCAT_SPREADABLE];
- return spreadable !== void 0 ? !!spreadable : isArray(O);
- };
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
- $({ target: "Array", proto: true, forced: FORCED }, {
- concat: function concat(arg) {
- var O = toObject(this);
- var A = arraySpeciesCreate(O, 0);
- var n = 0;
- var i, k, length, len, E;
- for (i = -1, length = arguments.length; i < length; i++) {
- E = i === -1 ? O : arguments[i];
- if (isConcatSpreadable(E)) {
- len = toLength(E.length);
- if (n + len > MAX_SAFE_INTEGER)
- throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- for (k = 0; k < len; k++, n++)
- if (k in E)
- createProperty(A, n, E[k]);
- } else {
- if (n >= MAX_SAFE_INTEGER)
- throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- createProperty(A, n++, E);
- }
- }
- A.length = n;
- return A;
- }
- });
- }
- ),
- /***/
- "9bdd": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var anObject = __webpack_require__("825a");
- module2.exports = function(iterator, fn, value, ENTRIES) {
- try {
- return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
- } catch (error) {
- var returnMethod = iterator["return"];
- if (returnMethod !== void 0)
- anObject(returnMethod.call(iterator));
- throw error;
- }
- };
- }
- ),
- /***/
- "9bf2": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var IE8_DOM_DEFINE = __webpack_require__("0cfb");
- var anObject = __webpack_require__("825a");
- var toPrimitive = __webpack_require__("c04e");
- var nativeDefineProperty = Object.defineProperty;
- exports2.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE)
- try {
- return nativeDefineProperty(O, P, Attributes);
- } catch (error) {
- }
- if ("get" in Attributes || "set" in Attributes)
- throw TypeError("Accessors not supported");
- if ("value" in Attributes)
- O[P] = Attributes.value;
- return O;
- };
- }
- ),
- /***/
- "9ed3": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
- var create = __webpack_require__("7c73");
- var createPropertyDescriptor = __webpack_require__("5c6c");
- var setToStringTag = __webpack_require__("d44e");
- var Iterators = __webpack_require__("3f8c");
- var returnThis = function() {
- return this;
- };
- module2.exports = function(IteratorConstructor, NAME, next) {
- var TO_STRING_TAG = NAME + " Iterator";
- IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
- Iterators[TO_STRING_TAG] = returnThis;
- return IteratorConstructor;
- };
- }
- ),
- /***/
- "9f7f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var fails = __webpack_require__("d039");
- function RE(s, f) {
- return RegExp(s, f);
- }
- exports2.UNSUPPORTED_Y = fails(function() {
- var re = RE("a", "y");
- re.lastIndex = 2;
- return re.exec("abcd") != null;
- });
- exports2.BROKEN_CARET = fails(function() {
- var re = RE("^r", "gy");
- re.lastIndex = 2;
- return re.exec("str") != null;
- });
- }
- ),
- /***/
- "a2bf": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var isArray = __webpack_require__("e8b5");
- var toLength = __webpack_require__("50c4");
- var bind = __webpack_require__("0366");
- var flattenIntoArray = function(target, original, source, sourceLen, start, depth, mapper, thisArg) {
- var targetIndex = start;
- var sourceIndex = 0;
- var mapFn = mapper ? bind(mapper, thisArg, 3) : false;
- var element;
- while (sourceIndex < sourceLen) {
- if (sourceIndex in source) {
- element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
- if (depth > 0 && isArray(element)) {
- targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
- } else {
- if (targetIndex >= 9007199254740991)
- throw TypeError("Exceed the acceptable array length");
- target[targetIndex] = element;
- }
- targetIndex++;
- }
- sourceIndex++;
- }
- return targetIndex;
- };
- module2.exports = flattenIntoArray;
- }
- ),
- /***/
- "a352": (
- /***/
- function(module2, exports2) {
- module2.exports = __WEBPACK_EXTERNAL_MODULE_a352__;
- }
- ),
- /***/
- "a434": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var toAbsoluteIndex = __webpack_require__("23cb");
- var toInteger = __webpack_require__("a691");
- var toLength = __webpack_require__("50c4");
- var toObject = __webpack_require__("7b0b");
- var arraySpeciesCreate = __webpack_require__("65f0");
- var createProperty = __webpack_require__("8418");
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("splice");
- var USES_TO_LENGTH = arrayMethodUsesToLength("splice", { ACCESSORS: true, 0: 0, 1: 2 });
- var max = Math.max;
- var min = Math.min;
- var MAX_SAFE_INTEGER = 9007199254740991;
- var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = "Maximum allowed length exceeded";
- $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- splice: function splice(start, deleteCount) {
- var O = toObject(this);
- var len = toLength(O.length);
- var actualStart = toAbsoluteIndex(start, len);
- var argumentsLength = arguments.length;
- var insertCount, actualDeleteCount, A, k, from, to;
- if (argumentsLength === 0) {
- insertCount = actualDeleteCount = 0;
- } else if (argumentsLength === 1) {
- insertCount = 0;
- actualDeleteCount = len - actualStart;
- } else {
- insertCount = argumentsLength - 2;
- actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
- }
- if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
- throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
- }
- A = arraySpeciesCreate(O, actualDeleteCount);
- for (k = 0; k < actualDeleteCount; k++) {
- from = actualStart + k;
- if (from in O)
- createProperty(A, k, O[from]);
- }
- A.length = actualDeleteCount;
- if (insertCount < actualDeleteCount) {
- for (k = actualStart; k < len - actualDeleteCount; k++) {
- from = k + actualDeleteCount;
- to = k + insertCount;
- if (from in O)
- O[to] = O[from];
- else
- delete O[to];
- }
- for (k = len; k > len - actualDeleteCount + insertCount; k--)
- delete O[k - 1];
- } else if (insertCount > actualDeleteCount) {
- for (k = len - actualDeleteCount; k > actualStart; k--) {
- from = k + actualDeleteCount - 1;
- to = k + insertCount - 1;
- if (from in O)
- O[to] = O[from];
- else
- delete O[to];
- }
- }
- for (k = 0; k < insertCount; k++) {
- O[k + actualStart] = arguments[k + 2];
- }
- O.length = len - actualDeleteCount + insertCount;
- return A;
- }
- });
- }
- ),
- /***/
- "a4d3": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var global = __webpack_require__("da84");
- var getBuiltIn = __webpack_require__("d066");
- var IS_PURE = __webpack_require__("c430");
- var DESCRIPTORS = __webpack_require__("83ab");
- var NATIVE_SYMBOL = __webpack_require__("4930");
- var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
- var fails = __webpack_require__("d039");
- var has = __webpack_require__("5135");
- var isArray = __webpack_require__("e8b5");
- var isObject = __webpack_require__("861d");
- var anObject = __webpack_require__("825a");
- var toObject = __webpack_require__("7b0b");
- var toIndexedObject = __webpack_require__("fc6a");
- var toPrimitive = __webpack_require__("c04e");
- var createPropertyDescriptor = __webpack_require__("5c6c");
- var nativeObjectCreate = __webpack_require__("7c73");
- var objectKeys = __webpack_require__("df75");
- var getOwnPropertyNamesModule = __webpack_require__("241c");
- var getOwnPropertyNamesExternal = __webpack_require__("057f");
- var getOwnPropertySymbolsModule = __webpack_require__("7418");
- var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
- var definePropertyModule = __webpack_require__("9bf2");
- var propertyIsEnumerableModule = __webpack_require__("d1e7");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var redefine = __webpack_require__("6eeb");
- var shared = __webpack_require__("5692");
- var sharedKey = __webpack_require__("f772");
- var hiddenKeys = __webpack_require__("d012");
- var uid = __webpack_require__("90e3");
- var wellKnownSymbol = __webpack_require__("b622");
- var wrappedWellKnownSymbolModule = __webpack_require__("e538");
- var defineWellKnownSymbol = __webpack_require__("746f");
- var setToStringTag = __webpack_require__("d44e");
- var InternalStateModule = __webpack_require__("69f3");
- var $forEach = __webpack_require__("b727").forEach;
- var HIDDEN = sharedKey("hidden");
- var SYMBOL = "Symbol";
- var PROTOTYPE = "prototype";
- var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(SYMBOL);
- var ObjectPrototype = Object[PROTOTYPE];
- var $Symbol = global.Symbol;
- var $stringify = getBuiltIn("JSON", "stringify");
- var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- var nativeDefineProperty = definePropertyModule.f;
- var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
- var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
- var AllSymbols = shared("symbols");
- var ObjectPrototypeSymbols = shared("op-symbols");
- var StringToSymbolRegistry = shared("string-to-symbol-registry");
- var SymbolToStringRegistry = shared("symbol-to-string-registry");
- var WellKnownSymbolsStore = shared("wks");
- var QObject = global.QObject;
- var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
- var setSymbolDescriptor = DESCRIPTORS && fails(function() {
- return nativeObjectCreate(nativeDefineProperty({}, "a", {
- get: function() {
- return nativeDefineProperty(this, "a", { value: 7 }).a;
- }
- })).a != 7;
- }) ? function(O, P, Attributes) {
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
- if (ObjectPrototypeDescriptor)
- delete ObjectPrototype[P];
- nativeDefineProperty(O, P, Attributes);
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
- nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
- }
- } : nativeDefineProperty;
- var wrap = function(tag, description) {
- var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
- setInternalState(symbol, {
- type: SYMBOL,
- tag,
- description
- });
- if (!DESCRIPTORS)
- symbol.description = description;
- return symbol;
- };
- var isSymbol = USE_SYMBOL_AS_UID ? function(it) {
- return typeof it == "symbol";
- } : function(it) {
- return Object(it) instanceof $Symbol;
- };
- var $defineProperty = function defineProperty(O, P, Attributes) {
- if (O === ObjectPrototype)
- $defineProperty(ObjectPrototypeSymbols, P, Attributes);
- anObject(O);
- var key = toPrimitive(P, true);
- anObject(Attributes);
- if (has(AllSymbols, key)) {
- if (!Attributes.enumerable) {
- if (!has(O, HIDDEN))
- nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
- O[HIDDEN][key] = true;
- } else {
- if (has(O, HIDDEN) && O[HIDDEN][key])
- O[HIDDEN][key] = false;
- Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
- }
- return setSymbolDescriptor(O, key, Attributes);
- }
- return nativeDefineProperty(O, key, Attributes);
- };
- var $defineProperties = function defineProperties(O, Properties) {
- anObject(O);
- var properties = toIndexedObject(Properties);
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
- $forEach(keys, function(key) {
- if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key))
- $defineProperty(O, key, properties[key]);
- });
- return O;
- };
- var $create = function create(O, Properties) {
- return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
- var P = toPrimitive(V, true);
- var enumerable = nativePropertyIsEnumerable.call(this, P);
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P))
- return false;
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
- var it = toIndexedObject(O);
- var key = toPrimitive(P, true);
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key))
- return;
- var descriptor = nativeGetOwnPropertyDescriptor(it, key);
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
- descriptor.enumerable = true;
- }
- return descriptor;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
- var names = nativeGetOwnPropertyNames(toIndexedObject(O));
- var result = [];
- $forEach(names, function(key) {
- if (!has(AllSymbols, key) && !has(hiddenKeys, key))
- result.push(key);
- });
- return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
- var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
- var result = [];
- $forEach(names, function(key) {
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
- result.push(AllSymbols[key]);
- }
- });
- return result;
- };
- if (!NATIVE_SYMBOL) {
- $Symbol = function Symbol2() {
- if (this instanceof $Symbol)
- throw TypeError("Symbol is not a constructor");
- var description = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]);
- var tag = uid(description);
- var setter = function(value) {
- if (this === ObjectPrototype)
- setter.call(ObjectPrototypeSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag))
- this[HIDDEN][tag] = false;
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
- };
- if (DESCRIPTORS && USE_SETTER)
- setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
- return wrap(tag, description);
- };
- redefine($Symbol[PROTOTYPE], "toString", function toString() {
- return getInternalState(this).tag;
- });
- redefine($Symbol, "withoutSetter", function(description) {
- return wrap(uid(description), description);
- });
- propertyIsEnumerableModule.f = $propertyIsEnumerable;
- definePropertyModule.f = $defineProperty;
- getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
- getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
- getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
- wrappedWellKnownSymbolModule.f = function(name) {
- return wrap(wellKnownSymbol(name), name);
- };
- if (DESCRIPTORS) {
- nativeDefineProperty($Symbol[PROTOTYPE], "description", {
- configurable: true,
- get: function description() {
- return getInternalState(this).description;
- }
- });
- if (!IS_PURE) {
- redefine(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true });
- }
- }
- }
- $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
- Symbol: $Symbol
- });
- $forEach(objectKeys(WellKnownSymbolsStore), function(name) {
- defineWellKnownSymbol(name);
- });
- $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
- // `Symbol.for` method
- // https://tc39.github.io/ecma262/#sec-symbol.for
- "for": function(key) {
- var string = String(key);
- if (has(StringToSymbolRegistry, string))
- return StringToSymbolRegistry[string];
- var symbol = $Symbol(string);
- StringToSymbolRegistry[string] = symbol;
- SymbolToStringRegistry[symbol] = string;
- return symbol;
- },
- // `Symbol.keyFor` method
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym))
- throw TypeError(sym + " is not a symbol");
- if (has(SymbolToStringRegistry, sym))
- return SymbolToStringRegistry[sym];
- },
- useSetter: function() {
- USE_SETTER = true;
- },
- useSimple: function() {
- USE_SETTER = false;
- }
- });
- $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
- // `Object.create` method
- // https://tc39.github.io/ecma262/#sec-object.create
- create: $create,
- // `Object.defineProperty` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
- defineProperty: $defineProperty,
- // `Object.defineProperties` method
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
- defineProperties: $defineProperties,
- // `Object.getOwnPropertyDescriptor` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
- });
- $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, {
- // `Object.getOwnPropertyNames` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
- getOwnPropertyNames: $getOwnPropertyNames,
- // `Object.getOwnPropertySymbols` method
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
- $({ target: "Object", stat: true, forced: fails(function() {
- getOwnPropertySymbolsModule.f(1);
- }) }, {
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
- return getOwnPropertySymbolsModule.f(toObject(it));
- }
- });
- if ($stringify) {
- var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function() {
- var symbol = $Symbol();
- return $stringify([symbol]) != "[null]" || $stringify({ a: symbol }) != "{}" || $stringify(Object(symbol)) != "{}";
- });
- $({ target: "JSON", stat: true, forced: FORCED_JSON_STRINGIFY }, {
- // eslint-disable-next-line no-unused-vars
- stringify: function stringify(it, replacer, space) {
- var args = [it];
- var index2 = 1;
- var $replacer;
- while (arguments.length > index2)
- args.push(arguments[index2++]);
- $replacer = replacer;
- if (!isObject(replacer) && it === void 0 || isSymbol(it))
- return;
- if (!isArray(replacer))
- replacer = function(key, value) {
- if (typeof $replacer == "function")
- value = $replacer.call(this, key, value);
- if (!isSymbol(value))
- return value;
- };
- args[1] = replacer;
- return $stringify.apply(null, args);
- }
- });
- }
- if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
- createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- }
- setToStringTag($Symbol, SYMBOL);
- hiddenKeys[HIDDEN] = true;
- }
- ),
- /***/
- "a630": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var $ = __webpack_require__("23e7");
- var from = __webpack_require__("4df4");
- var checkCorrectnessOfIteration = __webpack_require__("1c7e");
- var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) {
- Array.from(iterable);
- });
- $({ target: "Array", stat: true, forced: INCORRECT_ITERATION }, {
- from
- });
- }
- ),
- /***/
- "a640": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var fails = __webpack_require__("d039");
- module2.exports = function(METHOD_NAME, argument) {
- var method = [][METHOD_NAME];
- return !!method && fails(function() {
- method.call(null, argument || function() {
- throw 1;
- }, 1);
- });
- };
- }
- ),
- /***/
- "a691": (
- /***/
- function(module2, exports2) {
- var ceil = Math.ceil;
- var floor = Math.floor;
- module2.exports = function(argument) {
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
- };
- }
- ),
- /***/
- "ab13": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- var MATCH = wellKnownSymbol("match");
- module2.exports = function(METHOD_NAME) {
- var regexp = /./;
- try {
- "/./"[METHOD_NAME](regexp);
- } catch (e) {
- try {
- regexp[MATCH] = false;
- return "/./"[METHOD_NAME](regexp);
- } catch (f) {
- }
- }
- return false;
- };
- }
- ),
- /***/
- "ac1f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var exec = __webpack_require__("9263");
- $({ target: "RegExp", proto: true, forced: /./.exec !== exec }, {
- exec
- });
- }
- ),
- /***/
- "ad6d": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("825a");
- module2.exports = function() {
- var that = anObject(this);
- var result = "";
- if (that.global)
- result += "g";
- if (that.ignoreCase)
- result += "i";
- if (that.multiline)
- result += "m";
- if (that.dotAll)
- result += "s";
- if (that.unicode)
- result += "u";
- if (that.sticky)
- result += "y";
- return result;
- };
- }
- ),
- /***/
- "ae40": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var fails = __webpack_require__("d039");
- var has = __webpack_require__("5135");
- var defineProperty = Object.defineProperty;
- var cache = {};
- var thrower = function(it) {
- throw it;
- };
- module2.exports = function(METHOD_NAME, options) {
- if (has(cache, METHOD_NAME))
- return cache[METHOD_NAME];
- if (!options)
- options = {};
- var method = [][METHOD_NAME];
- var ACCESSORS = has(options, "ACCESSORS") ? options.ACCESSORS : false;
- var argument0 = has(options, 0) ? options[0] : thrower;
- var argument1 = has(options, 1) ? options[1] : void 0;
- return cache[METHOD_NAME] = !!method && !fails(function() {
- if (ACCESSORS && !DESCRIPTORS)
- return true;
- var O = { length: -1 };
- if (ACCESSORS)
- defineProperty(O, 1, { enumerable: true, get: thrower });
- else
- O[1] = 1;
- method.call(O, argument0, argument1);
- });
- };
- }
- ),
- /***/
- "ae93": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var getPrototypeOf = __webpack_require__("e163");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var has = __webpack_require__("5135");
- var wellKnownSymbol = __webpack_require__("b622");
- var IS_PURE = __webpack_require__("c430");
- var ITERATOR = wellKnownSymbol("iterator");
- var BUGGY_SAFARI_ITERATORS = false;
- var returnThis = function() {
- return this;
- };
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
- if ([].keys) {
- arrayIterator = [].keys();
- if (!("next" in arrayIterator))
- BUGGY_SAFARI_ITERATORS = true;
- else {
- PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
- IteratorPrototype = PrototypeOfArrayIteratorPrototype;
- }
- }
- if (IteratorPrototype == void 0)
- IteratorPrototype = {};
- if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
- }
- module2.exports = {
- IteratorPrototype,
- BUGGY_SAFARI_ITERATORS
- };
- }
- ),
- /***/
- "b041": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
- var classof = __webpack_require__("f5df");
- module2.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
- return "[object " + classof(this) + "]";
- };
- }
- ),
- /***/
- "b0c0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var DESCRIPTORS = __webpack_require__("83ab");
- var defineProperty = __webpack_require__("9bf2").f;
- var FunctionPrototype = Function.prototype;
- var FunctionPrototypeToString = FunctionPrototype.toString;
- var nameRE = /^\s*function ([^ (]*)/;
- var NAME = "name";
- if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
- defineProperty(FunctionPrototype, NAME, {
- configurable: true,
- get: function() {
- try {
- return FunctionPrototypeToString.call(this).match(nameRE)[1];
- } catch (error) {
- return "";
- }
- }
- });
- }
- }
- ),
- /***/
- "b622": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var shared = __webpack_require__("5692");
- var has = __webpack_require__("5135");
- var uid = __webpack_require__("90e3");
- var NATIVE_SYMBOL = __webpack_require__("4930");
- var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
- var WellKnownSymbolsStore = shared("wks");
- var Symbol2 = global.Symbol;
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
- module2.exports = function(name) {
- if (!has(WellKnownSymbolsStore, name)) {
- if (NATIVE_SYMBOL && has(Symbol2, name))
- WellKnownSymbolsStore[name] = Symbol2[name];
- else
- WellKnownSymbolsStore[name] = createWellKnownSymbol("Symbol." + name);
- }
- return WellKnownSymbolsStore[name];
- };
- }
- ),
- /***/
- "b64b": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var $ = __webpack_require__("23e7");
- var toObject = __webpack_require__("7b0b");
- var nativeKeys = __webpack_require__("df75");
- var fails = __webpack_require__("d039");
- var FAILS_ON_PRIMITIVES = fails(function() {
- nativeKeys(1);
- });
- $({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
- keys: function keys(it) {
- return nativeKeys(toObject(it));
- }
- });
- }
- ),
- /***/
- "b727": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var bind = __webpack_require__("0366");
- var IndexedObject = __webpack_require__("44ad");
- var toObject = __webpack_require__("7b0b");
- var toLength = __webpack_require__("50c4");
- var arraySpeciesCreate = __webpack_require__("65f0");
- var push = [].push;
- var createMethod = function(TYPE) {
- var IS_MAP = TYPE == 1;
- var IS_FILTER = TYPE == 2;
- var IS_SOME = TYPE == 3;
- var IS_EVERY = TYPE == 4;
- var IS_FIND_INDEX = TYPE == 6;
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- return function($this, callbackfn, that, specificCreate) {
- var O = toObject($this);
- var self2 = IndexedObject(O);
- var boundFunction = bind(callbackfn, that, 3);
- var length = toLength(self2.length);
- var index2 = 0;
- var create = specificCreate || arraySpeciesCreate;
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : void 0;
- var value, result;
- for (; length > index2; index2++)
- if (NO_HOLES || index2 in self2) {
- value = self2[index2];
- result = boundFunction(value, index2, O);
- if (TYPE) {
- if (IS_MAP)
- target[index2] = result;
- else if (result)
- switch (TYPE) {
- case 3:
- return true;
- case 5:
- return value;
- case 6:
- return index2;
- case 2:
- push.call(target, value);
- }
- else if (IS_EVERY)
- return false;
- }
- }
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
- };
- };
- module2.exports = {
- // `Array.prototype.forEach` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
- forEach: createMethod(0),
- // `Array.prototype.map` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
- map: createMethod(1),
- // `Array.prototype.filter` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
- filter: createMethod(2),
- // `Array.prototype.some` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
- some: createMethod(3),
- // `Array.prototype.every` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
- every: createMethod(4),
- // `Array.prototype.find` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
- find: createMethod(5),
- // `Array.prototype.findIndex` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
- findIndex: createMethod(6)
- };
- }
- ),
- /***/
- "c04e": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var isObject = __webpack_require__("861d");
- module2.exports = function(input, PREFERRED_STRING) {
- if (!isObject(input))
- return input;
- var fn, val;
- if (PREFERRED_STRING && typeof (fn = input.toString) == "function" && !isObject(val = fn.call(input)))
- return val;
- if (typeof (fn = input.valueOf) == "function" && !isObject(val = fn.call(input)))
- return val;
- if (!PREFERRED_STRING && typeof (fn = input.toString) == "function" && !isObject(val = fn.call(input)))
- return val;
- throw TypeError("Can't convert object to primitive value");
- };
- }
- ),
- /***/
- "c430": (
- /***/
- function(module2, exports2) {
- module2.exports = false;
- }
- ),
- /***/
- "c6b6": (
- /***/
- function(module2, exports2) {
- var toString = {}.toString;
- module2.exports = function(it) {
- return toString.call(it).slice(8, -1);
- };
- }
- ),
- /***/
- "c6cd": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var setGlobal = __webpack_require__("ce4e");
- var SHARED = "__core-js_shared__";
- var store = global[SHARED] || setGlobal(SHARED, {});
- module2.exports = store;
- }
- ),
- /***/
- "c740": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $findIndex = __webpack_require__("b727").findIndex;
- var addToUnscopables = __webpack_require__("44d2");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var FIND_INDEX = "findIndex";
- var SKIPS_HOLES = true;
- var USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);
- if (FIND_INDEX in [])
- Array(1)[FIND_INDEX](function() {
- SKIPS_HOLES = false;
- });
- $({ target: "Array", proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
- findIndex: function findIndex(callbackfn) {
- return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- addToUnscopables(FIND_INDEX);
- }
- ),
- /***/
- "c8ba": (
- /***/
- function(module2, exports2) {
- var g;
- g = function() {
- return this;
- }();
- try {
- g = g || new Function("return this")();
- } catch (e) {
- if (typeof window === "object")
- g = window;
- }
- module2.exports = g;
- }
- ),
- /***/
- "c975": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $indexOf = __webpack_require__("4d64").indexOf;
- var arrayMethodIsStrict = __webpack_require__("a640");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var nativeIndexOf = [].indexOf;
- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
- var STRICT_METHOD = arrayMethodIsStrict("indexOf");
- var USES_TO_LENGTH = arrayMethodUsesToLength("indexOf", { ACCESSORS: true, 1: 0 });
- $({ target: "Array", proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {
- indexOf: function indexOf(searchElement) {
- return NEGATIVE_ZERO ? nativeIndexOf.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- }
- ),
- /***/
- "ca84": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var has = __webpack_require__("5135");
- var toIndexedObject = __webpack_require__("fc6a");
- var indexOf = __webpack_require__("4d64").indexOf;
- var hiddenKeys = __webpack_require__("d012");
- module2.exports = function(object, names) {
- var O = toIndexedObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O)
- !has(hiddenKeys, key) && has(O, key) && result.push(key);
- while (names.length > i)
- if (has(O, key = names[i++])) {
- ~indexOf(result, key) || result.push(key);
- }
- return result;
- };
- }
- ),
- /***/
- "caad": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $includes = __webpack_require__("4d64").includes;
- var addToUnscopables = __webpack_require__("44d2");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var USES_TO_LENGTH = arrayMethodUsesToLength("indexOf", { ACCESSORS: true, 1: 0 });
- $({ target: "Array", proto: true, forced: !USES_TO_LENGTH }, {
- includes: function includes(el) {
- return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- addToUnscopables("includes");
- }
- ),
- /***/
- "cc12": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var isObject = __webpack_require__("861d");
- var document2 = global.document;
- var EXISTS = isObject(document2) && isObject(document2.createElement);
- module2.exports = function(it) {
- return EXISTS ? document2.createElement(it) : {};
- };
- }
- ),
- /***/
- "ce4e": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var createNonEnumerableProperty = __webpack_require__("9112");
- module2.exports = function(key, value) {
- try {
- createNonEnumerableProperty(global, key, value);
- } catch (error) {
- global[key] = value;
- }
- return value;
- };
- }
- ),
- /***/
- "d012": (
- /***/
- function(module2, exports2) {
- module2.exports = {};
- }
- ),
- /***/
- "d039": (
- /***/
- function(module2, exports2) {
- module2.exports = function(exec) {
- try {
- return !!exec();
- } catch (error) {
- return true;
- }
- };
- }
- ),
- /***/
- "d066": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var path = __webpack_require__("428f");
- var global = __webpack_require__("da84");
- var aFunction = function(variable) {
- return typeof variable == "function" ? variable : void 0;
- };
- module2.exports = function(namespace, method) {
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
- };
- }
- ),
- /***/
- "d1e7": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
- exports2.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
- var descriptor = getOwnPropertyDescriptor(this, V);
- return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
- }
- ),
- /***/
- "d28b": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var defineWellKnownSymbol = __webpack_require__("746f");
- defineWellKnownSymbol("iterator");
- }
- ),
- /***/
- "d2bb": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var anObject = __webpack_require__("825a");
- var aPossiblePrototype = __webpack_require__("3bbe");
- module2.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
- var CORRECT_SETTER = false;
- var test = {};
- var setter;
- try {
- setter = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set;
- setter.call(test, []);
- CORRECT_SETTER = test instanceof Array;
- } catch (error) {
- }
- return function setPrototypeOf(O, proto) {
- anObject(O);
- aPossiblePrototype(proto);
- if (CORRECT_SETTER)
- setter.call(O, proto);
- else
- O.__proto__ = proto;
- return O;
- };
- }() : void 0);
- }
- ),
- /***/
- "d3b7": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
- var redefine = __webpack_require__("6eeb");
- var toString = __webpack_require__("b041");
- if (!TO_STRING_TAG_SUPPORT) {
- redefine(Object.prototype, "toString", toString, { unsafe: true });
- }
- }
- ),
- /***/
- "d44e": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var defineProperty = __webpack_require__("9bf2").f;
- var has = __webpack_require__("5135");
- var wellKnownSymbol = __webpack_require__("b622");
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
- module2.exports = function(it, TAG, STATIC) {
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
- defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
- }
- };
- }
- ),
- /***/
- "d58f": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var aFunction = __webpack_require__("1c0b");
- var toObject = __webpack_require__("7b0b");
- var IndexedObject = __webpack_require__("44ad");
- var toLength = __webpack_require__("50c4");
- var createMethod = function(IS_RIGHT) {
- return function(that, callbackfn, argumentsLength, memo) {
- aFunction(callbackfn);
- var O = toObject(that);
- var self2 = IndexedObject(O);
- var length = toLength(O.length);
- var index2 = IS_RIGHT ? length - 1 : 0;
- var i = IS_RIGHT ? -1 : 1;
- if (argumentsLength < 2)
- while (true) {
- if (index2 in self2) {
- memo = self2[index2];
- index2 += i;
- break;
- }
- index2 += i;
- if (IS_RIGHT ? index2 < 0 : length <= index2) {
- throw TypeError("Reduce of empty array with no initial value");
- }
- }
- for (; IS_RIGHT ? index2 >= 0 : length > index2; index2 += i)
- if (index2 in self2) {
- memo = callbackfn(memo, self2[index2], index2, O);
- }
- return memo;
- };
- };
- module2.exports = {
- // `Array.prototype.reduce` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.reduce
- left: createMethod(false),
- // `Array.prototype.reduceRight` method
- // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
- right: createMethod(true)
- };
- }
- ),
- /***/
- "d784": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- __webpack_require__("ac1f");
- var redefine = __webpack_require__("6eeb");
- var fails = __webpack_require__("d039");
- var wellKnownSymbol = __webpack_require__("b622");
- var regexpExec = __webpack_require__("9263");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var SPECIES = wellKnownSymbol("species");
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() {
- var re = /./;
- re.exec = function() {
- var result = [];
- result.groups = { a: "7" };
- return result;
- };
- return "".replace(re, "$<a>") !== "7";
- });
- var REPLACE_KEEPS_$0 = function() {
- return "a".replace(/./, "$0") === "$0";
- }();
- var REPLACE = wellKnownSymbol("replace");
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() {
- if (/./[REPLACE]) {
- return /./[REPLACE]("a", "$0") === "";
- }
- return false;
- }();
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function() {
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function() {
- return originalExec.apply(this, arguments);
- };
- var result = "ab".split(re);
- return result.length !== 2 || result[0] !== "a" || result[1] !== "b";
- });
- module2.exports = function(KEY, length, exec, sham) {
- var SYMBOL = wellKnownSymbol(KEY);
- var DELEGATES_TO_SYMBOL = !fails(function() {
- var O = {};
- O[SYMBOL] = function() {
- return 7;
- };
- return ""[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() {
- var execCalled = false;
- var re = /a/;
- if (KEY === "split") {
- re = {};
- re.constructor = {};
- re.constructor[SPECIES] = function() {
- return re;
- };
- re.flags = "";
- re[SYMBOL] = /./[SYMBOL];
- }
- re.exec = function() {
- execCalled = true;
- return null;
- };
- re[SYMBOL]("");
- return !execCalled;
- });
- if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || KEY === "replace" && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0 && !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE) || KEY === "split" && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) {
- var nativeRegExpMethod = /./[SYMBOL];
- var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }, {
- REPLACE_KEEPS_$0,
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
- });
- var stringMethod = methods[0];
- var regexMethod = methods[1];
- redefine(String.prototype, KEY, stringMethod);
- redefine(
- RegExp.prototype,
- SYMBOL,
- length == 2 ? function(string, arg) {
- return regexMethod.call(string, this, arg);
- } : function(string) {
- return regexMethod.call(string, this);
- }
- );
- }
- if (sham)
- createNonEnumerableProperty(RegExp.prototype[SYMBOL], "sham", true);
- };
- }
- ),
- /***/
- "d81d": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var $map = __webpack_require__("b727").map;
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map");
- var USES_TO_LENGTH = arrayMethodUsesToLength("map");
- $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- map: function map(callbackfn) {
- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
- }
- });
- }
- ),
- /***/
- "da84": (
- /***/
- function(module2, exports2, __webpack_require__) {
- (function(global) {
- var check = function(it) {
- return it && it.Math == Math && it;
- };
- module2.exports = // eslint-disable-next-line no-undef
- check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof global == "object" && global) || // eslint-disable-next-line no-new-func
- Function("return this")();
- }).call(this, __webpack_require__("c8ba"));
- }
- ),
- /***/
- "dbb4": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var $ = __webpack_require__("23e7");
- var DESCRIPTORS = __webpack_require__("83ab");
- var ownKeys2 = __webpack_require__("56ef");
- var toIndexedObject = __webpack_require__("fc6a");
- var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
- var createProperty = __webpack_require__("8418");
- $({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
- getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
- var O = toIndexedObject(object);
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- var keys = ownKeys2(O);
- var result = {};
- var index2 = 0;
- var key, descriptor;
- while (keys.length > index2) {
- descriptor = getOwnPropertyDescriptor(O, key = keys[index2++]);
- if (descriptor !== void 0)
- createProperty(result, key, descriptor);
- }
- return result;
- }
- });
- }
- ),
- /***/
- "dbf1": (
- /***/
- function(module2, __webpack_exports__, __webpack_require__) {
- "use strict";
- (function(global) {
- __webpack_require__.d(__webpack_exports__, "a", function() {
- return console;
- });
- function getConsole() {
- if (typeof window !== "undefined") {
- return window.console;
- }
- return global.console;
- }
- var console = getConsole();
- }).call(this, __webpack_require__("c8ba"));
- }
- ),
- /***/
- "ddb0": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var global = __webpack_require__("da84");
- var DOMIterables = __webpack_require__("fdbc");
- var ArrayIteratorMethods = __webpack_require__("e260");
- var createNonEnumerableProperty = __webpack_require__("9112");
- var wellKnownSymbol = __webpack_require__("b622");
- var ITERATOR = wellKnownSymbol("iterator");
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
- var ArrayValues = ArrayIteratorMethods.values;
- for (var COLLECTION_NAME in DOMIterables) {
- var Collection = global[COLLECTION_NAME];
- var CollectionPrototype = Collection && Collection.prototype;
- if (CollectionPrototype) {
- if (CollectionPrototype[ITERATOR] !== ArrayValues)
- try {
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
- } catch (error) {
- CollectionPrototype[ITERATOR] = ArrayValues;
- }
- if (!CollectionPrototype[TO_STRING_TAG]) {
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
- }
- if (DOMIterables[COLLECTION_NAME])
- for (var METHOD_NAME in ArrayIteratorMethods) {
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
- try {
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
- } catch (error) {
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
- }
- }
- }
- }
- }
- ),
- /***/
- "df75": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var internalObjectKeys = __webpack_require__("ca84");
- var enumBugKeys = __webpack_require__("7839");
- module2.exports = Object.keys || function keys(O) {
- return internalObjectKeys(O, enumBugKeys);
- };
- }
- ),
- /***/
- "e01a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var DESCRIPTORS = __webpack_require__("83ab");
- var global = __webpack_require__("da84");
- var has = __webpack_require__("5135");
- var isObject = __webpack_require__("861d");
- var defineProperty = __webpack_require__("9bf2").f;
- var copyConstructorProperties = __webpack_require__("e893");
- var NativeSymbol = global.Symbol;
- if (DESCRIPTORS && typeof NativeSymbol == "function" && (!("description" in NativeSymbol.prototype) || // Safari 12 bug
- NativeSymbol().description !== void 0)) {
- var EmptyStringDescriptionStore = {};
- var SymbolWrapper = function Symbol2() {
- var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : String(arguments[0]);
- var result = this instanceof SymbolWrapper ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description);
- if (description === "")
- EmptyStringDescriptionStore[result] = true;
- return result;
- };
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
- symbolPrototype.constructor = SymbolWrapper;
- var symbolToString = symbolPrototype.toString;
- var native = String(NativeSymbol("test")) == "Symbol(test)";
- var regexp = /^Symbol\((.*)\)[^)]+$/;
- defineProperty(symbolPrototype, "description", {
- configurable: true,
- get: function description() {
- var symbol = isObject(this) ? this.valueOf() : this;
- var string = symbolToString.call(symbol);
- if (has(EmptyStringDescriptionStore, symbol))
- return "";
- var desc = native ? string.slice(7, -1) : string.replace(regexp, "$1");
- return desc === "" ? void 0 : desc;
- }
- });
- $({ global: true, forced: true }, {
- Symbol: SymbolWrapper
- });
- }
- }
- ),
- /***/
- "e163": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var has = __webpack_require__("5135");
- var toObject = __webpack_require__("7b0b");
- var sharedKey = __webpack_require__("f772");
- var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
- var IE_PROTO = sharedKey("IE_PROTO");
- var ObjectPrototype = Object.prototype;
- module2.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function(O) {
- O = toObject(O);
- if (has(O, IE_PROTO))
- return O[IE_PROTO];
- if (typeof O.constructor == "function" && O instanceof O.constructor) {
- return O.constructor.prototype;
- }
- return O instanceof Object ? ObjectPrototype : null;
- };
- }
- ),
- /***/
- "e177": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var fails = __webpack_require__("d039");
- module2.exports = !fails(function() {
- function F() {
- }
- F.prototype.constructor = null;
- return Object.getPrototypeOf(new F()) !== F.prototype;
- });
- }
- ),
- /***/
- "e260": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var toIndexedObject = __webpack_require__("fc6a");
- var addToUnscopables = __webpack_require__("44d2");
- var Iterators = __webpack_require__("3f8c");
- var InternalStateModule = __webpack_require__("69f3");
- var defineIterator = __webpack_require__("7dd0");
- var ARRAY_ITERATOR = "Array Iterator";
- var setInternalState = InternalStateModule.set;
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
- module2.exports = defineIterator(Array, "Array", function(iterated, kind) {
- setInternalState(this, {
- type: ARRAY_ITERATOR,
- target: toIndexedObject(iterated),
- // target
- index: 0,
- // next index
- kind
- // kind
- });
- }, function() {
- var state = getInternalState(this);
- var target = state.target;
- var kind = state.kind;
- var index2 = state.index++;
- if (!target || index2 >= target.length) {
- state.target = void 0;
- return { value: void 0, done: true };
- }
- if (kind == "keys")
- return { value: index2, done: false };
- if (kind == "values")
- return { value: target[index2], done: false };
- return { value: [index2, target[index2]], done: false };
- }, "values");
- Iterators.Arguments = Iterators.Array;
- addToUnscopables("keys");
- addToUnscopables("values");
- addToUnscopables("entries");
- }
- ),
- /***/
- "e439": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var $ = __webpack_require__("23e7");
- var fails = __webpack_require__("d039");
- var toIndexedObject = __webpack_require__("fc6a");
- var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
- var DESCRIPTORS = __webpack_require__("83ab");
- var FAILS_ON_PRIMITIVES = fails(function() {
- nativeGetOwnPropertyDescriptor(1);
- });
- var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
- $({ target: "Object", stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
- getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
- return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
- }
- });
- }
- ),
- /***/
- "e538": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- exports2.f = wellKnownSymbol;
- }
- ),
- /***/
- "e893": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var has = __webpack_require__("5135");
- var ownKeys2 = __webpack_require__("56ef");
- var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
- var definePropertyModule = __webpack_require__("9bf2");
- module2.exports = function(target, source) {
- var keys = ownKeys2(source);
- var defineProperty = definePropertyModule.f;
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (!has(target, key))
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
- }
- };
- }
- ),
- /***/
- "e8b5": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var classof = __webpack_require__("c6b6");
- module2.exports = Array.isArray || function isArray(arg) {
- return classof(arg) == "Array";
- };
- }
- ),
- /***/
- "e95a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var wellKnownSymbol = __webpack_require__("b622");
- var Iterators = __webpack_require__("3f8c");
- var ITERATOR = wellKnownSymbol("iterator");
- var ArrayPrototype = Array.prototype;
- module2.exports = function(it) {
- return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
- };
- }
- ),
- /***/
- "f5df": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
- var classofRaw = __webpack_require__("c6b6");
- var wellKnownSymbol = __webpack_require__("b622");
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
- var CORRECT_ARGUMENTS = classofRaw(function() {
- return arguments;
- }()) == "Arguments";
- var tryGet = function(it, key) {
- try {
- return it[key];
- } catch (error) {
- }
- };
- module2.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
- var O, tag, result;
- return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && typeof O.callee == "function" ? "Arguments" : result;
- };
- }
- ),
- /***/
- "f772": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var shared = __webpack_require__("5692");
- var uid = __webpack_require__("90e3");
- var keys = shared("keys");
- module2.exports = function(key) {
- return keys[key] || (keys[key] = uid(key));
- };
- }
- ),
- /***/
- "fb15": (
- /***/
- function(module2, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- if (typeof window !== "undefined") {
- var currentScript = window.document.currentScript;
- if (true) {
- var getCurrentScript = __webpack_require__("8875");
- currentScript = getCurrentScript();
- if (!("currentScript" in document)) {
- Object.defineProperty(document, "currentScript", { get: getCurrentScript });
- }
- }
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);
- if (src) {
- __webpack_require__.p = src[1];
- }
- }
- var setPublicPath = null;
- var es_array_concat = __webpack_require__("99af");
- var es_array_filter = __webpack_require__("4de4");
- var es_array_for_each = __webpack_require__("4160");
- var es_array_index_of = __webpack_require__("c975");
- var es_array_map = __webpack_require__("d81d");
- var es_array_splice = __webpack_require__("a434");
- var web_dom_collections_for_each = __webpack_require__("159b");
- var es_symbol = __webpack_require__("a4d3");
- var es_object_get_own_property_descriptor = __webpack_require__("e439");
- var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
- var es_object_keys = __webpack_require__("b64b");
- function _defineProperty2(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- function ownKeys2(object, enumerableOnly) {
- var keys = Object.keys(object);
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly)
- symbols = symbols.filter(function(sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
- return keys;
- }
- function _objectSpread22(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- if (i % 2) {
- ownKeys2(Object(source), true).forEach(function(key) {
- _defineProperty2(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys2(Object(source)).forEach(function(key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
- return target;
- }
- function _arrayWithHoles(arr) {
- if (Array.isArray(arr))
- return arr;
- }
- var es_symbol_description = __webpack_require__("e01a");
- var es_symbol_iterator = __webpack_require__("d28b");
- var es_array_iterator = __webpack_require__("e260");
- var es_object_to_string = __webpack_require__("d3b7");
- var es_string_iterator = __webpack_require__("3ca3");
- var web_dom_collections_iterator = __webpack_require__("ddb0");
- function _iterableToArrayLimit(arr, i) {
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr)))
- return;
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = void 0;
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
- if (i && _arr.length === i)
- break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null)
- _i["return"]();
- } finally {
- if (_d)
- throw _e;
- }
- }
- return _arr;
- }
- var es_array_from = __webpack_require__("a630");
- var es_array_slice = __webpack_require__("fb6a");
- var es_function_name = __webpack_require__("b0c0");
- var es_regexp_to_string = __webpack_require__("25f0");
- function _arrayLikeToArray2(arr, len) {
- if (len == null || len > arr.length)
- len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
- arr2[i] = arr[i];
- }
- return arr2;
- }
- function _unsupportedIterableToArray2(o, minLen) {
- if (!o)
- return;
- if (typeof o === "string")
- return _arrayLikeToArray2(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor)
- n = o.constructor.name;
- if (n === "Map" || n === "Set")
- return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return _arrayLikeToArray2(o, minLen);
- }
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- function _slicedToArray(arr, i) {
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray2(arr, i) || _nonIterableRest();
- }
- function _arrayWithoutHoles2(arr) {
- if (Array.isArray(arr))
- return _arrayLikeToArray2(arr);
- }
- function _iterableToArray2(iter) {
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter))
- return Array.from(iter);
- }
- function _nonIterableSpread2() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- function _toConsumableArray2(arr) {
- return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _unsupportedIterableToArray2(arr) || _nonIterableSpread2();
- }
- var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__("a352");
- var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = __webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);
- function removeNode(node) {
- if (node.parentElement !== null) {
- node.parentElement.removeChild(node);
- }
- }
- function insertNodeAt(fatherNode, node, position) {
- var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;
- fatherNode.insertBefore(node, refNode);
- }
- var console = __webpack_require__("dbf1");
- var es_array_reduce = __webpack_require__("13d5");
- var es_object_entries = __webpack_require__("4fad");
- var es_regexp_exec = __webpack_require__("ac1f");
- var es_string_replace = __webpack_require__("5319");
- function cached(fn) {
- var cache = /* @__PURE__ */ Object.create(null);
- return function cachedFn(str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str));
- };
- }
- var regex = /-(\w)/g;
- var camelize = cached(function(str) {
- return str.replace(regex, function(_, c) {
- return c.toUpperCase();
- });
- });
- var es_array_flat_map = __webpack_require__("5db7");
- var es_array_unscopables_flat_map = __webpack_require__("73d9");
- var manageAndEmit = ["Start", "Add", "Remove", "Update", "End"];
- var emit = ["Choose", "Unchoose", "Sort", "Filter", "Clone"];
- var manage = ["Move"];
- var eventHandlerNames = [manage, manageAndEmit, emit].flatMap(function(events2) {
- return events2;
- }).map(function(evt) {
- return "on".concat(evt);
- });
- var events = {
- manage,
- manageAndEmit,
- emit
- };
- function isReadOnly(eventName) {
- return eventHandlerNames.indexOf(eventName) !== -1;
- }
- var es_array_includes = __webpack_require__("caad");
- var es_string_starts_with = __webpack_require__("2ca0");
- var tags = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"];
- function isHtmlTag(name) {
- return tags.includes(name);
- }
- function isTransition(name) {
- return ["transition-group", "TransitionGroup"].includes(name);
- }
- function isHtmlAttribute(value) {
- return ["id", "class", "role", "style"].includes(value) || value.startsWith("data-") || value.startsWith("aria-") || value.startsWith("on");
- }
- function project(entries) {
- return entries.reduce(function(res, _ref) {
- var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
- res[key] = value;
- return res;
- }, {});
- }
- function getComponentAttributes(_ref3) {
- var $attrs = _ref3.$attrs, _ref3$componentData = _ref3.componentData, componentData = _ref3$componentData === void 0 ? {} : _ref3$componentData;
- var attributes = project(Object.entries($attrs).filter(function(_ref4) {
- var _ref5 = _slicedToArray(_ref4, 2), key = _ref5[0], _ = _ref5[1];
- return isHtmlAttribute(key);
- }));
- return _objectSpread22(_objectSpread22({}, attributes), componentData);
- }
- function createSortableOption(_ref6) {
- var $attrs = _ref6.$attrs, callBackBuilder = _ref6.callBackBuilder;
- var options = project(getValidSortableEntries($attrs));
- Object.entries(callBackBuilder).forEach(function(_ref7) {
- var _ref8 = _slicedToArray(_ref7, 2), eventType = _ref8[0], eventBuilder = _ref8[1];
- events[eventType].forEach(function(event) {
- options["on".concat(event)] = eventBuilder(event);
- });
- });
- var draggable = "[data-draggable]".concat(options.draggable || "");
- return _objectSpread22(_objectSpread22({}, options), {}, {
- draggable
- });
- }
- function getValidSortableEntries(value) {
- return Object.entries(value).filter(function(_ref9) {
- var _ref10 = _slicedToArray(_ref9, 2), key = _ref10[0], _ = _ref10[1];
- return !isHtmlAttribute(key);
- }).map(function(_ref11) {
- var _ref12 = _slicedToArray(_ref11, 2), key = _ref12[0], value2 = _ref12[1];
- return [camelize(key), value2];
- }).filter(function(_ref13) {
- var _ref14 = _slicedToArray(_ref13, 2), key = _ref14[0], _ = _ref14[1];
- return !isReadOnly(key);
- });
- }
- var es_array_find_index = __webpack_require__("c740");
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- function _defineProperties(target, props2) {
- for (var i = 0; i < props2.length; i++) {
- var descriptor = props2[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor)
- descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps)
- _defineProperties(Constructor.prototype, protoProps);
- if (staticProps)
- _defineProperties(Constructor, staticProps);
- return Constructor;
- }
- var getHtmlElementFromNode = function getHtmlElementFromNode2(_ref) {
- var el = _ref.el;
- return el;
- };
- var addContext = function addContext2(domElement, context) {
- return domElement.__draggable_context = context;
- };
- var getContext = function getContext2(domElement) {
- return domElement.__draggable_context;
- };
- var componentStructure_ComponentStructure = function() {
- function ComponentStructure(_ref2) {
- var _ref2$nodes = _ref2.nodes, header = _ref2$nodes.header, defaultNodes = _ref2$nodes.default, footer = _ref2$nodes.footer, root = _ref2.root, realList = _ref2.realList;
- _classCallCheck(this, ComponentStructure);
- this.defaultNodes = defaultNodes;
- this.children = [].concat(_toConsumableArray2(header), _toConsumableArray2(defaultNodes), _toConsumableArray2(footer));
- this.externalComponent = root.externalComponent;
- this.rootTransition = root.transition;
- this.tag = root.tag;
- this.realList = realList;
- }
- _createClass(ComponentStructure, [{
- key: "render",
- value: function render(h, attributes) {
- var tag = this.tag, children = this.children, _isRootComponent = this._isRootComponent;
- var option2 = !_isRootComponent ? children : {
- default: function _default() {
- return children;
- }
- };
- return h(tag, attributes, option2);
- }
- }, {
- key: "updated",
- value: function updated() {
- var defaultNodes = this.defaultNodes, realList = this.realList;
- defaultNodes.forEach(function(node, index2) {
- addContext(getHtmlElementFromNode(node), {
- element: realList[index2],
- index: index2
- });
- });
- }
- }, {
- key: "getUnderlyingVm",
- value: function getUnderlyingVm(domElement) {
- return getContext(domElement);
- }
- }, {
- key: "getVmIndexFromDomIndex",
- value: function getVmIndexFromDomIndex(domIndex, element) {
- var defaultNodes = this.defaultNodes;
- var length = defaultNodes.length;
- var domChildren = element.children;
- var domElement = domChildren.item(domIndex);
- if (domElement === null) {
- return length;
- }
- var context = getContext(domElement);
- if (context) {
- return context.index;
- }
- if (length === 0) {
- return 0;
- }
- var firstDomListElement = getHtmlElementFromNode(defaultNodes[0]);
- var indexFirstDomListElement = _toConsumableArray2(domChildren).findIndex(function(element2) {
- return element2 === firstDomListElement;
- });
- return domIndex < indexFirstDomListElement ? 0 : length;
- }
- }, {
- key: "_isRootComponent",
- get: function get() {
- return this.externalComponent || this.rootTransition;
- }
- }]);
- return ComponentStructure;
- }();
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
- function getSlot(slots, key) {
- var slotValue = slots[key];
- return slotValue ? slotValue() : [];
- }
- function computeNodes(_ref) {
- var $slots = _ref.$slots, realList = _ref.realList, getKey = _ref.getKey;
- var normalizedList = realList || [];
- var _map = ["header", "footer"].map(function(name) {
- return getSlot($slots, name);
- }), _map2 = _slicedToArray(_map, 2), header = _map2[0], footer = _map2[1];
- var item = $slots.item;
- if (!item) {
- throw new Error("draggable element must have an item slot");
- }
- var defaultNodes = normalizedList.flatMap(function(element, index2) {
- return item({
- element,
- index: index2
- }).map(function(node) {
- node.key = getKey(element);
- node.props = _objectSpread22(_objectSpread22({}, node.props || {}), {}, {
- "data-draggable": true
- });
- return node;
- });
- });
- if (defaultNodes.length !== normalizedList.length) {
- throw new Error("Item slot must have only one child");
- }
- return {
- header,
- footer,
- default: defaultNodes
- };
- }
- function getRootInformation(tag) {
- var transition = isTransition(tag);
- var externalComponent = !isHtmlTag(tag) && !transition;
- return {
- transition,
- externalComponent,
- tag: externalComponent ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])(tag) : transition ? external_commonjs_vue_commonjs2_vue_root_Vue_["TransitionGroup"] : tag
- };
- }
- function computeComponentStructure(_ref2) {
- var $slots = _ref2.$slots, tag = _ref2.tag, realList = _ref2.realList, getKey = _ref2.getKey;
- var nodes = computeNodes({
- $slots,
- realList,
- getKey
- });
- var root = getRootInformation(tag);
- return new componentStructure_ComponentStructure({
- nodes,
- root,
- realList
- });
- }
- function _emit(evtName, evtData) {
- var _this = this;
- Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function() {
- return _this.$emit(evtName.toLowerCase(), evtData);
- });
- }
- function _manage(evtName) {
- var _this2 = this;
- return function(evtData, originalElement) {
- if (_this2.realList !== null) {
- return _this2["onDrag".concat(evtName)](evtData, originalElement);
- }
- };
- }
- function _manageAndEmit(evtName) {
- var _this3 = this;
- var delegateCallBack = _manage.call(this, evtName);
- return function(evtData, originalElement) {
- delegateCallBack.call(_this3, evtData, originalElement);
- _emit.call(_this3, evtName, evtData);
- };
- }
- var draggingElement = null;
- var props = {
- list: {
- type: Array,
- required: false,
- default: null
- },
- modelValue: {
- type: Array,
- required: false,
- default: null
- },
- itemKey: {
- type: [String, Function],
- required: true
- },
- clone: {
- type: Function,
- default: function _default(original) {
- return original;
- }
- },
- tag: {
- type: String,
- default: "div"
- },
- move: {
- type: Function,
- default: null
- },
- componentData: {
- type: Object,
- required: false,
- default: null
- }
- };
- var emits = ["update:modelValue", "change"].concat(_toConsumableArray2([].concat(_toConsumableArray2(events.manageAndEmit), _toConsumableArray2(events.emit)).map(function(evt) {
- return evt.toLowerCase();
- })));
- var draggableComponent = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
- name: "draggable",
- inheritAttrs: false,
- props,
- emits,
- data: function data() {
- return {
- error: false
- };
- },
- render: function render() {
- try {
- this.error = false;
- var $slots = this.$slots, $attrs = this.$attrs, tag = this.tag, componentData = this.componentData, realList = this.realList, getKey = this.getKey;
- var componentStructure = computeComponentStructure({
- $slots,
- tag,
- realList,
- getKey
- });
- this.componentStructure = componentStructure;
- var attributes = getComponentAttributes({
- $attrs,
- componentData
- });
- return componentStructure.render(external_commonjs_vue_commonjs2_vue_root_Vue_["h"], attributes);
- } catch (err) {
- this.error = true;
- return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])("pre", {
- style: {
- color: "red"
- }
- }, err.stack);
- }
- },
- created: function created() {
- if (this.list !== null && this.modelValue !== null) {
- console[
- "a"
- /* console */
- ].error("modelValue and list props are mutually exclusive! Please set one or another.");
- }
- },
- mounted: function mounted() {
- var _this4 = this;
- if (this.error) {
- return;
- }
- var $attrs = this.$attrs, $el = this.$el, componentStructure = this.componentStructure;
- componentStructure.updated();
- var sortableOptions = createSortableOption({
- $attrs,
- callBackBuilder: {
- manageAndEmit: function manageAndEmit2(event) {
- return _manageAndEmit.call(_this4, event);
- },
- emit: function emit2(event) {
- return _emit.bind(_this4, event);
- },
- manage: function manage2(event) {
- return _manage.call(_this4, event);
- }
- }
- });
- var targetDomElement = $el.nodeType === 1 ? $el : $el.parentElement;
- this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(targetDomElement, sortableOptions);
- this.targetDomElement = targetDomElement;
- targetDomElement.__draggable_component__ = this;
- },
- updated: function updated() {
- this.componentStructure.updated();
- },
- beforeUnmount: function beforeUnmount() {
- if (this._sortable !== void 0)
- this._sortable.destroy();
- },
- computed: {
- realList: function realList() {
- var list = this.list;
- return list ? list : this.modelValue;
- },
- getKey: function getKey() {
- var itemKey = this.itemKey;
- if (typeof itemKey === "function") {
- return itemKey;
- }
- return function(element) {
- return element[itemKey];
- };
- }
- },
- watch: {
- $attrs: {
- handler: function handler(newOptionValue) {
- var _sortable = this._sortable;
- if (!_sortable)
- return;
- getValidSortableEntries(newOptionValue).forEach(function(_ref) {
- var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
- _sortable.option(key, value);
- });
- },
- deep: true
- }
- },
- methods: {
- getUnderlyingVm: function getUnderlyingVm(domElement) {
- return this.componentStructure.getUnderlyingVm(domElement) || null;
- },
- getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(htmElement) {
- return htmElement.__draggable_component__;
- },
- emitChanges: function emitChanges(evt) {
- var _this5 = this;
- Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function() {
- return _this5.$emit("change", evt);
- });
- },
- alterList: function alterList(onList) {
- if (this.list) {
- onList(this.list);
- return;
- }
- var newList = _toConsumableArray2(this.modelValue);
- onList(newList);
- this.$emit("update:modelValue", newList);
- },
- spliceList: function spliceList() {
- var _arguments = arguments;
- var spliceList2 = function spliceList3(list) {
- return list.splice.apply(list, _toConsumableArray2(_arguments));
- };
- this.alterList(spliceList2);
- },
- updatePosition: function updatePosition(oldIndex2, newIndex2) {
- var updatePosition2 = function updatePosition3(list) {
- return list.splice(newIndex2, 0, list.splice(oldIndex2, 1)[0]);
- };
- this.alterList(updatePosition2);
- },
- getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref3) {
- var to = _ref3.to, related = _ref3.related;
- var component = this.getUnderlyingPotencialDraggableComponent(to);
- if (!component) {
- return {
- component
- };
- }
- var list = component.realList;
- var context = {
- list,
- component
- };
- if (to !== related && list) {
- var destination = component.getUnderlyingVm(related) || {};
- return _objectSpread22(_objectSpread22({}, destination), context);
- }
- return context;
- },
- getVmIndexFromDomIndex: function getVmIndexFromDomIndex(domIndex) {
- return this.componentStructure.getVmIndexFromDomIndex(domIndex, this.targetDomElement);
- },
- onDragStart: function onDragStart(evt) {
- this.context = this.getUnderlyingVm(evt.item);
- evt.item._underlying_vm_ = this.clone(this.context.element);
- draggingElement = evt.item;
- },
- onDragAdd: function onDragAdd(evt) {
- var element = evt.item._underlying_vm_;
- if (element === void 0) {
- return;
- }
- removeNode(evt.item);
- var newIndex2 = this.getVmIndexFromDomIndex(evt.newIndex);
- this.spliceList(newIndex2, 0, element);
- var added = {
- element,
- newIndex: newIndex2
- };
- this.emitChanges({
- added
- });
- },
- onDragRemove: function onDragRemove(evt) {
- insertNodeAt(this.$el, evt.item, evt.oldIndex);
- if (evt.pullMode === "clone") {
- removeNode(evt.clone);
- return;
- }
- var _this$context = this.context, oldIndex2 = _this$context.index, element = _this$context.element;
- this.spliceList(oldIndex2, 1);
- var removed = {
- element,
- oldIndex: oldIndex2
- };
- this.emitChanges({
- removed
- });
- },
- onDragUpdate: function onDragUpdate(evt) {
- removeNode(evt.item);
- insertNodeAt(evt.from, evt.item, evt.oldIndex);
- var oldIndex2 = this.context.index;
- var newIndex2 = this.getVmIndexFromDomIndex(evt.newIndex);
- this.updatePosition(oldIndex2, newIndex2);
- var moved2 = {
- element: this.context.element,
- oldIndex: oldIndex2,
- newIndex: newIndex2
- };
- this.emitChanges({
- moved: moved2
- });
- },
- computeFutureIndex: function computeFutureIndex(relatedContext, evt) {
- if (!relatedContext.element) {
- return 0;
- }
- var domChildren = _toConsumableArray2(evt.to.children).filter(function(el) {
- return el.style["display"] !== "none";
- });
- var currentDomIndex = domChildren.indexOf(evt.related);
- var currentIndex = relatedContext.component.getVmIndexFromDomIndex(currentDomIndex);
- var draggedInList = domChildren.indexOf(draggingElement) !== -1;
- return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;
- },
- onDragMove: function onDragMove(evt, originalEvent) {
- var move = this.move, realList = this.realList;
- if (!move || !realList) {
- return true;
- }
- var relatedContext = this.getRelatedContextFromMoveEvent(evt);
- var futureIndex = this.computeFutureIndex(relatedContext, evt);
- var draggedContext = _objectSpread22(_objectSpread22({}, this.context), {}, {
- futureIndex
- });
- var sendEvent = _objectSpread22(_objectSpread22({}, evt), {}, {
- relatedContext,
- draggedContext
- });
- return move(sendEvent, originalEvent);
- },
- onDragEnd: function onDragEnd() {
- draggingElement = null;
- }
- }
- });
- var vuedraggable = draggableComponent;
- var entry_lib = __webpack_exports__["default"] = vuedraggable;
- }
- ),
- /***/
- "fb6a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- "use strict";
- var $ = __webpack_require__("23e7");
- var isObject = __webpack_require__("861d");
- var isArray = __webpack_require__("e8b5");
- var toAbsoluteIndex = __webpack_require__("23cb");
- var toLength = __webpack_require__("50c4");
- var toIndexedObject = __webpack_require__("fc6a");
- var createProperty = __webpack_require__("8418");
- var wellKnownSymbol = __webpack_require__("b622");
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
- var arrayMethodUsesToLength = __webpack_require__("ae40");
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
- var USES_TO_LENGTH = arrayMethodUsesToLength("slice", { ACCESSORS: true, 0: 0, 1: 2 });
- var SPECIES = wellKnownSymbol("species");
- var nativeSlice = [].slice;
- var max = Math.max;
- $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
- slice: function slice(start, end) {
- var O = toIndexedObject(this);
- var length = toLength(O.length);
- var k = toAbsoluteIndex(start, length);
- var fin = toAbsoluteIndex(end === void 0 ? length : end, length);
- var Constructor, result, n;
- if (isArray(O)) {
- Constructor = O.constructor;
- if (typeof Constructor == "function" && (Constructor === Array || isArray(Constructor.prototype))) {
- Constructor = void 0;
- } else if (isObject(Constructor)) {
- Constructor = Constructor[SPECIES];
- if (Constructor === null)
- Constructor = void 0;
- }
- if (Constructor === Array || Constructor === void 0) {
- return nativeSlice.call(O, k, fin);
- }
- }
- result = new (Constructor === void 0 ? Array : Constructor)(max(fin - k, 0));
- for (n = 0; k < fin; k++, n++)
- if (k in O)
- createProperty(result, n, O[k]);
- result.length = n;
- return result;
- }
- });
- }
- ),
- /***/
- "fc6a": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var IndexedObject = __webpack_require__("44ad");
- var requireObjectCoercible = __webpack_require__("1d80");
- module2.exports = function(it) {
- return IndexedObject(requireObjectCoercible(it));
- };
- }
- ),
- /***/
- "fdbc": (
- /***/
- function(module2, exports2) {
- module2.exports = {
- CSSRuleList: 0,
- CSSStyleDeclaration: 0,
- CSSValueList: 0,
- ClientRectList: 0,
- DOMRectList: 0,
- DOMStringList: 0,
- DOMTokenList: 1,
- DataTransferItemList: 0,
- FileList: 0,
- HTMLAllCollection: 0,
- HTMLCollection: 0,
- HTMLFormElement: 0,
- HTMLSelectElement: 0,
- MediaList: 0,
- MimeTypeArray: 0,
- NamedNodeMap: 0,
- NodeList: 1,
- PaintRequestList: 0,
- Plugin: 0,
- PluginArray: 0,
- SVGLengthList: 0,
- SVGNumberList: 0,
- SVGPathSegList: 0,
- SVGPointList: 0,
- SVGStringList: 0,
- SVGTransformList: 0,
- SourceBufferList: 0,
- StyleSheetList: 0,
- TextTrackCueList: 0,
- TextTrackList: 0,
- TouchList: 0
- };
- }
- ),
- /***/
- "fdbf": (
- /***/
- function(module2, exports2, __webpack_require__) {
- var NATIVE_SYMBOL = __webpack_require__("4930");
- module2.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
- }
- )
- /******/
- })["default"]
- );
- });
- }
- });
- export default require_vuedraggable_umd();
- /*! Bundled license information:
- sortablejs/modular/sortable.esm.js:
- (**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- *)
- */
- //# sourceMappingURL=vuedraggable.js.map
|