| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843 |
- (function (n, Ao) {
- typeof exports == "object" && typeof module < "u" ? module.exports = Ao(require("vue")) : typeof define == "function" && define.amd ? define(["vue"], Ao) : (n = typeof globalThis < "u" ? globalThis : n || self,
- n["form_extend_com-actionsoft-apps-network"] = Ao(n.Vue))
- }
- )(this, function (n) {
- "use strict";
- var Ao = Object.defineProperty
- , Wd = (t, r, i) => r in t ? Ao(t, r, {
- enumerable: !0,
- configurable: !0,
- writable: !0,
- value: i
- }) : t[r] = i
- , jd = (t, r, i) => (Wd(t, r + "", i),
- i);
- const Fs = {
- itemConfig: {
- type: Object
- },
- options: {
- type: Object,
- default: () => ({})
- },
- modelValue: {
- type: String
- },
- formData: {
- type: Object
- },
- formDataExtend: {
- type: Object
- },
- rowData: {
- type: Object
- },
- command: {
- type: Object,
- default: () => ({
- readonly: !1,
- disabled: !1
- })
- },
- layoutId: {
- type: String,
- defalut: ""
- },
- isDesign: {
- type: Boolean,
- default: !1
- },
- placeholder: {
- type: String
- },
- operation: {
- type: Object,
- default: () => ({})
- },
- boModel: {
- type: Object
- },
- boItemModel: {
- type: Object
- },
- isGrid: {
- type: Boolean,
- default: !1
- },
- gridEditing: {
- type: Boolean,
- default: !1
- },
- gridComponentId: {
- type: String,
- default: () => ""
- },
- xGrid: {
- type: Object
- }
- }
- , Kd = {
- isMobile: {
- type: Boolean,
- default: !1
- },
- modelValue: {
- type: Object
- },
- env: {
- type: String,
- default: "form"
- }
- };
- class Gd {
- constructor() {
- jd(this, "eventData"),
- this.eventData = {}
- }
- $on(r, i) {
- return r == null ? this : (this.eventData[r] = this.eventData[r] || [],
- this.eventData[r].push(i),
- this)
- }
- $emit(r, ...i) {
- if (r == null)
- return this;
- if (r.indexOf(".") > -1)
- this.eventData[r] && this.eventData[r].forEach(s => {
- s(...i)
- }
- );
- else {
- const s = r.split(".")[0];
- for (const c in this.eventData)
- (c + ".").indexOf(s + ".") == 0 && this.eventData[c].forEach(f => {
- f(...i)
- }
- )
- }
- return this
- }
- $off(r) {
- if (r == null)
- return this;
- if (r.indexOf(".") > -1)
- this.eventData[r] && delete this.eventData[r];
- else {
- const i = r.split(".")[0];
- for (const s in this.eventData)
- (s + ".").indexOf(i + ".") == 0 && delete this.eventData[s]
- }
- return this
- }
- }
- n.ref("pc"),
- new Gd,
- n.ref(),
- n.ref(0);
- const Jd = {
- pc: "_component",
- mobile: "_m_component",
- pc_grid: "_grid_component",
- mobile_grid: "_m_grid_component"
- }
- , Yd = n.defineComponent({
- name: "form-van-field",
- props: {
- noborder: Boolean,
- name: String
- },
- setup(t, r) {
- const i = n.getCurrentInstance()
- , s = i == null ? void 0 : i.appContext.config.globalProperties;
- s == null || s.awsuiTools,
- s == null || s.$store.state;
- const c = n.inject("validateRule")
- , f = n.inject("boItemModel")
- , u = n.inject("titlePos", {
- value: "left"
- })
- , d = n.inject("element")
- , p = n.computed(() => {
- for (const E of c.value)
- if (E.required)
- return !0;
- return !1
- }
- )
- , w = n.computed(() => u.value == "top" ? t.noborder : !0);
- return {
- labelAlign: n.computed(() => {
- let E = "left";
- return u.value !== "top" ? d && (d.componentId == "AWSUI.HTMLEditor" || d.componentId == "AWSUI.Textarea" || d.componentId == "AWSUI.File" || d.componentId == "AWSUI.DateRange" || d.componentId == "AWSUI.Rating" || d.componentId == "AWSUI.MobileLocation" || d.componentId == "AWSUI.hwsignature2") && (E = "top") : E = "top",
- E
- }
- ),
- currentNoBorder: w,
- boItemModel: f,
- validateRule: c,
- isRequired: p,
- titlePos: u,
- buildCls() {
- return {
- noborder: t.noborder === !0
- }
- }
- }
- }
- })
- , qd = (t, r) => {
- const i = t.__vccOpts || t;
- for (const [s, c] of r)
- i[s] = c;
- return i
- }
- ;
- function Zd(t, r, i, s, c, f) {
- const u = n.resolveComponent("van-form-field");
- return n.openBlock(),
- n.createBlock(u, n.mergeProps(t.$attrs, {
- required: t.isRequired,
- noborder: t.currentNoBorder,
- class: t.buildCls(),
- rules: t.validateRule,
- labelAlign: t.labelAlign,
- name: t.boItemModel.fieldName
- }), n.createSlots({
- _: 2
- }, [n.renderList(t.$slots, (d, p) => ({
- name: p,
- fn: n.withCtx(() => [n.renderSlot(t.$slots, p)])
- }))]), 1040, ["required", "noborder", "class", "rules", "labelAlign", "name"])
- }
- const Xd = qd(Yd, [["render", Zd], ["__file", "E:/work/dev/vue/aws/aws-infrastructure-app/form-plus/form/packages/ui-components/public/packing-components/mobile/form-van-field.vue"]])
- , Xt = (t, r, { checkForDefaultPrevented: i = !0 } = {}) => c => {
- const f = t == null ? void 0 : t(c);
- if (i === !1 || !f)
- return r == null ? void 0 : r(c)
- }
- ;
- var Us;
- const Qe = typeof window < "u"
- , Qd = t => typeof t == "string"
- , zs = () => { }
- , ep = Qe && ((Us = window == null ? void 0 : window.navigator) == null ? void 0 : Us.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
- function Hs(t) {
- return typeof t == "function" ? t() : n.unref(t)
- }
- function tp(t) {
- return t
- }
- function _i(t) {
- return n.getCurrentScope() ? (n.onScopeDispose(t),
- !0) : !1
- }
- function np(t, r = !0) {
- n.getCurrentInstance() ? n.onMounted(t) : r ? t() : n.nextTick(t)
- }
- function mn(t) {
- var r;
- const i = Hs(t);
- return (r = i == null ? void 0 : i.$el) != null ? r : i
- }
- const wi = Qe ? window : void 0;
- function Qt(...t) {
- let r, i, s, c;
- if (Qd(t[0]) || Array.isArray(t[0]) ? ([i, s, c] = t,
- r = wi) : [r, i, s, c] = t,
- !r)
- return zs;
- Array.isArray(i) || (i = [i]),
- Array.isArray(s) || (s = [s]);
- const f = []
- , u = () => {
- f.forEach(E => E()),
- f.length = 0
- }
- , d = (E, C, h, x) => (E.addEventListener(C, h, x),
- () => E.removeEventListener(C, h, x))
- , p = n.watch(() => [mn(r), Hs(c)], ([E, C]) => {
- u(),
- E && f.push(...i.flatMap(h => s.map(x => d(E, h, x, C))))
- }
- , {
- immediate: !0,
- flush: "post"
- })
- , w = () => {
- p(),
- u()
- }
- ;
- return _i(w),
- w
- }
- let Ws = !1;
- function op(t, r, i = {}) {
- const { window: s = wi, ignore: c = [], capture: f = !0, detectIframe: u = !1 } = i;
- if (!s)
- return;
- ep && !Ws && (Ws = !0,
- Array.from(s.document.body.children).forEach(h => h.addEventListener("click", zs)));
- let d = !0;
- const p = h => c.some(x => {
- if (typeof x == "string")
- return Array.from(s.document.querySelectorAll(x)).some(v => v === h.target || h.composedPath().includes(v));
- {
- const v = mn(x);
- return v && (h.target === v || h.composedPath().includes(v))
- }
- }
- )
- , E = [Qt(s, "click", h => {
- const x = mn(t);
- if (!(!x || x === h.target || h.composedPath().includes(x))) {
- if (h.detail === 0 && (d = !p(h)),
- !d) {
- d = !0;
- return
- }
- r(h)
- }
- }
- , {
- passive: !0,
- capture: f
- }), Qt(s, "pointerdown", h => {
- const x = mn(t);
- x && (d = !h.composedPath().includes(x) && !p(h))
- }
- , {
- passive: !0
- }), u && Qt(s, "blur", h => {
- var x;
- const v = mn(t);
- ((x = s.document.activeElement) == null ? void 0 : x.tagName) === "IFRAME" && !(v != null && v.contains(s.document.activeElement)) && r(h)
- }
- )].filter(Boolean);
- return () => E.forEach(h => h())
- }
- function rp(t, r = !1) {
- const i = n.ref()
- , s = () => i.value = !!t();
- return s(),
- np(s, r),
- i
- }
- const js = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}
- , Ks = "__vueuse_ssr_handlers__";
- js[Ks] = js[Ks] || {};
- var Gs = Object.getOwnPropertySymbols
- , ip = Object.prototype.hasOwnProperty
- , ap = Object.prototype.propertyIsEnumerable
- , sp = (t, r) => {
- var i = {};
- for (var s in t)
- ip.call(t, s) && r.indexOf(s) < 0 && (i[s] = t[s]);
- if (t != null && Gs)
- for (var s of Gs(t))
- r.indexOf(s) < 0 && ap.call(t, s) && (i[s] = t[s]);
- return i
- }
- ;
- function Js(t, r, i = {}) {
- const s = i
- , { window: c = wi } = s
- , f = sp(s, ["window"]);
- let u;
- const d = rp(() => c && "ResizeObserver" in c)
- , p = () => {
- u && (u.disconnect(),
- u = void 0)
- }
- , w = n.watch(() => mn(t), C => {
- p(),
- d.value && c && C && (u = new ResizeObserver(r),
- u.observe(C, f))
- }
- , {
- immediate: !0,
- flush: "post"
- })
- , E = () => {
- p(),
- w()
- }
- ;
- return _i(E),
- {
- isSupported: d,
- stop: E
- }
- }
- var Ys;
- (function (t) {
- t.UP = "UP",
- t.RIGHT = "RIGHT",
- t.DOWN = "DOWN",
- t.LEFT = "LEFT",
- t.NONE = "NONE"
- }
- )(Ys || (Ys = {}));
- var lp = Object.defineProperty
- , qs = Object.getOwnPropertySymbols
- , cp = Object.prototype.hasOwnProperty
- , up = Object.prototype.propertyIsEnumerable
- , Zs = (t, r, i) => r in t ? lp(t, r, {
- enumerable: !0,
- configurable: !0,
- writable: !0,
- value: i
- }) : t[r] = i
- , fp = (t, r) => {
- for (var i in r || (r = {}))
- cp.call(r, i) && Zs(t, i, r[i]);
- if (qs)
- for (var i of qs(r))
- up.call(r, i) && Zs(t, i, r[i]);
- return t
- }
- ;
- fp({
- linear: tp
- }, {
- easeInSine: [.12, 0, .39, 0],
- easeOutSine: [.61, 1, .88, 1],
- easeInOutSine: [.37, 0, .63, 1],
- easeInQuad: [.11, 0, .5, 0],
- easeOutQuad: [.5, 1, .89, 1],
- easeInOutQuad: [.45, 0, .55, 1],
- easeInCubic: [.32, 0, .67, 0],
- easeOutCubic: [.33, 1, .68, 1],
- easeInOutCubic: [.65, 0, .35, 1],
- easeInQuart: [.5, 0, .75, 0],
- easeOutQuart: [.25, 1, .5, 1],
- easeInOutQuart: [.76, 0, .24, 1],
- easeInQuint: [.64, 0, .78, 0],
- easeOutQuint: [.22, 1, .36, 1],
- easeInOutQuint: [.83, 0, .17, 1],
- easeInExpo: [.7, 0, .84, 0],
- easeOutExpo: [.16, 1, .3, 1],
- easeInOutExpo: [.87, 0, .13, 1],
- easeInCirc: [.55, 0, 1, .45],
- easeOutCirc: [0, .55, .45, 1],
- easeInOutCirc: [.85, 0, .15, 1],
- easeInBack: [.36, 0, .66, -.56],
- easeOutBack: [.34, 1.56, .64, 1],
- easeInOutBack: [.68, -.6, .32, 1.6]
- });
- const Xs = () => Qe && /firefox/i.test(window.navigator.userAgent);
- /**
- * @vue/shared v3.4.38
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/
- const or = () => { }
- , dp = Object.prototype.hasOwnProperty
- , Qs = (t, r) => dp.call(t, r)
- , pp = Array.isArray
- , hn = t => typeof t == "function"
- , et = t => typeof t == "string"
- , Yn = t => t !== null && typeof t == "object";
- var mp = typeof global == "object" && global && global.Object === Object && global
- , hp = typeof self == "object" && self && self.Object === Object && self
- , vi = mp || hp || Function("return this")()
- , gn = vi.Symbol
- , el = Object.prototype
- , gp = el.hasOwnProperty
- , yp = el.toString
- , To = gn ? gn.toStringTag : void 0;
- function _p(t) {
- var r = gp.call(t, To)
- , i = t[To];
- try {
- t[To] = void 0;
- var s = !0
- } catch { }
- var c = yp.call(t);
- return s && (r ? t[To] = i : delete t[To]),
- c
- }
- var wp = Object.prototype
- , vp = wp.toString;
- function bp(t) {
- return vp.call(t)
- }
- var Cp = "[object Null]"
- , Ep = "[object Undefined]"
- , tl = gn ? gn.toStringTag : void 0;
- function bi(t) {
- return t == null ? t === void 0 ? Ep : Cp : tl && tl in Object(t) ? _p(t) : bp(t)
- }
- function Ci(t) {
- return t != null && typeof t == "object"
- }
- var Sp = "[object Symbol]";
- function Ei(t) {
- return typeof t == "symbol" || Ci(t) && bi(t) == Sp
- }
- function Ip(t, r) {
- for (var i = -1, s = t == null ? 0 : t.length, c = Array(s); ++i < s;)
- c[i] = r(t[i], i, t);
- return c
- }
- var qn = Array.isArray
- , xp = 1 / 0
- , nl = gn ? gn.prototype : void 0
- , ol = nl ? nl.toString : void 0;
- function rl(t) {
- if (typeof t == "string")
- return t;
- if (qn(t))
- return Ip(t, rl) + "";
- if (Ei(t))
- return ol ? ol.call(t) : "";
- var r = t + "";
- return r == "0" && 1 / t == -xp ? "-0" : r
- }
- function rr(t) {
- var r = typeof t;
- return t != null && (r == "object" || r == "function")
- }
- function Ap(t) {
- return t
- }
- var Tp = "[object AsyncFunction]"
- , Op = "[object Function]"
- , kp = "[object GeneratorFunction]"
- , Np = "[object Proxy]";
- function Lp(t) {
- if (!rr(t))
- return !1;
- var r = bi(t);
- return r == Op || r == kp || r == Tp || r == Np
- }
- var Si = vi["__core-js_shared__"]
- , il = function () {
- var t = /[^.]+$/.exec(Si && Si.keys && Si.keys.IE_PROTO || "");
- return t ? "Symbol(src)_1." + t : ""
- }();
- function Bp(t) {
- return !!il && il in t
- }
- var Pp = Function.prototype
- , Dp = Pp.toString;
- function Vp(t) {
- if (t != null) {
- try {
- return Dp.call(t)
- } catch { }
- try {
- return t + ""
- } catch { }
- }
- return ""
- }
- var Mp = /[\\^$.*+?()[\]{}|]/g
- , Rp = /^\[object .+?Constructor\]$/
- , $p = Function.prototype
- , Fp = Object.prototype
- , Up = $p.toString
- , zp = Fp.hasOwnProperty
- , Hp = RegExp("^" + Up.call(zp).replace(Mp, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
- function Wp(t) {
- if (!rr(t) || Bp(t))
- return !1;
- var r = Lp(t) ? Hp : Rp;
- return r.test(Vp(t))
- }
- function jp(t, r) {
- return t == null ? void 0 : t[r]
- }
- function Ii(t, r) {
- var i = jp(t, r);
- return Wp(i) ? i : void 0
- }
- function Kp(t, r, i) {
- switch (i.length) {
- case 0:
- return t.call(r);
- case 1:
- return t.call(r, i[0]);
- case 2:
- return t.call(r, i[0], i[1]);
- case 3:
- return t.call(r, i[0], i[1], i[2])
- }
- return t.apply(r, i)
- }
- var Gp = 800
- , Jp = 16
- , Yp = Date.now;
- function qp(t) {
- var r = 0
- , i = 0;
- return function () {
- var s = Yp()
- , c = Jp - (s - i);
- if (i = s,
- c > 0) {
- if (++r >= Gp)
- return arguments[0]
- } else
- r = 0;
- return t.apply(void 0, arguments)
- }
- }
- function Zp(t) {
- return function () {
- return t
- }
- }
- var ir = function () {
- try {
- var t = Ii(Object, "defineProperty");
- return t({}, "", {}),
- t
- } catch { }
- }()
- , Xp = ir ? function (t, r) {
- return ir(t, "toString", {
- configurable: !0,
- enumerable: !1,
- value: Zp(r),
- writable: !0
- })
- }
- : Ap
- , Qp = qp(Xp)
- , em = 9007199254740991
- , tm = /^(?:0|[1-9]\d*)$/;
- function al(t, r) {
- var i = typeof t;
- return r = r ?? em,
- !!r && (i == "number" || i != "symbol" && tm.test(t)) && t > -1 && t % 1 == 0 && t < r
- }
- function nm(t, r, i) {
- r == "__proto__" && ir ? ir(t, r, {
- configurable: !0,
- enumerable: !0,
- value: i,
- writable: !0
- }) : t[r] = i
- }
- function sl(t, r) {
- return t === r || t !== t && r !== r
- }
- var om = Object.prototype
- , rm = om.hasOwnProperty;
- function im(t, r, i) {
- var s = t[r];
- (!(rm.call(t, r) && sl(s, i)) || i === void 0 && !(r in t)) && nm(t, r, i)
- }
- var ll = Math.max;
- function am(t, r, i) {
- return r = ll(r === void 0 ? t.length - 1 : r, 0),
- function () {
- for (var s = arguments, c = -1, f = ll(s.length - r, 0), u = Array(f); ++c < f;)
- u[c] = s[r + c];
- c = -1;
- for (var d = Array(r + 1); ++c < r;)
- d[c] = s[c];
- return d[r] = i(u),
- Kp(t, this, d)
- }
- }
- var sm = 9007199254740991;
- function lm(t) {
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= sm
- }
- var cm = "[object Arguments]";
- function cl(t) {
- return Ci(t) && bi(t) == cm
- }
- var ul = Object.prototype
- , um = ul.hasOwnProperty
- , fm = ul.propertyIsEnumerable
- , fl = cl(function () {
- return arguments
- }()) ? cl : function (t) {
- return Ci(t) && um.call(t, "callee") && !fm.call(t, "callee")
- }
- , dm = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
- , pm = /^\w*$/;
- function mm(t, r) {
- if (qn(t))
- return !1;
- var i = typeof t;
- return i == "number" || i == "symbol" || i == "boolean" || t == null || Ei(t) ? !0 : pm.test(t) || !dm.test(t) || r != null && t in Object(r)
- }
- var Oo = Ii(Object, "create");
- function hm() {
- this.__data__ = Oo ? Oo(null) : {},
- this.size = 0
- }
- function gm(t) {
- var r = this.has(t) && delete this.__data__[t];
- return this.size -= r ? 1 : 0,
- r
- }
- var ym = "__lodash_hash_undefined__"
- , _m = Object.prototype
- , wm = _m.hasOwnProperty;
- function vm(t) {
- var r = this.__data__;
- if (Oo) {
- var i = r[t];
- return i === ym ? void 0 : i
- }
- return wm.call(r, t) ? r[t] : void 0
- }
- var bm = Object.prototype
- , Cm = bm.hasOwnProperty;
- function Em(t) {
- var r = this.__data__;
- return Oo ? r[t] !== void 0 : Cm.call(r, t)
- }
- var Sm = "__lodash_hash_undefined__";
- function Im(t, r) {
- var i = this.__data__;
- return this.size += this.has(t) ? 0 : 1,
- i[t] = Oo && r === void 0 ? Sm : r,
- this
- }
- function kn(t) {
- var r = -1
- , i = t == null ? 0 : t.length;
- for (this.clear(); ++r < i;) {
- var s = t[r];
- this.set(s[0], s[1])
- }
- }
- kn.prototype.clear = hm,
- kn.prototype.delete = gm,
- kn.prototype.get = vm,
- kn.prototype.has = Em,
- kn.prototype.set = Im;
- function xm() {
- this.__data__ = [],
- this.size = 0
- }
- function ar(t, r) {
- for (var i = t.length; i--;)
- if (sl(t[i][0], r))
- return i;
- return -1
- }
- var Am = Array.prototype
- , Tm = Am.splice;
- function Om(t) {
- var r = this.__data__
- , i = ar(r, t);
- if (i < 0)
- return !1;
- var s = r.length - 1;
- return i == s ? r.pop() : Tm.call(r, i, 1),
- --this.size,
- !0
- }
- function km(t) {
- var r = this.__data__
- , i = ar(r, t);
- return i < 0 ? void 0 : r[i][1]
- }
- function Nm(t) {
- return ar(this.__data__, t) > -1
- }
- function Lm(t, r) {
- var i = this.__data__
- , s = ar(i, t);
- return s < 0 ? (++this.size,
- i.push([t, r])) : i[s][1] = r,
- this
- }
- function Zn(t) {
- var r = -1
- , i = t == null ? 0 : t.length;
- for (this.clear(); ++r < i;) {
- var s = t[r];
- this.set(s[0], s[1])
- }
- }
- Zn.prototype.clear = xm,
- Zn.prototype.delete = Om,
- Zn.prototype.get = km,
- Zn.prototype.has = Nm,
- Zn.prototype.set = Lm;
- var Bm = Ii(vi, "Map");
- function Pm() {
- this.size = 0,
- this.__data__ = {
- hash: new kn,
- map: new (Bm || Zn),
- string: new kn
- }
- }
- function Dm(t) {
- var r = typeof t;
- return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? t !== "__proto__" : t === null
- }
- function sr(t, r) {
- var i = t.__data__;
- return Dm(r) ? i[typeof r == "string" ? "string" : "hash"] : i.map
- }
- function Vm(t) {
- var r = sr(this, t).delete(t);
- return this.size -= r ? 1 : 0,
- r
- }
- function Mm(t) {
- return sr(this, t).get(t)
- }
- function Rm(t) {
- return sr(this, t).has(t)
- }
- function $m(t, r) {
- var i = sr(this, t)
- , s = i.size;
- return i.set(t, r),
- this.size += i.size == s ? 0 : 1,
- this
- }
- function Nn(t) {
- var r = -1
- , i = t == null ? 0 : t.length;
- for (this.clear(); ++r < i;) {
- var s = t[r];
- this.set(s[0], s[1])
- }
- }
- Nn.prototype.clear = Pm,
- Nn.prototype.delete = Vm,
- Nn.prototype.get = Mm,
- Nn.prototype.has = Rm,
- Nn.prototype.set = $m;
- var Fm = "Expected a function";
- function xi(t, r) {
- if (typeof t != "function" || r != null && typeof r != "function")
- throw new TypeError(Fm);
- var i = function () {
- var s = arguments
- , c = r ? r.apply(this, s) : s[0]
- , f = i.cache;
- if (f.has(c))
- return f.get(c);
- var u = t.apply(this, s);
- return i.cache = f.set(c, u) || f,
- u
- };
- return i.cache = new (xi.Cache || Nn),
- i
- }
- xi.Cache = Nn;
- var Um = 500;
- function zm(t) {
- var r = xi(t, function (s) {
- return i.size === Um && i.clear(),
- s
- })
- , i = r.cache;
- return r
- }
- var Hm = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
- , Wm = /\\(\\)?/g
- , jm = zm(function (t) {
- var r = [];
- return t.charCodeAt(0) === 46 && r.push(""),
- t.replace(Hm, function (i, s, c, f) {
- r.push(c ? f.replace(Wm, "$1") : s || i)
- }),
- r
- });
- function Km(t) {
- return t == null ? "" : rl(t)
- }
- function lr(t, r) {
- return qn(t) ? t : mm(t, r) ? [t] : jm(Km(t))
- }
- var Gm = 1 / 0;
- function Ai(t) {
- if (typeof t == "string" || Ei(t))
- return t;
- var r = t + "";
- return r == "0" && 1 / t == -Gm ? "-0" : r
- }
- function dl(t, r) {
- r = lr(r, t);
- for (var i = 0, s = r.length; t != null && i < s;)
- t = t[Ai(r[i++])];
- return i && i == s ? t : void 0
- }
- function Jm(t, r, i) {
- var s = t == null ? void 0 : dl(t, r);
- return s === void 0 ? i : s
- }
- function Ym(t, r) {
- for (var i = -1, s = r.length, c = t.length; ++i < s;)
- t[c + i] = r[i];
- return t
- }
- var pl = gn ? gn.isConcatSpreadable : void 0;
- function qm(t) {
- return qn(t) || fl(t) || !!(pl && t && t[pl])
- }
- function Zm(t, r, i, s, c) {
- var f = -1
- , u = t.length;
- for (i || (i = qm),
- c || (c = []); ++f < u;) {
- var d = t[f];
- i(d) ? Ym(c, d) : c[c.length] = d
- }
- return c
- }
- function Xm(t) {
- var r = t == null ? 0 : t.length;
- return r ? Zm(t) : []
- }
- function Qm(t) {
- return Qp(am(t, void 0, Xm), t + "")
- }
- function eh() {
- if (!arguments.length)
- return [];
- var t = arguments[0];
- return qn(t) ? t : [t]
- }
- function th(t, r) {
- return t != null && r in Object(t)
- }
- function nh(t, r, i) {
- r = lr(r, t);
- for (var s = -1, c = r.length, f = !1; ++s < c;) {
- var u = Ai(r[s]);
- if (!(f = t != null && i(t, u)))
- break;
- t = t[u]
- }
- return f || ++s != c ? f : (c = t == null ? 0 : t.length,
- !!c && lm(c) && al(u, c) && (qn(t) || fl(t)))
- }
- function oh(t, r) {
- return t != null && nh(t, r, th)
- }
- function cr(t) {
- for (var r = -1, i = t == null ? 0 : t.length, s = {}; ++r < i;) {
- var c = t[r];
- s[c[0]] = c[1]
- }
- return s
- }
- function ur(t) {
- return t == null
- }
- function rh(t) {
- return t === void 0
- }
- function ih(t, r, i, s) {
- if (!rr(t))
- return t;
- r = lr(r, t);
- for (var c = -1, f = r.length, u = f - 1, d = t; d != null && ++c < f;) {
- var p = Ai(r[c])
- , w = i;
- if (p === "__proto__" || p === "constructor" || p === "prototype")
- return t;
- if (c != u) {
- var E = d[p];
- w = void 0,
- w === void 0 && (w = rr(E) ? E : al(r[c + 1]) ? [] : {})
- }
- im(d, p, w),
- d = d[p]
- }
- return t
- }
- function ah(t, r, i) {
- for (var s = -1, c = r.length, f = {}; ++s < c;) {
- var u = r[s]
- , d = dl(t, u);
- i(d, u) && ih(f, lr(u, t), d)
- }
- return f
- }
- function sh(t, r) {
- return ah(t, r, function (i, s) {
- return oh(t, s)
- })
- }
- var ml = Qm(function (t, r) {
- return t == null ? {} : sh(t, r)
- });
- const lh = t => t === void 0
- , hl = t => typeof t == "boolean"
- , gt = t => typeof t == "number"
- , ko = t => typeof Element > "u" ? !1 : t instanceof Element
- , ch = t => et(t) ? !Number.isNaN(Number(t)) : !1;
- class uh extends Error {
- constructor(r) {
- super(r),
- this.name = "ElementPlusError"
- }
- }
- function fh(t, r) {
- throw new uh(`[${t}] ${r}`)
- }
- function tO(t, r) { }
- function Ti(t, r = "px") {
- if (!t)
- return "";
- if (gt(t) || ch(t))
- return `${t}${r}`;
- if (et(t))
- return t
- }
- function dh(t, r) {
- if (!Qe)
- return;
- if (!r) {
- t.scrollTop = 0;
- return
- }
- const i = [];
- let s = r.offsetParent;
- for (; s !== null && t !== s && t.contains(s);)
- i.push(s),
- s = s.offsetParent;
- const c = r.offsetTop + i.reduce((p, w) => p + w.offsetTop, 0)
- , f = c + r.offsetHeight
- , u = t.scrollTop
- , d = u + t.clientHeight;
- c < u ? t.scrollTop = c : f > d && (t.scrollTop = f - t.clientHeight)
- }
- /*! Element Plus Icons Vue v2.3.1 */
- var ph = n.defineComponent({
- name: "CircleCheck",
- __name: "circle-check",
- setup(t) {
- return (r, i) => (n.openBlock(),
- n.createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [n.createElementVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }), n.createElementVNode("path", {
- fill: "currentColor",
- d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
- })]))
- }
- })
- , mh = ph
- , hh = n.defineComponent({
- name: "CircleClose",
- __name: "circle-close",
- setup(t) {
- return (r, i) => (n.openBlock(),
- n.createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [n.createElementVNode("path", {
- fill: "currentColor",
- d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
- }), n.createElementVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- })]))
- }
- })
- , gl = hh
- , gh = n.defineComponent({
- name: "Hide",
- __name: "hide",
- setup(t) {
- return (r, i) => (n.openBlock(),
- n.createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [n.createElementVNode("path", {
- fill: "currentColor",
- d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
- }), n.createElementVNode("path", {
- fill: "currentColor",
- d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
- })]))
- }
- })
- , yh = gh
- , _h = n.defineComponent({
- name: "Loading",
- __name: "loading",
- setup(t) {
- return (r, i) => (n.openBlock(),
- n.createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [n.createElementVNode("path", {
- fill: "currentColor",
- d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
- })]))
- }
- })
- , wh = _h
- , vh = n.defineComponent({
- name: "View",
- __name: "view",
- setup(t) {
- return (r, i) => (n.openBlock(),
- n.createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [n.createElementVNode("path", {
- fill: "currentColor",
- d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
- })]))
- }
- })
- , bh = vh;
- const yl = "__epPropKey"
- , pe = t => t
- , Ch = t => Yn(t) && !!t[yl]
- , fr = (t, r) => {
- if (!Yn(t) || Ch(t))
- return t;
- const { values: i, required: s, default: c, type: f, validator: u } = t
- , p = {
- type: f,
- required: !!s,
- validator: i || u ? w => {
- let E = !1
- , C = [];
- if (i && (C = Array.from(i),
- Qs(t, "default") && C.push(c),
- E || (E = C.includes(w))),
- u && (E || (E = u(w))),
- !E && C.length > 0) {
- const h = [...new Set(C)].map(x => JSON.stringify(x)).join(", ");
- n.warn(`Invalid prop: validation failed${r ? ` for prop "${r}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(w)}.`)
- }
- return E
- }
- : void 0,
- [yl]: !0
- };
- return Qs(t, "default") && (p.default = c),
- p
- }
- , Me = t => cr(Object.entries(t).map(([r, i]) => [r, fr(i, r)]))
- , _l = pe([String, Object, Function])
- , Eh = {
- validating: wh,
- success: mh,
- error: gl
- }
- , Ln = (t, r) => (t.install = i => {
- for (const s of [t, ...Object.values({})])
- i.component(s.name, s)
- }
- ,
- t)
- , dr = {
- tab: "Tab",
- enter: "Enter",
- space: "Space",
- left: "ArrowLeft",
- up: "ArrowUp",
- right: "ArrowRight",
- down: "ArrowDown",
- esc: "Escape",
- delete: "Delete",
- backspace: "Backspace",
- numpadEnter: "NumpadEnter",
- pageUp: "PageUp",
- pageDown: "PageDown",
- home: "Home",
- end: "End"
- }
- , Xn = "update:modelValue"
- , Sh = ["", "default", "small", "large"]
- , Ih = t => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t)
- , xh = t => t
- , Ah = ["class", "style"]
- , Th = /^on[A-Z]/
- , Oh = (t = {}) => {
- const { excludeListeners: r = !1, excludeKeys: i } = t
- , s = n.computed(() => ((i == null ? void 0 : i.value) || []).concat(Ah))
- , c = n.getCurrentInstance();
- return c ? n.computed(() => {
- var f;
- return cr(Object.entries((f = c.proxy) == null ? void 0 : f.$attrs).filter(([u]) => !s.value.includes(u) && !(r && Th.test(u))))
- }
- ) : n.computed(() => ({}))
- }
- ;
- var kh = {
- name: "en",
- el: {
- breadcrumb: {
- label: "Breadcrumb"
- },
- colorpicker: {
- confirm: "OK",
- clear: "Clear",
- defaultLabel: "color picker",
- description: "current color is {color}. press enter to select a new color.",
- alphaLabel: "pick alpha value"
- },
- datepicker: {
- now: "Now",
- today: "Today",
- cancel: "Cancel",
- clear: "Clear",
- confirm: "OK",
- dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
- monthTablePrompt: "Use the arrow keys and enter to select the month",
- yearTablePrompt: "Use the arrow keys and enter to select the year",
- selectedDate: "Selected date",
- selectDate: "Select date",
- selectTime: "Select time",
- startDate: "Start Date",
- startTime: "Start Time",
- endDate: "End Date",
- endTime: "End Time",
- prevYear: "Previous Year",
- nextYear: "Next Year",
- prevMonth: "Previous Month",
- nextMonth: "Next Month",
- year: "",
- month1: "January",
- month2: "February",
- month3: "March",
- month4: "April",
- month5: "May",
- month6: "June",
- month7: "July",
- month8: "August",
- month9: "September",
- month10: "October",
- month11: "November",
- month12: "December",
- week: "week",
- weeks: {
- sun: "Sun",
- mon: "Mon",
- tue: "Tue",
- wed: "Wed",
- thu: "Thu",
- fri: "Fri",
- sat: "Sat"
- },
- weeksFull: {
- sun: "Sunday",
- mon: "Monday",
- tue: "Tuesday",
- wed: "Wednesday",
- thu: "Thursday",
- fri: "Friday",
- sat: "Saturday"
- },
- months: {
- jan: "Jan",
- feb: "Feb",
- mar: "Mar",
- apr: "Apr",
- may: "May",
- jun: "Jun",
- jul: "Jul",
- aug: "Aug",
- sep: "Sep",
- oct: "Oct",
- nov: "Nov",
- dec: "Dec"
- }
- },
- inputNumber: {
- decrease: "decrease number",
- increase: "increase number"
- },
- select: {
- loading: "Loading",
- noMatch: "No matching data",
- noData: "No data",
- placeholder: "Select"
- },
- mention: {
- loading: "Loading"
- },
- dropdown: {
- toggleDropdown: "Toggle Dropdown"
- },
- cascader: {
- noMatch: "No matching data",
- loading: "Loading",
- placeholder: "Select",
- noData: "No data"
- },
- pagination: {
- goto: "Go to",
- pagesize: "/page",
- total: "Total {total}",
- pageClassifier: "",
- page: "Page",
- prev: "Go to previous page",
- next: "Go to next page",
- currentPage: "page {pager}",
- prevPages: "Previous {pager} pages",
- nextPages: "Next {pager} pages",
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
- },
- dialog: {
- close: "Close this dialog"
- },
- drawer: {
- close: "Close this dialog"
- },
- messagebox: {
- title: "Message",
- confirm: "OK",
- cancel: "Cancel",
- error: "Illegal input",
- close: "Close this dialog"
- },
- upload: {
- deleteTip: "press delete to remove",
- delete: "Delete",
- preview: "Preview",
- continue: "Continue"
- },
- slider: {
- defaultLabel: "slider between {min} and {max}",
- defaultRangeStartLabel: "pick start value",
- defaultRangeEndLabel: "pick end value"
- },
- table: {
- emptyText: "No Data",
- confirmFilter: "Confirm",
- resetFilter: "Reset",
- clearFilter: "All",
- sumText: "Sum"
- },
- tour: {
- next: "Next",
- previous: "Previous",
- finish: "Finish"
- },
- tree: {
- emptyText: "No Data"
- },
- transfer: {
- noMatch: "No matching data",
- noData: "No data",
- titles: ["List 1", "List 2"],
- filterPlaceholder: "Enter keyword",
- noCheckedFormat: "{total} items",
- hasCheckedFormat: "{checked}/{total} checked"
- },
- image: {
- error: "FAILED"
- },
- pageHeader: {
- title: "Back"
- },
- popconfirm: {
- confirmButtonText: "Yes",
- cancelButtonText: "No"
- },
- carousel: {
- leftArrow: "Carousel arrow left",
- rightArrow: "Carousel arrow right",
- indicator: "Carousel switch to index {index}"
- }
- }
- };
- const Nh = t => (r, i) => Lh(r, i, n.unref(t))
- , Lh = (t, r, i) => Jm(i, t, t).replace(/\{(\w+)\}/g, (s, c) => {
- var f;
- return `${(f = r == null ? void 0 : r[c]) != null ? f : `{${c}}`}`
- }
- )
- , Bh = t => {
- const r = n.computed(() => n.unref(t).name)
- , i = n.isRef(t) ? t : n.ref(t);
- return {
- lang: r,
- locale: i,
- t: Nh(t)
- }
- }
- , Ph = Symbol("localeContextKey")
- , Dh = t => {
- const r = n.inject(Ph, n.ref());
- return Bh(n.computed(() => r.value || kh))
- }
- , Oi = "el"
- , Vh = "is-"
- , Bn = (t, r, i, s, c) => {
- let f = `${t}-${r}`;
- return i && (f += `-${i}`),
- s && (f += `__${s}`),
- c && (f += `--${c}`),
- f
- }
- , Mh = Symbol("namespaceContextKey")
- , ki = t => {
- const r = n.getCurrentInstance() ? n.inject(Mh, n.ref(Oi)) : n.ref(Oi);
- return n.computed(() => n.unref(r) || Oi)
- }
- , yt = (t, r) => {
- const i = ki();
- return {
- namespace: i,
- b: (I = "") => Bn(i.value, t, I, "", ""),
- e: I => I ? Bn(i.value, t, "", I, "") : "",
- m: I => I ? Bn(i.value, t, "", "", I) : "",
- be: (I, y) => I && y ? Bn(i.value, t, I, y, "") : "",
- em: (I, y) => I && y ? Bn(i.value, t, "", I, y) : "",
- bm: (I, y) => I && y ? Bn(i.value, t, I, "", y) : "",
- bem: (I, y, g) => I && y && g ? Bn(i.value, t, I, y, g) : "",
- is: (I, ...y) => {
- const g = y.length >= 1 ? y[0] : !0;
- return I && g ? `${Vh}${I}` : ""
- }
- ,
- cssVar: I => {
- const y = {};
- for (const g in I)
- I[g] && (y[`--${i.value}-${g}`] = I[g]);
- return y
- }
- ,
- cssVarName: I => `--${i.value}-${I}`,
- cssVarBlock: I => {
- const y = {};
- for (const g in I)
- I[g] && (y[`--${i.value}-${t}-${g}`] = I[g]);
- return y
- }
- ,
- cssVarBlockName: I => `--${i.value}-${t}-${I}`
- }
- }
- , Rh = fr({
- type: pe(Boolean),
- default: null
- })
- , $h = fr({
- type: pe(Function)
- })
- , wl = t => {
- const r = `update:${t}`
- , i = `onUpdate:${t}`
- , s = [r]
- , c = {
- [t]: Rh,
- [i]: $h
- };
- return {
- useModelToggle: ({ indicator: u, toggleReason: d, shouldHideWhenRouteChanges: p, shouldProceed: w, onShow: E, onHide: C }) => {
- const h = n.getCurrentInstance()
- , { emit: x } = h
- , v = h.props
- , I = n.computed(() => hn(v[i]))
- , y = n.computed(() => v[t] === null)
- , g = M => {
- u.value !== !0 && (u.value = !0,
- d && (d.value = M),
- hn(E) && E(M))
- }
- , S = M => {
- u.value !== !1 && (u.value = !1,
- d && (d.value = M),
- hn(C) && C(M))
- }
- , T = M => {
- if (v.disabled === !0 || hn(w) && !w())
- return;
- const k = I.value && Qe;
- k && x(r, !0),
- (y.value || !k) && g(M)
- }
- , N = M => {
- if (v.disabled === !0 || !Qe)
- return;
- const k = I.value && Qe;
- k && x(r, !1),
- (y.value || !k) && S(M)
- }
- , B = M => {
- hl(M) && (v.disabled && M ? I.value && x(r, !1) : u.value !== M && (M ? g() : S()))
- }
- , D = () => {
- u.value ? N() : T()
- }
- ;
- return n.watch(() => v[t], B),
- p && h.appContext.config.globalProperties.$route !== void 0 && n.watch(() => ({
- ...h.proxy.$route
- }), () => {
- p.value && u.value && N()
- }
- ),
- n.onMounted(() => {
- B(v[t])
- }
- ),
- {
- hide: N,
- show: T,
- toggle: D,
- hasUpdateHandler: I
- }
- }
- ,
- useModelToggleProps: c,
- useModelToggleEmits: s
- }
- }
- ;
- wl("modelValue");
- const vl = t => {
- const r = n.getCurrentInstance();
- return n.computed(() => {
- var i, s;
- return (s = (i = r == null ? void 0 : r.proxy) == null ? void 0 : i.$props) == null ? void 0 : s[t]
- }
- )
- }
- ;
- var tt = "top"
- , _t = "bottom"
- , wt = "right"
- , nt = "left"
- , Ni = "auto"
- , No = [tt, _t, wt, nt]
- , Qn = "start"
- , Lo = "end"
- , Fh = "clippingParents"
- , bl = "viewport"
- , Bo = "popper"
- , Uh = "reference"
- , Cl = No.reduce(function (t, r) {
- return t.concat([r + "-" + Qn, r + "-" + Lo])
- }, [])
- , Li = [].concat(No, [Ni]).reduce(function (t, r) {
- return t.concat([r, r + "-" + Qn, r + "-" + Lo])
- }, [])
- , zh = "beforeRead"
- , Hh = "read"
- , Wh = "afterRead"
- , jh = "beforeMain"
- , Kh = "main"
- , Gh = "afterMain"
- , Jh = "beforeWrite"
- , Yh = "write"
- , qh = "afterWrite"
- , Zh = [zh, Hh, Wh, jh, Kh, Gh, Jh, Yh, qh];
- function Ht(t) {
- return t ? (t.nodeName || "").toLowerCase() : null
- }
- function Pt(t) {
- if (t == null)
- return window;
- if (t.toString() !== "[object Window]") {
- var r = t.ownerDocument;
- return r && r.defaultView || window
- }
- return t
- }
- function eo(t) {
- var r = Pt(t).Element;
- return t instanceof r || t instanceof Element
- }
- function vt(t) {
- var r = Pt(t).HTMLElement;
- return t instanceof r || t instanceof HTMLElement
- }
- function Bi(t) {
- if (typeof ShadowRoot > "u")
- return !1;
- var r = Pt(t).ShadowRoot;
- return t instanceof r || t instanceof ShadowRoot
- }
- function Xh(t) {
- var r = t.state;
- Object.keys(r.elements).forEach(function (i) {
- var s = r.styles[i] || {}
- , c = r.attributes[i] || {}
- , f = r.elements[i];
- !vt(f) || !Ht(f) || (Object.assign(f.style, s),
- Object.keys(c).forEach(function (u) {
- var d = c[u];
- d === !1 ? f.removeAttribute(u) : f.setAttribute(u, d === !0 ? "" : d)
- }))
- })
- }
- function Qh(t) {
- var r = t.state
- , i = {
- popper: {
- position: r.options.strategy,
- left: "0",
- top: "0",
- margin: "0"
- },
- arrow: {
- position: "absolute"
- },
- reference: {}
- };
- return Object.assign(r.elements.popper.style, i.popper),
- r.styles = i,
- r.elements.arrow && Object.assign(r.elements.arrow.style, i.arrow),
- function () {
- Object.keys(r.elements).forEach(function (s) {
- var c = r.elements[s]
- , f = r.attributes[s] || {}
- , u = Object.keys(r.styles.hasOwnProperty(s) ? r.styles[s] : i[s])
- , d = u.reduce(function (p, w) {
- return p[w] = "",
- p
- }, {});
- !vt(c) || !Ht(c) || (Object.assign(c.style, d),
- Object.keys(f).forEach(function (p) {
- c.removeAttribute(p)
- }))
- })
- }
- }
- var El = {
- name: "applyStyles",
- enabled: !0,
- phase: "write",
- fn: Xh,
- effect: Qh,
- requires: ["computeStyles"]
- };
- function Wt(t) {
- return t.split("-")[0]
- }
- var Pn = Math.max
- , pr = Math.min
- , to = Math.round;
- function no(t, r) {
- r === void 0 && (r = !1);
- var i = t.getBoundingClientRect()
- , s = 1
- , c = 1;
- if (vt(t) && r) {
- var f = t.offsetHeight
- , u = t.offsetWidth;
- u > 0 && (s = to(i.width) / u || 1),
- f > 0 && (c = to(i.height) / f || 1)
- }
- return {
- width: i.width / s,
- height: i.height / c,
- top: i.top / c,
- right: i.right / s,
- bottom: i.bottom / c,
- left: i.left / s,
- x: i.left / s,
- y: i.top / c
- }
- }
- function Pi(t) {
- var r = no(t)
- , i = t.offsetWidth
- , s = t.offsetHeight;
- return Math.abs(r.width - i) <= 1 && (i = r.width),
- Math.abs(r.height - s) <= 1 && (s = r.height),
- {
- x: t.offsetLeft,
- y: t.offsetTop,
- width: i,
- height: s
- }
- }
- function Sl(t, r) {
- var i = r.getRootNode && r.getRootNode();
- if (t.contains(r))
- return !0;
- if (i && Bi(i)) {
- var s = r;
- do {
- if (s && t.isSameNode(s))
- return !0;
- s = s.parentNode || s.host
- } while (s)
- }
- return !1
- }
- function en(t) {
- return Pt(t).getComputedStyle(t)
- }
- function eg(t) {
- return ["table", "td", "th"].indexOf(Ht(t)) >= 0
- }
- function yn(t) {
- return ((eo(t) ? t.ownerDocument : t.document) || window.document).documentElement
- }
- function mr(t) {
- return Ht(t) === "html" ? t : t.assignedSlot || t.parentNode || (Bi(t) ? t.host : null) || yn(t)
- }
- function Il(t) {
- return !vt(t) || en(t).position === "fixed" ? null : t.offsetParent
- }
- function tg(t) {
- var r = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1
- , i = navigator.userAgent.indexOf("Trident") !== -1;
- if (i && vt(t)) {
- var s = en(t);
- if (s.position === "fixed")
- return null
- }
- var c = mr(t);
- for (Bi(c) && (c = c.host); vt(c) && ["html", "body"].indexOf(Ht(c)) < 0;) {
- var f = en(c);
- if (f.transform !== "none" || f.perspective !== "none" || f.contain === "paint" || ["transform", "perspective"].indexOf(f.willChange) !== -1 || r && f.willChange === "filter" || r && f.filter && f.filter !== "none")
- return c;
- c = c.parentNode
- }
- return null
- }
- function Po(t) {
- for (var r = Pt(t), i = Il(t); i && eg(i) && en(i).position === "static";)
- i = Il(i);
- return i && (Ht(i) === "html" || Ht(i) === "body" && en(i).position === "static") ? r : i || tg(t) || r
- }
- function Di(t) {
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y"
- }
- function Do(t, r, i) {
- return Pn(t, pr(r, i))
- }
- function ng(t, r, i) {
- var s = Do(t, r, i);
- return s > i ? i : s
- }
- function xl() {
- return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- }
- }
- function Al(t) {
- return Object.assign({}, xl(), t)
- }
- function Tl(t, r) {
- return r.reduce(function (i, s) {
- return i[s] = t,
- i
- }, {})
- }
- var og = function (t, r) {
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
- placement: r.placement
- })) : t,
- Al(typeof t != "number" ? t : Tl(t, No))
- };
- function rg(t) {
- var r, i = t.state, s = t.name, c = t.options, f = i.elements.arrow, u = i.modifiersData.popperOffsets, d = Wt(i.placement), p = Di(d), w = [nt, wt].indexOf(d) >= 0, E = w ? "height" : "width";
- if (!(!f || !u)) {
- var C = og(c.padding, i)
- , h = Pi(f)
- , x = p === "y" ? tt : nt
- , v = p === "y" ? _t : wt
- , I = i.rects.reference[E] + i.rects.reference[p] - u[p] - i.rects.popper[E]
- , y = u[p] - i.rects.reference[p]
- , g = Po(f)
- , S = g ? p === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0
- , T = I / 2 - y / 2
- , N = C[x]
- , B = S - h[E] - C[v]
- , D = S / 2 - h[E] / 2 + T
- , M = Do(N, D, B)
- , k = p;
- i.modifiersData[s] = (r = {},
- r[k] = M,
- r.centerOffset = M - D,
- r)
- }
- }
- function ig(t) {
- var r = t.state
- , i = t.options
- , s = i.element
- , c = s === void 0 ? "[data-popper-arrow]" : s;
- c != null && (typeof c == "string" && (c = r.elements.popper.querySelector(c),
- !c) || !Sl(r.elements.popper, c) || (r.elements.arrow = c))
- }
- var ag = {
- name: "arrow",
- enabled: !0,
- phase: "main",
- fn: rg,
- effect: ig,
- requires: ["popperOffsets"],
- requiresIfExists: ["preventOverflow"]
- };
- function oo(t) {
- return t.split("-")[1]
- }
- var sg = {
- top: "auto",
- right: "auto",
- bottom: "auto",
- left: "auto"
- };
- function lg(t) {
- var r = t.x
- , i = t.y
- , s = window
- , c = s.devicePixelRatio || 1;
- return {
- x: to(r * c) / c || 0,
- y: to(i * c) / c || 0
- }
- }
- function Ol(t) {
- var r, i = t.popper, s = t.popperRect, c = t.placement, f = t.variation, u = t.offsets, d = t.position, p = t.gpuAcceleration, w = t.adaptive, E = t.roundOffsets, C = t.isFixed, h = u.x, x = h === void 0 ? 0 : h, v = u.y, I = v === void 0 ? 0 : v, y = typeof E == "function" ? E({
- x,
- y: I
- }) : {
- x,
- y: I
- };
- x = y.x,
- I = y.y;
- var g = u.hasOwnProperty("x")
- , S = u.hasOwnProperty("y")
- , T = nt
- , N = tt
- , B = window;
- if (w) {
- var D = Po(i)
- , M = "clientHeight"
- , k = "clientWidth";
- if (D === Pt(i) && (D = yn(i),
- en(D).position !== "static" && d === "absolute" && (M = "scrollHeight",
- k = "scrollWidth")),
- D = D,
- c === tt || (c === nt || c === wt) && f === Lo) {
- N = _t;
- var U = C && D === B && B.visualViewport ? B.visualViewport.height : D[M];
- I -= U - s.height,
- I *= p ? 1 : -1
- }
- if (c === nt || (c === tt || c === _t) && f === Lo) {
- T = wt;
- var X = C && D === B && B.visualViewport ? B.visualViewport.width : D[k];
- x -= X - s.width,
- x *= p ? 1 : -1
- }
- }
- var W = Object.assign({
- position: d
- }, w && sg)
- , Q = E === !0 ? lg({
- x,
- y: I
- }) : {
- x,
- y: I
- };
- if (x = Q.x,
- I = Q.y,
- p) {
- var ne;
- return Object.assign({}, W, (ne = {},
- ne[N] = S ? "0" : "",
- ne[T] = g ? "0" : "",
- ne.transform = (B.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + I + "px)" : "translate3d(" + x + "px, " + I + "px, 0)",
- ne))
- }
- return Object.assign({}, W, (r = {},
- r[N] = S ? I + "px" : "",
- r[T] = g ? x + "px" : "",
- r.transform = "",
- r))
- }
- function cg(t) {
- var r = t.state
- , i = t.options
- , s = i.gpuAcceleration
- , c = s === void 0 ? !0 : s
- , f = i.adaptive
- , u = f === void 0 ? !0 : f
- , d = i.roundOffsets
- , p = d === void 0 ? !0 : d
- , w = {
- placement: Wt(r.placement),
- variation: oo(r.placement),
- popper: r.elements.popper,
- popperRect: r.rects.popper,
- gpuAcceleration: c,
- isFixed: r.options.strategy === "fixed"
- };
- r.modifiersData.popperOffsets != null && (r.styles.popper = Object.assign({}, r.styles.popper, Ol(Object.assign({}, w, {
- offsets: r.modifiersData.popperOffsets,
- position: r.options.strategy,
- adaptive: u,
- roundOffsets: p
- })))),
- r.modifiersData.arrow != null && (r.styles.arrow = Object.assign({}, r.styles.arrow, Ol(Object.assign({}, w, {
- offsets: r.modifiersData.arrow,
- position: "absolute",
- adaptive: !1,
- roundOffsets: p
- })))),
- r.attributes.popper = Object.assign({}, r.attributes.popper, {
- "data-popper-placement": r.placement
- })
- }
- var kl = {
- name: "computeStyles",
- enabled: !0,
- phase: "beforeWrite",
- fn: cg,
- data: {}
- }
- , hr = {
- passive: !0
- };
- function ug(t) {
- var r = t.state
- , i = t.instance
- , s = t.options
- , c = s.scroll
- , f = c === void 0 ? !0 : c
- , u = s.resize
- , d = u === void 0 ? !0 : u
- , p = Pt(r.elements.popper)
- , w = [].concat(r.scrollParents.reference, r.scrollParents.popper);
- return f && w.forEach(function (E) {
- E.addEventListener("scroll", i.update, hr)
- }),
- d && p.addEventListener("resize", i.update, hr),
- function () {
- f && w.forEach(function (E) {
- E.removeEventListener("scroll", i.update, hr)
- }),
- d && p.removeEventListener("resize", i.update, hr)
- }
- }
- var Nl = {
- name: "eventListeners",
- enabled: !0,
- phase: "write",
- fn: function () { },
- effect: ug,
- data: {}
- }
- , fg = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom"
- };
- function gr(t) {
- return t.replace(/left|right|bottom|top/g, function (r) {
- return fg[r]
- })
- }
- var dg = {
- start: "end",
- end: "start"
- };
- function Ll(t) {
- return t.replace(/start|end/g, function (r) {
- return dg[r]
- })
- }
- function Vi(t) {
- var r = Pt(t)
- , i = r.pageXOffset
- , s = r.pageYOffset;
- return {
- scrollLeft: i,
- scrollTop: s
- }
- }
- function Mi(t) {
- return no(yn(t)).left + Vi(t).scrollLeft
- }
- function pg(t) {
- var r = Pt(t)
- , i = yn(t)
- , s = r.visualViewport
- , c = i.clientWidth
- , f = i.clientHeight
- , u = 0
- , d = 0;
- return s && (c = s.width,
- f = s.height,
- /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (u = s.offsetLeft,
- d = s.offsetTop)),
- {
- width: c,
- height: f,
- x: u + Mi(t),
- y: d
- }
- }
- function mg(t) {
- var r, i = yn(t), s = Vi(t), c = (r = t.ownerDocument) == null ? void 0 : r.body, f = Pn(i.scrollWidth, i.clientWidth, c ? c.scrollWidth : 0, c ? c.clientWidth : 0), u = Pn(i.scrollHeight, i.clientHeight, c ? c.scrollHeight : 0, c ? c.clientHeight : 0), d = -s.scrollLeft + Mi(t), p = -s.scrollTop;
- return en(c || i).direction === "rtl" && (d += Pn(i.clientWidth, c ? c.clientWidth : 0) - f),
- {
- width: f,
- height: u,
- x: d,
- y: p
- }
- }
- function Ri(t) {
- var r = en(t)
- , i = r.overflow
- , s = r.overflowX
- , c = r.overflowY;
- return /auto|scroll|overlay|hidden/.test(i + c + s)
- }
- function Bl(t) {
- return ["html", "body", "#document"].indexOf(Ht(t)) >= 0 ? t.ownerDocument.body : vt(t) && Ri(t) ? t : Bl(mr(t))
- }
- function Vo(t, r) {
- var i;
- r === void 0 && (r = []);
- var s = Bl(t)
- , c = s === ((i = t.ownerDocument) == null ? void 0 : i.body)
- , f = Pt(s)
- , u = c ? [f].concat(f.visualViewport || [], Ri(s) ? s : []) : s
- , d = r.concat(u);
- return c ? d : d.concat(Vo(mr(u)))
- }
- function $i(t) {
- return Object.assign({}, t, {
- left: t.x,
- top: t.y,
- right: t.x + t.width,
- bottom: t.y + t.height
- })
- }
- function hg(t) {
- var r = no(t);
- return r.top = r.top + t.clientTop,
- r.left = r.left + t.clientLeft,
- r.bottom = r.top + t.clientHeight,
- r.right = r.left + t.clientWidth,
- r.width = t.clientWidth,
- r.height = t.clientHeight,
- r.x = r.left,
- r.y = r.top,
- r
- }
- function Pl(t, r) {
- return r === bl ? $i(pg(t)) : eo(r) ? hg(r) : $i(mg(yn(t)))
- }
- function gg(t) {
- var r = Vo(mr(t))
- , i = ["absolute", "fixed"].indexOf(en(t).position) >= 0
- , s = i && vt(t) ? Po(t) : t;
- return eo(s) ? r.filter(function (c) {
- return eo(c) && Sl(c, s) && Ht(c) !== "body"
- }) : []
- }
- function yg(t, r, i) {
- var s = r === "clippingParents" ? gg(t) : [].concat(r)
- , c = [].concat(s, [i])
- , f = c[0]
- , u = c.reduce(function (d, p) {
- var w = Pl(t, p);
- return d.top = Pn(w.top, d.top),
- d.right = pr(w.right, d.right),
- d.bottom = pr(w.bottom, d.bottom),
- d.left = Pn(w.left, d.left),
- d
- }, Pl(t, f));
- return u.width = u.right - u.left,
- u.height = u.bottom - u.top,
- u.x = u.left,
- u.y = u.top,
- u
- }
- function Dl(t) {
- var r = t.reference, i = t.element, s = t.placement, c = s ? Wt(s) : null, f = s ? oo(s) : null, u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, p;
- switch (c) {
- case tt:
- p = {
- x: u,
- y: r.y - i.height
- };
- break;
- case _t:
- p = {
- x: u,
- y: r.y + r.height
- };
- break;
- case wt:
- p = {
- x: r.x + r.width,
- y: d
- };
- break;
- case nt:
- p = {
- x: r.x - i.width,
- y: d
- };
- break;
- default:
- p = {
- x: r.x,
- y: r.y
- }
- }
- var w = c ? Di(c) : null;
- if (w != null) {
- var E = w === "y" ? "height" : "width";
- switch (f) {
- case Qn:
- p[w] = p[w] - (r[E] / 2 - i[E] / 2);
- break;
- case Lo:
- p[w] = p[w] + (r[E] / 2 - i[E] / 2);
- break
- }
- }
- return p
- }
- function Mo(t, r) {
- r === void 0 && (r = {});
- var i = r
- , s = i.placement
- , c = s === void 0 ? t.placement : s
- , f = i.boundary
- , u = f === void 0 ? Fh : f
- , d = i.rootBoundary
- , p = d === void 0 ? bl : d
- , w = i.elementContext
- , E = w === void 0 ? Bo : w
- , C = i.altBoundary
- , h = C === void 0 ? !1 : C
- , x = i.padding
- , v = x === void 0 ? 0 : x
- , I = Al(typeof v != "number" ? v : Tl(v, No))
- , y = E === Bo ? Uh : Bo
- , g = t.rects.popper
- , S = t.elements[h ? y : E]
- , T = yg(eo(S) ? S : S.contextElement || yn(t.elements.popper), u, p)
- , N = no(t.elements.reference)
- , B = Dl({
- reference: N,
- element: g,
- strategy: "absolute",
- placement: c
- })
- , D = $i(Object.assign({}, g, B))
- , M = E === Bo ? D : N
- , k = {
- top: T.top - M.top + I.top,
- bottom: M.bottom - T.bottom + I.bottom,
- left: T.left - M.left + I.left,
- right: M.right - T.right + I.right
- }
- , U = t.modifiersData.offset;
- if (E === Bo && U) {
- var X = U[c];
- Object.keys(k).forEach(function (W) {
- var Q = [wt, _t].indexOf(W) >= 0 ? 1 : -1
- , ne = [tt, _t].indexOf(W) >= 0 ? "y" : "x";
- k[W] += X[ne] * Q
- })
- }
- return k
- }
- function _g(t, r) {
- r === void 0 && (r = {});
- var i = r
- , s = i.placement
- , c = i.boundary
- , f = i.rootBoundary
- , u = i.padding
- , d = i.flipVariations
- , p = i.allowedAutoPlacements
- , w = p === void 0 ? Li : p
- , E = oo(s)
- , C = E ? d ? Cl : Cl.filter(function (v) {
- return oo(v) === E
- }) : No
- , h = C.filter(function (v) {
- return w.indexOf(v) >= 0
- });
- h.length === 0 && (h = C);
- var x = h.reduce(function (v, I) {
- return v[I] = Mo(t, {
- placement: I,
- boundary: c,
- rootBoundary: f,
- padding: u
- })[Wt(I)],
- v
- }, {});
- return Object.keys(x).sort(function (v, I) {
- return x[v] - x[I]
- })
- }
- function wg(t) {
- if (Wt(t) === Ni)
- return [];
- var r = gr(t);
- return [Ll(t), r, Ll(r)]
- }
- function vg(t) {
- var r = t.state
- , i = t.options
- , s = t.name;
- if (!r.modifiersData[s]._skip) {
- for (var c = i.mainAxis, f = c === void 0 ? !0 : c, u = i.altAxis, d = u === void 0 ? !0 : u, p = i.fallbackPlacements, w = i.padding, E = i.boundary, C = i.rootBoundary, h = i.altBoundary, x = i.flipVariations, v = x === void 0 ? !0 : x, I = i.allowedAutoPlacements, y = r.options.placement, g = Wt(y), S = g === y, T = p || (S || !v ? [gr(y)] : wg(y)), N = [y].concat(T).reduce(function (G, q) {
- return G.concat(Wt(q) === Ni ? _g(r, {
- placement: q,
- boundary: E,
- rootBoundary: C,
- padding: w,
- flipVariations: v,
- allowedAutoPlacements: I
- }) : q)
- }, []), B = r.rects.reference, D = r.rects.popper, M = new Map, k = !0, U = N[0], X = 0; X < N.length; X++) {
- var W = N[X]
- , Q = Wt(W)
- , ne = oo(W) === Qn
- , we = [tt, _t].indexOf(Q) >= 0
- , _e = we ? "width" : "height"
- , K = Mo(r, {
- placement: W,
- boundary: E,
- rootBoundary: C,
- altBoundary: h,
- padding: w
- })
- , ce = we ? ne ? wt : nt : ne ? _t : tt;
- B[_e] > D[_e] && (ce = gr(ce));
- var ge = gr(ce)
- , Ie = [];
- if (f && Ie.push(K[Q] <= 0),
- d && Ie.push(K[ce] <= 0, K[ge] <= 0),
- Ie.every(function (G) {
- return G
- })) {
- U = W,
- k = !1;
- break
- }
- M.set(W, Ie)
- }
- if (k)
- for (var Fe = v ? 3 : 1, Ee = function (G) {
- var q = N.find(function (ee) {
- var ae = M.get(ee);
- if (ae)
- return ae.slice(0, G).every(function (Te) {
- return Te
- })
- });
- if (q)
- return U = q,
- "break"
- }, te = Fe; te > 0; te--) {
- var Y = Ee(te);
- if (Y === "break")
- break
- }
- r.placement !== U && (r.modifiersData[s]._skip = !0,
- r.placement = U,
- r.reset = !0)
- }
- }
- var bg = {
- name: "flip",
- enabled: !0,
- phase: "main",
- fn: vg,
- requiresIfExists: ["offset"],
- data: {
- _skip: !1
- }
- };
- function Vl(t, r, i) {
- return i === void 0 && (i = {
- x: 0,
- y: 0
- }),
- {
- top: t.top - r.height - i.y,
- right: t.right - r.width + i.x,
- bottom: t.bottom - r.height + i.y,
- left: t.left - r.width - i.x
- }
- }
- function Ml(t) {
- return [tt, wt, _t, nt].some(function (r) {
- return t[r] >= 0
- })
- }
- function Cg(t) {
- var r = t.state
- , i = t.name
- , s = r.rects.reference
- , c = r.rects.popper
- , f = r.modifiersData.preventOverflow
- , u = Mo(r, {
- elementContext: "reference"
- })
- , d = Mo(r, {
- altBoundary: !0
- })
- , p = Vl(u, s)
- , w = Vl(d, c, f)
- , E = Ml(p)
- , C = Ml(w);
- r.modifiersData[i] = {
- referenceClippingOffsets: p,
- popperEscapeOffsets: w,
- isReferenceHidden: E,
- hasPopperEscaped: C
- },
- r.attributes.popper = Object.assign({}, r.attributes.popper, {
- "data-popper-reference-hidden": E,
- "data-popper-escaped": C
- })
- }
- var Eg = {
- name: "hide",
- enabled: !0,
- phase: "main",
- requiresIfExists: ["preventOverflow"],
- fn: Cg
- };
- function Sg(t, r, i) {
- var s = Wt(t)
- , c = [nt, tt].indexOf(s) >= 0 ? -1 : 1
- , f = typeof i == "function" ? i(Object.assign({}, r, {
- placement: t
- })) : i
- , u = f[0]
- , d = f[1];
- return u = u || 0,
- d = (d || 0) * c,
- [nt, wt].indexOf(s) >= 0 ? {
- x: d,
- y: u
- } : {
- x: u,
- y: d
- }
- }
- function Ig(t) {
- var r = t.state
- , i = t.options
- , s = t.name
- , c = i.offset
- , f = c === void 0 ? [0, 0] : c
- , u = Li.reduce(function (E, C) {
- return E[C] = Sg(C, r.rects, f),
- E
- }, {})
- , d = u[r.placement]
- , p = d.x
- , w = d.y;
- r.modifiersData.popperOffsets != null && (r.modifiersData.popperOffsets.x += p,
- r.modifiersData.popperOffsets.y += w),
- r.modifiersData[s] = u
- }
- var xg = {
- name: "offset",
- enabled: !0,
- phase: "main",
- requires: ["popperOffsets"],
- fn: Ig
- };
- function Ag(t) {
- var r = t.state
- , i = t.name;
- r.modifiersData[i] = Dl({
- reference: r.rects.reference,
- element: r.rects.popper,
- strategy: "absolute",
- placement: r.placement
- })
- }
- var Rl = {
- name: "popperOffsets",
- enabled: !0,
- phase: "read",
- fn: Ag,
- data: {}
- };
- function Tg(t) {
- return t === "x" ? "y" : "x"
- }
- function Og(t) {
- var r = t.state
- , i = t.options
- , s = t.name
- , c = i.mainAxis
- , f = c === void 0 ? !0 : c
- , u = i.altAxis
- , d = u === void 0 ? !1 : u
- , p = i.boundary
- , w = i.rootBoundary
- , E = i.altBoundary
- , C = i.padding
- , h = i.tether
- , x = h === void 0 ? !0 : h
- , v = i.tetherOffset
- , I = v === void 0 ? 0 : v
- , y = Mo(r, {
- boundary: p,
- rootBoundary: w,
- padding: C,
- altBoundary: E
- })
- , g = Wt(r.placement)
- , S = oo(r.placement)
- , T = !S
- , N = Di(g)
- , B = Tg(N)
- , D = r.modifiersData.popperOffsets
- , M = r.rects.reference
- , k = r.rects.popper
- , U = typeof I == "function" ? I(Object.assign({}, r.rects, {
- placement: r.placement
- })) : I
- , X = typeof U == "number" ? {
- mainAxis: U,
- altAxis: U
- } : Object.assign({
- mainAxis: 0,
- altAxis: 0
- }, U)
- , W = r.modifiersData.offset ? r.modifiersData.offset[r.placement] : null
- , Q = {
- x: 0,
- y: 0
- };
- if (D) {
- if (f) {
- var ne, we = N === "y" ? tt : nt, _e = N === "y" ? _t : wt, K = N === "y" ? "height" : "width", ce = D[N], ge = ce + y[we], Ie = ce - y[_e], Fe = x ? -k[K] / 2 : 0, Ee = S === Qn ? M[K] : k[K], te = S === Qn ? -k[K] : -M[K], Y = r.elements.arrow, G = x && Y ? Pi(Y) : {
- width: 0,
- height: 0
- }, q = r.modifiersData["arrow#persistent"] ? r.modifiersData["arrow#persistent"].padding : xl(), ee = q[we], ae = q[_e], Te = Do(0, M[K], G[K]), ot = T ? M[K] / 2 - Fe - Te - ee - X.mainAxis : Ee - Te - ee - X.mainAxis, Gt = T ? -M[K] / 2 + Fe + Te + ae + X.mainAxis : te + Te + ae + X.mainAxis, St = r.elements.arrow && Po(r.elements.arrow), nn = St ? N === "y" ? St.clientTop || 0 : St.clientLeft || 0 : 0, wn = (ne = W == null ? void 0 : W[N]) != null ? ne : 0, je = ce + ot - wn - nn, Jt = ce + Gt - wn, Rn = Do(x ? pr(ge, je) : ge, ce, x ? Pn(Ie, Jt) : Ie);
- D[N] = Rn,
- Q[N] = Rn - ce
- }
- if (d) {
- var rt, $n = N === "x" ? tt : nt, Uo = N === "x" ? _t : wt, Je = D[B], Re = B === "y" ? "height" : "width", Rt = Je + y[$n], on = Je - y[Uo], vn = [tt, nt].indexOf(g) !== -1, H = (rt = W == null ? void 0 : W[B]) != null ? rt : 0, Se = vn ? Rt : Je - M[Re] - k[Re] - H + X.altAxis, Ye = vn ? Je + M[Re] + k[Re] - H - X.altAxis : on, It = x && vn ? ng(Se, Je, Ye) : Do(x ? Se : Rt, Je, x ? Ye : on);
- D[B] = It,
- Q[B] = It - Je
- }
- r.modifiersData[s] = Q
- }
- }
- var kg = {
- name: "preventOverflow",
- enabled: !0,
- phase: "main",
- fn: Og,
- requiresIfExists: ["offset"]
- };
- function Ng(t) {
- return {
- scrollLeft: t.scrollLeft,
- scrollTop: t.scrollTop
- }
- }
- function Lg(t) {
- return t === Pt(t) || !vt(t) ? Vi(t) : Ng(t)
- }
- function Bg(t) {
- var r = t.getBoundingClientRect()
- , i = to(r.width) / t.offsetWidth || 1
- , s = to(r.height) / t.offsetHeight || 1;
- return i !== 1 || s !== 1
- }
- function Pg(t, r, i) {
- i === void 0 && (i = !1);
- var s = vt(r)
- , c = vt(r) && Bg(r)
- , f = yn(r)
- , u = no(t, c)
- , d = {
- scrollLeft: 0,
- scrollTop: 0
- }
- , p = {
- x: 0,
- y: 0
- };
- return (s || !s && !i) && ((Ht(r) !== "body" || Ri(f)) && (d = Lg(r)),
- vt(r) ? (p = no(r, !0),
- p.x += r.clientLeft,
- p.y += r.clientTop) : f && (p.x = Mi(f))),
- {
- x: u.left + d.scrollLeft - p.x,
- y: u.top + d.scrollTop - p.y,
- width: u.width,
- height: u.height
- }
- }
- function Dg(t) {
- var r = new Map
- , i = new Set
- , s = [];
- t.forEach(function (f) {
- r.set(f.name, f)
- });
- function c(f) {
- i.add(f.name);
- var u = [].concat(f.requires || [], f.requiresIfExists || []);
- u.forEach(function (d) {
- if (!i.has(d)) {
- var p = r.get(d);
- p && c(p)
- }
- }),
- s.push(f)
- }
- return t.forEach(function (f) {
- i.has(f.name) || c(f)
- }),
- s
- }
- function Vg(t) {
- var r = Dg(t);
- return Zh.reduce(function (i, s) {
- return i.concat(r.filter(function (c) {
- return c.phase === s
- }))
- }, [])
- }
- function Mg(t) {
- var r;
- return function () {
- return r || (r = new Promise(function (i) {
- Promise.resolve().then(function () {
- r = void 0,
- i(t())
- })
- }
- )),
- r
- }
- }
- function Rg(t) {
- var r = t.reduce(function (i, s) {
- var c = i[s.name];
- return i[s.name] = c ? Object.assign({}, c, s, {
- options: Object.assign({}, c.options, s.options),
- data: Object.assign({}, c.data, s.data)
- }) : s,
- i
- }, {});
- return Object.keys(r).map(function (i) {
- return r[i]
- })
- }
- var $l = {
- placement: "bottom",
- modifiers: [],
- strategy: "absolute"
- };
- function Fl() {
- for (var t = arguments.length, r = new Array(t), i = 0; i < t; i++)
- r[i] = arguments[i];
- return !r.some(function (s) {
- return !(s && typeof s.getBoundingClientRect == "function")
- })
- }
- function Fi(t) {
- t === void 0 && (t = {});
- var r = t
- , i = r.defaultModifiers
- , s = i === void 0 ? [] : i
- , c = r.defaultOptions
- , f = c === void 0 ? $l : c;
- return function (u, d, p) {
- p === void 0 && (p = f);
- var w = {
- placement: "bottom",
- orderedModifiers: [],
- options: Object.assign({}, $l, f),
- modifiersData: {},
- elements: {
- reference: u,
- popper: d
- },
- attributes: {},
- styles: {}
- }
- , E = []
- , C = !1
- , h = {
- state: w,
- setOptions: function (I) {
- var y = typeof I == "function" ? I(w.options) : I;
- v(),
- w.options = Object.assign({}, f, w.options, y),
- w.scrollParents = {
- reference: eo(u) ? Vo(u) : u.contextElement ? Vo(u.contextElement) : [],
- popper: Vo(d)
- };
- var g = Vg(Rg([].concat(s, w.options.modifiers)));
- return w.orderedModifiers = g.filter(function (S) {
- return S.enabled
- }),
- x(),
- h.update()
- },
- forceUpdate: function () {
- if (!C) {
- var I = w.elements
- , y = I.reference
- , g = I.popper;
- if (Fl(y, g)) {
- w.rects = {
- reference: Pg(y, Po(g), w.options.strategy === "fixed"),
- popper: Pi(g)
- },
- w.reset = !1,
- w.placement = w.options.placement,
- w.orderedModifiers.forEach(function (k) {
- return w.modifiersData[k.name] = Object.assign({}, k.data)
- });
- for (var S = 0; S < w.orderedModifiers.length; S++) {
- if (w.reset === !0) {
- w.reset = !1,
- S = -1;
- continue
- }
- var T = w.orderedModifiers[S]
- , N = T.fn
- , B = T.options
- , D = B === void 0 ? {} : B
- , M = T.name;
- typeof N == "function" && (w = N({
- state: w,
- options: D,
- name: M,
- instance: h
- }) || w)
- }
- }
- }
- },
- update: Mg(function () {
- return new Promise(function (I) {
- h.forceUpdate(),
- I(w)
- }
- )
- }),
- destroy: function () {
- v(),
- C = !0
- }
- };
- if (!Fl(u, d))
- return h;
- h.setOptions(p).then(function (I) {
- !C && p.onFirstUpdate && p.onFirstUpdate(I)
- });
- function x() {
- w.orderedModifiers.forEach(function (I) {
- var y = I.name
- , g = I.options
- , S = g === void 0 ? {} : g
- , T = I.effect;
- if (typeof T == "function") {
- var N = T({
- state: w,
- name: y,
- instance: h,
- options: S
- })
- , B = function () { };
- E.push(N || B)
- }
- })
- }
- function v() {
- E.forEach(function (I) {
- return I()
- }),
- E = []
- }
- return h
- }
- }
- Fi();
- var $g = [Nl, Rl, kl, El];
- Fi({
- defaultModifiers: $g
- });
- var Fg = [Nl, Rl, kl, El, xg, bg, kg, ag, Eg]
- , Ug = Fi({
- defaultModifiers: Fg
- });
- const zg = (t, r, i = {}) => {
- const s = {
- name: "updateState",
- enabled: !0,
- phase: "write",
- fn: ({ state: p }) => {
- const w = Hg(p);
- Object.assign(u.value, w)
- }
- ,
- requires: ["computeStyles"]
- }
- , c = n.computed(() => {
- const { onFirstUpdate: p, placement: w, strategy: E, modifiers: C } = n.unref(i);
- return {
- onFirstUpdate: p,
- placement: w || "bottom",
- strategy: E || "absolute",
- modifiers: [...C || [], s, {
- name: "applyStyles",
- enabled: !1
- }]
- }
- }
- )
- , f = n.shallowRef()
- , u = n.ref({
- styles: {
- popper: {
- position: n.unref(c).strategy,
- left: "0",
- top: "0"
- },
- arrow: {
- position: "absolute"
- }
- },
- attributes: {}
- })
- , d = () => {
- f.value && (f.value.destroy(),
- f.value = void 0)
- }
- ;
- return n.watch(c, p => {
- const w = n.unref(f);
- w && w.setOptions(p)
- }
- , {
- deep: !0
- }),
- n.watch([t, r], ([p, w]) => {
- d(),
- !(!p || !w) && (f.value = Ug(p, w, n.unref(c)))
- }
- ),
- n.onBeforeUnmount(() => {
- d()
- }
- ),
- {
- state: n.computed(() => {
- var p;
- return {
- ...((p = n.unref(f)) == null ? void 0 : p.state) || {}
- }
- }
- ),
- styles: n.computed(() => n.unref(u).styles),
- attributes: n.computed(() => n.unref(u).attributes),
- update: () => {
- var p;
- return (p = n.unref(f)) == null ? void 0 : p.update()
- }
- ,
- forceUpdate: () => {
- var p;
- return (p = n.unref(f)) == null ? void 0 : p.forceUpdate()
- }
- ,
- instanceRef: n.computed(() => n.unref(f))
- }
- }
- ;
- function Hg(t) {
- const r = Object.keys(t.elements)
- , i = cr(r.map(c => [c, t.styles[c] || {}]))
- , s = cr(r.map(c => [c, t.attributes[c]]));
- return {
- styles: i,
- attributes: s
- }
- }
- function Ul() {
- let t;
- const r = (s, c) => {
- i(),
- t = window.setTimeout(s, c)
- }
- , i = () => window.clearTimeout(t);
- return _i(() => i()),
- {
- registerTimeout: r,
- cancelTimeout: i
- }
- }
- const zl = {
- prefix: Math.floor(Math.random() * 1e4),
- current: 0
- }
- , Wg = Symbol("elIdInjection")
- , Hl = () => n.getCurrentInstance() ? n.inject(Wg, zl) : zl
- , Ui = t => {
- const r = Hl()
- , i = ki();
- return n.computed(() => n.unref(t) || `${i.value}-id-${r.prefix}-${r.current++}`)
- }
- ;
- let ro = [];
- const Wl = t => {
- const r = t;
- r.key === dr.esc && ro.forEach(i => i(r))
- }
- , jg = t => {
- n.onMounted(() => {
- ro.length === 0 && document.addEventListener("keydown", Wl),
- Qe && ro.push(t)
- }
- ),
- n.onBeforeUnmount(() => {
- ro = ro.filter(r => r !== t),
- ro.length === 0 && Qe && document.removeEventListener("keydown", Wl)
- }
- )
- }
- ;
- let jl;
- const Kl = () => {
- const t = ki()
- , r = Hl()
- , i = n.computed(() => `${t.value}-popper-container-${r.prefix}`)
- , s = n.computed(() => `#${i.value}`);
- return {
- id: i,
- selector: s
- }
- }
- , Kg = t => {
- const r = document.createElement("div");
- return r.id = t,
- document.body.appendChild(r),
- r
- }
- , Gg = () => {
- const { id: t, selector: r } = Kl();
- return n.onBeforeMount(() => {
- Qe && !jl && !document.body.querySelector(r.value) && (jl = Kg(t.value))
- }
- ),
- {
- id: t,
- selector: r
- }
- }
- , Jg = Me({
- showAfter: {
- type: Number,
- default: 0
- },
- hideAfter: {
- type: Number,
- default: 200
- },
- autoClose: {
- type: Number,
- default: 0
- }
- })
- , Yg = ({ showAfter: t, hideAfter: r, autoClose: i, open: s, close: c }) => {
- const { registerTimeout: f } = Ul()
- , { registerTimeout: u, cancelTimeout: d } = Ul();
- return {
- onOpen: E => {
- f(() => {
- s(E);
- const C = n.unref(i);
- gt(C) && C > 0 && u(() => {
- c(E)
- }
- , C)
- }
- , n.unref(t))
- }
- ,
- onClose: E => {
- d(),
- f(() => {
- c(E)
- }
- , n.unref(r))
- }
- }
- }
- , Gl = Symbol("elForwardRef")
- , qg = t => {
- const r = i => {
- t.value = i
- }
- ;
- n.provide(Gl, {
- setForwardRef: r
- })
- }
- , Zg = t => ({
- mounted(r) {
- t(r)
- },
- updated(r) {
- t(r)
- },
- unmounted() {
- t(null)
- }
- })
- , Jl = {
- current: 0
- }
- , Yl = n.ref(0)
- , Xg = 2e3
- , ql = Symbol("elZIndexContextKey")
- , Qg = Symbol("zIndexContextKey")
- , e0 = t => {
- const r = n.getCurrentInstance() ? n.inject(ql, Jl) : Jl
- , i = n.getCurrentInstance() ? n.inject(Qg, void 0) : void 0
- , s = n.computed(() => {
- const u = n.unref(i);
- return gt(u) ? u : Xg
- }
- )
- , c = n.computed(() => s.value + Yl.value)
- , f = () => (r.current++,
- Yl.value = r.current,
- c.value);
- return !Qe && n.inject(ql),
- {
- initialZIndex: s,
- currentZIndex: c,
- nextZIndex: f
- }
- }
- ;
- function t0(t) {
- let r;
- function i() {
- if (t.value == null)
- return;
- const { selectionStart: c, selectionEnd: f, value: u } = t.value;
- if (c == null || f == null)
- return;
- const d = u.slice(0, Math.max(0, c))
- , p = u.slice(Math.max(0, f));
- r = {
- selectionStart: c,
- selectionEnd: f,
- value: u,
- beforeTxt: d,
- afterTxt: p
- }
- }
- function s() {
- if (t.value == null || r == null)
- return;
- const { value: c } = t.value
- , { beforeTxt: f, afterTxt: u, selectionStart: d } = r;
- if (f == null || u == null || d == null)
- return;
- let p = c.length;
- if (c.endsWith(u))
- p = c.length - u.length;
- else if (c.startsWith(f))
- p = f.length;
- else {
- const w = f[d - 1]
- , E = c.indexOf(w, d - 1);
- E !== -1 && (p = E + 1)
- }
- t.value.setSelectionRange(p, p)
- }
- return [i, s]
- }
- const n0 = fr({
- type: String,
- values: Sh,
- required: !1
- })
- , o0 = Symbol("size")
- , r0 = () => {
- const t = n.inject(o0, {});
- return n.computed(() => n.unref(t.size) || "")
- }
- ;
- function Zl(t, { beforeFocus: r, afterFocus: i, beforeBlur: s, afterBlur: c } = {}) {
- const f = n.getCurrentInstance()
- , { emit: u } = f
- , d = n.shallowRef()
- , p = n.ref(!1)
- , w = h => {
- hn(r) && r(h) || p.value || (p.value = !0,
- u("focus", h),
- i == null || i())
- }
- , E = h => {
- var x;
- hn(s) && s(h) || h.relatedTarget && ((x = d.value) != null && x.contains(h.relatedTarget)) || (p.value = !1,
- u("blur", h),
- c == null || c())
- }
- , C = () => {
- var h, x;
- (h = d.value) != null && h.contains(document.activeElement) && d.value !== document.activeElement || (x = t.value) == null || x.focus()
- }
- ;
- return n.watch(d, h => {
- h && h.setAttribute("tabindex", "-1")
- }
- ),
- Qt(d, "focus", w, !0),
- Qt(d, "blur", E, !0),
- Qt(d, "click", C, !0),
- {
- isFocused: p,
- wrapperRef: d,
- handleFocus: w,
- handleBlur: E
- }
- }
- function i0({ afterComposition: t, emit: r }) {
- const i = n.ref(!1)
- , s = d => {
- r == null || r("compositionstart", d),
- i.value = !0
- }
- , c = d => {
- var p;
- r == null || r("compositionupdate", d);
- const w = (p = d.target) == null ? void 0 : p.value
- , E = w[w.length - 1] || "";
- i.value = !Ih(E)
- }
- , f = d => {
- r == null || r("compositionend", d),
- i.value && (i.value = !1,
- n.nextTick(() => t(d)))
- }
- ;
- return {
- isComposing: i,
- handleComposition: d => {
- d.type === "compositionend" ? f(d) : c(d)
- }
- ,
- handleCompositionStart: s,
- handleCompositionUpdate: c,
- handleCompositionEnd: f
- }
- }
- const a0 = Me({
- ariaLabel: String,
- ariaOrientation: {
- type: String,
- values: ["horizontal", "vertical", "undefined"]
- },
- ariaControls: String
- })
- , yr = t => ml(a0, t);
- var He = (t, r) => {
- const i = t.__vccOpts || t;
- for (const [s, c] of r)
- i[s] = c;
- return i
- }
- ;
- const s0 = Me({
- size: {
- type: pe([Number, String])
- },
- color: {
- type: String
- }
- })
- , l0 = n.defineComponent({
- name: "ElIcon",
- inheritAttrs: !1
- })
- , c0 = n.defineComponent({
- ...l0,
- props: s0,
- setup(t) {
- const r = t
- , i = yt("icon")
- , s = n.computed(() => {
- const { size: c, color: f } = r;
- return !c && !f ? {} : {
- fontSize: lh(c) ? void 0 : Ti(c),
- "--color": f
- }
- }
- );
- return (c, f) => (n.openBlock(),
- n.createElementBlock("i", n.mergeProps({
- class: n.unref(i).b(),
- style: n.unref(s)
- }, c.$attrs), [n.renderSlot(c.$slots, "default")], 16))
- }
- });
- var u0 = He(c0, [["__file", "icon.vue"]]);
- const Ro = Ln(u0)
- , zi = Symbol("formContextKey")
- , _r = Symbol("formItemContextKey")
- , f0 = (t, r = {}) => {
- const i = n.ref(void 0)
- , s = r.prop ? i : vl("size")
- , c = r.global ? i : r0()
- , f = r.form ? {
- size: void 0
- } : n.inject(zi, void 0)
- , u = r.formItem ? {
- size: void 0
- } : n.inject(_r, void 0);
- return n.computed(() => s.value || n.unref(t) || (u == null ? void 0 : u.size) || (f == null ? void 0 : f.size) || c.value || "")
- }
- , d0 = t => {
- const r = vl("disabled")
- , i = n.inject(zi, void 0);
- return n.computed(() => r.value || n.unref(t) || (i == null ? void 0 : i.disabled) || !1)
- }
- , p0 = () => {
- const t = n.inject(zi, void 0)
- , r = n.inject(_r, void 0);
- return {
- form: t,
- formItem: r
- }
- }
- , m0 = (t, { formItemContext: r, disableIdGeneration: i, disableIdManagement: s }) => {
- i || (i = n.ref(!1)),
- s || (s = n.ref(!1));
- const c = n.ref();
- let f;
- const u = n.computed(() => {
- var d;
- return !!(!(t.label || t.ariaLabel) && r && r.inputIds && ((d = r.inputIds) == null ? void 0 : d.length) <= 1)
- }
- );
- return n.onMounted(() => {
- f = n.watch([n.toRef(t, "id"), i], ([d, p]) => {
- const w = d ?? (p ? void 0 : Ui().value);
- w !== c.value && (r != null && r.removeInputId && (c.value && r.removeInputId(c.value),
- !(s != null && s.value) && !p && w && r.addInputId(w)),
- c.value = w)
- }
- , {
- immediate: !0
- })
- }
- ),
- n.onUnmounted(() => {
- f && f(),
- r != null && r.removeInputId && c.value && r.removeInputId(c.value)
- }
- ),
- {
- isLabeledByFormItem: u,
- inputId: c
- }
- }
- ;
- let Dt;
- const h0 = `
- height:0 !important;
- visibility:hidden !important;
- ${Xs() ? "" : "overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `
- , g0 = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing"];
- function y0(t) {
- const r = window.getComputedStyle(t)
- , i = r.getPropertyValue("box-sizing")
- , s = Number.parseFloat(r.getPropertyValue("padding-bottom")) + Number.parseFloat(r.getPropertyValue("padding-top"))
- , c = Number.parseFloat(r.getPropertyValue("border-bottom-width")) + Number.parseFloat(r.getPropertyValue("border-top-width"));
- return {
- contextStyle: g0.map(u => `${u}:${r.getPropertyValue(u)}`).join(";"),
- paddingSize: s,
- borderSize: c,
- boxSizing: i
- }
- }
- function Xl(t, r = 1, i) {
- var s;
- Dt || (Dt = document.createElement("textarea"),
- document.body.appendChild(Dt));
- const { paddingSize: c, borderSize: f, boxSizing: u, contextStyle: d } = y0(t);
- Dt.setAttribute("style", `${d};${h0}`),
- Dt.value = t.value || t.placeholder || "";
- let p = Dt.scrollHeight;
- const w = {};
- u === "border-box" ? p = p + f : u === "content-box" && (p = p - c),
- Dt.value = "";
- const E = Dt.scrollHeight - c;
- if (gt(r)) {
- let C = E * r;
- u === "border-box" && (C = C + c + f),
- p = Math.max(C, p),
- w.minHeight = `${C}px`
- }
- if (gt(i)) {
- let C = E * i;
- u === "border-box" && (C = C + c + f),
- p = Math.min(C, p)
- }
- return w.height = `${p}px`,
- (s = Dt.parentNode) == null || s.removeChild(Dt),
- Dt = void 0,
- w
- }
- const Hi = Me({
- id: {
- type: String,
- default: void 0
- },
- size: n0,
- disabled: Boolean,
- modelValue: {
- type: pe([String, Number, Object]),
- default: ""
- },
- maxlength: {
- type: [String, Number]
- },
- minlength: {
- type: [String, Number]
- },
- type: {
- type: String,
- default: "text"
- },
- resize: {
- type: String,
- values: ["none", "both", "horizontal", "vertical"]
- },
- autosize: {
- type: pe([Boolean, Object]),
- default: !1
- },
- autocomplete: {
- type: String,
- default: "off"
- },
- formatter: {
- type: Function
- },
- parser: {
- type: Function
- },
- placeholder: {
- type: String
- },
- form: {
- type: String
- },
- readonly: Boolean,
- clearable: Boolean,
- showPassword: Boolean,
- showWordLimit: Boolean,
- suffixIcon: {
- type: _l
- },
- prefixIcon: {
- type: _l
- },
- containerRole: {
- type: String,
- default: void 0
- },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- validateEvent: {
- type: Boolean,
- default: !0
- },
- inputStyle: {
- type: pe([Object, Array, String]),
- default: () => xh({})
- },
- autofocus: Boolean,
- rows: {
- type: Number,
- default: 2
- },
- ...yr(["ariaLabel"])
- })
- , _0 = {
- [Xn]: t => et(t),
- input: t => et(t),
- change: t => et(t),
- focus: t => t instanceof FocusEvent,
- blur: t => t instanceof FocusEvent,
- clear: () => !0,
- mouseleave: t => t instanceof MouseEvent,
- mouseenter: t => t instanceof MouseEvent,
- keydown: t => t instanceof Event,
- compositionstart: t => t instanceof CompositionEvent,
- compositionupdate: t => t instanceof CompositionEvent,
- compositionend: t => t instanceof CompositionEvent
- }
- , w0 = n.defineComponent({
- name: "ElInput",
- inheritAttrs: !1
- })
- , v0 = n.defineComponent({
- ...w0,
- props: Hi,
- emits: _0,
- setup(t, { expose: r, emit: i }) {
- const s = t
- , c = n.useAttrs()
- , f = n.useSlots()
- , u = n.computed(() => {
- const H = {};
- return s.containerRole === "combobox" && (H["aria-haspopup"] = c["aria-haspopup"],
- H["aria-owns"] = c["aria-owns"],
- H["aria-expanded"] = c["aria-expanded"]),
- H
- }
- )
- , d = n.computed(() => [s.type === "textarea" ? y.b() : I.b(), I.m(x.value), I.is("disabled", v.value), I.is("exceed", Y.value), {
- [I.b("group")]: f.prepend || f.append,
- [I.m("prefix")]: f.prefix || s.prefixIcon,
- [I.m("suffix")]: f.suffix || s.suffixIcon || s.clearable || s.showPassword,
- [I.bm("suffix", "password-clear")]: Ie.value && Fe.value,
- [I.b("hidden")]: s.type === "hidden"
- }, c.class])
- , p = n.computed(() => [I.e("wrapper"), I.is("focus", U.value)])
- , w = Oh({
- excludeKeys: n.computed(() => Object.keys(u.value))
- })
- , { form: E, formItem: C } = p0()
- , { inputId: h } = m0(s, {
- formItemContext: C
- })
- , x = f0()
- , v = d0()
- , I = yt("input")
- , y = yt("textarea")
- , g = n.shallowRef()
- , S = n.shallowRef()
- , T = n.ref(!1)
- , N = n.ref(!1)
- , B = n.ref()
- , D = n.shallowRef(s.inputStyle)
- , M = n.computed(() => g.value || S.value)
- , { wrapperRef: k, isFocused: U, handleFocus: X, handleBlur: W } = Zl(M, {
- afterBlur() {
- var H;
- s.validateEvent && ((H = C == null ? void 0 : C.validate) == null || H.call(C, "blur").catch(Se => void 0))
- }
- })
- , Q = n.computed(() => {
- var H;
- return (H = E == null ? void 0 : E.statusIcon) != null ? H : !1
- }
- )
- , ne = n.computed(() => (C == null ? void 0 : C.validateState) || "")
- , we = n.computed(() => ne.value && Eh[ne.value])
- , _e = n.computed(() => N.value ? bh : yh)
- , K = n.computed(() => [c.style])
- , ce = n.computed(() => [s.inputStyle, D.value, {
- resize: s.resize
- }])
- , ge = n.computed(() => ur(s.modelValue) ? "" : String(s.modelValue))
- , Ie = n.computed(() => s.clearable && !v.value && !s.readonly && !!ge.value && (U.value || T.value))
- , Fe = n.computed(() => s.showPassword && !v.value && !s.readonly && !!ge.value && (!!ge.value || U.value))
- , Ee = n.computed(() => s.showWordLimit && !!s.maxlength && (s.type === "text" || s.type === "textarea") && !v.value && !s.readonly && !s.showPassword)
- , te = n.computed(() => ge.value.length)
- , Y = n.computed(() => !!Ee.value && te.value > Number(s.maxlength))
- , G = n.computed(() => !!f.suffix || !!s.suffixIcon || Ie.value || s.showPassword || Ee.value || !!ne.value && Q.value)
- , [q, ee] = t0(g);
- Js(S, H => {
- if (ot(),
- !Ee.value || s.resize !== "both")
- return;
- const Se = H[0]
- , { width: Ye } = Se.contentRect;
- B.value = {
- right: `calc(100% - ${Ye + 15 + 6}px)`
- }
- }
- );
- const ae = () => {
- const { type: H, autosize: Se } = s;
- if (!(!Qe || H !== "textarea" || !S.value))
- if (Se) {
- const Ye = Yn(Se) ? Se.minRows : void 0
- , It = Yn(Se) ? Se.maxRows : void 0
- , fo = Xl(S.value, Ye, It);
- D.value = {
- overflowY: "hidden",
- ...fo
- },
- n.nextTick(() => {
- S.value.offsetHeight,
- D.value = fo
- }
- )
- } else
- D.value = {
- minHeight: Xl(S.value).minHeight
- }
- }
- , ot = (H => {
- let Se = !1;
- return () => {
- var Ye;
- if (Se || !s.autosize)
- return;
- ((Ye = S.value) == null ? void 0 : Ye.offsetParent) === null || (H(),
- Se = !0)
- }
- }
- )(ae)
- , Gt = () => {
- const H = M.value
- , Se = s.formatter ? s.formatter(ge.value) : ge.value;
- !H || H.value === Se || (H.value = Se)
- }
- , St = async H => {
- q();
- let { value: Se } = H.target;
- if (s.formatter && (Se = s.parser ? s.parser(Se) : Se),
- !wn.value) {
- if (Se === ge.value) {
- Gt();
- return
- }
- i(Xn, Se),
- i("input", Se),
- await n.nextTick(),
- Gt(),
- ee()
- }
- }
- , nn = H => {
- i("change", H.target.value)
- }
- , { isComposing: wn, handleCompositionStart: je, handleCompositionUpdate: Jt, handleCompositionEnd: Rn } = i0({
- emit: i,
- afterComposition: St
- })
- , rt = () => {
- N.value = !N.value,
- $n()
- }
- , $n = async () => {
- var H;
- await n.nextTick(),
- (H = M.value) == null || H.focus()
- }
- , Uo = () => {
- var H;
- return (H = M.value) == null ? void 0 : H.blur()
- }
- , Je = H => {
- T.value = !1,
- i("mouseleave", H)
- }
- , Re = H => {
- T.value = !0,
- i("mouseenter", H)
- }
- , Rt = H => {
- i("keydown", H)
- }
- , on = () => {
- var H;
- (H = M.value) == null || H.select()
- }
- , vn = () => {
- i(Xn, ""),
- i("change", ""),
- i("clear"),
- i("input", "")
- }
- ;
- return n.watch(() => s.modelValue, () => {
- var H;
- n.nextTick(() => ae()),
- s.validateEvent && ((H = C == null ? void 0 : C.validate) == null || H.call(C, "change").catch(Se => void 0))
- }
- ),
- n.watch(ge, () => Gt()),
- n.watch(() => s.type, async () => {
- await n.nextTick(),
- Gt(),
- ae()
- }
- ),
- n.onMounted(() => {
- !s.formatter && s.parser,
- Gt(),
- n.nextTick(ae)
- }
- ),
- r({
- input: g,
- textarea: S,
- ref: M,
- textareaStyle: ce,
- autosize: n.toRef(s, "autosize"),
- isComposing: wn,
- focus: $n,
- blur: Uo,
- select: on,
- clear: vn,
- resizeTextarea: ae
- }),
- (H, Se) => (n.openBlock(),
- n.createElementBlock("div", n.mergeProps(n.unref(u), {
- class: [n.unref(d), {
- [n.unref(I).bm("group", "append")]: H.$slots.append,
- [n.unref(I).bm("group", "prepend")]: H.$slots.prepend
- }],
- style: n.unref(K),
- role: H.containerRole,
- onMouseenter: Re,
- onMouseleave: Je
- }), [n.createCommentVNode(" input "), H.type !== "textarea" ? (n.openBlock(),
- n.createElementBlock(n.Fragment, {
- key: 0
- }, [n.createCommentVNode(" prepend slot "), H.$slots.prepend ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: n.normalizeClass(n.unref(I).be("group", "prepend"))
- }, [n.renderSlot(H.$slots, "prepend")], 2)) : n.createCommentVNode("v-if", !0), n.createElementVNode("div", {
- ref_key: "wrapperRef",
- ref: k,
- class: n.normalizeClass(n.unref(p))
- }, [n.createCommentVNode(" prefix slot "), H.$slots.prefix || H.prefixIcon ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 0,
- class: n.normalizeClass(n.unref(I).e("prefix"))
- }, [n.createElementVNode("span", {
- class: n.normalizeClass(n.unref(I).e("prefix-inner"))
- }, [n.renderSlot(H.$slots, "prefix"), H.prefixIcon ? (n.openBlock(),
- n.createBlock(n.unref(Ro), {
- key: 0,
- class: n.normalizeClass(n.unref(I).e("icon"))
- }, {
- default: n.withCtx(() => [(n.openBlock(),
- n.createBlock(n.resolveDynamicComponent(H.prefixIcon)))]),
- _: 1
- }, 8, ["class"])) : n.createCommentVNode("v-if", !0)], 2)], 2)) : n.createCommentVNode("v-if", !0), n.createElementVNode("input", n.mergeProps({
- id: n.unref(h),
- ref_key: "input",
- ref: g,
- class: n.unref(I).e("inner")
- }, n.unref(w), {
- minlength: H.minlength,
- maxlength: H.maxlength,
- type: H.showPassword ? N.value ? "text" : "password" : H.type,
- disabled: n.unref(v),
- readonly: H.readonly,
- autocomplete: H.autocomplete,
- tabindex: H.tabindex,
- "aria-label": H.ariaLabel,
- placeholder: H.placeholder,
- style: H.inputStyle,
- form: H.form,
- autofocus: H.autofocus,
- onCompositionstart: n.unref(je),
- onCompositionupdate: n.unref(Jt),
- onCompositionend: n.unref(Rn),
- onInput: St,
- onChange: nn,
- onKeydown: Rt
- }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "onCompositionstart", "onCompositionupdate", "onCompositionend"]), n.createCommentVNode(" suffix slot "), n.unref(G) ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 1,
- class: n.normalizeClass(n.unref(I).e("suffix"))
- }, [n.createElementVNode("span", {
- class: n.normalizeClass(n.unref(I).e("suffix-inner"))
- }, [!n.unref(Ie) || !n.unref(Fe) || !n.unref(Ee) ? (n.openBlock(),
- n.createElementBlock(n.Fragment, {
- key: 0
- }, [n.renderSlot(H.$slots, "suffix"), H.suffixIcon ? (n.openBlock(),
- n.createBlock(n.unref(Ro), {
- key: 0,
- class: n.normalizeClass(n.unref(I).e("icon"))
- }, {
- default: n.withCtx(() => [(n.openBlock(),
- n.createBlock(n.resolveDynamicComponent(H.suffixIcon)))]),
- _: 1
- }, 8, ["class"])) : n.createCommentVNode("v-if", !0)], 64)) : n.createCommentVNode("v-if", !0), n.unref(Ie) ? (n.openBlock(),
- n.createBlock(n.unref(Ro), {
- key: 1,
- class: n.normalizeClass([n.unref(I).e("icon"), n.unref(I).e("clear")]),
- onMousedown: n.withModifiers(n.unref(or), ["prevent"]),
- onClick: vn
- }, {
- default: n.withCtx(() => [n.createVNode(n.unref(gl))]),
- _: 1
- }, 8, ["class", "onMousedown"])) : n.createCommentVNode("v-if", !0), n.unref(Fe) ? (n.openBlock(),
- n.createBlock(n.unref(Ro), {
- key: 2,
- class: n.normalizeClass([n.unref(I).e("icon"), n.unref(I).e("password")]),
- onClick: rt
- }, {
- default: n.withCtx(() => [(n.openBlock(),
- n.createBlock(n.resolveDynamicComponent(n.unref(_e))))]),
- _: 1
- }, 8, ["class"])) : n.createCommentVNode("v-if", !0), n.unref(Ee) ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 3,
- class: n.normalizeClass(n.unref(I).e("count"))
- }, [n.createElementVNode("span", {
- class: n.normalizeClass(n.unref(I).e("count-inner"))
- }, n.toDisplayString(n.unref(te)) + " / " + n.toDisplayString(H.maxlength), 3)], 2)) : n.createCommentVNode("v-if", !0), n.unref(ne) && n.unref(we) && n.unref(Q) ? (n.openBlock(),
- n.createBlock(n.unref(Ro), {
- key: 4,
- class: n.normalizeClass([n.unref(I).e("icon"), n.unref(I).e("validateIcon"), n.unref(I).is("loading", n.unref(ne) === "validating")])
- }, {
- default: n.withCtx(() => [(n.openBlock(),
- n.createBlock(n.resolveDynamicComponent(n.unref(we))))]),
- _: 1
- }, 8, ["class"])) : n.createCommentVNode("v-if", !0)], 2)], 2)) : n.createCommentVNode("v-if", !0)], 2), n.createCommentVNode(" append slot "), H.$slots.append ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 1,
- class: n.normalizeClass(n.unref(I).be("group", "append"))
- }, [n.renderSlot(H.$slots, "append")], 2)) : n.createCommentVNode("v-if", !0)], 64)) : (n.openBlock(),
- n.createElementBlock(n.Fragment, {
- key: 1
- }, [n.createCommentVNode(" textarea "), n.createElementVNode("textarea", n.mergeProps({
- id: n.unref(h),
- ref_key: "textarea",
- ref: S,
- class: [n.unref(y).e("inner"), n.unref(I).is("focus", n.unref(U))]
- }, n.unref(w), {
- minlength: H.minlength,
- maxlength: H.maxlength,
- tabindex: H.tabindex,
- disabled: n.unref(v),
- readonly: H.readonly,
- autocomplete: H.autocomplete,
- style: n.unref(ce),
- "aria-label": H.ariaLabel,
- placeholder: H.placeholder,
- form: H.form,
- autofocus: H.autofocus,
- rows: H.rows,
- onCompositionstart: n.unref(je),
- onCompositionupdate: n.unref(Jt),
- onCompositionend: n.unref(Rn),
- onInput: St,
- onFocus: n.unref(X),
- onBlur: n.unref(W),
- onChange: nn,
- onKeydown: Rt
- }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]), n.unref(Ee) ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 0,
- style: n.normalizeStyle(B.value),
- class: n.normalizeClass(n.unref(I).e("count"))
- }, n.toDisplayString(n.unref(te)) + " / " + n.toDisplayString(H.maxlength), 7)) : n.createCommentVNode("v-if", !0)], 64))], 16, ["role"]))
- }
- });
- var b0 = He(v0, [["__file", "input.vue"]]);
- const C0 = Ln(b0)
- , io = 4
- , E0 = {
- vertical: {
- offset: "offsetHeight",
- scroll: "scrollTop",
- scrollSize: "scrollHeight",
- size: "height",
- key: "vertical",
- axis: "Y",
- client: "clientY",
- direction: "top"
- },
- horizontal: {
- offset: "offsetWidth",
- scroll: "scrollLeft",
- scrollSize: "scrollWidth",
- size: "width",
- key: "horizontal",
- axis: "X",
- client: "clientX",
- direction: "left"
- }
- }
- , S0 = ({ move: t, size: r, bar: i }) => ({
- [i.size]: r,
- transform: `translate${i.axis}(${t}%)`
- })
- , Wi = Symbol("scrollbarContextKey")
- , I0 = Me({
- vertical: Boolean,
- size: String,
- move: Number,
- ratio: {
- type: Number,
- required: !0
- },
- always: Boolean
- })
- , x0 = "Thumb";
- var Ql = He(n.defineComponent({
- __name: "thumb",
- props: I0,
- setup(t) {
- const r = t
- , i = n.inject(Wi)
- , s = yt("scrollbar");
- i || fh(x0, "can not inject scrollbar context");
- const c = n.ref()
- , f = n.ref()
- , u = n.ref({})
- , d = n.ref(!1);
- let p = !1
- , w = !1
- , E = Qe ? document.onselectstart : null;
- const C = n.computed(() => E0[r.vertical ? "vertical" : "horizontal"])
- , h = n.computed(() => S0({
- size: r.size,
- move: r.move,
- bar: C.value
- }))
- , x = n.computed(() => c.value[C.value.offset] ** 2 / i.wrapElement[C.value.scrollSize] / r.ratio / f.value[C.value.offset])
- , v = D => {
- var M;
- if (D.stopPropagation(),
- D.ctrlKey || [1, 2].includes(D.button))
- return;
- (M = window.getSelection()) == null || M.removeAllRanges(),
- y(D);
- const k = D.currentTarget;
- k && (u.value[C.value.axis] = k[C.value.offset] - (D[C.value.client] - k.getBoundingClientRect()[C.value.direction]))
- }
- , I = D => {
- if (!f.value || !c.value || !i.wrapElement)
- return;
- const M = Math.abs(D.target.getBoundingClientRect()[C.value.direction] - D[C.value.client])
- , k = f.value[C.value.offset] / 2
- , U = (M - k) * 100 * x.value / c.value[C.value.offset];
- i.wrapElement[C.value.scroll] = U * i.wrapElement[C.value.scrollSize] / 100
- }
- , y = D => {
- D.stopImmediatePropagation(),
- p = !0,
- document.addEventListener("mousemove", g),
- document.addEventListener("mouseup", S),
- E = document.onselectstart,
- document.onselectstart = () => !1
- }
- , g = D => {
- if (!c.value || !f.value || p === !1)
- return;
- const M = u.value[C.value.axis];
- if (!M)
- return;
- const k = (c.value.getBoundingClientRect()[C.value.direction] - D[C.value.client]) * -1
- , U = f.value[C.value.offset] - M
- , X = (k - U) * 100 * x.value / c.value[C.value.offset];
- i.wrapElement[C.value.scroll] = X * i.wrapElement[C.value.scrollSize] / 100
- }
- , S = () => {
- p = !1,
- u.value[C.value.axis] = 0,
- document.removeEventListener("mousemove", g),
- document.removeEventListener("mouseup", S),
- B(),
- w && (d.value = !1)
- }
- , T = () => {
- w = !1,
- d.value = !!r.size
- }
- , N = () => {
- w = !0,
- d.value = p
- }
- ;
- n.onBeforeUnmount(() => {
- B(),
- document.removeEventListener("mouseup", S)
- }
- );
- const B = () => {
- document.onselectstart !== E && (document.onselectstart = E)
- }
- ;
- return Qt(n.toRef(i, "scrollbarElement"), "mousemove", T),
- Qt(n.toRef(i, "scrollbarElement"), "mouseleave", N),
- (D, M) => (n.openBlock(),
- n.createBlock(n.Transition, {
- name: n.unref(s).b("fade"),
- persisted: ""
- }, {
- default: n.withCtx(() => [n.withDirectives(n.createElementVNode("div", {
- ref_key: "instance",
- ref: c,
- class: n.normalizeClass([n.unref(s).e("bar"), n.unref(s).is(n.unref(C).key)]),
- onMousedown: I
- }, [n.createElementVNode("div", {
- ref_key: "thumb",
- ref: f,
- class: n.normalizeClass(n.unref(s).e("thumb")),
- style: n.normalizeStyle(n.unref(h)),
- onMousedown: v
- }, null, 38)], 34), [[n.vShow, D.always || d.value]])]),
- _: 1
- }, 8, ["name"]))
- }
- }), [["__file", "thumb.vue"]]);
- const A0 = Me({
- always: {
- type: Boolean,
- default: !0
- },
- minSize: {
- type: Number,
- required: !0
- }
- });
- var T0 = He(n.defineComponent({
- __name: "bar",
- props: A0,
- setup(t, { expose: r }) {
- const i = t
- , s = n.inject(Wi)
- , c = n.ref(0)
- , f = n.ref(0)
- , u = n.ref("")
- , d = n.ref("")
- , p = n.ref(1)
- , w = n.ref(1);
- return r({
- handleScroll: h => {
- if (h) {
- const x = h.offsetHeight - io
- , v = h.offsetWidth - io;
- f.value = h.scrollTop * 100 / x * p.value,
- c.value = h.scrollLeft * 100 / v * w.value
- }
- }
- ,
- update: () => {
- const h = s == null ? void 0 : s.wrapElement;
- if (!h)
- return;
- const x = h.offsetHeight - io
- , v = h.offsetWidth - io
- , I = x ** 2 / h.scrollHeight
- , y = v ** 2 / h.scrollWidth
- , g = Math.max(I, i.minSize)
- , S = Math.max(y, i.minSize);
- p.value = I / (x - I) / (g / (x - g)),
- w.value = y / (v - y) / (S / (v - S)),
- d.value = g + io < x ? `${g}px` : "",
- u.value = S + io < v ? `${S}px` : ""
- }
- }),
- (h, x) => (n.openBlock(),
- n.createElementBlock(n.Fragment, null, [n.createVNode(Ql, {
- move: c.value,
- ratio: w.value,
- size: u.value,
- always: h.always
- }, null, 8, ["move", "ratio", "size", "always"]), n.createVNode(Ql, {
- move: f.value,
- ratio: p.value,
- size: d.value,
- vertical: "",
- always: h.always
- }, null, 8, ["move", "ratio", "size", "always"])], 64))
- }
- }), [["__file", "bar.vue"]]);
- const O0 = Me({
- height: {
- type: [String, Number],
- default: ""
- },
- maxHeight: {
- type: [String, Number],
- default: ""
- },
- native: {
- type: Boolean,
- default: !1
- },
- wrapStyle: {
- type: pe([String, Object, Array]),
- default: ""
- },
- wrapClass: {
- type: [String, Array],
- default: ""
- },
- viewClass: {
- type: [String, Array],
- default: ""
- },
- viewStyle: {
- type: [String, Array, Object],
- default: ""
- },
- noresize: Boolean,
- tag: {
- type: String,
- default: "div"
- },
- always: Boolean,
- minSize: {
- type: Number,
- default: 20
- },
- id: String,
- role: String,
- ...yr(["ariaLabel", "ariaOrientation"])
- })
- , k0 = {
- scroll: ({ scrollTop: t, scrollLeft: r }) => [t, r].every(gt)
- }
- , N0 = n.defineComponent({
- name: "ElScrollbar"
- })
- , L0 = n.defineComponent({
- ...N0,
- props: O0,
- emits: k0,
- setup(t, { expose: r, emit: i }) {
- const s = t
- , c = yt("scrollbar");
- let f, u, d = 0, p = 0;
- const w = n.ref()
- , E = n.ref()
- , C = n.ref()
- , h = n.ref()
- , x = n.computed(() => {
- const B = {};
- return s.height && (B.height = Ti(s.height)),
- s.maxHeight && (B.maxHeight = Ti(s.maxHeight)),
- [s.wrapStyle, B]
- }
- )
- , v = n.computed(() => [s.wrapClass, c.e("wrap"), {
- [c.em("wrap", "hidden-default")]: !s.native
- }])
- , I = n.computed(() => [c.e("view"), s.viewClass])
- , y = () => {
- var B;
- E.value && ((B = h.value) == null || B.handleScroll(E.value),
- d = E.value.scrollTop,
- p = E.value.scrollLeft,
- i("scroll", {
- scrollTop: E.value.scrollTop,
- scrollLeft: E.value.scrollLeft
- }))
- }
- ;
- function g(B, D) {
- Yn(B) ? E.value.scrollTo(B) : gt(B) && gt(D) && E.value.scrollTo(B, D)
- }
- const S = B => {
- gt(B) && (E.value.scrollTop = B)
- }
- , T = B => {
- gt(B) && (E.value.scrollLeft = B)
- }
- , N = () => {
- var B;
- (B = h.value) == null || B.update()
- }
- ;
- return n.watch(() => s.noresize, B => {
- B ? (f == null || f(),
- u == null || u()) : ({ stop: f } = Js(C, N),
- u = Qt("resize", N))
- }
- , {
- immediate: !0
- }),
- n.watch(() => [s.maxHeight, s.height], () => {
- s.native || n.nextTick(() => {
- var B;
- N(),
- E.value && ((B = h.value) == null || B.handleScroll(E.value))
- }
- )
- }
- ),
- n.provide(Wi, n.reactive({
- scrollbarElement: w,
- wrapElement: E
- })),
- n.onActivated(() => {
- E.value.scrollTop = d,
- E.value.scrollLeft = p
- }
- ),
- n.onMounted(() => {
- s.native || n.nextTick(() => {
- N()
- }
- )
- }
- ),
- n.onUpdated(() => N()),
- r({
- wrapRef: E,
- update: N,
- scrollTo: g,
- setScrollTop: S,
- setScrollLeft: T,
- handleScroll: y
- }),
- (B, D) => (n.openBlock(),
- n.createElementBlock("div", {
- ref_key: "scrollbarRef",
- ref: w,
- class: n.normalizeClass(n.unref(c).b())
- }, [n.createElementVNode("div", {
- ref_key: "wrapRef",
- ref: E,
- class: n.normalizeClass(n.unref(v)),
- style: n.normalizeStyle(n.unref(x)),
- onScroll: y
- }, [(n.openBlock(),
- n.createBlock(n.resolveDynamicComponent(B.tag), {
- id: B.id,
- ref_key: "resizeRef",
- ref: C,
- class: n.normalizeClass(n.unref(I)),
- style: n.normalizeStyle(B.viewStyle),
- role: B.role,
- "aria-label": B.ariaLabel,
- "aria-orientation": B.ariaOrientation
- }, {
- default: n.withCtx(() => [n.renderSlot(B.$slots, "default")]),
- _: 3
- }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))], 38), B.native ? n.createCommentVNode("v-if", !0) : (n.openBlock(),
- n.createBlock(T0, {
- key: 0,
- ref_key: "barRef",
- ref: h,
- always: B.always,
- "min-size": B.minSize
- }, null, 8, ["always", "min-size"]))], 2))
- }
- });
- var B0 = He(L0, [["__file", "scrollbar.vue"]]);
- const P0 = Ln(B0)
- , ji = Symbol("popper")
- , ec = Symbol("popperContent")
- , tc = Me({
- role: {
- type: String,
- values: ["dialog", "grid", "group", "listbox", "menu", "navigation", "tooltip", "tree"],
- default: "tooltip"
- }
- })
- , D0 = n.defineComponent({
- name: "ElPopper",
- inheritAttrs: !1
- })
- , V0 = n.defineComponent({
- ...D0,
- props: tc,
- setup(t, { expose: r }) {
- const i = t
- , s = n.ref()
- , c = n.ref()
- , f = n.ref()
- , u = n.ref()
- , d = n.computed(() => i.role)
- , p = {
- triggerRef: s,
- popperInstanceRef: c,
- contentRef: f,
- referenceRef: u,
- role: d
- };
- return r(p),
- n.provide(ji, p),
- (w, E) => n.renderSlot(w.$slots, "default")
- }
- });
- var M0 = He(V0, [["__file", "popper.vue"]]);
- const nc = Me({
- arrowOffset: {
- type: Number,
- default: 5
- }
- })
- , R0 = n.defineComponent({
- name: "ElPopperArrow",
- inheritAttrs: !1
- })
- , $0 = n.defineComponent({
- ...R0,
- props: nc,
- setup(t, { expose: r }) {
- const i = t
- , s = yt("popper")
- , { arrowOffset: c, arrowRef: f, arrowStyle: u } = n.inject(ec, void 0);
- return n.watch(() => i.arrowOffset, d => {
- c.value = d
- }
- ),
- n.onBeforeUnmount(() => {
- f.value = void 0
- }
- ),
- r({
- arrowRef: f
- }),
- (d, p) => (n.openBlock(),
- n.createElementBlock("span", {
- ref_key: "arrowRef",
- ref: f,
- class: n.normalizeClass(n.unref(s).e("arrow")),
- style: n.normalizeStyle(n.unref(u)),
- "data-popper-arrow": ""
- }, null, 6))
- }
- });
- var F0 = He($0, [["__file", "arrow.vue"]]);
- const U0 = n.defineComponent({
- name: "ElOnlyChild",
- setup(t, { slots: r, attrs: i }) {
- var s;
- const c = n.inject(Gl)
- , f = Zg((s = c == null ? void 0 : c.setForwardRef) != null ? s : or);
- return () => {
- var u;
- const d = (u = r.default) == null ? void 0 : u.call(r, i);
- if (!d || d.length > 1)
- return null;
- const p = oc(d);
- return p ? n.withDirectives(n.cloneVNode(p, i), [[f]]) : null
- }
- }
- });
- function oc(t) {
- if (!t)
- return null;
- const r = t;
- for (const i of r) {
- if (Yn(i))
- switch (i.type) {
- case n.Comment:
- continue;
- case n.Text:
- case "svg":
- return rc(i);
- case n.Fragment:
- return oc(i.children);
- default:
- return i
- }
- return rc(i)
- }
- return null
- }
- function rc(t) {
- const r = yt("only-child");
- return n.createVNode("span", {
- class: r.e("content")
- }, [t])
- }
- const ic = Me({
- virtualRef: {
- type: pe(Object)
- },
- virtualTriggering: Boolean,
- onMouseenter: {
- type: pe(Function)
- },
- onMouseleave: {
- type: pe(Function)
- },
- onClick: {
- type: pe(Function)
- },
- onKeydown: {
- type: pe(Function)
- },
- onFocus: {
- type: pe(Function)
- },
- onBlur: {
- type: pe(Function)
- },
- onContextmenu: {
- type: pe(Function)
- },
- id: String,
- open: Boolean
- })
- , z0 = n.defineComponent({
- name: "ElPopperTrigger",
- inheritAttrs: !1
- })
- , H0 = n.defineComponent({
- ...z0,
- props: ic,
- setup(t, { expose: r }) {
- const i = t
- , { role: s, triggerRef: c } = n.inject(ji, void 0);
- qg(c);
- const f = n.computed(() => d.value ? i.id : void 0)
- , u = n.computed(() => {
- if (s && s.value === "tooltip")
- return i.open && i.id ? i.id : void 0
- }
- )
- , d = n.computed(() => {
- if (s && s.value !== "tooltip")
- return s.value
- }
- )
- , p = n.computed(() => d.value ? `${i.open}` : void 0);
- let w;
- const E = ["onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur", "onContextmenu"];
- return n.onMounted(() => {
- n.watch(() => i.virtualRef, C => {
- C && (c.value = mn(C))
- }
- , {
- immediate: !0
- }),
- n.watch(c, (C, h) => {
- w == null || w(),
- w = void 0,
- ko(C) && (E.forEach(x => {
- var v;
- const I = i[x];
- I && (C.addEventListener(x.slice(2).toLowerCase(), I),
- (v = h == null ? void 0 : h.removeEventListener) == null || v.call(h, x.slice(2).toLowerCase(), I))
- }
- ),
- w = n.watch([f, u, d, p], x => {
- ["aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded"].forEach((v, I) => {
- ur(x[I]) ? C.removeAttribute(v) : C.setAttribute(v, x[I])
- }
- )
- }
- , {
- immediate: !0
- })),
- ko(h) && ["aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded"].forEach(x => h.removeAttribute(x))
- }
- , {
- immediate: !0
- })
- }
- ),
- n.onBeforeUnmount(() => {
- if (w == null || w(),
- w = void 0,
- c.value && ko(c.value)) {
- const C = c.value;
- E.forEach(h => {
- const x = i[h];
- x && C.removeEventListener(h.slice(2).toLowerCase(), x)
- }
- ),
- c.value = void 0
- }
- }
- ),
- r({
- triggerRef: c
- }),
- (C, h) => C.virtualTriggering ? n.createCommentVNode("v-if", !0) : (n.openBlock(),
- n.createBlock(n.unref(U0), n.mergeProps({
- key: 0
- }, C.$attrs, {
- "aria-controls": n.unref(f),
- "aria-describedby": n.unref(u),
- "aria-expanded": n.unref(p),
- "aria-haspopup": n.unref(d)
- }), {
- default: n.withCtx(() => [n.renderSlot(C.$slots, "default")]),
- _: 3
- }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]))
- }
- });
- var W0 = He(H0, [["__file", "trigger.vue"]]);
- const Ki = "focus-trap.focus-after-trapped"
- , Gi = "focus-trap.focus-after-released"
- , j0 = "focus-trap.focusout-prevented"
- , ac = {
- cancelable: !0,
- bubbles: !1
- }
- , K0 = {
- cancelable: !0,
- bubbles: !1
- }
- , sc = "focusAfterTrapped"
- , lc = "focusAfterReleased"
- , G0 = Symbol("elFocusTrap")
- , Ji = n.ref()
- , wr = n.ref(0)
- , Yi = n.ref(0);
- let vr = 0;
- const cc = t => {
- const r = []
- , i = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
- acceptNode: s => {
- const c = s.tagName === "INPUT" && s.type === "hidden";
- return s.disabled || s.hidden || c ? NodeFilter.FILTER_SKIP : s.tabIndex >= 0 || s === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
- }
- });
- for (; i.nextNode();)
- r.push(i.currentNode);
- return r
- }
- , uc = (t, r) => {
- for (const i of t)
- if (!J0(i, r))
- return i
- }
- , J0 = (t, r) => {
- if (getComputedStyle(t).visibility === "hidden")
- return !0;
- for (; t;) {
- if (r && t === r)
- return !1;
- if (getComputedStyle(t).display === "none")
- return !0;
- t = t.parentElement
- }
- return !1
- }
- , Y0 = t => {
- const r = cc(t)
- , i = uc(r, t)
- , s = uc(r.reverse(), t);
- return [i, s]
- }
- , q0 = t => t instanceof HTMLInputElement && "select" in t
- , _n = (t, r) => {
- if (t && t.focus) {
- const i = document.activeElement;
- t.focus({
- preventScroll: !0
- }),
- Yi.value = window.performance.now(),
- t !== i && q0(t) && r && t.select()
- }
- }
- ;
- function fc(t, r) {
- const i = [...t]
- , s = t.indexOf(r);
- return s !== -1 && i.splice(s, 1),
- i
- }
- const Z0 = () => {
- let t = [];
- return {
- push: s => {
- const c = t[0];
- c && s !== c && c.pause(),
- t = fc(t, s),
- t.unshift(s)
- }
- ,
- remove: s => {
- var c, f;
- t = fc(t, s),
- (f = (c = t[0]) == null ? void 0 : c.resume) == null || f.call(c)
- }
- }
- }
- , X0 = (t, r = !1) => {
- const i = document.activeElement;
- for (const s of t)
- if (_n(s, r),
- document.activeElement !== i)
- return
- }
- , dc = Z0()
- , Q0 = () => wr.value > Yi.value
- , br = () => {
- Ji.value = "pointer",
- wr.value = window.performance.now()
- }
- , pc = () => {
- Ji.value = "keyboard",
- wr.value = window.performance.now()
- }
- , ey = () => (n.onMounted(() => {
- vr === 0 && (document.addEventListener("mousedown", br),
- document.addEventListener("touchstart", br),
- document.addEventListener("keydown", pc)),
- vr++
- }
- ),
- n.onBeforeUnmount(() => {
- vr--,
- vr <= 0 && (document.removeEventListener("mousedown", br),
- document.removeEventListener("touchstart", br),
- document.removeEventListener("keydown", pc))
- }
- ),
- {
- focusReason: Ji,
- lastUserFocusTimestamp: wr,
- lastAutomatedFocusTimestamp: Yi
- })
- , Cr = t => new CustomEvent(j0, {
- ...K0,
- detail: t
- })
- , ty = n.defineComponent({
- name: "ElFocusTrap",
- inheritAttrs: !1,
- props: {
- loop: Boolean,
- trapped: Boolean,
- focusTrapEl: Object,
- focusStartEl: {
- type: [Object, String],
- default: "first"
- }
- },
- emits: [sc, lc, "focusin", "focusout", "focusout-prevented", "release-requested"],
- setup(t, { emit: r }) {
- const i = n.ref();
- let s, c;
- const { focusReason: f } = ey();
- jg(v => {
- t.trapped && !u.paused && r("release-requested", v)
- }
- );
- const u = {
- paused: !1,
- pause() {
- this.paused = !0
- },
- resume() {
- this.paused = !1
- }
- }
- , d = v => {
- if (!t.loop && !t.trapped || u.paused)
- return;
- const { key: I, altKey: y, ctrlKey: g, metaKey: S, currentTarget: T, shiftKey: N } = v
- , { loop: B } = t
- , D = I === dr.tab && !y && !g && !S
- , M = document.activeElement;
- if (D && M) {
- const k = T
- , [U, X] = Y0(k);
- if (U && X) {
- if (!N && M === X) {
- const Q = Cr({
- focusReason: f.value
- });
- r("focusout-prevented", Q),
- Q.defaultPrevented || (v.preventDefault(),
- B && _n(U, !0))
- } else if (N && [U, k].includes(M)) {
- const Q = Cr({
- focusReason: f.value
- });
- r("focusout-prevented", Q),
- Q.defaultPrevented || (v.preventDefault(),
- B && _n(X, !0))
- }
- } else if (M === k) {
- const Q = Cr({
- focusReason: f.value
- });
- r("focusout-prevented", Q),
- Q.defaultPrevented || v.preventDefault()
- }
- }
- }
- ;
- n.provide(G0, {
- focusTrapRef: i,
- onKeydown: d
- }),
- n.watch(() => t.focusTrapEl, v => {
- v && (i.value = v)
- }
- , {
- immediate: !0
- }),
- n.watch([i], ([v], [I]) => {
- v && (v.addEventListener("keydown", d),
- v.addEventListener("focusin", E),
- v.addEventListener("focusout", C)),
- I && (I.removeEventListener("keydown", d),
- I.removeEventListener("focusin", E),
- I.removeEventListener("focusout", C))
- }
- );
- const p = v => {
- r(sc, v)
- }
- , w = v => r(lc, v)
- , E = v => {
- const I = n.unref(i);
- if (!I)
- return;
- const y = v.target
- , g = v.relatedTarget
- , S = y && I.contains(y);
- t.trapped || g && I.contains(g) || (s = g),
- S && r("focusin", v),
- !u.paused && t.trapped && (S ? c = y : _n(c, !0))
- }
- , C = v => {
- const I = n.unref(i);
- if (!(u.paused || !I))
- if (t.trapped) {
- const y = v.relatedTarget;
- !ur(y) && !I.contains(y) && setTimeout(() => {
- if (!u.paused && t.trapped) {
- const g = Cr({
- focusReason: f.value
- });
- r("focusout-prevented", g),
- g.defaultPrevented || _n(c, !0)
- }
- }
- , 0)
- } else {
- const y = v.target;
- y && I.contains(y) || r("focusout", v)
- }
- }
- ;
- async function h() {
- await n.nextTick();
- const v = n.unref(i);
- if (v) {
- dc.push(u);
- const I = v.contains(document.activeElement) ? s : document.activeElement;
- if (s = I,
- !v.contains(I)) {
- const g = new Event(Ki, ac);
- v.addEventListener(Ki, p),
- v.dispatchEvent(g),
- g.defaultPrevented || n.nextTick(() => {
- let S = t.focusStartEl;
- et(S) || (_n(S),
- document.activeElement !== S && (S = "first")),
- S === "first" && X0(cc(v), !0),
- (document.activeElement === I || S === "container") && _n(v)
- }
- )
- }
- }
- }
- function x() {
- const v = n.unref(i);
- if (v) {
- v.removeEventListener(Ki, p);
- const I = new CustomEvent(Gi, {
- ...ac,
- detail: {
- focusReason: f.value
- }
- });
- v.addEventListener(Gi, w),
- v.dispatchEvent(I),
- !I.defaultPrevented && (f.value == "keyboard" || !Q0() || v.contains(document.activeElement)) && _n(s ?? document.body),
- v.removeEventListener(Gi, w),
- dc.remove(u)
- }
- }
- return n.onMounted(() => {
- t.trapped && h(),
- n.watch(() => t.trapped, v => {
- v ? h() : x()
- }
- )
- }
- ),
- n.onBeforeUnmount(() => {
- t.trapped && x(),
- i.value && (i.value.removeEventListener("keydown", d),
- i.value.removeEventListener("focusin", E),
- i.value.removeEventListener("focusout", C),
- i.value = void 0)
- }
- ),
- {
- onKeydown: d
- }
- }
- });
- function ny(t, r, i, s, c, f) {
- return n.renderSlot(t.$slots, "default", {
- handleKeydown: t.onKeydown
- })
- }
- var oy = He(ty, [["render", ny], ["__file", "focus-trap.vue"]]);
- const ry = ["fixed", "absolute"]
- , iy = Me({
- boundariesPadding: {
- type: Number,
- default: 0
- },
- fallbackPlacements: {
- type: pe(Array),
- default: void 0
- },
- gpuAcceleration: {
- type: Boolean,
- default: !0
- },
- offset: {
- type: Number,
- default: 12
- },
- placement: {
- type: String,
- values: Li,
- default: "bottom"
- },
- popperOptions: {
- type: pe(Object),
- default: () => ({})
- },
- strategy: {
- type: String,
- values: ry,
- default: "absolute"
- }
- })
- , mc = Me({
- ...iy,
- id: String,
- style: {
- type: pe([String, Array, Object])
- },
- className: {
- type: pe([String, Array, Object])
- },
- effect: {
- type: pe(String),
- default: "dark"
- },
- visible: Boolean,
- enterable: {
- type: Boolean,
- default: !0
- },
- pure: Boolean,
- focusOnShow: {
- type: Boolean,
- default: !1
- },
- trapping: {
- type: Boolean,
- default: !1
- },
- popperClass: {
- type: pe([String, Array, Object])
- },
- popperStyle: {
- type: pe([String, Array, Object])
- },
- referenceEl: {
- type: pe(Object)
- },
- triggerTargetEl: {
- type: pe(Object)
- },
- stopPopperMouseEvent: {
- type: Boolean,
- default: !0
- },
- virtualTriggering: Boolean,
- zIndex: Number,
- ...yr(["ariaLabel"])
- })
- , ay = {
- mouseenter: t => t instanceof MouseEvent,
- mouseleave: t => t instanceof MouseEvent,
- focus: () => !0,
- blur: () => !0,
- close: () => !0
- }
- , sy = (t, r = []) => {
- const { placement: i, strategy: s, popperOptions: c } = t
- , f = {
- placement: i,
- strategy: s,
- ...c,
- modifiers: [...cy(t), ...r]
- };
- return uy(f, c == null ? void 0 : c.modifiers),
- f
- }
- , ly = t => {
- if (Qe)
- return mn(t)
- }
- ;
- function cy(t) {
- const { offset: r, gpuAcceleration: i, fallbackPlacements: s } = t;
- return [{
- name: "offset",
- options: {
- offset: [0, r ?? 12]
- }
- }, {
- name: "preventOverflow",
- options: {
- padding: {
- top: 2,
- bottom: 2,
- left: 5,
- right: 5
- }
- }
- }, {
- name: "flip",
- options: {
- padding: 5,
- fallbackPlacements: s
- }
- }, {
- name: "computeStyles",
- options: {
- gpuAcceleration: i
- }
- }]
- }
- function uy(t, r) {
- r && (t.modifiers = [...t.modifiers, ...r ?? []])
- }
- const fy = 0
- , dy = t => {
- const { popperInstanceRef: r, contentRef: i, triggerRef: s, role: c } = n.inject(ji, void 0)
- , f = n.ref()
- , u = n.ref()
- , d = n.computed(() => ({
- name: "eventListeners",
- enabled: !!t.visible
- }))
- , p = n.computed(() => {
- var g;
- const S = n.unref(f)
- , T = (g = n.unref(u)) != null ? g : fy;
- return {
- name: "arrow",
- enabled: !rh(S),
- options: {
- element: S,
- padding: T
- }
- }
- }
- )
- , w = n.computed(() => ({
- onFirstUpdate: () => {
- v()
- }
- ,
- ...sy(t, [n.unref(p), n.unref(d)])
- }))
- , E = n.computed(() => ly(t.referenceEl) || n.unref(s))
- , { attributes: C, state: h, styles: x, update: v, forceUpdate: I, instanceRef: y } = zg(E, i, w);
- return n.watch(y, g => r.value = g),
- n.onMounted(() => {
- n.watch(() => {
- var g;
- return (g = n.unref(E)) == null ? void 0 : g.getBoundingClientRect()
- }
- , () => {
- v()
- }
- )
- }
- ),
- {
- attributes: C,
- arrowRef: f,
- contentRef: i,
- instanceRef: y,
- state: h,
- styles: x,
- role: c,
- forceUpdate: I,
- update: v
- }
- }
- , py = (t, { attributes: r, styles: i, role: s }) => {
- const { nextZIndex: c } = e0()
- , f = yt("popper")
- , u = n.computed(() => n.unref(r).popper)
- , d = n.ref(gt(t.zIndex) ? t.zIndex : c())
- , p = n.computed(() => [f.b(), f.is("pure", t.pure), f.is(t.effect), t.popperClass])
- , w = n.computed(() => [{
- zIndex: n.unref(d)
- }, n.unref(i).popper, t.popperStyle || {}])
- , E = n.computed(() => s.value === "dialog" ? "false" : void 0)
- , C = n.computed(() => n.unref(i).arrow || {});
- return {
- ariaModal: E,
- arrowStyle: C,
- contentAttrs: u,
- contentClass: p,
- contentStyle: w,
- contentZIndex: d,
- updateZIndex: () => {
- d.value = gt(t.zIndex) ? t.zIndex : c()
- }
- }
- }
- , my = (t, r) => {
- const i = n.ref(!1)
- , s = n.ref();
- return {
- focusStartRef: s,
- trapped: i,
- onFocusAfterReleased: w => {
- var E;
- ((E = w.detail) == null ? void 0 : E.focusReason) !== "pointer" && (s.value = "first",
- r("blur"))
- }
- ,
- onFocusAfterTrapped: () => {
- r("focus")
- }
- ,
- onFocusInTrap: w => {
- t.visible && !i.value && (w.target && (s.value = w.target),
- i.value = !0)
- }
- ,
- onFocusoutPrevented: w => {
- t.trapping || (w.detail.focusReason === "pointer" && w.preventDefault(),
- i.value = !1)
- }
- ,
- onReleaseRequested: () => {
- i.value = !1,
- r("close")
- }
- }
- }
- , hy = n.defineComponent({
- name: "ElPopperContent"
- })
- , gy = n.defineComponent({
- ...hy,
- props: mc,
- emits: ay,
- setup(t, { expose: r, emit: i }) {
- const s = t
- , { focusStartRef: c, trapped: f, onFocusAfterReleased: u, onFocusAfterTrapped: d, onFocusInTrap: p, onFocusoutPrevented: w, onReleaseRequested: E } = my(s, i)
- , { attributes: C, arrowRef: h, contentRef: x, styles: v, instanceRef: I, role: y, update: g } = dy(s)
- , { ariaModal: S, arrowStyle: T, contentAttrs: N, contentClass: B, contentStyle: D, updateZIndex: M } = py(s, {
- styles: v,
- attributes: C,
- role: y
- })
- , k = n.inject(_r, void 0)
- , U = n.ref();
- n.provide(ec, {
- arrowStyle: T,
- arrowRef: h,
- arrowOffset: U
- }),
- k && n.provide(_r, {
- ...k,
- addInputId: or,
- removeInputId: or
- });
- let X;
- const W = (ne = !0) => {
- g(),
- ne && M()
- }
- , Q = () => {
- W(!1),
- s.visible && s.focusOnShow ? f.value = !0 : s.visible === !1 && (f.value = !1)
- }
- ;
- return n.onMounted(() => {
- n.watch(() => s.triggerTargetEl, (ne, we) => {
- X == null || X(),
- X = void 0;
- const _e = n.unref(ne || x.value)
- , K = n.unref(we || x.value);
- ko(_e) && (X = n.watch([y, () => s.ariaLabel, S, () => s.id], ce => {
- ["role", "aria-label", "aria-modal", "id"].forEach((ge, Ie) => {
- ur(ce[Ie]) ? _e.removeAttribute(ge) : _e.setAttribute(ge, ce[Ie])
- }
- )
- }
- , {
- immediate: !0
- })),
- K !== _e && ko(K) && ["role", "aria-label", "aria-modal", "id"].forEach(ce => {
- K.removeAttribute(ce)
- }
- )
- }
- , {
- immediate: !0
- }),
- n.watch(() => s.visible, Q, {
- immediate: !0
- })
- }
- ),
- n.onBeforeUnmount(() => {
- X == null || X(),
- X = void 0
- }
- ),
- r({
- popperContentRef: x,
- popperInstanceRef: I,
- updatePopper: W,
- contentStyle: D
- }),
- (ne, we) => (n.openBlock(),
- n.createElementBlock("div", n.mergeProps({
- ref_key: "contentRef",
- ref: x
- }, n.unref(N), {
- style: n.unref(D),
- class: n.unref(B),
- tabindex: "-1",
- onMouseenter: _e => ne.$emit("mouseenter", _e),
- onMouseleave: _e => ne.$emit("mouseleave", _e)
- }), [n.createVNode(n.unref(oy), {
- trapped: n.unref(f),
- "trap-on-focus-in": !0,
- "focus-trap-el": n.unref(x),
- "focus-start-el": n.unref(c),
- onFocusAfterTrapped: n.unref(d),
- onFocusAfterReleased: n.unref(u),
- onFocusin: n.unref(p),
- onFocusoutPrevented: n.unref(w),
- onReleaseRequested: n.unref(E)
- }, {
- default: n.withCtx(() => [n.renderSlot(ne.$slots, "default")]),
- _: 3
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])], 16, ["onMouseenter", "onMouseleave"]))
- }
- });
- var yy = He(gy, [["__file", "content.vue"]]);
- const _y = Ln(M0)
- , qi = Symbol("elTooltip")
- , hc = Me({
- ...Jg,
- ...mc,
- appendTo: {
- type: pe([String, Object])
- },
- content: {
- type: String,
- default: ""
- },
- rawContent: Boolean,
- persistent: Boolean,
- visible: {
- type: pe(Boolean),
- default: null
- },
- transition: String,
- teleported: {
- type: Boolean,
- default: !0
- },
- disabled: Boolean,
- ...yr(["ariaLabel"])
- })
- , gc = Me({
- ...ic,
- disabled: Boolean,
- trigger: {
- type: pe([String, Array]),
- default: "hover"
- },
- triggerKeys: {
- type: pe(Array),
- default: () => [dr.enter, dr.space]
- }
- })
- , { useModelToggleProps: wy, useModelToggleEmits: vy, useModelToggle: by } = wl("visible")
- , Cy = Me({
- ...tc,
- ...wy,
- ...hc,
- ...gc,
- ...nc,
- showArrow: {
- type: Boolean,
- default: !0
- }
- })
- , Ey = [...vy, "before-show", "before-hide", "show", "hide", "open", "close"]
- , Sy = (t, r) => pp(t) ? t.includes(r) : t === r
- , ao = (t, r, i) => s => {
- Sy(n.unref(t), r) && i(s)
- }
- , Iy = n.defineComponent({
- name: "ElTooltipTrigger"
- })
- , xy = n.defineComponent({
- ...Iy,
- props: gc,
- setup(t, { expose: r }) {
- const i = t
- , s = yt("tooltip")
- , { controlled: c, id: f, open: u, onOpen: d, onClose: p, onToggle: w } = n.inject(qi, void 0)
- , E = n.ref(null)
- , C = () => {
- if (n.unref(c) || i.disabled)
- return !0
- }
- , h = n.toRef(i, "trigger")
- , x = Xt(C, ao(h, "hover", d))
- , v = Xt(C, ao(h, "hover", p))
- , I = Xt(C, ao(h, "click", N => {
- N.button === 0 && w(N)
- }
- ))
- , y = Xt(C, ao(h, "focus", d))
- , g = Xt(C, ao(h, "focus", p))
- , S = Xt(C, ao(h, "contextmenu", N => {
- N.preventDefault(),
- w(N)
- }
- ))
- , T = Xt(C, N => {
- const { code: B } = N;
- i.triggerKeys.includes(B) && (N.preventDefault(),
- w(N))
- }
- );
- return r({
- triggerRef: E
- }),
- (N, B) => (n.openBlock(),
- n.createBlock(n.unref(W0), {
- id: n.unref(f),
- "virtual-ref": N.virtualRef,
- open: n.unref(u),
- "virtual-triggering": N.virtualTriggering,
- class: n.normalizeClass(n.unref(s).e("trigger")),
- onBlur: n.unref(g),
- onClick: n.unref(I),
- onContextmenu: n.unref(S),
- onFocus: n.unref(y),
- onMouseenter: n.unref(x),
- onMouseleave: n.unref(v),
- onKeydown: n.unref(T)
- }, {
- default: n.withCtx(() => [n.renderSlot(N.$slots, "default")]),
- _: 3
- }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]))
- }
- });
- var Ay = He(xy, [["__file", "trigger.vue"]]);
- const Ty = Me({
- to: {
- type: pe([String, Object]),
- required: !0
- },
- disabled: Boolean
- });
- var Oy = He(n.defineComponent({
- __name: "teleport",
- props: Ty,
- setup(t) {
- return (r, i) => r.disabled ? n.renderSlot(r.$slots, "default", {
- key: 0
- }) : (n.openBlock(),
- n.createBlock(n.Teleport, {
- key: 1,
- to: r.to
- }, [n.renderSlot(r.$slots, "default")], 8, ["to"]))
- }
- }), [["__file", "teleport.vue"]]);
- const ky = Ln(Oy)
- , Ny = n.defineComponent({
- name: "ElTooltipContent",
- inheritAttrs: !1
- })
- , Ly = n.defineComponent({
- ...Ny,
- props: hc,
- setup(t, { expose: r }) {
- const i = t
- , { selector: s } = Kl()
- , c = yt("tooltip")
- , f = n.ref(null);
- let u;
- const { controlled: d, id: p, open: w, trigger: E, onClose: C, onOpen: h, onShow: x, onHide: v, onBeforeShow: I, onBeforeHide: y } = n.inject(qi, void 0)
- , g = n.computed(() => i.transition || `${c.namespace.value}-fade-in-linear`)
- , S = n.computed(() => i.persistent);
- n.onBeforeUnmount(() => {
- u == null || u()
- }
- );
- const T = n.computed(() => n.unref(S) ? !0 : n.unref(w))
- , N = n.computed(() => i.disabled ? !1 : n.unref(w))
- , B = n.computed(() => i.appendTo || s.value)
- , D = n.computed(() => {
- var K;
- return (K = i.style) != null ? K : {}
- }
- )
- , M = n.computed(() => !n.unref(w))
- , k = () => {
- v()
- }
- , U = () => {
- if (n.unref(d))
- return !0
- }
- , X = Xt(U, () => {
- i.enterable && n.unref(E) === "hover" && h()
- }
- )
- , W = Xt(U, () => {
- n.unref(E) === "hover" && C()
- }
- )
- , Q = () => {
- var K, ce;
- (ce = (K = f.value) == null ? void 0 : K.updatePopper) == null || ce.call(K),
- I == null || I()
- }
- , ne = () => {
- y == null || y()
- }
- , we = () => {
- x(),
- u = op(n.computed(() => {
- var K;
- return (K = f.value) == null ? void 0 : K.popperContentRef
- }
- ), () => {
- if (n.unref(d))
- return;
- n.unref(E) !== "hover" && C()
- }
- )
- }
- , _e = () => {
- i.virtualTriggering || C()
- }
- ;
- return n.watch(() => n.unref(w), K => {
- K || u == null || u()
- }
- , {
- flush: "post"
- }),
- n.watch(() => i.content, () => {
- var K, ce;
- (ce = (K = f.value) == null ? void 0 : K.updatePopper) == null || ce.call(K)
- }
- ),
- r({
- contentRef: f
- }),
- (K, ce) => (n.openBlock(),
- n.createBlock(n.unref(ky), {
- disabled: !K.teleported,
- to: n.unref(B)
- }, {
- default: n.withCtx(() => [n.createVNode(n.Transition, {
- name: n.unref(g),
- onAfterLeave: k,
- onBeforeEnter: Q,
- onAfterEnter: we,
- onBeforeLeave: ne
- }, {
- default: n.withCtx(() => [n.unref(T) ? n.withDirectives((n.openBlock(),
- n.createBlock(n.unref(yy), n.mergeProps({
- key: 0,
- id: n.unref(p),
- ref_key: "contentRef",
- ref: f
- }, K.$attrs, {
- "aria-label": K.ariaLabel,
- "aria-hidden": n.unref(M),
- "boundaries-padding": K.boundariesPadding,
- "fallback-placements": K.fallbackPlacements,
- "gpu-acceleration": K.gpuAcceleration,
- offset: K.offset,
- placement: K.placement,
- "popper-options": K.popperOptions,
- strategy: K.strategy,
- effect: K.effect,
- enterable: K.enterable,
- pure: K.pure,
- "popper-class": K.popperClass,
- "popper-style": [K.popperStyle, n.unref(D)],
- "reference-el": K.referenceEl,
- "trigger-target-el": K.triggerTargetEl,
- visible: n.unref(N),
- "z-index": K.zIndex,
- onMouseenter: n.unref(X),
- onMouseleave: n.unref(W),
- onBlur: _e,
- onClose: n.unref(C)
- }), {
- default: n.withCtx(() => [n.renderSlot(K.$slots, "default")]),
- _: 3
- }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [[n.vShow, n.unref(N)]]) : n.createCommentVNode("v-if", !0)]),
- _: 3
- }, 8, ["name"])]),
- _: 3
- }, 8, ["disabled", "to"]))
- }
- });
- var By = He(Ly, [["__file", "content.vue"]]);
- const Py = n.defineComponent({
- name: "ElTooltip"
- })
- , Dy = n.defineComponent({
- ...Py,
- props: Cy,
- emits: Ey,
- setup(t, { expose: r, emit: i }) {
- const s = t;
- Gg();
- const c = Ui()
- , f = n.ref()
- , u = n.ref()
- , d = () => {
- var g;
- const S = n.unref(f);
- S && ((g = S.popperInstanceRef) == null || g.update())
- }
- , p = n.ref(!1)
- , w = n.ref()
- , { show: E, hide: C, hasUpdateHandler: h } = by({
- indicator: p,
- toggleReason: w
- })
- , { onOpen: x, onClose: v } = Yg({
- showAfter: n.toRef(s, "showAfter"),
- hideAfter: n.toRef(s, "hideAfter"),
- autoClose: n.toRef(s, "autoClose"),
- open: E,
- close: C
- })
- , I = n.computed(() => hl(s.visible) && !h.value);
- n.provide(qi, {
- controlled: I,
- id: c,
- open: n.readonly(p),
- trigger: n.toRef(s, "trigger"),
- onOpen: g => {
- x(g)
- }
- ,
- onClose: g => {
- v(g)
- }
- ,
- onToggle: g => {
- n.unref(p) ? v(g) : x(g)
- }
- ,
- onShow: () => {
- i("show", w.value)
- }
- ,
- onHide: () => {
- i("hide", w.value)
- }
- ,
- onBeforeShow: () => {
- i("before-show", w.value)
- }
- ,
- onBeforeHide: () => {
- i("before-hide", w.value)
- }
- ,
- updatePopper: d
- }),
- n.watch(() => s.disabled, g => {
- g && p.value && (p.value = !1)
- }
- );
- const y = g => {
- var S, T;
- const N = (T = (S = u.value) == null ? void 0 : S.contentRef) == null ? void 0 : T.popperContentRef
- , B = (g == null ? void 0 : g.relatedTarget) || document.activeElement;
- return N && N.contains(B)
- }
- ;
- return n.onDeactivated(() => p.value && C()),
- r({
- popperRef: f,
- contentRef: u,
- isFocusInsideContent: y,
- updatePopper: d,
- onOpen: x,
- onClose: v,
- hide: C
- }),
- (g, S) => (n.openBlock(),
- n.createBlock(n.unref(_y), {
- ref_key: "popperRef",
- ref: f,
- role: g.role
- }, {
- default: n.withCtx(() => [n.createVNode(Ay, {
- disabled: g.disabled,
- trigger: g.trigger,
- "trigger-keys": g.triggerKeys,
- "virtual-ref": g.virtualRef,
- "virtual-triggering": g.virtualTriggering
- }, {
- default: n.withCtx(() => [g.$slots.default ? n.renderSlot(g.$slots, "default", {
- key: 0
- }) : n.createCommentVNode("v-if", !0)]),
- _: 3
- }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]), n.createVNode(By, {
- ref_key: "contentRef",
- ref: u,
- "aria-label": g.ariaLabel,
- "boundaries-padding": g.boundariesPadding,
- content: g.content,
- disabled: g.disabled,
- effect: g.effect,
- enterable: g.enterable,
- "fallback-placements": g.fallbackPlacements,
- "hide-after": g.hideAfter,
- "gpu-acceleration": g.gpuAcceleration,
- offset: g.offset,
- persistent: g.persistent,
- "popper-class": g.popperClass,
- "popper-style": g.popperStyle,
- placement: g.placement,
- "popper-options": g.popperOptions,
- pure: g.pure,
- "raw-content": g.rawContent,
- "reference-el": g.referenceEl,
- "trigger-target-el": g.triggerTargetEl,
- "show-after": g.showAfter,
- strategy: g.strategy,
- teleported: g.teleported,
- transition: g.transition,
- "virtual-triggering": g.virtualTriggering,
- "z-index": g.zIndex,
- "append-to": g.appendTo
- }, {
- default: n.withCtx(() => [n.renderSlot(g.$slots, "content", {}, () => [g.rawContent ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 0,
- innerHTML: g.content
- }, null, 8, ["innerHTML"])) : (n.openBlock(),
- n.createElementBlock("span", {
- key: 1
- }, n.toDisplayString(g.content), 1))]), g.showArrow ? (n.openBlock(),
- n.createBlock(n.unref(F0), {
- key: 0,
- "arrow-offset": g.arrowOffset
- }, null, 8, ["arrow-offset"])) : n.createCommentVNode("v-if", !0)]),
- _: 3
- }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])]),
- _: 3
- }, 8, ["role"]))
- }
- });
- var Vy = He(Dy, [["__file", "tooltip.vue"]]);
- const My = Ln(Vy);
- var Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
- function yc(t) {
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t
- }
- const Ry = (t, r) => {
- const i = t.toLowerCase();
- return (r.label || r.value).toLowerCase().includes(i)
- }
- , $y = (t, r, i) => {
- const { selectionEnd: s } = t;
- if (s === null)
- return;
- const c = t.value
- , f = eh(r);
- let u = -1, d;
- for (let p = s - 1; p >= 0; --p) {
- const w = c[p];
- if (w === i || w === `
- ` || w === "\r") {
- u = p;
- continue
- }
- if (f.includes(w)) {
- const E = u === -1 ? s : u;
- d = {
- pattern: c.slice(p + 1, E),
- start: p + 1,
- end: E,
- prefix: w,
- prefixIndex: p,
- splitIndex: u,
- selectionEnd: s
- };
- break
- }
- }
- return d
- }
- , Fy = (t, r = {
- debug: !1,
- useSelectionEnd: !1
- }) => {
- const i = t.selectionStart !== null ? t.selectionStart : 0
- , s = t.selectionEnd !== null ? t.selectionEnd : 0
- , c = r.useSelectionEnd ? s : i
- , f = ["direction", "boxSizing", "width", "height", "overflowX", "overflowY", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderStyle", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "fontStyle", "fontVariant", "fontWeight", "fontStretch", "fontSize", "fontSizeAdjust", "lineHeight", "fontFamily", "textAlign", "textTransform", "textIndent", "textDecoration", "letterSpacing", "wordSpacing", "tabSize", "MozTabSize"];
- if (r.debug) {
- const h = document.querySelector("#input-textarea-caret-position-mirror-div");
- h != null && h.parentNode && h.parentNode.removeChild(h)
- }
- const u = document.createElement("div");
- u.id = "input-textarea-caret-position-mirror-div",
- document.body.appendChild(u);
- const d = u.style
- , p = window.getComputedStyle(t)
- , w = t.nodeName === "INPUT";
- d.whiteSpace = w ? "nowrap" : "pre-wrap",
- w || (d.wordWrap = "break-word"),
- d.position = "absolute",
- r.debug || (d.visibility = "hidden"),
- f.forEach(h => {
- if (w && h === "lineHeight")
- if (p.boxSizing === "border-box") {
- const x = Number.parseInt(p.height)
- , v = Number.parseInt(p.paddingTop) + Number.parseInt(p.paddingBottom) + Number.parseInt(p.borderTopWidth) + Number.parseInt(p.borderBottomWidth)
- , I = v + Number.parseInt(p.lineHeight);
- x > I ? d.lineHeight = `${x - v}px` : x === I ? d.lineHeight = p.lineHeight : d.lineHeight = "0"
- } else
- d.lineHeight = p.height;
- else
- d[h] = p[h]
- }
- ),
- Xs() ? t.scrollHeight > Number.parseInt(p.height) && (d.overflowY = "scroll") : d.overflow = "hidden",
- u.textContent = t.value.slice(0, Math.max(0, c)),
- w && u.textContent && (u.textContent = u.textContent.replace(/\s/g, " "));
- const E = document.createElement("span");
- E.textContent = t.value.slice(Math.max(0, c)) || ".",
- E.style.position = "relative",
- E.style.left = `${-t.scrollLeft}px`,
- E.style.top = `${-t.scrollTop}px`,
- u.appendChild(E);
- const C = {
- top: E.offsetTop + Number.parseInt(p.borderTopWidth),
- left: E.offsetLeft + Number.parseInt(p.borderLeftWidth),
- height: Number.parseInt(p.fontSize) * 1.5
- };
- return r.debug ? E.style.backgroundColor = "#aaa" : document.body.removeChild(u),
- C.left >= t.clientWidth && (C.left = t.clientWidth),
- C
- }
- , Uy = Me({
- ...Hi,
- options: {
- type: pe(Array),
- default: () => []
- },
- prefix: {
- type: pe([String, Array]),
- default: "@",
- validator: t => et(t) ? t.length === 1 : t.every(r => et(r) && r.length === 1)
- },
- split: {
- type: String,
- default: " ",
- validator: t => t.length === 1
- },
- filterOption: {
- type: pe([Boolean, Function]),
- default: () => Ry,
- validator: t => t === !1 ? !0 : hn(t)
- },
- placement: {
- type: pe(String),
- default: "bottom"
- },
- showArrow: Boolean,
- offset: {
- type: Number,
- default: 0
- },
- whole: Boolean,
- checkIsWhole: {
- type: pe(Function)
- },
- modelValue: String,
- loading: Boolean,
- popperClass: {
- type: String,
- default: ""
- },
- popperOptions: {
- type: pe(Object),
- default: () => ({})
- }
- })
- , zy = {
- [Xn]: t => et(t),
- search: (t, r) => et(t) && et(r),
- select: (t, r) => et(t.value) && et(r),
- focus: t => t instanceof FocusEvent,
- blur: t => t instanceof FocusEvent
- }
- , Hy = Me({
- options: {
- type: pe(Array),
- default: () => []
- },
- loading: Boolean,
- disabled: Boolean,
- contentId: String,
- ariaLabel: String
- })
- , Wy = {
- select: t => et(t.value)
- }
- , jy = n.defineComponent({
- name: "ElMentionDropdown"
- })
- , Ky = n.defineComponent({
- ...jy,
- props: Hy,
- emits: Wy,
- setup(t, { expose: r, emit: i }) {
- const s = t
- , c = yt("mention")
- , { t: f } = Dh()
- , u = n.ref(-1)
- , d = n.ref()
- , p = n.ref()
- , w = n.ref()
- , E = (T, N) => [c.be("dropdown", "item"), c.is("hovering", u.value === N), c.is("disabled", T.disabled || s.disabled)]
- , C = T => {
- T.disabled || s.disabled || i("select", T)
- }
- , h = T => {
- u.value = T
- }
- , x = n.computed(() => s.disabled || s.options.every(T => T.disabled))
- , v = n.computed(() => s.options[u.value])
- , I = () => {
- v.value && i("select", v.value)
- }
- , y = T => {
- const { options: N } = s;
- if (N.length === 0 || x.value)
- return;
- T === "next" ? (u.value++,
- u.value === N.length && (u.value = 0)) : T === "prev" && (u.value--,
- u.value < 0 && (u.value = N.length - 1));
- const B = N[u.value];
- if (B.disabled) {
- y(T);
- return
- }
- n.nextTick(() => g(B))
- }
- , g = T => {
- var N, B, D, M;
- const { options: k } = s
- , U = k.findIndex(W => W.value === T.value)
- , X = (N = p.value) == null ? void 0 : N[U];
- if (X) {
- const W = (D = (B = w.value) == null ? void 0 : B.querySelector) == null ? void 0 : D.call(B, `.${c.be("dropdown", "wrap")}`);
- W && dh(W, X)
- }
- (M = d.value) == null || M.handleScroll()
- }
- , S = () => {
- x.value || s.options.length === 0 ? u.value = -1 : u.value = 0
- }
- ;
- return n.watch(() => s.options, S, {
- immediate: !0
- }),
- r({
- hoveringIndex: u,
- navigateOptions: y,
- selectHoverOption: I,
- hoverOption: v
- }),
- (T, N) => (n.openBlock(),
- n.createElementBlock("div", {
- ref_key: "dropdownRef",
- ref: w,
- class: n.normalizeClass(n.unref(c).b("dropdown"))
- }, [T.$slots.header ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: n.normalizeClass(n.unref(c).be("dropdown", "header"))
- }, [n.renderSlot(T.$slots, "header")], 2)) : n.createCommentVNode("v-if", !0), n.withDirectives(n.createVNode(n.unref(P0), {
- id: T.contentId,
- ref_key: "scrollbarRef",
- ref: d,
- tag: "ul",
- "wrap-class": n.unref(c).be("dropdown", "wrap"),
- "view-class": n.unref(c).be("dropdown", "list"),
- role: "listbox",
- "aria-label": T.ariaLabel,
- "aria-orientation": "vertical"
- }, {
- default: n.withCtx(() => [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(T.options, (B, D) => (n.openBlock(),
- n.createElementBlock("li", {
- id: `${T.contentId}-${D}`,
- ref_for: !0,
- ref_key: "optionRefs",
- ref: p,
- key: B.value,
- class: n.normalizeClass(E(B, D)),
- role: "option",
- "aria-disabled": B.disabled || T.disabled || void 0,
- "aria-selected": u.value === D,
- onMouseenter: M => h(D),
- onClick: n.withModifiers(M => C(B), ["stop"])
- }, [n.renderSlot(T.$slots, "label", {
- item: B,
- index: D
- }, () => {
- var M;
- return [n.createElementVNode("span", null, n.toDisplayString((M = B.label) != null ? M : B.value), 1)]
- }
- )], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"]))), 128))]),
- _: 3
- }, 8, ["id", "wrap-class", "view-class", "aria-label"]), [[n.vShow, T.options.length > 0 && !T.loading]]), T.loading ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 1,
- class: n.normalizeClass(n.unref(c).be("dropdown", "loading"))
- }, [n.renderSlot(T.$slots, "loading", {}, () => [n.createTextVNode(n.toDisplayString(n.unref(f)("el.mention.loading")), 1)])], 2)) : n.createCommentVNode("v-if", !0), T.$slots.footer ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 2,
- class: n.normalizeClass(n.unref(c).be("dropdown", "footer"))
- }, [n.renderSlot(T.$slots, "footer")], 2)) : n.createCommentVNode("v-if", !0)], 2))
- }
- });
- var Gy = He(Ky, [["__file", "mention-dropdown.vue"]]);
- const Jy = n.defineComponent({
- name: "ElMention"
- })
- , Yy = n.defineComponent({
- ...Jy,
- props: Uy,
- emits: zy,
- setup(t, { expose: r, emit: i }) {
- const s = t
- , c = n.computed(() => ml(s, Object.keys(Hi)))
- , f = yt("mention")
- , u = Ui()
- , d = n.ref()
- , p = n.ref()
- , w = n.ref()
- , E = n.ref(!1)
- , C = n.ref()
- , h = n.ref()
- , x = n.computed(() => s.showArrow ? s.placement : `${s.placement}-start`)
- , v = n.computed(() => s.showArrow ? ["bottom", "top"] : ["bottom-start", "top-start"])
- , I = n.computed(() => {
- const { filterOption: W, options: Q } = s;
- return !h.value || !W ? Q : Q.filter(ne => W(h.value.pattern, ne))
- }
- )
- , y = n.computed(() => E.value && (!!I.value.length || s.loading))
- , g = n.computed(() => {
- var W;
- return `${u.value}-${(W = w.value) == null ? void 0 : W.hoveringIndex}`
- }
- )
- , S = W => {
- i("update:modelValue", W),
- k()
- }
- , T = W => {
- var Q, ne, we, _e;
- if ("key" in W && !((Q = d.value) != null && Q.isComposing)) {
- if (["ArrowLeft", "ArrowRight"].includes(W.key))
- k();
- else if (["ArrowUp", "ArrowDown"].includes(W.key)) {
- if (!E.value)
- return;
- W.preventDefault();
- const K = W.key === "ArrowUp" ? "prev" : "next";
- (ne = w.value) == null || ne.navigateOptions(K)
- } else if (["Enter"].includes(W.key)) {
- if (!E.value)
- return;
- W.preventDefault(),
- (we = w.value) != null && we.hoverOption ? (_e = w.value) == null || _e.selectHoverOption() : E.value = !1
- } else if (["Escape"].includes(W.key)) {
- if (!E.value)
- return;
- W.preventDefault(),
- E.value = !1
- } else if (["Backspace"].includes(W.key) && s.whole && h.value) {
- const { splitIndex: K, selectionEnd: ce, pattern: ge, prefixIndex: Ie, prefix: Fe } = h.value
- , Ee = M();
- if (!Ee)
- return;
- const te = Ee.value
- , Y = s.options.find(q => q.value === ge);
- if ((hn(s.checkIsWhole) ? s.checkIsWhole(ge, Fe) : Y) && K !== -1 && K + 1 === ce) {
- W.preventDefault();
- const q = te.slice(0, Ie) + te.slice(K + 1);
- i(Xn, q);
- const ee = Ie;
- n.nextTick(() => {
- Ee.selectionStart = ee,
- Ee.selectionEnd = ee,
- X()
- }
- )
- }
- }
- }
- }
- , { wrapperRef: N } = Zl(d, {
- afterFocus() {
- k()
- },
- beforeBlur(W) {
- var Q;
- return (Q = p.value) == null ? void 0 : Q.isFocusInsideContent(W)
- },
- afterBlur() {
- E.value = !1
- }
- })
- , B = () => {
- k()
- }
- , D = W => {
- if (!h.value)
- return;
- const Q = M();
- if (!Q)
- return;
- const ne = Q.value
- , { split: we } = s
- , _e = ne.slice(h.value.end)
- , K = _e.startsWith(we)
- , ce = `${W.value}${K ? "" : we}`
- , ge = ne.slice(0, h.value.start) + ce + _e;
- i(Xn, ge),
- i("select", W, h.value.prefix);
- const Ie = h.value.start + ce.length + (K ? 1 : 0);
- n.nextTick(() => {
- Q.selectionStart = Ie,
- Q.selectionEnd = Ie,
- Q.focus(),
- X()
- }
- )
- }
- , M = () => {
- var W, Q;
- return s.type === "textarea" ? (W = d.value) == null ? void 0 : W.textarea : (Q = d.value) == null ? void 0 : Q.input
- }
- , k = () => {
- setTimeout(() => {
- U(),
- X(),
- n.nextTick(() => {
- var W;
- return (W = p.value) == null ? void 0 : W.updatePopper()
- }
- )
- }
- , 0)
- }
- , U = () => {
- const W = M();
- if (!W)
- return;
- const Q = Fy(W)
- , ne = W.getBoundingClientRect()
- , we = d.value.$el.getBoundingClientRect();
- C.value = {
- position: "absolute",
- width: 0,
- height: `${Q.height}px`,
- left: `${Q.left + ne.left - we.left}px`,
- top: `${Q.top + ne.top - we.top}px`
- }
- }
- , X = () => {
- const W = M();
- if (document.activeElement !== W) {
- E.value = !1;
- return
- }
- const { prefix: Q, split: ne } = s;
- if (h.value = $y(W, Q, ne),
- h.value && h.value.splitIndex === -1) {
- E.value = !0,
- i("search", h.value.pattern, h.value.prefix);
- return
- }
- E.value = !1
- }
- ;
- return r({
- input: d,
- tooltip: p
- }),
- (W, Q) => (n.openBlock(),
- n.createElementBlock("div", {
- ref_key: "wrapperRef",
- ref: N,
- class: n.normalizeClass(n.unref(f).b())
- }, [n.createVNode(n.unref(C0), n.mergeProps(n.mergeProps(n.unref(c), W.$attrs), {
- ref_key: "elInputRef",
- ref: d,
- "model-value": W.modelValue,
- role: n.unref(y) ? "combobox" : void 0,
- "aria-activedescendant": n.unref(y) ? n.unref(g) || "" : void 0,
- "aria-controls": n.unref(y) ? n.unref(u) : void 0,
- "aria-expanded": n.unref(y) || void 0,
- "aria-label": W.ariaLabel,
- "aria-autocomplete": n.unref(y) ? "none" : void 0,
- "aria-haspopup": n.unref(y) ? "listbox" : void 0,
- onInput: S,
- onKeydown: T,
- onMousedown: B
- }), n.createSlots({
- _: 2
- }, [n.renderList(W.$slots, (ne, we) => ({
- name: we,
- fn: n.withCtx(_e => [n.renderSlot(W.$slots, we, n.normalizeProps(n.guardReactiveProps(_e)))])
- }))]), 1040, ["model-value", "role", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "aria-autocomplete", "aria-haspopup"]), n.createVNode(n.unref(My), {
- ref_key: "tooltipRef",
- ref: p,
- visible: n.unref(y),
- "popper-class": [n.unref(f).e("popper"), W.popperClass],
- "popper-options": W.popperOptions,
- placement: n.unref(x),
- "fallback-placements": n.unref(v),
- effect: "light",
- pure: "",
- offset: W.offset,
- "show-arrow": W.showArrow
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", {
- style: n.normalizeStyle(C.value)
- }, null, 4)]),
- content: n.withCtx(() => {
- var ne;
- return [n.createVNode(Gy, {
- ref_key: "dropdownRef",
- ref: w,
- options: n.unref(I),
- disabled: W.disabled,
- loading: W.loading,
- "content-id": n.unref(u),
- "aria-label": W.ariaLabel,
- onSelect: D,
- onClick: n.withModifiers((ne = d.value) == null ? void 0 : ne.focus, ["stop"])
- }, n.createSlots({
- _: 2
- }, [n.renderList(W.$slots, (we, _e) => ({
- name: _e,
- fn: n.withCtx(K => [n.renderSlot(W.$slots, _e, n.normalizeProps(n.guardReactiveProps(K)))])
- }))]), 1032, ["options", "disabled", "loading", "content-id", "aria-label", "onClick"])]
- }
- ),
- _: 3
- }, 8, ["visible", "popper-class", "popper-options", "placement", "fallback-placements", "offset", "show-arrow"])], 2))
- }
- });
- var qy = He(Yy, [["__file", "mention.vue"]]);
- const Zy = Ln(qy);
- function Zi(t) {
- t = t.toLowerCase();
- const r = t.substring(t.lastIndexOf(".") + 1)
- , i = {
- ai: "",
- file: "",
- icon: "",
- ics: "",
- ie: "",
- key: "",
- normal: "",
- outlook: "",
- torrent: "",
- visio: "",
- apk: "",
- avi: "",
- bmp: "",
- chm: "",
- css: "",
- dmg: "",
- doc: "",
- exe: "",
- gif: "",
- html: "",
- ipa: "",
- jpg: "",
- js: "",
- mov: "",
- mp3: "",
- mp4: "",
- mpg: "",
- pdf: "",
- php: "",
- png: "",
- ppt: "",
- psd: "",
- rar: "",
- txt: "",
- vsd: "",
- xls: "",
- xml: "",
- zip: ""
- };
- if (i.hasOwnProperty(r))
- return i[r];
- const s = [["word", "rtf", "docx", "wps"], ["xls", "xlt", "xlw", "xlsx", "et", "csv"], ["html", "htm"], ["jpg", "pcx", "jpeg"], ["ppt", "pot", "dps", "pps", "pptx", "potx", "ppsx"], ["zip", "tar", "jar", "gz"], ["txt", "logging", "ini"], ["avi", "mpeg", "mpg", "ra", "rm", "rmvb", "mov", "qt", "asf", "wmv", "swf"], ["access", "mdb", "accdb"], ["xml", "xsd"]]
- , c = ["", "", "", "", "", "", "", "", "", ""];
- for (let f = 0; f < s.length; f++)
- if (s[f].includes(r))
- return c[f];
- return ""
- }
- function Xy() {
- return _c().__VUE_DEVTOOLS_GLOBAL_HOOK__
- }
- function _c() {
- return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {}
- }
- const Qy = typeof Proxy == "function"
- , e_ = "devtools-plugin:setup"
- , t_ = "plugin:settings:set";
- let so, Xi;
- function n_() {
- var t;
- return so !== void 0 || (typeof window < "u" && window.performance ? (so = !0,
- Xi = window.performance) : typeof global < "u" && (!((t = global.perf_hooks) === null || t === void 0) && t.performance) ? (so = !0,
- Xi = global.perf_hooks.performance) : so = !1),
- so
- }
- function o_() {
- return n_() ? Xi.now() : Date.now()
- }
- class r_ {
- constructor(r, i) {
- this.target = null,
- this.targetQueue = [],
- this.onQueue = [],
- this.plugin = r,
- this.hook = i;
- const s = {};
- if (r.settings)
- for (const u in r.settings) {
- const d = r.settings[u];
- s[u] = d.defaultValue
- }
- const c = `__vue-devtools-plugin-settings__${r.id}`;
- let f = Object.assign({}, s);
- try {
- const u = localStorage.getItem(c)
- , d = JSON.parse(u);
- Object.assign(f, d)
- } catch { }
- this.fallbacks = {
- getSettings() {
- return f
- },
- setSettings(u) {
- try {
- localStorage.setItem(c, JSON.stringify(u))
- } catch { }
- f = u
- },
- now() {
- return o_()
- }
- },
- i && i.on(t_, (u, d) => {
- u === this.plugin.id && this.fallbacks.setSettings(d)
- }
- ),
- this.proxiedOn = new Proxy({}, {
- get: (u, d) => this.target ? this.target.on[d] : (...p) => {
- this.onQueue.push({
- method: d,
- args: p
- })
- }
- }),
- this.proxiedTarget = new Proxy({}, {
- get: (u, d) => this.target ? this.target[d] : d === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(d) ? (...p) => (this.targetQueue.push({
- method: d,
- args: p,
- resolve: () => { }
- }),
- this.fallbacks[d](...p)) : (...p) => new Promise(w => {
- this.targetQueue.push({
- method: d,
- args: p,
- resolve: w
- })
- }
- )
- })
- }
- async setRealTarget(r) {
- this.target = r;
- for (const i of this.onQueue)
- this.target.on[i.method](...i.args);
- for (const i of this.targetQueue)
- i.resolve(await this.target[i.method](...i.args))
- }
- }
- function i_(t, r) {
- const i = t
- , s = _c()
- , c = Xy()
- , f = Qy && i.enableEarlyProxy;
- if (c && (s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !f))
- c.emit(e_, t, r);
- else {
- const u = f ? new r_(i, c) : null;
- (s.__VUE_DEVTOOLS_PLUGINS__ = s.__VUE_DEVTOOLS_PLUGINS__ || []).push({
- pluginDescriptor: i,
- setupFn: r,
- proxy: u
- }),
- u && r(u.proxiedTarget)
- }
- }
- /*!
- * vuex v4.1.0
- * (c) 2022 Evan You
- * @license MIT
- */
- var wc = "store";
- function vc(t) {
- return t === void 0 && (t = null),
- n.inject(t !== null ? t : wc)
- }
- function lo(t, r) {
- Object.keys(t).forEach(function (i) {
- return r(t[i], i)
- })
- }
- function a_(t) {
- return t !== null && typeof t == "object"
- }
- function s_(t) {
- return t && typeof t.then == "function"
- }
- function l_(t, r) {
- return function () {
- return t(r)
- }
- }
- function bc(t, r, i) {
- return r.indexOf(t) < 0 && (i && i.prepend ? r.unshift(t) : r.push(t)),
- function () {
- var s = r.indexOf(t);
- s > -1 && r.splice(s, 1)
- }
- }
- function Cc(t, r) {
- t._actions = Object.create(null),
- t._mutations = Object.create(null),
- t._wrappedGetters = Object.create(null),
- t._modulesNamespaceMap = Object.create(null);
- var i = t.state;
- Er(t, i, [], t._modules.root, !0),
- Qi(t, i, r)
- }
- function Qi(t, r, i) {
- var s = t._state
- , c = t._scope;
- t.getters = {},
- t._makeLocalGettersCache = Object.create(null);
- var f = t._wrappedGetters
- , u = {}
- , d = {}
- , p = n.effectScope(!0);
- p.run(function () {
- lo(f, function (w, E) {
- u[E] = l_(w, t),
- d[E] = n.computed(function () {
- return u[E]()
- }),
- Object.defineProperty(t.getters, E, {
- get: function () {
- return d[E].value
- },
- enumerable: !0
- })
- })
- }),
- t._state = n.reactive({
- data: r
- }),
- t._scope = p,
- t.strict && p_(t),
- s && i && t._withCommit(function () {
- s.data = null
- }),
- c && c.stop()
- }
- function Er(t, r, i, s, c) {
- var f = !i.length
- , u = t._modules.getNamespace(i);
- if (s.namespaced && (t._modulesNamespaceMap[u],
- t._modulesNamespaceMap[u] = s),
- !f && !c) {
- var d = ea(r, i.slice(0, -1))
- , p = i[i.length - 1];
- t._withCommit(function () {
- d[p] = s.state
- })
- }
- var w = s.context = c_(t, u, i);
- s.forEachMutation(function (E, C) {
- var h = u + C;
- u_(t, h, E, w)
- }),
- s.forEachAction(function (E, C) {
- var h = E.root ? C : u + C
- , x = E.handler || E;
- f_(t, h, x, w)
- }),
- s.forEachGetter(function (E, C) {
- var h = u + C;
- d_(t, h, E, w)
- }),
- s.forEachChild(function (E, C) {
- Er(t, r, i.concat(C), E, c)
- })
- }
- function c_(t, r, i) {
- var s = r === ""
- , c = {
- dispatch: s ? t.dispatch : function (f, u, d) {
- var p = Sr(f, u, d)
- , w = p.payload
- , E = p.options
- , C = p.type;
- return (!E || !E.root) && (C = r + C),
- t.dispatch(C, w)
- }
- ,
- commit: s ? t.commit : function (f, u, d) {
- var p = Sr(f, u, d)
- , w = p.payload
- , E = p.options
- , C = p.type;
- (!E || !E.root) && (C = r + C),
- t.commit(C, w, E)
- }
- };
- return Object.defineProperties(c, {
- getters: {
- get: s ? function () {
- return t.getters
- }
- : function () {
- return Ec(t, r)
- }
- },
- state: {
- get: function () {
- return ea(t.state, i)
- }
- }
- }),
- c
- }
- function Ec(t, r) {
- if (!t._makeLocalGettersCache[r]) {
- var i = {}
- , s = r.length;
- Object.keys(t.getters).forEach(function (c) {
- if (c.slice(0, s) === r) {
- var f = c.slice(s);
- Object.defineProperty(i, f, {
- get: function () {
- return t.getters[c]
- },
- enumerable: !0
- })
- }
- }),
- t._makeLocalGettersCache[r] = i
- }
- return t._makeLocalGettersCache[r]
- }
- function u_(t, r, i, s) {
- var c = t._mutations[r] || (t._mutations[r] = []);
- c.push(function (u) {
- i.call(t, s.state, u)
- })
- }
- function f_(t, r, i, s) {
- var c = t._actions[r] || (t._actions[r] = []);
- c.push(function (u) {
- var d = i.call(t, {
- dispatch: s.dispatch,
- commit: s.commit,
- getters: s.getters,
- state: s.state,
- rootGetters: t.getters,
- rootState: t.state
- }, u);
- return s_(d) || (d = Promise.resolve(d)),
- t._devtoolHook ? d.catch(function (p) {
- throw t._devtoolHook.emit("vuex:error", p),
- p
- }) : d
- })
- }
- function d_(t, r, i, s) {
- t._wrappedGetters[r] || (t._wrappedGetters[r] = function (f) {
- return i(s.state, s.getters, f.state, f.getters)
- }
- )
- }
- function p_(t) {
- n.watch(function () {
- return t._state.data
- }, function () { }, {
- deep: !0,
- flush: "sync"
- })
- }
- function ea(t, r) {
- return r.reduce(function (i, s) {
- return i[s]
- }, t)
- }
- function Sr(t, r, i) {
- return a_(t) && t.type && (i = r,
- r = t,
- t = t.type),
- {
- type: t,
- payload: r,
- options: i
- }
- }
- var m_ = "vuex bindings"
- , Sc = "vuex:mutations"
- , ta = "vuex:actions"
- , co = "vuex"
- , h_ = 0;
- function g_(t, r) {
- i_({
- id: "org.vuejs.vuex",
- app: t,
- label: "Vuex",
- homepage: "https://next.vuex.vuejs.org/",
- logo: "https://vuejs.org/images/icons/favicon-96x96.png",
- packageName: "vuex",
- componentStateTypes: [m_]
- }, function (i) {
- i.addTimelineLayer({
- id: Sc,
- label: "Vuex Mutations",
- color: Ic
- }),
- i.addTimelineLayer({
- id: ta,
- label: "Vuex Actions",
- color: Ic
- }),
- i.addInspector({
- id: co,
- label: "Vuex",
- icon: "storage",
- treeFilterPlaceholder: "Filter stores..."
- }),
- i.on.getInspectorTree(function (s) {
- if (s.app === t && s.inspectorId === co)
- if (s.filter) {
- var c = [];
- Oc(c, r._modules.root, s.filter, ""),
- s.rootNodes = c
- } else
- s.rootNodes = [Tc(r._modules.root, "")]
- }),
- i.on.getInspectorState(function (s) {
- if (s.app === t && s.inspectorId === co) {
- var c = s.nodeId;
- Ec(r, c),
- s.state = w_(b_(r._modules, c), c === "root" ? r.getters : r._makeLocalGettersCache, c)
- }
- }),
- i.on.editInspectorState(function (s) {
- if (s.app === t && s.inspectorId === co) {
- var c = s.nodeId
- , f = s.path;
- c !== "root" && (f = c.split("/").filter(Boolean).concat(f)),
- r._withCommit(function () {
- s.set(r._state.data, f, s.state.value)
- })
- }
- }),
- r.subscribe(function (s, c) {
- var f = {};
- s.payload && (f.payload = s.payload),
- f.state = c,
- i.notifyComponentUpdate(),
- i.sendInspectorTree(co),
- i.sendInspectorState(co),
- i.addTimelineEvent({
- layerId: Sc,
- event: {
- time: Date.now(),
- title: s.type,
- data: f
- }
- })
- }),
- r.subscribeAction({
- before: function (s, c) {
- var f = {};
- s.payload && (f.payload = s.payload),
- s._id = h_++,
- s._time = Date.now(),
- f.state = c,
- i.addTimelineEvent({
- layerId: ta,
- event: {
- time: s._time,
- title: s.type,
- groupId: s._id,
- subtitle: "start",
- data: f
- }
- })
- },
- after: function (s, c) {
- var f = {}
- , u = Date.now() - s._time;
- f.duration = {
- _custom: {
- type: "duration",
- display: u + "ms",
- tooltip: "Action duration",
- value: u
- }
- },
- s.payload && (f.payload = s.payload),
- f.state = c,
- i.addTimelineEvent({
- layerId: ta,
- event: {
- time: Date.now(),
- title: s.type,
- groupId: s._id,
- subtitle: "end",
- data: f
- }
- })
- }
- })
- })
- }
- var Ic = 8702998
- , y_ = 6710886
- , __ = 16777215
- , xc = {
- label: "namespaced",
- textColor: __,
- backgroundColor: y_
- };
- function Ac(t) {
- return t && t !== "root" ? t.split("/").slice(-2, -1)[0] : "Root"
- }
- function Tc(t, r) {
- return {
- id: r || "root",
- label: Ac(r),
- tags: t.namespaced ? [xc] : [],
- children: Object.keys(t._children).map(function (i) {
- return Tc(t._children[i], r + i + "/")
- })
- }
- }
- function Oc(t, r, i, s) {
- s.includes(i) && t.push({
- id: s || "root",
- label: s.endsWith("/") ? s.slice(0, s.length - 1) : s || "Root",
- tags: r.namespaced ? [xc] : []
- }),
- Object.keys(r._children).forEach(function (c) {
- Oc(t, r._children[c], i, s + c + "/")
- })
- }
- function w_(t, r, i) {
- r = i === "root" ? r : r[i];
- var s = Object.keys(r)
- , c = {
- state: Object.keys(t.state).map(function (u) {
- return {
- key: u,
- editable: !0,
- value: t.state[u]
- }
- })
- };
- if (s.length) {
- var f = v_(r);
- c.getters = Object.keys(f).map(function (u) {
- return {
- key: u.endsWith("/") ? Ac(u) : u,
- editable: !1,
- value: na(function () {
- return f[u]
- })
- }
- })
- }
- return c
- }
- function v_(t) {
- var r = {};
- return Object.keys(t).forEach(function (i) {
- var s = i.split("/");
- if (s.length > 1) {
- var c = r
- , f = s.pop();
- s.forEach(function (u) {
- c[u] || (c[u] = {
- _custom: {
- value: {},
- display: u,
- tooltip: "Module",
- abstract: !0
- }
- }),
- c = c[u]._custom.value
- }),
- c[f] = na(function () {
- return t[i]
- })
- } else
- r[i] = na(function () {
- return t[i]
- })
- }),
- r
- }
- function b_(t, r) {
- var i = r.split("/").filter(function (s) {
- return s
- });
- return i.reduce(function (s, c, f) {
- var u = s[c];
- if (!u)
- throw new Error('Missing module "' + c + '" for path "' + r + '".');
- return f === i.length - 1 ? u : u._children
- }, r === "root" ? t : t.root._children)
- }
- function na(t) {
- try {
- return t()
- } catch (r) {
- return r
- }
- }
- var Vt = function (r, i) {
- this.runtime = i,
- this._children = Object.create(null),
- this._rawModule = r;
- var s = r.state;
- this.state = (typeof s == "function" ? s() : s) || {}
- }
- , kc = {
- namespaced: {
- configurable: !0
- }
- };
- kc.namespaced.get = function () {
- return !!this._rawModule.namespaced
- }
- ,
- Vt.prototype.addChild = function (r, i) {
- this._children[r] = i
- }
- ,
- Vt.prototype.removeChild = function (r) {
- delete this._children[r]
- }
- ,
- Vt.prototype.getChild = function (r) {
- return this._children[r]
- }
- ,
- Vt.prototype.hasChild = function (r) {
- return r in this._children
- }
- ,
- Vt.prototype.update = function (r) {
- this._rawModule.namespaced = r.namespaced,
- r.actions && (this._rawModule.actions = r.actions),
- r.mutations && (this._rawModule.mutations = r.mutations),
- r.getters && (this._rawModule.getters = r.getters)
- }
- ,
- Vt.prototype.forEachChild = function (r) {
- lo(this._children, r)
- }
- ,
- Vt.prototype.forEachGetter = function (r) {
- this._rawModule.getters && lo(this._rawModule.getters, r)
- }
- ,
- Vt.prototype.forEachAction = function (r) {
- this._rawModule.actions && lo(this._rawModule.actions, r)
- }
- ,
- Vt.prototype.forEachMutation = function (r) {
- this._rawModule.mutations && lo(this._rawModule.mutations, r)
- }
- ,
- Object.defineProperties(Vt.prototype, kc);
- var Vn = function (r) {
- this.register([], r, !1)
- };
- Vn.prototype.get = function (r) {
- return r.reduce(function (i, s) {
- return i.getChild(s)
- }, this.root)
- }
- ,
- Vn.prototype.getNamespace = function (r) {
- var i = this.root;
- return r.reduce(function (s, c) {
- return i = i.getChild(c),
- s + (i.namespaced ? c + "/" : "")
- }, "")
- }
- ,
- Vn.prototype.update = function (r) {
- Nc([], this.root, r)
- }
- ,
- Vn.prototype.register = function (r, i, s) {
- var c = this;
- s === void 0 && (s = !0);
- var f = new Vt(i, s);
- if (r.length === 0)
- this.root = f;
- else {
- var u = this.get(r.slice(0, -1));
- u.addChild(r[r.length - 1], f)
- }
- i.modules && lo(i.modules, function (d, p) {
- c.register(r.concat(p), d, s)
- })
- }
- ,
- Vn.prototype.unregister = function (r) {
- var i = this.get(r.slice(0, -1))
- , s = r[r.length - 1]
- , c = i.getChild(s);
- c && c.runtime && i.removeChild(s)
- }
- ,
- Vn.prototype.isRegistered = function (r) {
- var i = this.get(r.slice(0, -1))
- , s = r[r.length - 1];
- return i ? i.hasChild(s) : !1
- }
- ;
- function Nc(t, r, i) {
- if (r.update(i),
- i.modules)
- for (var s in i.modules) {
- if (!r.getChild(s))
- return;
- Nc(t.concat(s), r.getChild(s), i.modules[s])
- }
- }
- var ct = function (r) {
- var i = this;
- r === void 0 && (r = {});
- var s = r.plugins;
- s === void 0 && (s = []);
- var c = r.strict;
- c === void 0 && (c = !1);
- var f = r.devtools;
- this._committing = !1,
- this._actions = Object.create(null),
- this._actionSubscribers = [],
- this._mutations = Object.create(null),
- this._wrappedGetters = Object.create(null),
- this._modules = new Vn(r),
- this._modulesNamespaceMap = Object.create(null),
- this._subscribers = [],
- this._makeLocalGettersCache = Object.create(null),
- this._scope = null,
- this._devtools = f;
- var u = this
- , d = this
- , p = d.dispatch
- , w = d.commit;
- this.dispatch = function (h, x) {
- return p.call(u, h, x)
- }
- ,
- this.commit = function (h, x, v) {
- return w.call(u, h, x, v)
- }
- ,
- this.strict = c;
- var E = this._modules.root.state;
- Er(this, E, [], this._modules.root),
- Qi(this, E),
- s.forEach(function (C) {
- return C(i)
- })
- }
- , oa = {
- state: {
- configurable: !0
- }
- };
- ct.prototype.install = function (r, i) {
- r.provide(i || wc, this),
- r.config.globalProperties.$store = this;
- var s = this._devtools !== void 0 ? this._devtools : !1;
- s && g_(r, this)
- }
- ,
- oa.state.get = function () {
- return this._state.data
- }
- ,
- oa.state.set = function (t) { }
- ,
- ct.prototype.commit = function (r, i, s) {
- var c = this
- , f = Sr(r, i, s)
- , u = f.type
- , d = f.payload
- , p = {
- type: u,
- payload: d
- }
- , w = this._mutations[u];
- w && (this._withCommit(function () {
- w.forEach(function (C) {
- C(d)
- })
- }),
- this._subscribers.slice().forEach(function (E) {
- return E(p, c.state)
- }))
- }
- ,
- ct.prototype.dispatch = function (r, i) {
- var s = this
- , c = Sr(r, i)
- , f = c.type
- , u = c.payload
- , d = {
- type: f,
- payload: u
- }
- , p = this._actions[f];
- if (p) {
- try {
- this._actionSubscribers.slice().filter(function (E) {
- return E.before
- }).forEach(function (E) {
- return E.before(d, s.state)
- })
- } catch { }
- var w = p.length > 1 ? Promise.all(p.map(function (E) {
- return E(u)
- })) : p[0](u);
- return new Promise(function (E, C) {
- w.then(function (h) {
- try {
- s._actionSubscribers.filter(function (x) {
- return x.after
- }).forEach(function (x) {
- return x.after(d, s.state)
- })
- } catch { }
- E(h)
- }, function (h) {
- try {
- s._actionSubscribers.filter(function (x) {
- return x.error
- }).forEach(function (x) {
- return x.error(d, s.state, h)
- })
- } catch { }
- C(h)
- })
- }
- )
- }
- }
- ,
- ct.prototype.subscribe = function (r, i) {
- return bc(r, this._subscribers, i)
- }
- ,
- ct.prototype.subscribeAction = function (r, i) {
- var s = typeof r == "function" ? {
- before: r
- } : r;
- return bc(s, this._actionSubscribers, i)
- }
- ,
- ct.prototype.watch = function (r, i, s) {
- var c = this;
- return n.watch(function () {
- return r(c.state, c.getters)
- }, i, Object.assign({}, s))
- }
- ,
- ct.prototype.replaceState = function (r) {
- var i = this;
- this._withCommit(function () {
- i._state.data = r
- })
- }
- ,
- ct.prototype.registerModule = function (r, i, s) {
- s === void 0 && (s = {}),
- typeof r == "string" && (r = [r]),
- this._modules.register(r, i),
- Er(this, this.state, r, this._modules.get(r), s.preserveState),
- Qi(this, this.state)
- }
- ,
- ct.prototype.unregisterModule = function (r) {
- var i = this;
- typeof r == "string" && (r = [r]),
- this._modules.unregister(r),
- this._withCommit(function () {
- var s = ea(i.state, r.slice(0, -1));
- delete s[r[r.length - 1]]
- }),
- Cc(this)
- }
- ,
- ct.prototype.hasModule = function (r) {
- return typeof r == "string" && (r = [r]),
- this._modules.isRegistered(r)
- }
- ,
- ct.prototype.hotUpdate = function (r) {
- this._modules.update(r),
- Cc(this, !0)
- }
- ,
- ct.prototype._withCommit = function (r) {
- var i = this._committing;
- this._committing = !0,
- r(),
- this._committing = i
- }
- ,
- Object.defineProperties(ct.prototype, oa);
- var Lc = {
- exports: {}
- };
- (function (t, r) {
- (function (i, s) {
- t.exports = s()
- }
- )(Dn, function () {
- function i(C) {
- var h = [];
- return C.AMapUI && h.push(s(C.AMapUI)),
- C.Loca && h.push(c(C.Loca)),
- Promise.all(h)
- }
- function s(C) {
- return new Promise(function (h, x) {
- var v = [];
- if (C.plugins)
- for (var I = 0; I < C.plugins.length; I += 1)
- u.AMapUI.plugins.indexOf(C.plugins[I]) == -1 && v.push(C.plugins[I]);
- if (d.AMapUI === f.failed)
- x("前次请求 AMapUI 失败");
- else if (d.AMapUI === f.notload) {
- d.AMapUI = f.loading,
- u.AMapUI.version = C.version || u.AMapUI.version,
- I = u.AMapUI.version;
- var y = document.body || document.head
- , g = document.createElement("script");
- g.type = "text/javascript",
- g.src = "https://webapi.amap.com/ui/" + I + "/main.js",
- g.onerror = function (S) {
- d.AMapUI = f.failed,
- x("请求 AMapUI 失败")
- }
- ,
- g.onload = function () {
- if (d.AMapUI = f.loaded,
- v.length)
- window.AMapUI.loadUI(v, function () {
- for (var S = 0, T = v.length; S < T; S++) {
- var N = v[S].split("/").slice(-1)[0];
- window.AMapUI[N] = arguments[S]
- }
- for (h(); p.AMapUI.length;)
- p.AMapUI.splice(0, 1)[0]()
- });
- else
- for (h(); p.AMapUI.length;)
- p.AMapUI.splice(0, 1)[0]()
- }
- ,
- y.appendChild(g)
- } else
- d.AMapUI === f.loaded ? C.version && C.version !== u.AMapUI.version ? x("不允许多个版本 AMapUI 混用") : v.length ? window.AMapUI.loadUI(v, function () {
- for (var S = 0, T = v.length; S < T; S++) {
- var N = v[S].split("/").slice(-1)[0];
- window.AMapUI[N] = arguments[S]
- }
- h()
- }) : h() : C.version && C.version !== u.AMapUI.version ? x("不允许多个版本 AMapUI 混用") : p.AMapUI.push(function (S) {
- S ? x(S) : v.length ? window.AMapUI.loadUI(v, function () {
- for (var T = 0, N = v.length; T < N; T++) {
- var B = v[T].split("/").slice(-1)[0];
- window.AMapUI[B] = arguments[T]
- }
- h()
- }) : h()
- })
- }
- )
- }
- function c(C) {
- return new Promise(function (h, x) {
- if (d.Loca === f.failed)
- x("前次请求 Loca 失败");
- else if (d.Loca === f.notload) {
- d.Loca = f.loading,
- u.Loca.version = C.version || u.Loca.version;
- var v = u.Loca.version
- , I = u.AMap.version.startsWith("2")
- , y = v.startsWith("2");
- if (I && !y || !I && y)
- x("JSAPI 与 Loca 版本不对应!!");
- else {
- I = u.key,
- y = document.body || document.head;
- var g = document.createElement("script");
- g.type = "text/javascript",
- g.src = "https://webapi.amap.com/loca?v=" + v + "&key=" + I,
- g.onerror = function (S) {
- d.Loca = f.failed,
- x("请求 AMapUI 失败")
- }
- ,
- g.onload = function () {
- for (d.Loca = f.loaded,
- h(); p.Loca.length;)
- p.Loca.splice(0, 1)[0]()
- }
- ,
- y.appendChild(g)
- }
- } else
- d.Loca === f.loaded ? C.version && C.version !== u.Loca.version ? x("不允许多个版本 Loca 混用") : h() : C.version && C.version !== u.Loca.version ? x("不允许多个版本 Loca 混用") : p.Loca.push(function (S) {
- S ? x(S) : x()
- })
- }
- )
- }
- if (!window)
- throw Error("AMap JSAPI can only be used in Browser.");
- var f;
- (function (C) {
- C.notload = "notload",
- C.loading = "loading",
- C.loaded = "loaded",
- C.failed = "failed"
- }
- )(f || (f = {}));
- var u = {
- key: "",
- AMap: {
- version: "1.4.15",
- plugins: []
- },
- AMapUI: {
- version: "1.1",
- plugins: []
- },
- Loca: {
- version: "1.3.2"
- }
- }
- , d = {
- AMap: f.notload,
- AMapUI: f.notload,
- Loca: f.notload
- }
- , p = {
- AMap: [],
- AMapUI: [],
- Loca: []
- }
- , w = []
- , E = function (C) {
- typeof C == "function" && (d.AMap === f.loaded ? C(window.AMap) : w.push(C))
- };
- return {
- load: function (C) {
- return new Promise(function (h, x) {
- if (d.AMap == f.failed)
- x("");
- else if (d.AMap == f.notload) {
- var v = C.key
- , I = C.version
- , y = C.plugins;
- v ? (window.AMap && location.host !== "lbs.amap.com" && x("禁止多种API加载方式混用"),
- u.key = v,
- u.AMap.version = I || u.AMap.version,
- u.AMap.plugins = y || u.AMap.plugins,
- d.AMap = f.loading,
- I = document.body || document.head,
- window.___onAPILoaded = function (S) {
- if (delete window.___onAPILoaded,
- S)
- d.AMap = f.failed,
- x(S);
- else
- for (d.AMap = f.loaded,
- i(C).then(function () {
- h(window.AMap)
- }).catch(x); w.length;)
- w.splice(0, 1)[0]()
- }
- ,
- y = document.createElement("script"),
- y.type = "text/javascript",
- y.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + u.AMap.version + "&key=" + v + "&plugin=" + u.AMap.plugins.join(","),
- y.onerror = function (S) {
- d.AMap = f.failed,
- x(S)
- }
- ,
- I.appendChild(y)) : x("请填写key")
- } else if (d.AMap == f.loaded)
- if (C.key && C.key !== u.key)
- x("多个不一致的 key");
- else if (C.version && C.version !== u.AMap.version)
- x("不允许多个版本 JSAPI 混用");
- else {
- if (v = [],
- C.plugins)
- for (I = 0; I < C.plugins.length; I += 1)
- u.AMap.plugins.indexOf(C.plugins[I]) == -1 && v.push(C.plugins[I]);
- v.length ? window.AMap.plugin(v, function () {
- i(C).then(function () {
- h(window.AMap)
- }).catch(x)
- }) : i(C).then(function () {
- h(window.AMap)
- }).catch(x)
- }
- else if (C.key && C.key !== u.key)
- x("多个不一致的 key");
- else if (C.version && C.version !== u.AMap.version)
- x("不允许多个版本 JSAPI 混用");
- else {
- var g = [];
- if (C.plugins)
- for (I = 0; I < C.plugins.length; I += 1)
- u.AMap.plugins.indexOf(C.plugins[I]) == -1 && g.push(C.plugins[I]);
- E(function () {
- g.length ? window.AMap.plugin(g, function () {
- i(C).then(function () {
- h(window.AMap)
- }).catch(x)
- }) : i(C).then(function () {
- h(window.AMap)
- }).catch(x)
- })
- }
- }
- )
- },
- reset: function () {
- delete window.AMap,
- delete window.AMapUI,
- delete window.Loca,
- u = {
- key: "",
- AMap: {
- version: "1.4.15",
- plugins: []
- },
- AMapUI: {
- version: "1.1",
- plugins: []
- },
- Loca: {
- version: "1.3.2"
- }
- },
- d = {
- AMap: f.notload,
- AMapUI: f.notload,
- Loca: f.notload
- },
- p = {
- AMap: [],
- AMapUI: [],
- Loca: []
- }
- }
- }
- })
- }
- )(Lc);
- var C_ = Lc.exports;
- const E_ = yc(C_)
- , S_ = n.defineComponent({
- setup(t, { emit: r }) {
- const { proxy: i, appContext: s } = n.getCurrentInstance();
- s.config.globalProperties.awsuiaxios,
- vc();
- const c = n.reactive({
- map: null,
- aMapConfig: {},
- geocoder: null,
- _AMap: null
- })
- , f = n.reactive({
- initAMapBase(u, d) {
- return new Promise((p, w) => {
- window._AMapSecurityConfig = {
- securityJsCode: u.securityJsCode
- },
- E_.load({
- key: u.aMapKey,
- version: "2.0",
- plugins: ["AMap.Geolocation", "AMap.Geocoder"]
- }).then(E => {
- c.map = new E.Geolocation({
- enableHighAccuracy: !0,
- getCityWhenFail: !0,
- needAddress: !0,
- extensions: "all"
- }),
- c.geocoder = new E.Geocoder({
- radius: 1e3,
- extensions: "all"
- }),
- d && d.length > 0 ? (console.log("根据经纬度获取地址"),
- c.geocoder.getAddress(d, function (C, h) {
- if (C === "complete" && h.regeocode) {
- let x = "";
- x = h.regeocode.formattedAddress,
- p(x)
- }
- })) : (console.log("直接获取地址"),
- c.map.getCurrentPosition(function (C, h) {
- if (console.log(C),
- C === "complete") {
- let x = "";
- if (h && h.position) {
- switch (console.log(h, "定位信息"),
- h.location_type) {
- case "html5":
- x = h.formattedAddress;
- break;
- case "ipcity":
- h.province == h.city ? x = h.city : x = h.province + "-" + h.city;
- break;
- default:
- x = h.province + "-" + h.city;
- break
- }
- p(x)
- } else
- w(new Error("定位失败"))
- } else
- w(new Error("定位失败"))
- }))
- }
- )
- }
- )
- }
- });
- return n.onBeforeMount(() => { }
- ),
- n.onMounted(() => { }
- ),
- n.onUnmounted(() => { }
- ),
- n.watchEffect(() => { }
- ),
- {
- ...n.toRefs(c),
- ...n.toRefs(f)
- }
- }
- })
- , ra = (t, r) => {
- const i = t.__vccOpts || t;
- for (const [s, c] of r)
- i[s] = c;
- return i
- }
- , I_ = {
- id: "container"
- };
- function x_(t, r, i, s, c, f) {
- return n.openBlock(),
- n.createElementBlock("div", I_)
- }
- const Bc = ra(S_, [["render", x_]]);
- var Ir = {
- exports: {}
- };
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
- Ir.exports,
- function (t, r) {
- (function () {
- var i, s = "4.17.21", c = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", w = 500, E = "__lodash_placeholder__", C = 1, h = 2, x = 4, v = 1, I = 2, y = 1, g = 2, S = 4, T = 8, N = 16, B = 32, D = 64, M = 128, k = 256, U = 512, X = 30, W = "...", Q = 800, ne = 16, we = 1, _e = 2, K = 3, ce = 1 / 0, ge = 9007199254740991, Ie = 17976931348623157e292, Fe = NaN, Ee = 4294967295, te = Ee - 1, Y = Ee >>> 1, G = [["ary", M], ["bind", y], ["bindKey", g], ["curry", T], ["curryRight", N], ["flip", U], ["partial", B], ["partialRight", D], ["rearg", k]], q = "[object Arguments]", ee = "[object Array]", ae = "[object AsyncFunction]", Te = "[object Boolean]", ot = "[object Date]", Gt = "[object DOMException]", St = "[object Error]", nn = "[object Function]", wn = "[object GeneratorFunction]", je = "[object Map]", Jt = "[object Number]", Rn = "[object Null]", rt = "[object Object]", $n = "[object Promise]", Uo = "[object Proxy]", Je = "[object RegExp]", Re = "[object Set]", Rt = "[object String]", on = "[object Symbol]", vn = "[object Undefined]", H = "[object WeakMap]", Se = "[object WeakSet]", Ye = "[object ArrayBuffer]", It = "[object DataView]", fo = "[object Float32Array]", va = "[object Float64Array]", ba = "[object Int8Array]", Ca = "[object Int16Array]", Ea = "[object Int32Array]", Sa = "[object Uint8Array]", Ia = "[object Uint8ClampedArray]", xa = "[object Uint16Array]", Aa = "[object Uint32Array]", vC = /\b__p \+= '';/g, bC = /\b(__p \+=) '' \+/g, CC = /(__e\(.*?\)|\b__t\)) \+\n'';/g, pu = /&(?:amp|lt|gt|quot|#39);/g, mu = /[&<>"']/g, EC = RegExp(pu.source), SC = RegExp(mu.source), IC = /<%-([\s\S]+?)%>/g, xC = /<%([\s\S]+?)%>/g, hu = /<%=([\s\S]+?)%>/g, AC = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, TC = /^\w*$/, OC = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ta = /[\\^$.*+?()[\]{}|]/g, kC = RegExp(Ta.source), Oa = /^\s+/, NC = /\s/, LC = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, BC = /\{\n\/\* \[wrapped with (.+)\] \*/, PC = /,? & /, DC = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, VC = /[()=,{}\[\]\/\s]/, MC = /\\(\\)?/g, RC = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, gu = /\w*$/, $C = /^[-+]0x[0-9a-f]+$/i, FC = /^0b[01]+$/i, UC = /^\[object .+?Constructor\]$/, zC = /^0o[0-7]+$/i, HC = /^(?:0|[1-9]\d*)$/, WC = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, kr = /($^)/, jC = /['\n\r\u2028\u2029\\]/g, Nr = "\\ud800-\\udfff", KC = "\\u0300-\\u036f", GC = "\\ufe20-\\ufe2f", JC = "\\u20d0-\\u20ff", yu = KC + GC + JC, _u = "\\u2700-\\u27bf", wu = "a-z\\xdf-\\xf6\\xf8-\\xff", YC = "\\xac\\xb1\\xd7\\xf7", qC = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ZC = "\\u2000-\\u206f", XC = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", vu = "A-Z\\xc0-\\xd6\\xd8-\\xde", bu = "\\ufe0e\\ufe0f", Cu = YC + qC + ZC + XC, ka = "['’]", QC = "[" + Nr + "]", Eu = "[" + Cu + "]", Lr = "[" + yu + "]", Su = "\\d+", eE = "[" + _u + "]", Iu = "[" + wu + "]", xu = "[^" + Nr + Cu + Su + _u + wu + vu + "]", Na = "\\ud83c[\\udffb-\\udfff]", tE = "(?:" + Lr + "|" + Na + ")", Au = "[^" + Nr + "]", La = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ba = "[\\ud800-\\udbff][\\udc00-\\udfff]", po = "[" + vu + "]", Tu = "\\u200d", Ou = "(?:" + Iu + "|" + xu + ")", nE = "(?:" + po + "|" + xu + ")", ku = "(?:" + ka + "(?:d|ll|m|re|s|t|ve))?", Nu = "(?:" + ka + "(?:D|LL|M|RE|S|T|VE))?", Lu = tE + "?", Bu = "[" + bu + "]?", oE = "(?:" + Tu + "(?:" + [Au, La, Ba].join("|") + ")" + Bu + Lu + ")*", rE = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", iE = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Pu = Bu + Lu + oE, aE = "(?:" + [eE, La, Ba].join("|") + ")" + Pu, sE = "(?:" + [Au + Lr + "?", Lr, La, Ba, QC].join("|") + ")", lE = RegExp(ka, "g"), cE = RegExp(Lr, "g"), Pa = RegExp(Na + "(?=" + Na + ")|" + sE + Pu, "g"), uE = RegExp([po + "?" + Iu + "+" + ku + "(?=" + [Eu, po, "$"].join("|") + ")", nE + "+" + Nu + "(?=" + [Eu, po + Ou, "$"].join("|") + ")", po + "?" + Ou + "+" + ku, po + "+" + Nu, iE, rE, Su, aE].join("|"), "g"), fE = RegExp("[" + Tu + Nr + yu + bu + "]"), dE = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pE = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"], mE = -1, Oe = {};
- Oe[fo] = Oe[va] = Oe[ba] = Oe[Ca] = Oe[Ea] = Oe[Sa] = Oe[Ia] = Oe[xa] = Oe[Aa] = !0,
- Oe[q] = Oe[ee] = Oe[Ye] = Oe[Te] = Oe[It] = Oe[ot] = Oe[St] = Oe[nn] = Oe[je] = Oe[Jt] = Oe[rt] = Oe[Je] = Oe[Re] = Oe[Rt] = Oe[H] = !1;
- var Ae = {};
- Ae[q] = Ae[ee] = Ae[Ye] = Ae[It] = Ae[Te] = Ae[ot] = Ae[fo] = Ae[va] = Ae[ba] = Ae[Ca] = Ae[Ea] = Ae[je] = Ae[Jt] = Ae[rt] = Ae[Je] = Ae[Re] = Ae[Rt] = Ae[on] = Ae[Sa] = Ae[Ia] = Ae[xa] = Ae[Aa] = !0,
- Ae[St] = Ae[nn] = Ae[H] = !1;
- var hE = {
- À: "A",
- Á: "A",
- Â: "A",
- Ã: "A",
- Ä: "A",
- Å: "A",
- à: "a",
- á: "a",
- â: "a",
- ã: "a",
- ä: "a",
- å: "a",
- Ç: "C",
- ç: "c",
- Ð: "D",
- ð: "d",
- È: "E",
- É: "E",
- Ê: "E",
- Ë: "E",
- è: "e",
- é: "e",
- ê: "e",
- ë: "e",
- Ì: "I",
- Í: "I",
- Î: "I",
- Ï: "I",
- ì: "i",
- í: "i",
- î: "i",
- ï: "i",
- Ñ: "N",
- ñ: "n",
- Ò: "O",
- Ó: "O",
- Ô: "O",
- Õ: "O",
- Ö: "O",
- Ø: "O",
- ò: "o",
- ó: "o",
- ô: "o",
- õ: "o",
- ö: "o",
- ø: "o",
- Ù: "U",
- Ú: "U",
- Û: "U",
- Ü: "U",
- ù: "u",
- ú: "u",
- û: "u",
- ü: "u",
- Ý: "Y",
- ý: "y",
- ÿ: "y",
- Æ: "Ae",
- æ: "ae",
- Þ: "Th",
- þ: "th",
- ß: "ss",
- Ā: "A",
- Ă: "A",
- Ą: "A",
- ā: "a",
- ă: "a",
- ą: "a",
- Ć: "C",
- Ĉ: "C",
- Ċ: "C",
- Č: "C",
- ć: "c",
- ĉ: "c",
- ċ: "c",
- č: "c",
- Ď: "D",
- Đ: "D",
- ď: "d",
- đ: "d",
- Ē: "E",
- Ĕ: "E",
- Ė: "E",
- Ę: "E",
- Ě: "E",
- ē: "e",
- ĕ: "e",
- ė: "e",
- ę: "e",
- ě: "e",
- Ĝ: "G",
- Ğ: "G",
- Ġ: "G",
- Ģ: "G",
- ĝ: "g",
- ğ: "g",
- ġ: "g",
- ģ: "g",
- Ĥ: "H",
- Ħ: "H",
- ĥ: "h",
- ħ: "h",
- Ĩ: "I",
- Ī: "I",
- Ĭ: "I",
- Į: "I",
- İ: "I",
- ĩ: "i",
- ī: "i",
- ĭ: "i",
- į: "i",
- ı: "i",
- Ĵ: "J",
- ĵ: "j",
- Ķ: "K",
- ķ: "k",
- ĸ: "k",
- Ĺ: "L",
- Ļ: "L",
- Ľ: "L",
- Ŀ: "L",
- Ł: "L",
- ĺ: "l",
- ļ: "l",
- ľ: "l",
- ŀ: "l",
- ł: "l",
- Ń: "N",
- Ņ: "N",
- Ň: "N",
- Ŋ: "N",
- ń: "n",
- ņ: "n",
- ň: "n",
- ŋ: "n",
- Ō: "O",
- Ŏ: "O",
- Ő: "O",
- ō: "o",
- ŏ: "o",
- ő: "o",
- Ŕ: "R",
- Ŗ: "R",
- Ř: "R",
- ŕ: "r",
- ŗ: "r",
- ř: "r",
- Ś: "S",
- Ŝ: "S",
- Ş: "S",
- Š: "S",
- ś: "s",
- ŝ: "s",
- ş: "s",
- š: "s",
- Ţ: "T",
- Ť: "T",
- Ŧ: "T",
- ţ: "t",
- ť: "t",
- ŧ: "t",
- Ũ: "U",
- Ū: "U",
- Ŭ: "U",
- Ů: "U",
- Ű: "U",
- Ų: "U",
- ũ: "u",
- ū: "u",
- ŭ: "u",
- ů: "u",
- ű: "u",
- ų: "u",
- Ŵ: "W",
- ŵ: "w",
- Ŷ: "Y",
- ŷ: "y",
- Ÿ: "Y",
- Ź: "Z",
- Ż: "Z",
- Ž: "Z",
- ź: "z",
- ż: "z",
- ž: "z",
- IJ: "IJ",
- ij: "ij",
- Œ: "Oe",
- œ: "oe",
- ʼn: "'n",
- ſ: "s"
- }
- , gE = {
- "&": "&",
- "<": "<",
- ">": ">",
- '"': """,
- "'": "'"
- }
- , yE = {
- "&": "&",
- "<": "<",
- ">": ">",
- """: '"',
- "'": "'"
- }
- , _E = {
- "\\": "\\",
- "'": "'",
- "\n": "n",
- "\r": "r",
- "\u2028": "u2028",
- "\u2029": "u2029"
- }
- , wE = parseFloat
- , vE = parseInt
- , Du = typeof Dn == "object" && Dn && Dn.Object === Object && Dn
- , bE = typeof self == "object" && self && self.Object === Object && self
- , Ue = Du || bE || Function("return this")()
- , Da = r && !r.nodeType && r
- , Fn = Da && !0 && t && !t.nodeType && t
- , Vu = Fn && Fn.exports === Da
- , Va = Vu && Du.process
- , xt = function () {
- try {
- var L = Fn && Fn.require && Fn.require("util").types;
- return L || Va && Va.binding && Va.binding("util")
- } catch { }
- }()
- , Mu = xt && xt.isArrayBuffer
- , Ru = xt && xt.isDate
- , $u = xt && xt.isMap
- , Fu = xt && xt.isRegExp
- , Uu = xt && xt.isSet
- , zu = xt && xt.isTypedArray;
- function ut(L, R, V) {
- switch (V.length) {
- case 0:
- return L.call(R);
- case 1:
- return L.call(R, V[0]);
- case 2:
- return L.call(R, V[0], V[1]);
- case 3:
- return L.call(R, V[0], V[1], V[2])
- }
- return L.apply(R, V)
- }
- function CE(L, R, V, J) {
- for (var se = -1, ve = L == null ? 0 : L.length; ++se < ve;) {
- var De = L[se];
- R(J, De, V(De), L)
- }
- return J
- }
- function At(L, R) {
- for (var V = -1, J = L == null ? 0 : L.length; ++V < J && R(L[V], V, L) !== !1;)
- ;
- return L
- }
- function EE(L, R) {
- for (var V = L == null ? 0 : L.length; V-- && R(L[V], V, L) !== !1;)
- ;
- return L
- }
- function Hu(L, R) {
- for (var V = -1, J = L == null ? 0 : L.length; ++V < J;)
- if (!R(L[V], V, L))
- return !1;
- return !0
- }
- function bn(L, R) {
- for (var V = -1, J = L == null ? 0 : L.length, se = 0, ve = []; ++V < J;) {
- var De = L[V];
- R(De, V, L) && (ve[se++] = De)
- }
- return ve
- }
- function Br(L, R) {
- var V = L == null ? 0 : L.length;
- return !!V && mo(L, R, 0) > -1
- }
- function Ma(L, R, V) {
- for (var J = -1, se = L == null ? 0 : L.length; ++J < se;)
- if (V(R, L[J]))
- return !0;
- return !1
- }
- function ke(L, R) {
- for (var V = -1, J = L == null ? 0 : L.length, se = Array(J); ++V < J;)
- se[V] = R(L[V], V, L);
- return se
- }
- function Cn(L, R) {
- for (var V = -1, J = R.length, se = L.length; ++V < J;)
- L[se + V] = R[V];
- return L
- }
- function Ra(L, R, V, J) {
- var se = -1
- , ve = L == null ? 0 : L.length;
- for (J && ve && (V = L[++se]); ++se < ve;)
- V = R(V, L[se], se, L);
- return V
- }
- function SE(L, R, V, J) {
- var se = L == null ? 0 : L.length;
- for (J && se && (V = L[--se]); se--;)
- V = R(V, L[se], se, L);
- return V
- }
- function $a(L, R) {
- for (var V = -1, J = L == null ? 0 : L.length; ++V < J;)
- if (R(L[V], V, L))
- return !0;
- return !1
- }
- var IE = Fa("length");
- function xE(L) {
- return L.split("")
- }
- function AE(L) {
- return L.match(DC) || []
- }
- function Wu(L, R, V) {
- var J;
- return V(L, function (se, ve, De) {
- if (R(se, ve, De))
- return J = ve,
- !1
- }),
- J
- }
- function Pr(L, R, V, J) {
- for (var se = L.length, ve = V + (J ? 1 : -1); J ? ve-- : ++ve < se;)
- if (R(L[ve], ve, L))
- return ve;
- return -1
- }
- function mo(L, R, V) {
- return R === R ? $E(L, R, V) : Pr(L, ju, V)
- }
- function TE(L, R, V, J) {
- for (var se = V - 1, ve = L.length; ++se < ve;)
- if (J(L[se], R))
- return se;
- return -1
- }
- function ju(L) {
- return L !== L
- }
- function Ku(L, R) {
- var V = L == null ? 0 : L.length;
- return V ? za(L, R) / V : Fe
- }
- function Fa(L) {
- return function (R) {
- return R == null ? i : R[L]
- }
- }
- function Ua(L) {
- return function (R) {
- return L == null ? i : L[R]
- }
- }
- function Gu(L, R, V, J, se) {
- return se(L, function (ve, De, xe) {
- V = J ? (J = !1,
- ve) : R(V, ve, De, xe)
- }),
- V
- }
- function OE(L, R) {
- var V = L.length;
- for (L.sort(R); V--;)
- L[V] = L[V].value;
- return L
- }
- function za(L, R) {
- for (var V, J = -1, se = L.length; ++J < se;) {
- var ve = R(L[J]);
- ve !== i && (V = V === i ? ve : V + ve)
- }
- return V
- }
- function Ha(L, R) {
- for (var V = -1, J = Array(L); ++V < L;)
- J[V] = R(V);
- return J
- }
- function kE(L, R) {
- return ke(R, function (V) {
- return [V, L[V]]
- })
- }
- function Ju(L) {
- return L && L.slice(0, Xu(L) + 1).replace(Oa, "")
- }
- function ft(L) {
- return function (R) {
- return L(R)
- }
- }
- function Wa(L, R) {
- return ke(R, function (V) {
- return L[V]
- })
- }
- function zo(L, R) {
- return L.has(R)
- }
- function Yu(L, R) {
- for (var V = -1, J = L.length; ++V < J && mo(R, L[V], 0) > -1;)
- ;
- return V
- }
- function qu(L, R) {
- for (var V = L.length; V-- && mo(R, L[V], 0) > -1;)
- ;
- return V
- }
- function NE(L, R) {
- for (var V = L.length, J = 0; V--;)
- L[V] === R && ++J;
- return J
- }
- var LE = Ua(hE)
- , BE = Ua(gE);
- function PE(L) {
- return "\\" + _E[L]
- }
- function DE(L, R) {
- return L == null ? i : L[R]
- }
- function ho(L) {
- return fE.test(L)
- }
- function VE(L) {
- return dE.test(L)
- }
- function ME(L) {
- for (var R, V = []; !(R = L.next()).done;)
- V.push(R.value);
- return V
- }
- function ja(L) {
- var R = -1
- , V = Array(L.size);
- return L.forEach(function (J, se) {
- V[++R] = [se, J]
- }),
- V
- }
- function Zu(L, R) {
- return function (V) {
- return L(R(V))
- }
- }
- function En(L, R) {
- for (var V = -1, J = L.length, se = 0, ve = []; ++V < J;) {
- var De = L[V];
- (De === R || De === E) && (L[V] = E,
- ve[se++] = V)
- }
- return ve
- }
- function Dr(L) {
- var R = -1
- , V = Array(L.size);
- return L.forEach(function (J) {
- V[++R] = J
- }),
- V
- }
- function RE(L) {
- var R = -1
- , V = Array(L.size);
- return L.forEach(function (J) {
- V[++R] = [J, J]
- }),
- V
- }
- function $E(L, R, V) {
- for (var J = V - 1, se = L.length; ++J < se;)
- if (L[J] === R)
- return J;
- return -1
- }
- function FE(L, R, V) {
- for (var J = V + 1; J--;)
- if (L[J] === R)
- return J;
- return J
- }
- function go(L) {
- return ho(L) ? zE(L) : IE(L)
- }
- function $t(L) {
- return ho(L) ? HE(L) : xE(L)
- }
- function Xu(L) {
- for (var R = L.length; R-- && NC.test(L.charAt(R));)
- ;
- return R
- }
- var UE = Ua(yE);
- function zE(L) {
- for (var R = Pa.lastIndex = 0; Pa.test(L);)
- ++R;
- return R
- }
- function HE(L) {
- return L.match(Pa) || []
- }
- function WE(L) {
- return L.match(uE) || []
- }
- var jE = function L(R) {
- R = R == null ? Ue : yo.defaults(Ue.Object(), R, yo.pick(Ue, pE));
- var V = R.Array
- , J = R.Date
- , se = R.Error
- , ve = R.Function
- , De = R.Math
- , xe = R.Object
- , Ka = R.RegExp
- , KE = R.String
- , Tt = R.TypeError
- , Vr = V.prototype
- , GE = ve.prototype
- , _o = xe.prototype
- , Mr = R["__core-js_shared__"]
- , Rr = GE.toString
- , Ce = _o.hasOwnProperty
- , JE = 0
- , Qu = function () {
- var e = /[^.]+$/.exec(Mr && Mr.keys && Mr.keys.IE_PROTO || "");
- return e ? "Symbol(src)_1." + e : ""
- }()
- , $r = _o.toString
- , YE = Rr.call(xe)
- , qE = Ue._
- , ZE = Ka("^" + Rr.call(Ce).replace(Ta, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$")
- , Fr = Vu ? R.Buffer : i
- , Sn = R.Symbol
- , Ur = R.Uint8Array
- , ef = Fr ? Fr.allocUnsafe : i
- , zr = Zu(xe.getPrototypeOf, xe)
- , tf = xe.create
- , nf = _o.propertyIsEnumerable
- , Hr = Vr.splice
- , of = Sn ? Sn.isConcatSpreadable : i
- , Ho = Sn ? Sn.iterator : i
- , Un = Sn ? Sn.toStringTag : i
- , Wr = function () {
- try {
- var e = Kn(xe, "defineProperty");
- return e({}, "", {}),
- e
- } catch { }
- }()
- , XE = R.clearTimeout !== Ue.clearTimeout && R.clearTimeout
- , QE = J && J.now !== Ue.Date.now && J.now
- , eS = R.setTimeout !== Ue.setTimeout && R.setTimeout
- , jr = De.ceil
- , Kr = De.floor
- , Ga = xe.getOwnPropertySymbols
- , tS = Fr ? Fr.isBuffer : i
- , rf = R.isFinite
- , nS = Vr.join
- , oS = Zu(xe.keys, xe)
- , Ve = De.max
- , Ke = De.min
- , rS = J.now
- , iS = R.parseInt
- , af = De.random
- , aS = Vr.reverse
- , Ja = Kn(R, "DataView")
- , Wo = Kn(R, "Map")
- , Ya = Kn(R, "Promise")
- , wo = Kn(R, "Set")
- , jo = Kn(R, "WeakMap")
- , Ko = Kn(xe, "create")
- , Gr = jo && new jo
- , vo = {}
- , sS = Gn(Ja)
- , lS = Gn(Wo)
- , cS = Gn(Ya)
- , uS = Gn(wo)
- , fS = Gn(jo)
- , Jr = Sn ? Sn.prototype : i
- , Go = Jr ? Jr.valueOf : i
- , sf = Jr ? Jr.toString : i;
- function _(e) {
- if (Le(e) && !le(e) && !(e instanceof he)) {
- if (e instanceof Ot)
- return e;
- if (Ce.call(e, "__wrapped__"))
- return ld(e)
- }
- return new Ot(e)
- }
- var bo = function () {
- function e() { }
- return function (o) {
- if (!Ne(o))
- return {};
- if (tf)
- return tf(o);
- e.prototype = o;
- var a = new e;
- return e.prototype = i,
- a
- }
- }();
- function Yr() { }
- function Ot(e, o) {
- this.__wrapped__ = e,
- this.__actions__ = [],
- this.__chain__ = !!o,
- this.__index__ = 0,
- this.__values__ = i
- }
- _.templateSettings = {
- escape: IC,
- evaluate: xC,
- interpolate: hu,
- variable: "",
- imports: {
- _
- }
- },
- _.prototype = Yr.prototype,
- _.prototype.constructor = _,
- Ot.prototype = bo(Yr.prototype),
- Ot.prototype.constructor = Ot;
- function he(e) {
- this.__wrapped__ = e,
- this.__actions__ = [],
- this.__dir__ = 1,
- this.__filtered__ = !1,
- this.__iteratees__ = [],
- this.__takeCount__ = Ee,
- this.__views__ = []
- }
- function dS() {
- var e = new he(this.__wrapped__);
- return e.__actions__ = it(this.__actions__),
- e.__dir__ = this.__dir__,
- e.__filtered__ = this.__filtered__,
- e.__iteratees__ = it(this.__iteratees__),
- e.__takeCount__ = this.__takeCount__,
- e.__views__ = it(this.__views__),
- e
- }
- function pS() {
- if (this.__filtered__) {
- var e = new he(this);
- e.__dir__ = -1,
- e.__filtered__ = !0
- } else
- e = this.clone(),
- e.__dir__ *= -1;
- return e
- }
- function mS() {
- var e = this.__wrapped__.value()
- , o = this.__dir__
- , a = le(e)
- , l = o < 0
- , m = a ? e.length : 0
- , b = xI(0, m, this.__views__)
- , A = b.start
- , O = b.end
- , P = O - A
- , $ = l ? O : A - 1
- , F = this.__iteratees__
- , z = F.length
- , j = 0
- , Z = Ke(P, this.__takeCount__);
- if (!a || !l && m == P && Z == P)
- return Nf(e, this.__actions__);
- var re = [];
- e: for (; P-- && j < Z;) {
- $ += o;
- for (var fe = -1, ie = e[$]; ++fe < z;) {
- var me = F[fe]
- , ye = me.iteratee
- , mt = me.type
- , Xe = ye(ie);
- if (mt == _e)
- ie = Xe;
- else if (!Xe) {
- if (mt == we)
- continue e;
- break e
- }
- }
- re[j++] = ie
- }
- return re
- }
- he.prototype = bo(Yr.prototype),
- he.prototype.constructor = he;
- function zn(e) {
- var o = -1
- , a = e == null ? 0 : e.length;
- for (this.clear(); ++o < a;) {
- var l = e[o];
- this.set(l[0], l[1])
- }
- }
- function hS() {
- this.__data__ = Ko ? Ko(null) : {},
- this.size = 0
- }
- function gS(e) {
- var o = this.has(e) && delete this.__data__[e];
- return this.size -= o ? 1 : 0,
- o
- }
- function yS(e) {
- var o = this.__data__;
- if (Ko) {
- var a = o[e];
- return a === p ? i : a
- }
- return Ce.call(o, e) ? o[e] : i
- }
- function _S(e) {
- var o = this.__data__;
- return Ko ? o[e] !== i : Ce.call(o, e)
- }
- function wS(e, o) {
- var a = this.__data__;
- return this.size += this.has(e) ? 0 : 1,
- a[e] = Ko && o === i ? p : o,
- this
- }
- zn.prototype.clear = hS,
- zn.prototype.delete = gS,
- zn.prototype.get = yS,
- zn.prototype.has = _S,
- zn.prototype.set = wS;
- function rn(e) {
- var o = -1
- , a = e == null ? 0 : e.length;
- for (this.clear(); ++o < a;) {
- var l = e[o];
- this.set(l[0], l[1])
- }
- }
- function vS() {
- this.__data__ = [],
- this.size = 0
- }
- function bS(e) {
- var o = this.__data__
- , a = qr(o, e);
- if (a < 0)
- return !1;
- var l = o.length - 1;
- return a == l ? o.pop() : Hr.call(o, a, 1),
- --this.size,
- !0
- }
- function CS(e) {
- var o = this.__data__
- , a = qr(o, e);
- return a < 0 ? i : o[a][1]
- }
- function ES(e) {
- return qr(this.__data__, e) > -1
- }
- function SS(e, o) {
- var a = this.__data__
- , l = qr(a, e);
- return l < 0 ? (++this.size,
- a.push([e, o])) : a[l][1] = o,
- this
- }
- rn.prototype.clear = vS,
- rn.prototype.delete = bS,
- rn.prototype.get = CS,
- rn.prototype.has = ES,
- rn.prototype.set = SS;
- function an(e) {
- var o = -1
- , a = e == null ? 0 : e.length;
- for (this.clear(); ++o < a;) {
- var l = e[o];
- this.set(l[0], l[1])
- }
- }
- function IS() {
- this.size = 0,
- this.__data__ = {
- hash: new zn,
- map: new (Wo || rn),
- string: new zn
- }
- }
- function xS(e) {
- var o = li(this, e).delete(e);
- return this.size -= o ? 1 : 0,
- o
- }
- function AS(e) {
- return li(this, e).get(e)
- }
- function TS(e) {
- return li(this, e).has(e)
- }
- function OS(e, o) {
- var a = li(this, e)
- , l = a.size;
- return a.set(e, o),
- this.size += a.size == l ? 0 : 1,
- this
- }
- an.prototype.clear = IS,
- an.prototype.delete = xS,
- an.prototype.get = AS,
- an.prototype.has = TS,
- an.prototype.set = OS;
- function Hn(e) {
- var o = -1
- , a = e == null ? 0 : e.length;
- for (this.__data__ = new an; ++o < a;)
- this.add(e[o])
- }
- function kS(e) {
- return this.__data__.set(e, p),
- this
- }
- function NS(e) {
- return this.__data__.has(e)
- }
- Hn.prototype.add = Hn.prototype.push = kS,
- Hn.prototype.has = NS;
- function Ft(e) {
- var o = this.__data__ = new rn(e);
- this.size = o.size
- }
- function LS() {
- this.__data__ = new rn,
- this.size = 0
- }
- function BS(e) {
- var o = this.__data__
- , a = o.delete(e);
- return this.size = o.size,
- a
- }
- function PS(e) {
- return this.__data__.get(e)
- }
- function DS(e) {
- return this.__data__.has(e)
- }
- function VS(e, o) {
- var a = this.__data__;
- if (a instanceof rn) {
- var l = a.__data__;
- if (!Wo || l.length < c - 1)
- return l.push([e, o]),
- this.size = ++a.size,
- this;
- a = this.__data__ = new an(l)
- }
- return a.set(e, o),
- this.size = a.size,
- this
- }
- Ft.prototype.clear = LS,
- Ft.prototype.delete = BS,
- Ft.prototype.get = PS,
- Ft.prototype.has = DS,
- Ft.prototype.set = VS;
- function lf(e, o) {
- var a = le(e)
- , l = !a && Jn(e)
- , m = !a && !l && On(e)
- , b = !a && !l && !m && Io(e)
- , A = a || l || m || b
- , O = A ? Ha(e.length, KE) : []
- , P = O.length;
- for (var $ in e)
- (o || Ce.call(e, $)) && !(A && ($ == "length" || m && ($ == "offset" || $ == "parent") || b && ($ == "buffer" || $ == "byteLength" || $ == "byteOffset") || un($, P))) && O.push($);
- return O
- }
- function cf(e) {
- var o = e.length;
- return o ? e[as(0, o - 1)] : i
- }
- function MS(e, o) {
- return ci(it(e), Wn(o, 0, e.length))
- }
- function RS(e) {
- return ci(it(e))
- }
- function qa(e, o, a) {
- (a !== i && !Ut(e[o], a) || a === i && !(o in e)) && sn(e, o, a)
- }
- function Jo(e, o, a) {
- var l = e[o];
- (!(Ce.call(e, o) && Ut(l, a)) || a === i && !(o in e)) && sn(e, o, a)
- }
- function qr(e, o) {
- for (var a = e.length; a--;)
- if (Ut(e[a][0], o))
- return a;
- return -1
- }
- function $S(e, o, a, l) {
- return In(e, function (m, b, A) {
- o(l, m, a(m), A)
- }),
- l
- }
- function uf(e, o) {
- return e && qt(o, $e(o), e)
- }
- function FS(e, o) {
- return e && qt(o, st(o), e)
- }
- function sn(e, o, a) {
- o == "__proto__" && Wr ? Wr(e, o, {
- configurable: !0,
- enumerable: !0,
- value: a,
- writable: !0
- }) : e[o] = a
- }
- function Za(e, o) {
- for (var a = -1, l = o.length, m = V(l), b = e == null; ++a < l;)
- m[a] = b ? i : Ns(e, o[a]);
- return m
- }
- function Wn(e, o, a) {
- return e === e && (a !== i && (e = e <= a ? e : a),
- o !== i && (e = e >= o ? e : o)),
- e
- }
- function kt(e, o, a, l, m, b) {
- var A, O = o & C, P = o & h, $ = o & x;
- if (a && (A = m ? a(e, l, m, b) : a(e)),
- A !== i)
- return A;
- if (!Ne(e))
- return e;
- var F = le(e);
- if (F) {
- if (A = TI(e),
- !O)
- return it(e, A)
- } else {
- var z = Ge(e)
- , j = z == nn || z == wn;
- if (On(e))
- return Pf(e, O);
- if (z == rt || z == q || j && !m) {
- if (A = P || j ? {} : Qf(e),
- !O)
- return P ? yI(e, FS(A, e)) : gI(e, uf(A, e))
- } else {
- if (!Ae[z])
- return m ? e : {};
- A = OI(e, z, O)
- }
- }
- b || (b = new Ft);
- var Z = b.get(e);
- if (Z)
- return Z;
- b.set(e, A),
- Od(e) ? e.forEach(function (ie) {
- A.add(kt(ie, o, a, ie, e, b))
- }) : Ad(e) && e.forEach(function (ie, me) {
- A.set(me, kt(ie, o, a, me, e, b))
- });
- var re = $ ? P ? ys : gs : P ? st : $e
- , fe = F ? i : re(e);
- return At(fe || e, function (ie, me) {
- fe && (me = ie,
- ie = e[me]),
- Jo(A, me, kt(ie, o, a, me, e, b))
- }),
- A
- }
- function US(e) {
- var o = $e(e);
- return function (a) {
- return ff(a, e, o)
- }
- }
- function ff(e, o, a) {
- var l = a.length;
- if (e == null)
- return !l;
- for (e = xe(e); l--;) {
- var m = a[l]
- , b = o[m]
- , A = e[m];
- if (A === i && !(m in e) || !b(A))
- return !1
- }
- return !0
- }
- function df(e, o, a) {
- if (typeof e != "function")
- throw new Tt(u);
- return tr(function () {
- e.apply(i, a)
- }, o)
- }
- function Yo(e, o, a, l) {
- var m = -1
- , b = Br
- , A = !0
- , O = e.length
- , P = []
- , $ = o.length;
- if (!O)
- return P;
- a && (o = ke(o, ft(a))),
- l ? (b = Ma,
- A = !1) : o.length >= c && (b = zo,
- A = !1,
- o = new Hn(o));
- e: for (; ++m < O;) {
- var F = e[m]
- , z = a == null ? F : a(F);
- if (F = l || F !== 0 ? F : 0,
- A && z === z) {
- for (var j = $; j--;)
- if (o[j] === z)
- continue e;
- P.push(F)
- } else
- b(o, z, l) || P.push(F)
- }
- return P
- }
- var In = $f(Yt)
- , pf = $f(Qa, !0);
- function zS(e, o) {
- var a = !0;
- return In(e, function (l, m, b) {
- return a = !!o(l, m, b),
- a
- }),
- a
- }
- function Zr(e, o, a) {
- for (var l = -1, m = e.length; ++l < m;) {
- var b = e[l]
- , A = o(b);
- if (A != null && (O === i ? A === A && !pt(A) : a(A, O)))
- var O = A
- , P = b
- }
- return P
- }
- function HS(e, o, a, l) {
- var m = e.length;
- for (a = ue(a),
- a < 0 && (a = -a > m ? 0 : m + a),
- l = l === i || l > m ? m : ue(l),
- l < 0 && (l += m),
- l = a > l ? 0 : Nd(l); a < l;)
- e[a++] = o;
- return e
- }
- function mf(e, o) {
- var a = [];
- return In(e, function (l, m, b) {
- o(l, m, b) && a.push(l)
- }),
- a
- }
- function ze(e, o, a, l, m) {
- var b = -1
- , A = e.length;
- for (a || (a = NI),
- m || (m = []); ++b < A;) {
- var O = e[b];
- o > 0 && a(O) ? o > 1 ? ze(O, o - 1, a, l, m) : Cn(m, O) : l || (m[m.length] = O)
- }
- return m
- }
- var Xa = Ff()
- , hf = Ff(!0);
- function Yt(e, o) {
- return e && Xa(e, o, $e)
- }
- function Qa(e, o) {
- return e && hf(e, o, $e)
- }
- function Xr(e, o) {
- return bn(o, function (a) {
- return fn(e[a])
- })
- }
- function jn(e, o) {
- o = An(o, e);
- for (var a = 0, l = o.length; e != null && a < l;)
- e = e[Zt(o[a++])];
- return a && a == l ? e : i
- }
- function gf(e, o, a) {
- var l = o(e);
- return le(e) ? l : Cn(l, a(e))
- }
- function qe(e) {
- return e == null ? e === i ? vn : Rn : Un && Un in xe(e) ? II(e) : RI(e)
- }
- function es(e, o) {
- return e > o
- }
- function WS(e, o) {
- return e != null && Ce.call(e, o)
- }
- function jS(e, o) {
- return e != null && o in xe(e)
- }
- function KS(e, o, a) {
- return e >= Ke(o, a) && e < Ve(o, a)
- }
- function ts(e, o, a) {
- for (var l = a ? Ma : Br, m = e[0].length, b = e.length, A = b, O = V(b), P = 1 / 0, $ = []; A--;) {
- var F = e[A];
- A && o && (F = ke(F, ft(o))),
- P = Ke(F.length, P),
- O[A] = !a && (o || m >= 120 && F.length >= 120) ? new Hn(A && F) : i
- }
- F = e[0];
- var z = -1
- , j = O[0];
- e: for (; ++z < m && $.length < P;) {
- var Z = F[z]
- , re = o ? o(Z) : Z;
- if (Z = a || Z !== 0 ? Z : 0,
- !(j ? zo(j, re) : l($, re, a))) {
- for (A = b; --A;) {
- var fe = O[A];
- if (!(fe ? zo(fe, re) : l(e[A], re, a)))
- continue e
- }
- j && j.push(re),
- $.push(Z)
- }
- }
- return $
- }
- function GS(e, o, a, l) {
- return Yt(e, function (m, b, A) {
- o(l, a(m), b, A)
- }),
- l
- }
- function qo(e, o, a) {
- o = An(o, e),
- e = od(e, o);
- var l = e == null ? e : e[Zt(Lt(o))];
- return l == null ? i : ut(l, e, a)
- }
- function yf(e) {
- return Le(e) && qe(e) == q
- }
- function JS(e) {
- return Le(e) && qe(e) == Ye
- }
- function YS(e) {
- return Le(e) && qe(e) == ot
- }
- function Zo(e, o, a, l, m) {
- return e === o ? !0 : e == null || o == null || !Le(e) && !Le(o) ? e !== e && o !== o : qS(e, o, a, l, Zo, m)
- }
- function qS(e, o, a, l, m, b) {
- var A = le(e)
- , O = le(o)
- , P = A ? ee : Ge(e)
- , $ = O ? ee : Ge(o);
- P = P == q ? rt : P,
- $ = $ == q ? rt : $;
- var F = P == rt
- , z = $ == rt
- , j = P == $;
- if (j && On(e)) {
- if (!On(o))
- return !1;
- A = !0,
- F = !1
- }
- if (j && !F)
- return b || (b = new Ft),
- A || Io(e) ? qf(e, o, a, l, m, b) : EI(e, o, P, a, l, m, b);
- if (!(a & v)) {
- var Z = F && Ce.call(e, "__wrapped__")
- , re = z && Ce.call(o, "__wrapped__");
- if (Z || re) {
- var fe = Z ? e.value() : e
- , ie = re ? o.value() : o;
- return b || (b = new Ft),
- m(fe, ie, a, l, b)
- }
- }
- return j ? (b || (b = new Ft),
- SI(e, o, a, l, m, b)) : !1
- }
- function ZS(e) {
- return Le(e) && Ge(e) == je
- }
- function ns(e, o, a, l) {
- var m = a.length
- , b = m
- , A = !l;
- if (e == null)
- return !b;
- for (e = xe(e); m--;) {
- var O = a[m];
- if (A && O[2] ? O[1] !== e[O[0]] : !(O[0] in e))
- return !1
- }
- for (; ++m < b;) {
- O = a[m];
- var P = O[0]
- , $ = e[P]
- , F = O[1];
- if (A && O[2]) {
- if ($ === i && !(P in e))
- return !1
- } else {
- var z = new Ft;
- if (l)
- var j = l($, F, P, e, o, z);
- if (!(j === i ? Zo(F, $, v | I, l, z) : j))
- return !1
- }
- }
- return !0
- }
- function _f(e) {
- if (!Ne(e) || BI(e))
- return !1;
- var o = fn(e) ? ZE : UC;
- return o.test(Gn(e))
- }
- function XS(e) {
- return Le(e) && qe(e) == Je
- }
- function QS(e) {
- return Le(e) && Ge(e) == Re
- }
- function eI(e) {
- return Le(e) && hi(e.length) && !!Oe[qe(e)]
- }
- function wf(e) {
- return typeof e == "function" ? e : e == null ? lt : typeof e == "object" ? le(e) ? Cf(e[0], e[1]) : bf(e) : zd(e)
- }
- function os(e) {
- if (!er(e))
- return oS(e);
- var o = [];
- for (var a in xe(e))
- Ce.call(e, a) && a != "constructor" && o.push(a);
- return o
- }
- function tI(e) {
- if (!Ne(e))
- return MI(e);
- var o = er(e)
- , a = [];
- for (var l in e)
- l == "constructor" && (o || !Ce.call(e, l)) || a.push(l);
- return a
- }
- function rs(e, o) {
- return e < o
- }
- function vf(e, o) {
- var a = -1
- , l = at(e) ? V(e.length) : [];
- return In(e, function (m, b, A) {
- l[++a] = o(m, b, A)
- }),
- l
- }
- function bf(e) {
- var o = ws(e);
- return o.length == 1 && o[0][2] ? td(o[0][0], o[0][1]) : function (a) {
- return a === e || ns(a, e, o)
- }
- }
- function Cf(e, o) {
- return bs(e) && ed(o) ? td(Zt(e), o) : function (a) {
- var l = Ns(a, e);
- return l === i && l === o ? Ls(a, e) : Zo(o, l, v | I)
- }
- }
- function Qr(e, o, a, l, m) {
- e !== o && Xa(o, function (b, A) {
- if (m || (m = new Ft),
- Ne(b))
- nI(e, o, A, a, Qr, l, m);
- else {
- var O = l ? l(Es(e, A), b, A + "", e, o, m) : i;
- O === i && (O = b),
- qa(e, A, O)
- }
- }, st)
- }
- function nI(e, o, a, l, m, b, A) {
- var O = Es(e, a)
- , P = Es(o, a)
- , $ = A.get(P);
- if ($) {
- qa(e, a, $);
- return
- }
- var F = b ? b(O, P, a + "", e, o, A) : i
- , z = F === i;
- if (z) {
- var j = le(P)
- , Z = !j && On(P)
- , re = !j && !Z && Io(P);
- F = P,
- j || Z || re ? le(O) ? F = O : Be(O) ? F = it(O) : Z ? (z = !1,
- F = Pf(P, !0)) : re ? (z = !1,
- F = Df(P, !0)) : F = [] : nr(P) || Jn(P) ? (F = O,
- Jn(O) ? F = Ld(O) : (!Ne(O) || fn(O)) && (F = Qf(P))) : z = !1
- }
- z && (A.set(P, F),
- m(F, P, l, b, A),
- A.delete(P)),
- qa(e, a, F)
- }
- function Ef(e, o) {
- var a = e.length;
- if (a)
- return o += o < 0 ? a : 0,
- un(o, a) ? e[o] : i
- }
- function Sf(e, o, a) {
- o.length ? o = ke(o, function (b) {
- return le(b) ? function (A) {
- return jn(A, b.length === 1 ? b[0] : b)
- }
- : b
- }) : o = [lt];
- var l = -1;
- o = ke(o, ft(oe()));
- var m = vf(e, function (b, A, O) {
- var P = ke(o, function ($) {
- return $(b)
- });
- return {
- criteria: P,
- index: ++l,
- value: b
- }
- });
- return OE(m, function (b, A) {
- return hI(b, A, a)
- })
- }
- function oI(e, o) {
- return If(e, o, function (a, l) {
- return Ls(e, l)
- })
- }
- function If(e, o, a) {
- for (var l = -1, m = o.length, b = {}; ++l < m;) {
- var A = o[l]
- , O = jn(e, A);
- a(O, A) && Xo(b, An(A, e), O)
- }
- return b
- }
- function rI(e) {
- return function (o) {
- return jn(o, e)
- }
- }
- function is(e, o, a, l) {
- var m = l ? TE : mo
- , b = -1
- , A = o.length
- , O = e;
- for (e === o && (o = it(o)),
- a && (O = ke(e, ft(a))); ++b < A;)
- for (var P = 0, $ = o[b], F = a ? a($) : $; (P = m(O, F, P, l)) > -1;)
- O !== e && Hr.call(O, P, 1),
- Hr.call(e, P, 1);
- return e
- }
- function xf(e, o) {
- for (var a = e ? o.length : 0, l = a - 1; a--;) {
- var m = o[a];
- if (a == l || m !== b) {
- var b = m;
- un(m) ? Hr.call(e, m, 1) : cs(e, m)
- }
- }
- return e
- }
- function as(e, o) {
- return e + Kr(af() * (o - e + 1))
- }
- function iI(e, o, a, l) {
- for (var m = -1, b = Ve(jr((o - e) / (a || 1)), 0), A = V(b); b--;)
- A[l ? b : ++m] = e,
- e += a;
- return A
- }
- function ss(e, o) {
- var a = "";
- if (!e || o < 1 || o > ge)
- return a;
- do
- o % 2 && (a += e),
- o = Kr(o / 2),
- o && (e += e);
- while (o);
- return a
- }
- function de(e, o) {
- return Ss(nd(e, o, lt), e + "")
- }
- function aI(e) {
- return cf(xo(e))
- }
- function sI(e, o) {
- var a = xo(e);
- return ci(a, Wn(o, 0, a.length))
- }
- function Xo(e, o, a, l) {
- if (!Ne(e))
- return e;
- o = An(o, e);
- for (var m = -1, b = o.length, A = b - 1, O = e; O != null && ++m < b;) {
- var P = Zt(o[m])
- , $ = a;
- if (P === "__proto__" || P === "constructor" || P === "prototype")
- return e;
- if (m != A) {
- var F = O[P];
- $ = l ? l(F, P, O) : i,
- $ === i && ($ = Ne(F) ? F : un(o[m + 1]) ? [] : {})
- }
- Jo(O, P, $),
- O = O[P]
- }
- return e
- }
- var Af = Gr ? function (e, o) {
- return Gr.set(e, o),
- e
- }
- : lt
- , lI = Wr ? function (e, o) {
- return Wr(e, "toString", {
- configurable: !0,
- enumerable: !1,
- value: Ps(o),
- writable: !0
- })
- }
- : lt;
- function cI(e) {
- return ci(xo(e))
- }
- function Nt(e, o, a) {
- var l = -1
- , m = e.length;
- o < 0 && (o = -o > m ? 0 : m + o),
- a = a > m ? m : a,
- a < 0 && (a += m),
- m = o > a ? 0 : a - o >>> 0,
- o >>>= 0;
- for (var b = V(m); ++l < m;)
- b[l] = e[l + o];
- return b
- }
- function uI(e, o) {
- var a;
- return In(e, function (l, m, b) {
- return a = o(l, m, b),
- !a
- }),
- !!a
- }
- function ei(e, o, a) {
- var l = 0
- , m = e == null ? l : e.length;
- if (typeof o == "number" && o === o && m <= Y) {
- for (; l < m;) {
- var b = l + m >>> 1
- , A = e[b];
- A !== null && !pt(A) && (a ? A <= o : A < o) ? l = b + 1 : m = b
- }
- return m
- }
- return ls(e, o, lt, a)
- }
- function ls(e, o, a, l) {
- var m = 0
- , b = e == null ? 0 : e.length;
- if (b === 0)
- return 0;
- o = a(o);
- for (var A = o !== o, O = o === null, P = pt(o), $ = o === i; m < b;) {
- var F = Kr((m + b) / 2)
- , z = a(e[F])
- , j = z !== i
- , Z = z === null
- , re = z === z
- , fe = pt(z);
- if (A)
- var ie = l || re;
- else
- $ ? ie = re && (l || j) : O ? ie = re && j && (l || !Z) : P ? ie = re && j && !Z && (l || !fe) : Z || fe ? ie = !1 : ie = l ? z <= o : z < o;
- ie ? m = F + 1 : b = F
- }
- return Ke(b, te)
- }
- function Tf(e, o) {
- for (var a = -1, l = e.length, m = 0, b = []; ++a < l;) {
- var A = e[a]
- , O = o ? o(A) : A;
- if (!a || !Ut(O, P)) {
- var P = O;
- b[m++] = A === 0 ? 0 : A
- }
- }
- return b
- }
- function Of(e) {
- return typeof e == "number" ? e : pt(e) ? Fe : +e
- }
- function dt(e) {
- if (typeof e == "string")
- return e;
- if (le(e))
- return ke(e, dt) + "";
- if (pt(e))
- return sf ? sf.call(e) : "";
- var o = e + "";
- return o == "0" && 1 / e == -ce ? "-0" : o
- }
- function xn(e, o, a) {
- var l = -1
- , m = Br
- , b = e.length
- , A = !0
- , O = []
- , P = O;
- if (a)
- A = !1,
- m = Ma;
- else if (b >= c) {
- var $ = o ? null : bI(e);
- if ($)
- return Dr($);
- A = !1,
- m = zo,
- P = new Hn
- } else
- P = o ? [] : O;
- e: for (; ++l < b;) {
- var F = e[l]
- , z = o ? o(F) : F;
- if (F = a || F !== 0 ? F : 0,
- A && z === z) {
- for (var j = P.length; j--;)
- if (P[j] === z)
- continue e;
- o && P.push(z),
- O.push(F)
- } else
- m(P, z, a) || (P !== O && P.push(z),
- O.push(F))
- }
- return O
- }
- function cs(e, o) {
- return o = An(o, e),
- e = od(e, o),
- e == null || delete e[Zt(Lt(o))]
- }
- function kf(e, o, a, l) {
- return Xo(e, o, a(jn(e, o)), l)
- }
- function ti(e, o, a, l) {
- for (var m = e.length, b = l ? m : -1; (l ? b-- : ++b < m) && o(e[b], b, e);)
- ;
- return a ? Nt(e, l ? 0 : b, l ? b + 1 : m) : Nt(e, l ? b + 1 : 0, l ? m : b)
- }
- function Nf(e, o) {
- var a = e;
- return a instanceof he && (a = a.value()),
- Ra(o, function (l, m) {
- return m.func.apply(m.thisArg, Cn([l], m.args))
- }, a)
- }
- function us(e, o, a) {
- var l = e.length;
- if (l < 2)
- return l ? xn(e[0]) : [];
- for (var m = -1, b = V(l); ++m < l;)
- for (var A = e[m], O = -1; ++O < l;)
- O != m && (b[m] = Yo(b[m] || A, e[O], o, a));
- return xn(ze(b, 1), o, a)
- }
- function Lf(e, o, a) {
- for (var l = -1, m = e.length, b = o.length, A = {}; ++l < m;) {
- var O = l < b ? o[l] : i;
- a(A, e[l], O)
- }
- return A
- }
- function fs(e) {
- return Be(e) ? e : []
- }
- function ds(e) {
- return typeof e == "function" ? e : lt
- }
- function An(e, o) {
- return le(e) ? e : bs(e, o) ? [e] : sd(be(e))
- }
- var fI = de;
- function Tn(e, o, a) {
- var l = e.length;
- return a = a === i ? l : a,
- !o && a >= l ? e : Nt(e, o, a)
- }
- var Bf = XE || function (e) {
- return Ue.clearTimeout(e)
- }
- ;
- function Pf(e, o) {
- if (o)
- return e.slice();
- var a = e.length
- , l = ef ? ef(a) : new e.constructor(a);
- return e.copy(l),
- l
- }
- function ps(e) {
- var o = new e.constructor(e.byteLength);
- return new Ur(o).set(new Ur(e)),
- o
- }
- function dI(e, o) {
- var a = o ? ps(e.buffer) : e.buffer;
- return new e.constructor(a, e.byteOffset, e.byteLength)
- }
- function pI(e) {
- var o = new e.constructor(e.source, gu.exec(e));
- return o.lastIndex = e.lastIndex,
- o
- }
- function mI(e) {
- return Go ? xe(Go.call(e)) : {}
- }
- function Df(e, o) {
- var a = o ? ps(e.buffer) : e.buffer;
- return new e.constructor(a, e.byteOffset, e.length)
- }
- function Vf(e, o) {
- if (e !== o) {
- var a = e !== i
- , l = e === null
- , m = e === e
- , b = pt(e)
- , A = o !== i
- , O = o === null
- , P = o === o
- , $ = pt(o);
- if (!O && !$ && !b && e > o || b && A && P && !O && !$ || l && A && P || !a && P || !m)
- return 1;
- if (!l && !b && !$ && e < o || $ && a && m && !l && !b || O && a && m || !A && m || !P)
- return -1
- }
- return 0
- }
- function hI(e, o, a) {
- for (var l = -1, m = e.criteria, b = o.criteria, A = m.length, O = a.length; ++l < A;) {
- var P = Vf(m[l], b[l]);
- if (P) {
- if (l >= O)
- return P;
- var $ = a[l];
- return P * ($ == "desc" ? -1 : 1)
- }
- }
- return e.index - o.index
- }
- function Mf(e, o, a, l) {
- for (var m = -1, b = e.length, A = a.length, O = -1, P = o.length, $ = Ve(b - A, 0), F = V(P + $), z = !l; ++O < P;)
- F[O] = o[O];
- for (; ++m < A;)
- (z || m < b) && (F[a[m]] = e[m]);
- for (; $--;)
- F[O++] = e[m++];
- return F
- }
- function Rf(e, o, a, l) {
- for (var m = -1, b = e.length, A = -1, O = a.length, P = -1, $ = o.length, F = Ve(b - O, 0), z = V(F + $), j = !l; ++m < F;)
- z[m] = e[m];
- for (var Z = m; ++P < $;)
- z[Z + P] = o[P];
- for (; ++A < O;)
- (j || m < b) && (z[Z + a[A]] = e[m++]);
- return z
- }
- function it(e, o) {
- var a = -1
- , l = e.length;
- for (o || (o = V(l)); ++a < l;)
- o[a] = e[a];
- return o
- }
- function qt(e, o, a, l) {
- var m = !a;
- a || (a = {});
- for (var b = -1, A = o.length; ++b < A;) {
- var O = o[b]
- , P = l ? l(a[O], e[O], O, a, e) : i;
- P === i && (P = e[O]),
- m ? sn(a, O, P) : Jo(a, O, P)
- }
- return a
- }
- function gI(e, o) {
- return qt(e, vs(e), o)
- }
- function yI(e, o) {
- return qt(e, Zf(e), o)
- }
- function ni(e, o) {
- return function (a, l) {
- var m = le(a) ? CE : $S
- , b = o ? o() : {};
- return m(a, e, oe(l, 2), b)
- }
- }
- function Co(e) {
- return de(function (o, a) {
- var l = -1
- , m = a.length
- , b = m > 1 ? a[m - 1] : i
- , A = m > 2 ? a[2] : i;
- for (b = e.length > 3 && typeof b == "function" ? (m--,
- b) : i,
- A && Ze(a[0], a[1], A) && (b = m < 3 ? i : b,
- m = 1),
- o = xe(o); ++l < m;) {
- var O = a[l];
- O && e(o, O, l, b)
- }
- return o
- })
- }
- function $f(e, o) {
- return function (a, l) {
- if (a == null)
- return a;
- if (!at(a))
- return e(a, l);
- for (var m = a.length, b = o ? m : -1, A = xe(a); (o ? b-- : ++b < m) && l(A[b], b, A) !== !1;)
- ;
- return a
- }
- }
- function Ff(e) {
- return function (o, a, l) {
- for (var m = -1, b = xe(o), A = l(o), O = A.length; O--;) {
- var P = A[e ? O : ++m];
- if (a(b[P], P, b) === !1)
- break
- }
- return o
- }
- }
- function _I(e, o, a) {
- var l = o & y
- , m = Qo(e);
- function b() {
- var A = this && this !== Ue && this instanceof b ? m : e;
- return A.apply(l ? a : this, arguments)
- }
- return b
- }
- function Uf(e) {
- return function (o) {
- o = be(o);
- var a = ho(o) ? $t(o) : i
- , l = a ? a[0] : o.charAt(0)
- , m = a ? Tn(a, 1).join("") : o.slice(1);
- return l[e]() + m
- }
- }
- function Eo(e) {
- return function (o) {
- return Ra(Fd($d(o).replace(lE, "")), e, "")
- }
- }
- function Qo(e) {
- return function () {
- var o = arguments;
- switch (o.length) {
- case 0:
- return new e;
- case 1:
- return new e(o[0]);
- case 2:
- return new e(o[0], o[1]);
- case 3:
- return new e(o[0], o[1], o[2]);
- case 4:
- return new e(o[0], o[1], o[2], o[3]);
- case 5:
- return new e(o[0], o[1], o[2], o[3], o[4]);
- case 6:
- return new e(o[0], o[1], o[2], o[3], o[4], o[5]);
- case 7:
- return new e(o[0], o[1], o[2], o[3], o[4], o[5], o[6])
- }
- var a = bo(e.prototype)
- , l = e.apply(a, o);
- return Ne(l) ? l : a
- }
- }
- function wI(e, o, a) {
- var l = Qo(e);
- function m() {
- for (var b = arguments.length, A = V(b), O = b, P = So(m); O--;)
- A[O] = arguments[O];
- var $ = b < 3 && A[0] !== P && A[b - 1] !== P ? [] : En(A, P);
- if (b -= $.length,
- b < a)
- return Kf(e, o, oi, m.placeholder, i, A, $, i, i, a - b);
- var F = this && this !== Ue && this instanceof m ? l : e;
- return ut(F, this, A)
- }
- return m
- }
- function zf(e) {
- return function (o, a, l) {
- var m = xe(o);
- if (!at(o)) {
- var b = oe(a, 3);
- o = $e(o),
- a = function (O) {
- return b(m[O], O, m)
- }
- }
- var A = e(o, a, l);
- return A > -1 ? m[b ? o[A] : A] : i
- }
- }
- function Hf(e) {
- return cn(function (o) {
- var a = o.length
- , l = a
- , m = Ot.prototype.thru;
- for (e && o.reverse(); l--;) {
- var b = o[l];
- if (typeof b != "function")
- throw new Tt(u);
- if (m && !A && si(b) == "wrapper")
- var A = new Ot([], !0)
- }
- for (l = A ? l : a; ++l < a;) {
- b = o[l];
- var O = si(b)
- , P = O == "wrapper" ? _s(b) : i;
- P && Cs(P[0]) && P[1] == (M | T | B | k) && !P[4].length && P[9] == 1 ? A = A[si(P[0])].apply(A, P[3]) : A = b.length == 1 && Cs(b) ? A[O]() : A.thru(b)
- }
- return function () {
- var $ = arguments
- , F = $[0];
- if (A && $.length == 1 && le(F))
- return A.plant(F).value();
- for (var z = 0, j = a ? o[z].apply(this, $) : F; ++z < a;)
- j = o[z].call(this, j);
- return j
- }
- })
- }
- function oi(e, o, a, l, m, b, A, O, P, $) {
- var F = o & M
- , z = o & y
- , j = o & g
- , Z = o & (T | N)
- , re = o & U
- , fe = j ? i : Qo(e);
- function ie() {
- for (var me = arguments.length, ye = V(me), mt = me; mt--;)
- ye[mt] = arguments[mt];
- if (Z)
- var Xe = So(ie)
- , ht = NE(ye, Xe);
- if (l && (ye = Mf(ye, l, m, Z)),
- b && (ye = Rf(ye, b, A, Z)),
- me -= ht,
- Z && me < $) {
- var Pe = En(ye, Xe);
- return Kf(e, o, oi, ie.placeholder, a, ye, Pe, O, P, $ - me)
- }
- var zt = z ? a : this
- , pn = j ? zt[e] : e;
- return me = ye.length,
- O ? ye = $I(ye, O) : re && me > 1 && ye.reverse(),
- F && P < me && (ye.length = P),
- this && this !== Ue && this instanceof ie && (pn = fe || Qo(pn)),
- pn.apply(zt, ye)
- }
- return ie
- }
- function Wf(e, o) {
- return function (a, l) {
- return GS(a, e, o(l), {})
- }
- }
- function ri(e, o) {
- return function (a, l) {
- var m;
- if (a === i && l === i)
- return o;
- if (a !== i && (m = a),
- l !== i) {
- if (m === i)
- return l;
- typeof a == "string" || typeof l == "string" ? (a = dt(a),
- l = dt(l)) : (a = Of(a),
- l = Of(l)),
- m = e(a, l)
- }
- return m
- }
- }
- function ms(e) {
- return cn(function (o) {
- return o = ke(o, ft(oe())),
- de(function (a) {
- var l = this;
- return e(o, function (m) {
- return ut(m, l, a)
- })
- })
- })
- }
- function ii(e, o) {
- o = o === i ? " " : dt(o);
- var a = o.length;
- if (a < 2)
- return a ? ss(o, e) : o;
- var l = ss(o, jr(e / go(o)));
- return ho(o) ? Tn($t(l), 0, e).join("") : l.slice(0, e)
- }
- function vI(e, o, a, l) {
- var m = o & y
- , b = Qo(e);
- function A() {
- for (var O = -1, P = arguments.length, $ = -1, F = l.length, z = V(F + P), j = this && this !== Ue && this instanceof A ? b : e; ++$ < F;)
- z[$] = l[$];
- for (; P--;)
- z[$++] = arguments[++O];
- return ut(j, m ? a : this, z)
- }
- return A
- }
- function jf(e) {
- return function (o, a, l) {
- return l && typeof l != "number" && Ze(o, a, l) && (a = l = i),
- o = dn(o),
- a === i ? (a = o,
- o = 0) : a = dn(a),
- l = l === i ? o < a ? 1 : -1 : dn(l),
- iI(o, a, l, e)
- }
- }
- function ai(e) {
- return function (o, a) {
- return typeof o == "string" && typeof a == "string" || (o = Bt(o),
- a = Bt(a)),
- e(o, a)
- }
- }
- function Kf(e, o, a, l, m, b, A, O, P, $) {
- var F = o & T
- , z = F ? A : i
- , j = F ? i : A
- , Z = F ? b : i
- , re = F ? i : b;
- o |= F ? B : D,
- o &= ~(F ? D : B),
- o & S || (o &= ~(y | g));
- var fe = [e, o, m, Z, z, re, j, O, P, $]
- , ie = a.apply(i, fe);
- return Cs(e) && rd(ie, fe),
- ie.placeholder = l,
- id(ie, e, o)
- }
- function hs(e) {
- var o = De[e];
- return function (a, l) {
- if (a = Bt(a),
- l = l == null ? 0 : Ke(ue(l), 292),
- l && rf(a)) {
- var m = (be(a) + "e").split("e")
- , b = o(m[0] + "e" + (+m[1] + l));
- return m = (be(b) + "e").split("e"),
- +(m[0] + "e" + (+m[1] - l))
- }
- return o(a)
- }
- }
- var bI = wo && 1 / Dr(new wo([, -0]))[1] == ce ? function (e) {
- return new wo(e)
- }
- : Ms;
- function Gf(e) {
- return function (o) {
- var a = Ge(o);
- return a == je ? ja(o) : a == Re ? RE(o) : kE(o, e(o))
- }
- }
- function ln(e, o, a, l, m, b, A, O) {
- var P = o & g;
- if (!P && typeof e != "function")
- throw new Tt(u);
- var $ = l ? l.length : 0;
- if ($ || (o &= ~(B | D),
- l = m = i),
- A = A === i ? A : Ve(ue(A), 0),
- O = O === i ? O : ue(O),
- $ -= m ? m.length : 0,
- o & D) {
- var F = l
- , z = m;
- l = m = i
- }
- var j = P ? i : _s(e)
- , Z = [e, o, a, l, m, F, z, b, A, O];
- if (j && VI(Z, j),
- e = Z[0],
- o = Z[1],
- a = Z[2],
- l = Z[3],
- m = Z[4],
- O = Z[9] = Z[9] === i ? P ? 0 : e.length : Ve(Z[9] - $, 0),
- !O && o & (T | N) && (o &= ~(T | N)),
- !o || o == y)
- var re = _I(e, o, a);
- else
- o == T || o == N ? re = wI(e, o, O) : (o == B || o == (y | B)) && !m.length ? re = vI(e, o, a, l) : re = oi.apply(i, Z);
- var fe = j ? Af : rd;
- return id(fe(re, Z), e, o)
- }
- function Jf(e, o, a, l) {
- return e === i || Ut(e, _o[a]) && !Ce.call(l, a) ? o : e
- }
- function Yf(e, o, a, l, m, b) {
- return Ne(e) && Ne(o) && (b.set(o, e),
- Qr(e, o, i, Yf, b),
- b.delete(o)),
- e
- }
- function CI(e) {
- return nr(e) ? i : e
- }
- function qf(e, o, a, l, m, b) {
- var A = a & v
- , O = e.length
- , P = o.length;
- if (O != P && !(A && P > O))
- return !1;
- var $ = b.get(e)
- , F = b.get(o);
- if ($ && F)
- return $ == o && F == e;
- var z = -1
- , j = !0
- , Z = a & I ? new Hn : i;
- for (b.set(e, o),
- b.set(o, e); ++z < O;) {
- var re = e[z]
- , fe = o[z];
- if (l)
- var ie = A ? l(fe, re, z, o, e, b) : l(re, fe, z, e, o, b);
- if (ie !== i) {
- if (ie)
- continue;
- j = !1;
- break
- }
- if (Z) {
- if (!$a(o, function (me, ye) {
- if (!zo(Z, ye) && (re === me || m(re, me, a, l, b)))
- return Z.push(ye)
- })) {
- j = !1;
- break
- }
- } else if (!(re === fe || m(re, fe, a, l, b))) {
- j = !1;
- break
- }
- }
- return b.delete(e),
- b.delete(o),
- j
- }
- function EI(e, o, a, l, m, b, A) {
- switch (a) {
- case It:
- if (e.byteLength != o.byteLength || e.byteOffset != o.byteOffset)
- return !1;
- e = e.buffer,
- o = o.buffer;
- case Ye:
- return !(e.byteLength != o.byteLength || !b(new Ur(e), new Ur(o)));
- case Te:
- case ot:
- case Jt:
- return Ut(+e, +o);
- case St:
- return e.name == o.name && e.message == o.message;
- case Je:
- case Rt:
- return e == o + "";
- case je:
- var O = ja;
- case Re:
- var P = l & v;
- if (O || (O = Dr),
- e.size != o.size && !P)
- return !1;
- var $ = A.get(e);
- if ($)
- return $ == o;
- l |= I,
- A.set(e, o);
- var F = qf(O(e), O(o), l, m, b, A);
- return A.delete(e),
- F;
- case on:
- if (Go)
- return Go.call(e) == Go.call(o)
- }
- return !1
- }
- function SI(e, o, a, l, m, b) {
- var A = a & v
- , O = gs(e)
- , P = O.length
- , $ = gs(o)
- , F = $.length;
- if (P != F && !A)
- return !1;
- for (var z = P; z--;) {
- var j = O[z];
- if (!(A ? j in o : Ce.call(o, j)))
- return !1
- }
- var Z = b.get(e)
- , re = b.get(o);
- if (Z && re)
- return Z == o && re == e;
- var fe = !0;
- b.set(e, o),
- b.set(o, e);
- for (var ie = A; ++z < P;) {
- j = O[z];
- var me = e[j]
- , ye = o[j];
- if (l)
- var mt = A ? l(ye, me, j, o, e, b) : l(me, ye, j, e, o, b);
- if (!(mt === i ? me === ye || m(me, ye, a, l, b) : mt)) {
- fe = !1;
- break
- }
- ie || (ie = j == "constructor")
- }
- if (fe && !ie) {
- var Xe = e.constructor
- , ht = o.constructor;
- Xe != ht && "constructor" in e && "constructor" in o && !(typeof Xe == "function" && Xe instanceof Xe && typeof ht == "function" && ht instanceof ht) && (fe = !1)
- }
- return b.delete(e),
- b.delete(o),
- fe
- }
- function cn(e) {
- return Ss(nd(e, i, fd), e + "")
- }
- function gs(e) {
- return gf(e, $e, vs)
- }
- function ys(e) {
- return gf(e, st, Zf)
- }
- var _s = Gr ? function (e) {
- return Gr.get(e)
- }
- : Ms;
- function si(e) {
- for (var o = e.name + "", a = vo[o], l = Ce.call(vo, o) ? a.length : 0; l--;) {
- var m = a[l]
- , b = m.func;
- if (b == null || b == e)
- return m.name
- }
- return o
- }
- function So(e) {
- var o = Ce.call(_, "placeholder") ? _ : e;
- return o.placeholder
- }
- function oe() {
- var e = _.iteratee || Ds;
- return e = e === Ds ? wf : e,
- arguments.length ? e(arguments[0], arguments[1]) : e
- }
- function li(e, o) {
- var a = e.__data__;
- return LI(o) ? a[typeof o == "string" ? "string" : "hash"] : a.map
- }
- function ws(e) {
- for (var o = $e(e), a = o.length; a--;) {
- var l = o[a]
- , m = e[l];
- o[a] = [l, m, ed(m)]
- }
- return o
- }
- function Kn(e, o) {
- var a = DE(e, o);
- return _f(a) ? a : i
- }
- function II(e) {
- var o = Ce.call(e, Un)
- , a = e[Un];
- try {
- e[Un] = i;
- var l = !0
- } catch { }
- var m = $r.call(e);
- return l && (o ? e[Un] = a : delete e[Un]),
- m
- }
- var vs = Ga ? function (e) {
- return e == null ? [] : (e = xe(e),
- bn(Ga(e), function (o) {
- return nf.call(e, o)
- }))
- }
- : Rs
- , Zf = Ga ? function (e) {
- for (var o = []; e;)
- Cn(o, vs(e)),
- e = zr(e);
- return o
- }
- : Rs
- , Ge = qe;
- (Ja && Ge(new Ja(new ArrayBuffer(1))) != It || Wo && Ge(new Wo) != je || Ya && Ge(Ya.resolve()) != $n || wo && Ge(new wo) != Re || jo && Ge(new jo) != H) && (Ge = function (e) {
- var o = qe(e)
- , a = o == rt ? e.constructor : i
- , l = a ? Gn(a) : "";
- if (l)
- switch (l) {
- case sS:
- return It;
- case lS:
- return je;
- case cS:
- return $n;
- case uS:
- return Re;
- case fS:
- return H
- }
- return o
- }
- );
- function xI(e, o, a) {
- for (var l = -1, m = a.length; ++l < m;) {
- var b = a[l]
- , A = b.size;
- switch (b.type) {
- case "drop":
- e += A;
- break;
- case "dropRight":
- o -= A;
- break;
- case "take":
- o = Ke(o, e + A);
- break;
- case "takeRight":
- e = Ve(e, o - A);
- break
- }
- }
- return {
- start: e,
- end: o
- }
- }
- function AI(e) {
- var o = e.match(BC);
- return o ? o[1].split(PC) : []
- }
- function Xf(e, o, a) {
- o = An(o, e);
- for (var l = -1, m = o.length, b = !1; ++l < m;) {
- var A = Zt(o[l]);
- if (!(b = e != null && a(e, A)))
- break;
- e = e[A]
- }
- return b || ++l != m ? b : (m = e == null ? 0 : e.length,
- !!m && hi(m) && un(A, m) && (le(e) || Jn(e)))
- }
- function TI(e) {
- var o = e.length
- , a = new e.constructor(o);
- return o && typeof e[0] == "string" && Ce.call(e, "index") && (a.index = e.index,
- a.input = e.input),
- a
- }
- function Qf(e) {
- return typeof e.constructor == "function" && !er(e) ? bo(zr(e)) : {}
- }
- function OI(e, o, a) {
- var l = e.constructor;
- switch (o) {
- case Ye:
- return ps(e);
- case Te:
- case ot:
- return new l(+e);
- case It:
- return dI(e, a);
- case fo:
- case va:
- case ba:
- case Ca:
- case Ea:
- case Sa:
- case Ia:
- case xa:
- case Aa:
- return Df(e, a);
- case je:
- return new l;
- case Jt:
- case Rt:
- return new l(e);
- case Je:
- return pI(e);
- case Re:
- return new l;
- case on:
- return mI(e)
- }
- }
- function kI(e, o) {
- var a = o.length;
- if (!a)
- return e;
- var l = a - 1;
- return o[l] = (a > 1 ? "& " : "") + o[l],
- o = o.join(a > 2 ? ", " : " "),
- e.replace(LC, `{
- /* [wrapped with ` + o + `] */
- `)
- }
- function NI(e) {
- return le(e) || Jn(e) || !!(of && e && e[of])
- }
- function un(e, o) {
- var a = typeof e;
- return o = o ?? ge,
- !!o && (a == "number" || a != "symbol" && HC.test(e)) && e > -1 && e % 1 == 0 && e < o
- }
- function Ze(e, o, a) {
- if (!Ne(a))
- return !1;
- var l = typeof o;
- return (l == "number" ? at(a) && un(o, a.length) : l == "string" && o in a) ? Ut(a[o], e) : !1
- }
- function bs(e, o) {
- if (le(e))
- return !1;
- var a = typeof e;
- return a == "number" || a == "symbol" || a == "boolean" || e == null || pt(e) ? !0 : TC.test(e) || !AC.test(e) || o != null && e in xe(o)
- }
- function LI(e) {
- var o = typeof e;
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? e !== "__proto__" : e === null
- }
- function Cs(e) {
- var o = si(e)
- , a = _[o];
- if (typeof a != "function" || !(o in he.prototype))
- return !1;
- if (e === a)
- return !0;
- var l = _s(a);
- return !!l && e === l[0]
- }
- function BI(e) {
- return !!Qu && Qu in e
- }
- var PI = Mr ? fn : $s;
- function er(e) {
- var o = e && e.constructor
- , a = typeof o == "function" && o.prototype || _o;
- return e === a
- }
- function ed(e) {
- return e === e && !Ne(e)
- }
- function td(e, o) {
- return function (a) {
- return a == null ? !1 : a[e] === o && (o !== i || e in xe(a))
- }
- }
- function DI(e) {
- var o = pi(e, function (l) {
- return a.size === w && a.clear(),
- l
- })
- , a = o.cache;
- return o
- }
- function VI(e, o) {
- var a = e[1]
- , l = o[1]
- , m = a | l
- , b = m < (y | g | M)
- , A = l == M && a == T || l == M && a == k && e[7].length <= o[8] || l == (M | k) && o[7].length <= o[8] && a == T;
- if (!(b || A))
- return e;
- l & y && (e[2] = o[2],
- m |= a & y ? 0 : S);
- var O = o[3];
- if (O) {
- var P = e[3];
- e[3] = P ? Mf(P, O, o[4]) : O,
- e[4] = P ? En(e[3], E) : o[4]
- }
- return O = o[5],
- O && (P = e[5],
- e[5] = P ? Rf(P, O, o[6]) : O,
- e[6] = P ? En(e[5], E) : o[6]),
- O = o[7],
- O && (e[7] = O),
- l & M && (e[8] = e[8] == null ? o[8] : Ke(e[8], o[8])),
- e[9] == null && (e[9] = o[9]),
- e[0] = o[0],
- e[1] = m,
- e
- }
- function MI(e) {
- var o = [];
- if (e != null)
- for (var a in xe(e))
- o.push(a);
- return o
- }
- function RI(e) {
- return $r.call(e)
- }
- function nd(e, o, a) {
- return o = Ve(o === i ? e.length - 1 : o, 0),
- function () {
- for (var l = arguments, m = -1, b = Ve(l.length - o, 0), A = V(b); ++m < b;)
- A[m] = l[o + m];
- m = -1;
- for (var O = V(o + 1); ++m < o;)
- O[m] = l[m];
- return O[o] = a(A),
- ut(e, this, O)
- }
- }
- function od(e, o) {
- return o.length < 2 ? e : jn(e, Nt(o, 0, -1))
- }
- function $I(e, o) {
- for (var a = e.length, l = Ke(o.length, a), m = it(e); l--;) {
- var b = o[l];
- e[l] = un(b, a) ? m[b] : i
- }
- return e
- }
- function Es(e, o) {
- if (!(o === "constructor" && typeof e[o] == "function") && o != "__proto__")
- return e[o]
- }
- var rd = ad(Af)
- , tr = eS || function (e, o) {
- return Ue.setTimeout(e, o)
- }
- , Ss = ad(lI);
- function id(e, o, a) {
- var l = o + "";
- return Ss(e, kI(l, FI(AI(l), a)))
- }
- function ad(e) {
- var o = 0
- , a = 0;
- return function () {
- var l = rS()
- , m = ne - (l - a);
- if (a = l,
- m > 0) {
- if (++o >= Q)
- return arguments[0]
- } else
- o = 0;
- return e.apply(i, arguments)
- }
- }
- function ci(e, o) {
- var a = -1
- , l = e.length
- , m = l - 1;
- for (o = o === i ? l : o; ++a < o;) {
- var b = as(a, m)
- , A = e[b];
- e[b] = e[a],
- e[a] = A
- }
- return e.length = o,
- e
- }
- var sd = DI(function (e) {
- var o = [];
- return e.charCodeAt(0) === 46 && o.push(""),
- e.replace(OC, function (a, l, m, b) {
- o.push(m ? b.replace(MC, "$1") : l || a)
- }),
- o
- });
- function Zt(e) {
- if (typeof e == "string" || pt(e))
- return e;
- var o = e + "";
- return o == "0" && 1 / e == -ce ? "-0" : o
- }
- function Gn(e) {
- if (e != null) {
- try {
- return Rr.call(e)
- } catch { }
- try {
- return e + ""
- } catch { }
- }
- return ""
- }
- function FI(e, o) {
- return At(G, function (a) {
- var l = "_." + a[0];
- o & a[1] && !Br(e, l) && e.push(l)
- }),
- e.sort()
- }
- function ld(e) {
- if (e instanceof he)
- return e.clone();
- var o = new Ot(e.__wrapped__, e.__chain__);
- return o.__actions__ = it(e.__actions__),
- o.__index__ = e.__index__,
- o.__values__ = e.__values__,
- o
- }
- function UI(e, o, a) {
- (a ? Ze(e, o, a) : o === i) ? o = 1 : o = Ve(ue(o), 0);
- var l = e == null ? 0 : e.length;
- if (!l || o < 1)
- return [];
- for (var m = 0, b = 0, A = V(jr(l / o)); m < l;)
- A[b++] = Nt(e, m, m += o);
- return A
- }
- function zI(e) {
- for (var o = -1, a = e == null ? 0 : e.length, l = 0, m = []; ++o < a;) {
- var b = e[o];
- b && (m[l++] = b)
- }
- return m
- }
- function HI() {
- var e = arguments.length;
- if (!e)
- return [];
- for (var o = V(e - 1), a = arguments[0], l = e; l--;)
- o[l - 1] = arguments[l];
- return Cn(le(a) ? it(a) : [a], ze(o, 1))
- }
- var WI = de(function (e, o) {
- return Be(e) ? Yo(e, ze(o, 1, Be, !0)) : []
- })
- , jI = de(function (e, o) {
- var a = Lt(o);
- return Be(a) && (a = i),
- Be(e) ? Yo(e, ze(o, 1, Be, !0), oe(a, 2)) : []
- })
- , KI = de(function (e, o) {
- var a = Lt(o);
- return Be(a) && (a = i),
- Be(e) ? Yo(e, ze(o, 1, Be, !0), i, a) : []
- });
- function GI(e, o, a) {
- var l = e == null ? 0 : e.length;
- return l ? (o = a || o === i ? 1 : ue(o),
- Nt(e, o < 0 ? 0 : o, l)) : []
- }
- function JI(e, o, a) {
- var l = e == null ? 0 : e.length;
- return l ? (o = a || o === i ? 1 : ue(o),
- o = l - o,
- Nt(e, 0, o < 0 ? 0 : o)) : []
- }
- function YI(e, o) {
- return e && e.length ? ti(e, oe(o, 3), !0, !0) : []
- }
- function qI(e, o) {
- return e && e.length ? ti(e, oe(o, 3), !0) : []
- }
- function ZI(e, o, a, l) {
- var m = e == null ? 0 : e.length;
- return m ? (a && typeof a != "number" && Ze(e, o, a) && (a = 0,
- l = m),
- HS(e, o, a, l)) : []
- }
- function cd(e, o, a) {
- var l = e == null ? 0 : e.length;
- if (!l)
- return -1;
- var m = a == null ? 0 : ue(a);
- return m < 0 && (m = Ve(l + m, 0)),
- Pr(e, oe(o, 3), m)
- }
- function ud(e, o, a) {
- var l = e == null ? 0 : e.length;
- if (!l)
- return -1;
- var m = l - 1;
- return a !== i && (m = ue(a),
- m = a < 0 ? Ve(l + m, 0) : Ke(m, l - 1)),
- Pr(e, oe(o, 3), m, !0)
- }
- function fd(e) {
- var o = e == null ? 0 : e.length;
- return o ? ze(e, 1) : []
- }
- function XI(e) {
- var o = e == null ? 0 : e.length;
- return o ? ze(e, ce) : []
- }
- function QI(e, o) {
- var a = e == null ? 0 : e.length;
- return a ? (o = o === i ? 1 : ue(o),
- ze(e, o)) : []
- }
- function ex(e) {
- for (var o = -1, a = e == null ? 0 : e.length, l = {}; ++o < a;) {
- var m = e[o];
- l[m[0]] = m[1]
- }
- return l
- }
- function pd(e) {
- return e && e.length ? e[0] : i
- }
- function tx(e, o, a) {
- var l = e == null ? 0 : e.length;
- if (!l)
- return -1;
- var m = a == null ? 0 : ue(a);
- return m < 0 && (m = Ve(l + m, 0)),
- mo(e, o, m)
- }
- function nx(e) {
- var o = e == null ? 0 : e.length;
- return o ? Nt(e, 0, -1) : []
- }
- var ox = de(function (e) {
- var o = ke(e, fs);
- return o.length && o[0] === e[0] ? ts(o) : []
- })
- , rx = de(function (e) {
- var o = Lt(e)
- , a = ke(e, fs);
- return o === Lt(a) ? o = i : a.pop(),
- a.length && a[0] === e[0] ? ts(a, oe(o, 2)) : []
- })
- , ix = de(function (e) {
- var o = Lt(e)
- , a = ke(e, fs);
- return o = typeof o == "function" ? o : i,
- o && a.pop(),
- a.length && a[0] === e[0] ? ts(a, i, o) : []
- });
- function ax(e, o) {
- return e == null ? "" : nS.call(e, o)
- }
- function Lt(e) {
- var o = e == null ? 0 : e.length;
- return o ? e[o - 1] : i
- }
- function sx(e, o, a) {
- var l = e == null ? 0 : e.length;
- if (!l)
- return -1;
- var m = l;
- return a !== i && (m = ue(a),
- m = m < 0 ? Ve(l + m, 0) : Ke(m, l - 1)),
- o === o ? FE(e, o, m) : Pr(e, ju, m, !0)
- }
- function lx(e, o) {
- return e && e.length ? Ef(e, ue(o)) : i
- }
- var cx = de(md);
- function md(e, o) {
- return e && e.length && o && o.length ? is(e, o) : e
- }
- function ux(e, o, a) {
- return e && e.length && o && o.length ? is(e, o, oe(a, 2)) : e
- }
- function fx(e, o, a) {
- return e && e.length && o && o.length ? is(e, o, i, a) : e
- }
- var dx = cn(function (e, o) {
- var a = e == null ? 0 : e.length
- , l = Za(e, o);
- return xf(e, ke(o, function (m) {
- return un(m, a) ? +m : m
- }).sort(Vf)),
- l
- });
- function px(e, o) {
- var a = [];
- if (!(e && e.length))
- return a;
- var l = -1
- , m = []
- , b = e.length;
- for (o = oe(o, 3); ++l < b;) {
- var A = e[l];
- o(A, l, e) && (a.push(A),
- m.push(l))
- }
- return xf(e, m),
- a
- }
- function Is(e) {
- return e == null ? e : aS.call(e)
- }
- function mx(e, o, a) {
- var l = e == null ? 0 : e.length;
- return l ? (a && typeof a != "number" && Ze(e, o, a) ? (o = 0,
- a = l) : (o = o == null ? 0 : ue(o),
- a = a === i ? l : ue(a)),
- Nt(e, o, a)) : []
- }
- function hx(e, o) {
- return ei(e, o)
- }
- function gx(e, o, a) {
- return ls(e, o, oe(a, 2))
- }
- function yx(e, o) {
- var a = e == null ? 0 : e.length;
- if (a) {
- var l = ei(e, o);
- if (l < a && Ut(e[l], o))
- return l
- }
- return -1
- }
- function _x(e, o) {
- return ei(e, o, !0)
- }
- function vx(e, o, a) {
- return ls(e, o, oe(a, 2), !0)
- }
- function bx(e, o) {
- var a = e == null ? 0 : e.length;
- if (a) {
- var l = ei(e, o, !0) - 1;
- if (Ut(e[l], o))
- return l
- }
- return -1
- }
- function Cx(e) {
- return e && e.length ? Tf(e) : []
- }
- function Ex(e, o) {
- return e && e.length ? Tf(e, oe(o, 2)) : []
- }
- function Sx(e) {
- var o = e == null ? 0 : e.length;
- return o ? Nt(e, 1, o) : []
- }
- function Ix(e, o, a) {
- return e && e.length ? (o = a || o === i ? 1 : ue(o),
- Nt(e, 0, o < 0 ? 0 : o)) : []
- }
- function xx(e, o, a) {
- var l = e == null ? 0 : e.length;
- return l ? (o = a || o === i ? 1 : ue(o),
- o = l - o,
- Nt(e, o < 0 ? 0 : o, l)) : []
- }
- function Ax(e, o) {
- return e && e.length ? ti(e, oe(o, 3), !1, !0) : []
- }
- function Tx(e, o) {
- return e && e.length ? ti(e, oe(o, 3)) : []
- }
- var Ox = de(function (e) {
- return xn(ze(e, 1, Be, !0))
- })
- , kx = de(function (e) {
- var o = Lt(e);
- return Be(o) && (o = i),
- xn(ze(e, 1, Be, !0), oe(o, 2))
- })
- , Nx = de(function (e) {
- var o = Lt(e);
- return o = typeof o == "function" ? o : i,
- xn(ze(e, 1, Be, !0), i, o)
- });
- function Lx(e) {
- return e && e.length ? xn(e) : []
- }
- function Bx(e, o) {
- return e && e.length ? xn(e, oe(o, 2)) : []
- }
- function Px(e, o) {
- return o = typeof o == "function" ? o : i,
- e && e.length ? xn(e, i, o) : []
- }
- function xs(e) {
- if (!(e && e.length))
- return [];
- var o = 0;
- return e = bn(e, function (a) {
- if (Be(a))
- return o = Ve(a.length, o),
- !0
- }),
- Ha(o, function (a) {
- return ke(e, Fa(a))
- })
- }
- function hd(e, o) {
- if (!(e && e.length))
- return [];
- var a = xs(e);
- return o == null ? a : ke(a, function (l) {
- return ut(o, i, l)
- })
- }
- var Dx = de(function (e, o) {
- return Be(e) ? Yo(e, o) : []
- })
- , Vx = de(function (e) {
- return us(bn(e, Be))
- })
- , Mx = de(function (e) {
- var o = Lt(e);
- return Be(o) && (o = i),
- us(bn(e, Be), oe(o, 2))
- })
- , Rx = de(function (e) {
- var o = Lt(e);
- return o = typeof o == "function" ? o : i,
- us(bn(e, Be), i, o)
- })
- , $x = de(xs);
- function Fx(e, o) {
- return Lf(e || [], o || [], Jo)
- }
- function Ux(e, o) {
- return Lf(e || [], o || [], Xo)
- }
- var zx = de(function (e) {
- var o = e.length
- , a = o > 1 ? e[o - 1] : i;
- return a = typeof a == "function" ? (e.pop(),
- a) : i,
- hd(e, a)
- });
- function gd(e) {
- var o = _(e);
- return o.__chain__ = !0,
- o
- }
- function Hx(e, o) {
- return o(e),
- e
- }
- function ui(e, o) {
- return o(e)
- }
- var Wx = cn(function (e) {
- var o = e.length
- , a = o ? e[0] : 0
- , l = this.__wrapped__
- , m = function (b) {
- return Za(b, e)
- };
- return o > 1 || this.__actions__.length || !(l instanceof he) || !un(a) ? this.thru(m) : (l = l.slice(a, +a + (o ? 1 : 0)),
- l.__actions__.push({
- func: ui,
- args: [m],
- thisArg: i
- }),
- new Ot(l, this.__chain__).thru(function (b) {
- return o && !b.length && b.push(i),
- b
- }))
- });
- function jx() {
- return gd(this)
- }
- function Kx() {
- return new Ot(this.value(), this.__chain__)
- }
- function Gx() {
- this.__values__ === i && (this.__values__ = kd(this.value()));
- var e = this.__index__ >= this.__values__.length
- , o = e ? i : this.__values__[this.__index__++];
- return {
- done: e,
- value: o
- }
- }
- function Jx() {
- return this
- }
- function Yx(e) {
- for (var o, a = this; a instanceof Yr;) {
- var l = ld(a);
- l.__index__ = 0,
- l.__values__ = i,
- o ? m.__wrapped__ = l : o = l;
- var m = l;
- a = a.__wrapped__
- }
- return m.__wrapped__ = e,
- o
- }
- function qx() {
- var e = this.__wrapped__;
- if (e instanceof he) {
- var o = e;
- return this.__actions__.length && (o = new he(this)),
- o = o.reverse(),
- o.__actions__.push({
- func: ui,
- args: [Is],
- thisArg: i
- }),
- new Ot(o, this.__chain__)
- }
- return this.thru(Is)
- }
- function Zx() {
- return Nf(this.__wrapped__, this.__actions__)
- }
- var Xx = ni(function (e, o, a) {
- Ce.call(e, a) ? ++e[a] : sn(e, a, 1)
- });
- function Qx(e, o, a) {
- var l = le(e) ? Hu : zS;
- return a && Ze(e, o, a) && (o = i),
- l(e, oe(o, 3))
- }
- function e2(e, o) {
- var a = le(e) ? bn : mf;
- return a(e, oe(o, 3))
- }
- var t2 = zf(cd)
- , n2 = zf(ud);
- function o2(e, o) {
- return ze(fi(e, o), 1)
- }
- function r2(e, o) {
- return ze(fi(e, o), ce)
- }
- function i2(e, o, a) {
- return a = a === i ? 1 : ue(a),
- ze(fi(e, o), a)
- }
- function yd(e, o) {
- var a = le(e) ? At : In;
- return a(e, oe(o, 3))
- }
- function _d(e, o) {
- var a = le(e) ? EE : pf;
- return a(e, oe(o, 3))
- }
- var a2 = ni(function (e, o, a) {
- Ce.call(e, a) ? e[a].push(o) : sn(e, a, [o])
- });
- function s2(e, o, a, l) {
- e = at(e) ? e : xo(e),
- a = a && !l ? ue(a) : 0;
- var m = e.length;
- return a < 0 && (a = Ve(m + a, 0)),
- gi(e) ? a <= m && e.indexOf(o, a) > -1 : !!m && mo(e, o, a) > -1
- }
- var l2 = de(function (e, o, a) {
- var l = -1
- , m = typeof o == "function"
- , b = at(e) ? V(e.length) : [];
- return In(e, function (A) {
- b[++l] = m ? ut(o, A, a) : qo(A, o, a)
- }),
- b
- })
- , c2 = ni(function (e, o, a) {
- sn(e, a, o)
- });
- function fi(e, o) {
- var a = le(e) ? ke : vf;
- return a(e, oe(o, 3))
- }
- function u2(e, o, a, l) {
- return e == null ? [] : (le(o) || (o = o == null ? [] : [o]),
- a = l ? i : a,
- le(a) || (a = a == null ? [] : [a]),
- Sf(e, o, a))
- }
- var f2 = ni(function (e, o, a) {
- e[a ? 0 : 1].push(o)
- }, function () {
- return [[], []]
- });
- function d2(e, o, a) {
- var l = le(e) ? Ra : Gu
- , m = arguments.length < 3;
- return l(e, oe(o, 4), a, m, In)
- }
- function p2(e, o, a) {
- var l = le(e) ? SE : Gu
- , m = arguments.length < 3;
- return l(e, oe(o, 4), a, m, pf)
- }
- function m2(e, o) {
- var a = le(e) ? bn : mf;
- return a(e, mi(oe(o, 3)))
- }
- function h2(e) {
- var o = le(e) ? cf : aI;
- return o(e)
- }
- function g2(e, o, a) {
- (a ? Ze(e, o, a) : o === i) ? o = 1 : o = ue(o);
- var l = le(e) ? MS : sI;
- return l(e, o)
- }
- function y2(e) {
- var o = le(e) ? RS : cI;
- return o(e)
- }
- function _2(e) {
- if (e == null)
- return 0;
- if (at(e))
- return gi(e) ? go(e) : e.length;
- var o = Ge(e);
- return o == je || o == Re ? e.size : os(e).length
- }
- function w2(e, o, a) {
- var l = le(e) ? $a : uI;
- return a && Ze(e, o, a) && (o = i),
- l(e, oe(o, 3))
- }
- var v2 = de(function (e, o) {
- if (e == null)
- return [];
- var a = o.length;
- return a > 1 && Ze(e, o[0], o[1]) ? o = [] : a > 2 && Ze(o[0], o[1], o[2]) && (o = [o[0]]),
- Sf(e, ze(o, 1), [])
- })
- , di = QE || function () {
- return Ue.Date.now()
- }
- ;
- function b2(e, o) {
- if (typeof o != "function")
- throw new Tt(u);
- return e = ue(e),
- function () {
- if (--e < 1)
- return o.apply(this, arguments)
- }
- }
- function wd(e, o, a) {
- return o = a ? i : o,
- o = e && o == null ? e.length : o,
- ln(e, M, i, i, i, i, o)
- }
- function vd(e, o) {
- var a;
- if (typeof o != "function")
- throw new Tt(u);
- return e = ue(e),
- function () {
- return --e > 0 && (a = o.apply(this, arguments)),
- e <= 1 && (o = i),
- a
- }
- }
- var As = de(function (e, o, a) {
- var l = y;
- if (a.length) {
- var m = En(a, So(As));
- l |= B
- }
- return ln(e, l, o, a, m)
- })
- , bd = de(function (e, o, a) {
- var l = y | g;
- if (a.length) {
- var m = En(a, So(bd));
- l |= B
- }
- return ln(o, l, e, a, m)
- });
- function Cd(e, o, a) {
- o = a ? i : o;
- var l = ln(e, T, i, i, i, i, i, o);
- return l.placeholder = Cd.placeholder,
- l
- }
- function Ed(e, o, a) {
- o = a ? i : o;
- var l = ln(e, N, i, i, i, i, i, o);
- return l.placeholder = Ed.placeholder,
- l
- }
- function Sd(e, o, a) {
- var l, m, b, A, O, P, $ = 0, F = !1, z = !1, j = !0;
- if (typeof e != "function")
- throw new Tt(u);
- o = Bt(o) || 0,
- Ne(a) && (F = !!a.leading,
- z = "maxWait" in a,
- b = z ? Ve(Bt(a.maxWait) || 0, o) : b,
- j = "trailing" in a ? !!a.trailing : j);
- function Z(Pe) {
- var zt = l
- , pn = m;
- return l = m = i,
- $ = Pe,
- A = e.apply(pn, zt),
- A
- }
- function re(Pe) {
- return $ = Pe,
- O = tr(me, o),
- F ? Z(Pe) : A
- }
- function fe(Pe) {
- var zt = Pe - P
- , pn = Pe - $
- , Hd = o - zt;
- return z ? Ke(Hd, b - pn) : Hd
- }
- function ie(Pe) {
- var zt = Pe - P
- , pn = Pe - $;
- return P === i || zt >= o || zt < 0 || z && pn >= b
- }
- function me() {
- var Pe = di();
- if (ie(Pe))
- return ye(Pe);
- O = tr(me, fe(Pe))
- }
- function ye(Pe) {
- return O = i,
- j && l ? Z(Pe) : (l = m = i,
- A)
- }
- function mt() {
- O !== i && Bf(O),
- $ = 0,
- l = P = m = O = i
- }
- function Xe() {
- return O === i ? A : ye(di())
- }
- function ht() {
- var Pe = di()
- , zt = ie(Pe);
- if (l = arguments,
- m = this,
- P = Pe,
- zt) {
- if (O === i)
- return re(P);
- if (z)
- return Bf(O),
- O = tr(me, o),
- Z(P)
- }
- return O === i && (O = tr(me, o)),
- A
- }
- return ht.cancel = mt,
- ht.flush = Xe,
- ht
- }
- var C2 = de(function (e, o) {
- return df(e, 1, o)
- })
- , E2 = de(function (e, o, a) {
- return df(e, Bt(o) || 0, a)
- });
- function S2(e) {
- return ln(e, U)
- }
- function pi(e, o) {
- if (typeof e != "function" || o != null && typeof o != "function")
- throw new Tt(u);
- var a = function () {
- var l = arguments
- , m = o ? o.apply(this, l) : l[0]
- , b = a.cache;
- if (b.has(m))
- return b.get(m);
- var A = e.apply(this, l);
- return a.cache = b.set(m, A) || b,
- A
- };
- return a.cache = new (pi.Cache || an),
- a
- }
- pi.Cache = an;
- function mi(e) {
- if (typeof e != "function")
- throw new Tt(u);
- return function () {
- var o = arguments;
- switch (o.length) {
- case 0:
- return !e.call(this);
- case 1:
- return !e.call(this, o[0]);
- case 2:
- return !e.call(this, o[0], o[1]);
- case 3:
- return !e.call(this, o[0], o[1], o[2])
- }
- return !e.apply(this, o)
- }
- }
- function I2(e) {
- return vd(2, e)
- }
- var x2 = fI(function (e, o) {
- o = o.length == 1 && le(o[0]) ? ke(o[0], ft(oe())) : ke(ze(o, 1), ft(oe()));
- var a = o.length;
- return de(function (l) {
- for (var m = -1, b = Ke(l.length, a); ++m < b;)
- l[m] = o[m].call(this, l[m]);
- return ut(e, this, l)
- })
- })
- , Ts = de(function (e, o) {
- var a = En(o, So(Ts));
- return ln(e, B, i, o, a)
- })
- , Id = de(function (e, o) {
- var a = En(o, So(Id));
- return ln(e, D, i, o, a)
- })
- , A2 = cn(function (e, o) {
- return ln(e, k, i, i, i, o)
- });
- function T2(e, o) {
- if (typeof e != "function")
- throw new Tt(u);
- return o = o === i ? o : ue(o),
- de(e, o)
- }
- function O2(e, o) {
- if (typeof e != "function")
- throw new Tt(u);
- return o = o == null ? 0 : Ve(ue(o), 0),
- de(function (a) {
- var l = a[o]
- , m = Tn(a, 0, o);
- return l && Cn(m, l),
- ut(e, this, m)
- })
- }
- function k2(e, o, a) {
- var l = !0
- , m = !0;
- if (typeof e != "function")
- throw new Tt(u);
- return Ne(a) && (l = "leading" in a ? !!a.leading : l,
- m = "trailing" in a ? !!a.trailing : m),
- Sd(e, o, {
- leading: l,
- maxWait: o,
- trailing: m
- })
- }
- function N2(e) {
- return wd(e, 1)
- }
- function L2(e, o) {
- return Ts(ds(o), e)
- }
- function B2() {
- if (!arguments.length)
- return [];
- var e = arguments[0];
- return le(e) ? e : [e]
- }
- function P2(e) {
- return kt(e, x)
- }
- function D2(e, o) {
- return o = typeof o == "function" ? o : i,
- kt(e, x, o)
- }
- function V2(e) {
- return kt(e, C | x)
- }
- function M2(e, o) {
- return o = typeof o == "function" ? o : i,
- kt(e, C | x, o)
- }
- function R2(e, o) {
- return o == null || ff(e, o, $e(o))
- }
- function Ut(e, o) {
- return e === o || e !== e && o !== o
- }
- var $2 = ai(es)
- , F2 = ai(function (e, o) {
- return e >= o
- })
- , Jn = yf(function () {
- return arguments
- }()) ? yf : function (e) {
- return Le(e) && Ce.call(e, "callee") && !nf.call(e, "callee")
- }
- , le = V.isArray
- , U2 = Mu ? ft(Mu) : JS;
- function at(e) {
- return e != null && hi(e.length) && !fn(e)
- }
- function Be(e) {
- return Le(e) && at(e)
- }
- function z2(e) {
- return e === !0 || e === !1 || Le(e) && qe(e) == Te
- }
- var On = tS || $s
- , H2 = Ru ? ft(Ru) : YS;
- function W2(e) {
- return Le(e) && e.nodeType === 1 && !nr(e)
- }
- function j2(e) {
- if (e == null)
- return !0;
- if (at(e) && (le(e) || typeof e == "string" || typeof e.splice == "function" || On(e) || Io(e) || Jn(e)))
- return !e.length;
- var o = Ge(e);
- if (o == je || o == Re)
- return !e.size;
- if (er(e))
- return !os(e).length;
- for (var a in e)
- if (Ce.call(e, a))
- return !1;
- return !0
- }
- function K2(e, o) {
- return Zo(e, o)
- }
- function G2(e, o, a) {
- a = typeof a == "function" ? a : i;
- var l = a ? a(e, o) : i;
- return l === i ? Zo(e, o, i, a) : !!l
- }
- function Os(e) {
- if (!Le(e))
- return !1;
- var o = qe(e);
- return o == St || o == Gt || typeof e.message == "string" && typeof e.name == "string" && !nr(e)
- }
- function J2(e) {
- return typeof e == "number" && rf(e)
- }
- function fn(e) {
- if (!Ne(e))
- return !1;
- var o = qe(e);
- return o == nn || o == wn || o == ae || o == Uo
- }
- function xd(e) {
- return typeof e == "number" && e == ue(e)
- }
- function hi(e) {
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ge
- }
- function Ne(e) {
- var o = typeof e;
- return e != null && (o == "object" || o == "function")
- }
- function Le(e) {
- return e != null && typeof e == "object"
- }
- var Ad = $u ? ft($u) : ZS;
- function Y2(e, o) {
- return e === o || ns(e, o, ws(o))
- }
- function q2(e, o, a) {
- return a = typeof a == "function" ? a : i,
- ns(e, o, ws(o), a)
- }
- function Z2(e) {
- return Td(e) && e != +e
- }
- function X2(e) {
- if (PI(e))
- throw new se(f);
- return _f(e)
- }
- function Q2(e) {
- return e === null
- }
- function eA(e) {
- return e == null
- }
- function Td(e) {
- return typeof e == "number" || Le(e) && qe(e) == Jt
- }
- function nr(e) {
- if (!Le(e) || qe(e) != rt)
- return !1;
- var o = zr(e);
- if (o === null)
- return !0;
- var a = Ce.call(o, "constructor") && o.constructor;
- return typeof a == "function" && a instanceof a && Rr.call(a) == YE
- }
- var ks = Fu ? ft(Fu) : XS;
- function tA(e) {
- return xd(e) && e >= -ge && e <= ge
- }
- var Od = Uu ? ft(Uu) : QS;
- function gi(e) {
- return typeof e == "string" || !le(e) && Le(e) && qe(e) == Rt
- }
- function pt(e) {
- return typeof e == "symbol" || Le(e) && qe(e) == on
- }
- var Io = zu ? ft(zu) : eI;
- function nA(e) {
- return e === i
- }
- function oA(e) {
- return Le(e) && Ge(e) == H
- }
- function rA(e) {
- return Le(e) && qe(e) == Se
- }
- var iA = ai(rs)
- , aA = ai(function (e, o) {
- return e <= o
- });
- function kd(e) {
- if (!e)
- return [];
- if (at(e))
- return gi(e) ? $t(e) : it(e);
- if (Ho && e[Ho])
- return ME(e[Ho]());
- var o = Ge(e)
- , a = o == je ? ja : o == Re ? Dr : xo;
- return a(e)
- }
- function dn(e) {
- if (!e)
- return e === 0 ? e : 0;
- if (e = Bt(e),
- e === ce || e === -ce) {
- var o = e < 0 ? -1 : 1;
- return o * Ie
- }
- return e === e ? e : 0
- }
- function ue(e) {
- var o = dn(e)
- , a = o % 1;
- return o === o ? a ? o - a : o : 0
- }
- function Nd(e) {
- return e ? Wn(ue(e), 0, Ee) : 0
- }
- function Bt(e) {
- if (typeof e == "number")
- return e;
- if (pt(e))
- return Fe;
- if (Ne(e)) {
- var o = typeof e.valueOf == "function" ? e.valueOf() : e;
- e = Ne(o) ? o + "" : o
- }
- if (typeof e != "string")
- return e === 0 ? e : +e;
- e = Ju(e);
- var a = FC.test(e);
- return a || zC.test(e) ? vE(e.slice(2), a ? 2 : 8) : $C.test(e) ? Fe : +e
- }
- function Ld(e) {
- return qt(e, st(e))
- }
- function sA(e) {
- return e ? Wn(ue(e), -ge, ge) : e === 0 ? e : 0
- }
- function be(e) {
- return e == null ? "" : dt(e)
- }
- var lA = Co(function (e, o) {
- if (er(o) || at(o)) {
- qt(o, $e(o), e);
- return
- }
- for (var a in o)
- Ce.call(o, a) && Jo(e, a, o[a])
- })
- , Bd = Co(function (e, o) {
- qt(o, st(o), e)
- })
- , yi = Co(function (e, o, a, l) {
- qt(o, st(o), e, l)
- })
- , cA = Co(function (e, o, a, l) {
- qt(o, $e(o), e, l)
- })
- , uA = cn(Za);
- function fA(e, o) {
- var a = bo(e);
- return o == null ? a : uf(a, o)
- }
- var dA = de(function (e, o) {
- e = xe(e);
- var a = -1
- , l = o.length
- , m = l > 2 ? o[2] : i;
- for (m && Ze(o[0], o[1], m) && (l = 1); ++a < l;)
- for (var b = o[a], A = st(b), O = -1, P = A.length; ++O < P;) {
- var $ = A[O]
- , F = e[$];
- (F === i || Ut(F, _o[$]) && !Ce.call(e, $)) && (e[$] = b[$])
- }
- return e
- })
- , pA = de(function (e) {
- return e.push(i, Yf),
- ut(Pd, i, e)
- });
- function mA(e, o) {
- return Wu(e, oe(o, 3), Yt)
- }
- function hA(e, o) {
- return Wu(e, oe(o, 3), Qa)
- }
- function gA(e, o) {
- return e == null ? e : Xa(e, oe(o, 3), st)
- }
- function yA(e, o) {
- return e == null ? e : hf(e, oe(o, 3), st)
- }
- function _A(e, o) {
- return e && Yt(e, oe(o, 3))
- }
- function wA(e, o) {
- return e && Qa(e, oe(o, 3))
- }
- function vA(e) {
- return e == null ? [] : Xr(e, $e(e))
- }
- function bA(e) {
- return e == null ? [] : Xr(e, st(e))
- }
- function Ns(e, o, a) {
- var l = e == null ? i : jn(e, o);
- return l === i ? a : l
- }
- function CA(e, o) {
- return e != null && Xf(e, o, WS)
- }
- function Ls(e, o) {
- return e != null && Xf(e, o, jS)
- }
- var EA = Wf(function (e, o, a) {
- o != null && typeof o.toString != "function" && (o = $r.call(o)),
- e[o] = a
- }, Ps(lt))
- , SA = Wf(function (e, o, a) {
- o != null && typeof o.toString != "function" && (o = $r.call(o)),
- Ce.call(e, o) ? e[o].push(a) : e[o] = [a]
- }, oe)
- , IA = de(qo);
- function $e(e) {
- return at(e) ? lf(e) : os(e)
- }
- function st(e) {
- return at(e) ? lf(e, !0) : tI(e)
- }
- function xA(e, o) {
- var a = {};
- return o = oe(o, 3),
- Yt(e, function (l, m, b) {
- sn(a, o(l, m, b), l)
- }),
- a
- }
- function AA(e, o) {
- var a = {};
- return o = oe(o, 3),
- Yt(e, function (l, m, b) {
- sn(a, m, o(l, m, b))
- }),
- a
- }
- var TA = Co(function (e, o, a) {
- Qr(e, o, a)
- })
- , Pd = Co(function (e, o, a, l) {
- Qr(e, o, a, l)
- })
- , OA = cn(function (e, o) {
- var a = {};
- if (e == null)
- return a;
- var l = !1;
- o = ke(o, function (b) {
- return b = An(b, e),
- l || (l = b.length > 1),
- b
- }),
- qt(e, ys(e), a),
- l && (a = kt(a, C | h | x, CI));
- for (var m = o.length; m--;)
- cs(a, o[m]);
- return a
- });
- function kA(e, o) {
- return Dd(e, mi(oe(o)))
- }
- var NA = cn(function (e, o) {
- return e == null ? {} : oI(e, o)
- });
- function Dd(e, o) {
- if (e == null)
- return {};
- var a = ke(ys(e), function (l) {
- return [l]
- });
- return o = oe(o),
- If(e, a, function (l, m) {
- return o(l, m[0])
- })
- }
- function LA(e, o, a) {
- o = An(o, e);
- var l = -1
- , m = o.length;
- for (m || (m = 1,
- e = i); ++l < m;) {
- var b = e == null ? i : e[Zt(o[l])];
- b === i && (l = m,
- b = a),
- e = fn(b) ? b.call(e) : b
- }
- return e
- }
- function BA(e, o, a) {
- return e == null ? e : Xo(e, o, a)
- }
- function PA(e, o, a, l) {
- return l = typeof l == "function" ? l : i,
- e == null ? e : Xo(e, o, a, l)
- }
- var Vd = Gf($e)
- , Md = Gf(st);
- function DA(e, o, a) {
- var l = le(e)
- , m = l || On(e) || Io(e);
- if (o = oe(o, 4),
- a == null) {
- var b = e && e.constructor;
- m ? a = l ? new b : [] : Ne(e) ? a = fn(b) ? bo(zr(e)) : {} : a = {}
- }
- return (m ? At : Yt)(e, function (A, O, P) {
- return o(a, A, O, P)
- }),
- a
- }
- function VA(e, o) {
- return e == null ? !0 : cs(e, o)
- }
- function MA(e, o, a) {
- return e == null ? e : kf(e, o, ds(a))
- }
- function RA(e, o, a, l) {
- return l = typeof l == "function" ? l : i,
- e == null ? e : kf(e, o, ds(a), l)
- }
- function xo(e) {
- return e == null ? [] : Wa(e, $e(e))
- }
- function $A(e) {
- return e == null ? [] : Wa(e, st(e))
- }
- function FA(e, o, a) {
- return a === i && (a = o,
- o = i),
- a !== i && (a = Bt(a),
- a = a === a ? a : 0),
- o !== i && (o = Bt(o),
- o = o === o ? o : 0),
- Wn(Bt(e), o, a)
- }
- function UA(e, o, a) {
- return o = dn(o),
- a === i ? (a = o,
- o = 0) : a = dn(a),
- e = Bt(e),
- KS(e, o, a)
- }
- function zA(e, o, a) {
- if (a && typeof a != "boolean" && Ze(e, o, a) && (o = a = i),
- a === i && (typeof o == "boolean" ? (a = o,
- o = i) : typeof e == "boolean" && (a = e,
- e = i)),
- e === i && o === i ? (e = 0,
- o = 1) : (e = dn(e),
- o === i ? (o = e,
- e = 0) : o = dn(o)),
- e > o) {
- var l = e;
- e = o,
- o = l
- }
- if (a || e % 1 || o % 1) {
- var m = af();
- return Ke(e + m * (o - e + wE("1e-" + ((m + "").length - 1))), o)
- }
- return as(e, o)
- }
- var HA = Eo(function (e, o, a) {
- return o = o.toLowerCase(),
- e + (a ? Rd(o) : o)
- });
- function Rd(e) {
- return Bs(be(e).toLowerCase())
- }
- function $d(e) {
- return e = be(e),
- e && e.replace(WC, LE).replace(cE, "")
- }
- function WA(e, o, a) {
- e = be(e),
- o = dt(o);
- var l = e.length;
- a = a === i ? l : Wn(ue(a), 0, l);
- var m = a;
- return a -= o.length,
- a >= 0 && e.slice(a, m) == o
- }
- function jA(e) {
- return e = be(e),
- e && SC.test(e) ? e.replace(mu, BE) : e
- }
- function KA(e) {
- return e = be(e),
- e && kC.test(e) ? e.replace(Ta, "\\$&") : e
- }
- var GA = Eo(function (e, o, a) {
- return e + (a ? "-" : "") + o.toLowerCase()
- })
- , JA = Eo(function (e, o, a) {
- return e + (a ? " " : "") + o.toLowerCase()
- })
- , YA = Uf("toLowerCase");
- function qA(e, o, a) {
- e = be(e),
- o = ue(o);
- var l = o ? go(e) : 0;
- if (!o || l >= o)
- return e;
- var m = (o - l) / 2;
- return ii(Kr(m), a) + e + ii(jr(m), a)
- }
- function ZA(e, o, a) {
- e = be(e),
- o = ue(o);
- var l = o ? go(e) : 0;
- return o && l < o ? e + ii(o - l, a) : e
- }
- function XA(e, o, a) {
- e = be(e),
- o = ue(o);
- var l = o ? go(e) : 0;
- return o && l < o ? ii(o - l, a) + e : e
- }
- function QA(e, o, a) {
- return a || o == null ? o = 0 : o && (o = +o),
- iS(be(e).replace(Oa, ""), o || 0)
- }
- function eT(e, o, a) {
- return (a ? Ze(e, o, a) : o === i) ? o = 1 : o = ue(o),
- ss(be(e), o)
- }
- function tT() {
- var e = arguments
- , o = be(e[0]);
- return e.length < 3 ? o : o.replace(e[1], e[2])
- }
- var nT = Eo(function (e, o, a) {
- return e + (a ? "_" : "") + o.toLowerCase()
- });
- function oT(e, o, a) {
- return a && typeof a != "number" && Ze(e, o, a) && (o = a = i),
- a = a === i ? Ee : a >>> 0,
- a ? (e = be(e),
- e && (typeof o == "string" || o != null && !ks(o)) && (o = dt(o),
- !o && ho(e)) ? Tn($t(e), 0, a) : e.split(o, a)) : []
- }
- var rT = Eo(function (e, o, a) {
- return e + (a ? " " : "") + Bs(o)
- });
- function iT(e, o, a) {
- return e = be(e),
- a = a == null ? 0 : Wn(ue(a), 0, e.length),
- o = dt(o),
- e.slice(a, a + o.length) == o
- }
- function aT(e, o, a) {
- var l = _.templateSettings;
- a && Ze(e, o, a) && (o = i),
- e = be(e),
- o = yi({}, o, l, Jf);
- var m = yi({}, o.imports, l.imports, Jf), b = $e(m), A = Wa(m, b), O, P, $ = 0, F = o.interpolate || kr, z = "__p += '", j = Ka((o.escape || kr).source + "|" + F.source + "|" + (F === hu ? RC : kr).source + "|" + (o.evaluate || kr).source + "|$", "g"), Z = "//# sourceURL=" + (Ce.call(o, "sourceURL") ? (o.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++mE + "]") + `
- `;
- e.replace(j, function (ie, me, ye, mt, Xe, ht) {
- return ye || (ye = mt),
- z += e.slice($, ht).replace(jC, PE),
- me && (O = !0,
- z += `' +
- __e(` + me + `) +
- '`),
- Xe && (P = !0,
- z += `';
- ` + Xe + `;
- __p += '`),
- ye && (z += `' +
- ((__t = (` + ye + `)) == null ? '' : __t) +
- '`),
- $ = ht + ie.length,
- ie
- }),
- z += `';
- `;
- var re = Ce.call(o, "variable") && o.variable;
- if (!re)
- z = `with (obj) {
- ` + z + `
- }
- `;
- else if (VC.test(re))
- throw new se(d);
- z = (P ? z.replace(vC, "") : z).replace(bC, "$1").replace(CC, "$1;"),
- z = "function(" + (re || "obj") + `) {
- ` + (re ? "" : `obj || (obj = {});
- `) + "var __t, __p = ''" + (O ? ", __e = _.escape" : "") + (P ? `, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- ` : `;
- `) + z + `return __p
- }`;
- var fe = Ud(function () {
- return ve(b, Z + "return " + z).apply(i, A)
- });
- if (fe.source = z,
- Os(fe))
- throw fe;
- return fe
- }
- function sT(e) {
- return be(e).toLowerCase()
- }
- function lT(e) {
- return be(e).toUpperCase()
- }
- function cT(e, o, a) {
- if (e = be(e),
- e && (a || o === i))
- return Ju(e);
- if (!e || !(o = dt(o)))
- return e;
- var l = $t(e)
- , m = $t(o)
- , b = Yu(l, m)
- , A = qu(l, m) + 1;
- return Tn(l, b, A).join("")
- }
- function uT(e, o, a) {
- if (e = be(e),
- e && (a || o === i))
- return e.slice(0, Xu(e) + 1);
- if (!e || !(o = dt(o)))
- return e;
- var l = $t(e)
- , m = qu(l, $t(o)) + 1;
- return Tn(l, 0, m).join("")
- }
- function fT(e, o, a) {
- if (e = be(e),
- e && (a || o === i))
- return e.replace(Oa, "");
- if (!e || !(o = dt(o)))
- return e;
- var l = $t(e)
- , m = Yu(l, $t(o));
- return Tn(l, m).join("")
- }
- function dT(e, o) {
- var a = X
- , l = W;
- if (Ne(o)) {
- var m = "separator" in o ? o.separator : m;
- a = "length" in o ? ue(o.length) : a,
- l = "omission" in o ? dt(o.omission) : l
- }
- e = be(e);
- var b = e.length;
- if (ho(e)) {
- var A = $t(e);
- b = A.length
- }
- if (a >= b)
- return e;
- var O = a - go(l);
- if (O < 1)
- return l;
- var P = A ? Tn(A, 0, O).join("") : e.slice(0, O);
- if (m === i)
- return P + l;
- if (A && (O += P.length - O),
- ks(m)) {
- if (e.slice(O).search(m)) {
- var $, F = P;
- for (m.global || (m = Ka(m.source, be(gu.exec(m)) + "g")),
- m.lastIndex = 0; $ = m.exec(F);)
- var z = $.index;
- P = P.slice(0, z === i ? O : z)
- }
- } else if (e.indexOf(dt(m), O) != O) {
- var j = P.lastIndexOf(m);
- j > -1 && (P = P.slice(0, j))
- }
- return P + l
- }
- function pT(e) {
- return e = be(e),
- e && EC.test(e) ? e.replace(pu, UE) : e
- }
- var mT = Eo(function (e, o, a) {
- return e + (a ? " " : "") + o.toUpperCase()
- })
- , Bs = Uf("toUpperCase");
- function Fd(e, o, a) {
- return e = be(e),
- o = a ? i : o,
- o === i ? VE(e) ? WE(e) : AE(e) : e.match(o) || []
- }
- var Ud = de(function (e, o) {
- try {
- return ut(e, i, o)
- } catch (a) {
- return Os(a) ? a : new se(a)
- }
- })
- , hT = cn(function (e, o) {
- return At(o, function (a) {
- a = Zt(a),
- sn(e, a, As(e[a], e))
- }),
- e
- });
- function gT(e) {
- var o = e == null ? 0 : e.length
- , a = oe();
- return e = o ? ke(e, function (l) {
- if (typeof l[1] != "function")
- throw new Tt(u);
- return [a(l[0]), l[1]]
- }) : [],
- de(function (l) {
- for (var m = -1; ++m < o;) {
- var b = e[m];
- if (ut(b[0], this, l))
- return ut(b[1], this, l)
- }
- })
- }
- function yT(e) {
- return US(kt(e, C))
- }
- function Ps(e) {
- return function () {
- return e
- }
- }
- function _T(e, o) {
- return e == null || e !== e ? o : e
- }
- var wT = Hf()
- , vT = Hf(!0);
- function lt(e) {
- return e
- }
- function Ds(e) {
- return wf(typeof e == "function" ? e : kt(e, C))
- }
- function bT(e) {
- return bf(kt(e, C))
- }
- function CT(e, o) {
- return Cf(e, kt(o, C))
- }
- var ET = de(function (e, o) {
- return function (a) {
- return qo(a, e, o)
- }
- })
- , ST = de(function (e, o) {
- return function (a) {
- return qo(e, a, o)
- }
- });
- function Vs(e, o, a) {
- var l = $e(o)
- , m = Xr(o, l);
- a == null && !(Ne(o) && (m.length || !l.length)) && (a = o,
- o = e,
- e = this,
- m = Xr(o, $e(o)));
- var b = !(Ne(a) && "chain" in a) || !!a.chain
- , A = fn(e);
- return At(m, function (O) {
- var P = o[O];
- e[O] = P,
- A && (e.prototype[O] = function () {
- var $ = this.__chain__;
- if (b || $) {
- var F = e(this.__wrapped__)
- , z = F.__actions__ = it(this.__actions__);
- return z.push({
- func: P,
- args: arguments,
- thisArg: e
- }),
- F.__chain__ = $,
- F
- }
- return P.apply(e, Cn([this.value()], arguments))
- }
- )
- }),
- e
- }
- function IT() {
- return Ue._ === this && (Ue._ = qE),
- this
- }
- function Ms() { }
- function xT(e) {
- return e = ue(e),
- de(function (o) {
- return Ef(o, e)
- })
- }
- var AT = ms(ke)
- , TT = ms(Hu)
- , OT = ms($a);
- function zd(e) {
- return bs(e) ? Fa(Zt(e)) : rI(e)
- }
- function kT(e) {
- return function (o) {
- return e == null ? i : jn(e, o)
- }
- }
- var NT = jf()
- , LT = jf(!0);
- function Rs() {
- return []
- }
- function $s() {
- return !1
- }
- function BT() {
- return {}
- }
- function PT() {
- return ""
- }
- function DT() {
- return !0
- }
- function VT(e, o) {
- if (e = ue(e),
- e < 1 || e > ge)
- return [];
- var a = Ee
- , l = Ke(e, Ee);
- o = oe(o),
- e -= Ee;
- for (var m = Ha(l, o); ++a < e;)
- o(a);
- return m
- }
- function MT(e) {
- return le(e) ? ke(e, Zt) : pt(e) ? [e] : it(sd(be(e)))
- }
- function RT(e) {
- var o = ++JE;
- return be(e) + o
- }
- var $T = ri(function (e, o) {
- return e + o
- }, 0)
- , FT = hs("ceil")
- , UT = ri(function (e, o) {
- return e / o
- }, 1)
- , zT = hs("floor");
- function HT(e) {
- return e && e.length ? Zr(e, lt, es) : i
- }
- function WT(e, o) {
- return e && e.length ? Zr(e, oe(o, 2), es) : i
- }
- function jT(e) {
- return Ku(e, lt)
- }
- function KT(e, o) {
- return Ku(e, oe(o, 2))
- }
- function GT(e) {
- return e && e.length ? Zr(e, lt, rs) : i
- }
- function JT(e, o) {
- return e && e.length ? Zr(e, oe(o, 2), rs) : i
- }
- var YT = ri(function (e, o) {
- return e * o
- }, 1)
- , qT = hs("round")
- , ZT = ri(function (e, o) {
- return e - o
- }, 0);
- function XT(e) {
- return e && e.length ? za(e, lt) : 0
- }
- function QT(e, o) {
- return e && e.length ? za(e, oe(o, 2)) : 0
- }
- return _.after = b2,
- _.ary = wd,
- _.assign = lA,
- _.assignIn = Bd,
- _.assignInWith = yi,
- _.assignWith = cA,
- _.at = uA,
- _.before = vd,
- _.bind = As,
- _.bindAll = hT,
- _.bindKey = bd,
- _.castArray = B2,
- _.chain = gd,
- _.chunk = UI,
- _.compact = zI,
- _.concat = HI,
- _.cond = gT,
- _.conforms = yT,
- _.constant = Ps,
- _.countBy = Xx,
- _.create = fA,
- _.curry = Cd,
- _.curryRight = Ed,
- _.debounce = Sd,
- _.defaults = dA,
- _.defaultsDeep = pA,
- _.defer = C2,
- _.delay = E2,
- _.difference = WI,
- _.differenceBy = jI,
- _.differenceWith = KI,
- _.drop = GI,
- _.dropRight = JI,
- _.dropRightWhile = YI,
- _.dropWhile = qI,
- _.fill = ZI,
- _.filter = e2,
- _.flatMap = o2,
- _.flatMapDeep = r2,
- _.flatMapDepth = i2,
- _.flatten = fd,
- _.flattenDeep = XI,
- _.flattenDepth = QI,
- _.flip = S2,
- _.flow = wT,
- _.flowRight = vT,
- _.fromPairs = ex,
- _.functions = vA,
- _.functionsIn = bA,
- _.groupBy = a2,
- _.initial = nx,
- _.intersection = ox,
- _.intersectionBy = rx,
- _.intersectionWith = ix,
- _.invert = EA,
- _.invertBy = SA,
- _.invokeMap = l2,
- _.iteratee = Ds,
- _.keyBy = c2,
- _.keys = $e,
- _.keysIn = st,
- _.map = fi,
- _.mapKeys = xA,
- _.mapValues = AA,
- _.matches = bT,
- _.matchesProperty = CT,
- _.memoize = pi,
- _.merge = TA,
- _.mergeWith = Pd,
- _.method = ET,
- _.methodOf = ST,
- _.mixin = Vs,
- _.negate = mi,
- _.nthArg = xT,
- _.omit = OA,
- _.omitBy = kA,
- _.once = I2,
- _.orderBy = u2,
- _.over = AT,
- _.overArgs = x2,
- _.overEvery = TT,
- _.overSome = OT,
- _.partial = Ts,
- _.partialRight = Id,
- _.partition = f2,
- _.pick = NA,
- _.pickBy = Dd,
- _.property = zd,
- _.propertyOf = kT,
- _.pull = cx,
- _.pullAll = md,
- _.pullAllBy = ux,
- _.pullAllWith = fx,
- _.pullAt = dx,
- _.range = NT,
- _.rangeRight = LT,
- _.rearg = A2,
- _.reject = m2,
- _.remove = px,
- _.rest = T2,
- _.reverse = Is,
- _.sampleSize = g2,
- _.set = BA,
- _.setWith = PA,
- _.shuffle = y2,
- _.slice = mx,
- _.sortBy = v2,
- _.sortedUniq = Cx,
- _.sortedUniqBy = Ex,
- _.split = oT,
- _.spread = O2,
- _.tail = Sx,
- _.take = Ix,
- _.takeRight = xx,
- _.takeRightWhile = Ax,
- _.takeWhile = Tx,
- _.tap = Hx,
- _.throttle = k2,
- _.thru = ui,
- _.toArray = kd,
- _.toPairs = Vd,
- _.toPairsIn = Md,
- _.toPath = MT,
- _.toPlainObject = Ld,
- _.transform = DA,
- _.unary = N2,
- _.union = Ox,
- _.unionBy = kx,
- _.unionWith = Nx,
- _.uniq = Lx,
- _.uniqBy = Bx,
- _.uniqWith = Px,
- _.unset = VA,
- _.unzip = xs,
- _.unzipWith = hd,
- _.update = MA,
- _.updateWith = RA,
- _.values = xo,
- _.valuesIn = $A,
- _.without = Dx,
- _.words = Fd,
- _.wrap = L2,
- _.xor = Vx,
- _.xorBy = Mx,
- _.xorWith = Rx,
- _.zip = $x,
- _.zipObject = Fx,
- _.zipObjectDeep = Ux,
- _.zipWith = zx,
- _.entries = Vd,
- _.entriesIn = Md,
- _.extend = Bd,
- _.extendWith = yi,
- Vs(_, _),
- _.add = $T,
- _.attempt = Ud,
- _.camelCase = HA,
- _.capitalize = Rd,
- _.ceil = FT,
- _.clamp = FA,
- _.clone = P2,
- _.cloneDeep = V2,
- _.cloneDeepWith = M2,
- _.cloneWith = D2,
- _.conformsTo = R2,
- _.deburr = $d,
- _.defaultTo = _T,
- _.divide = UT,
- _.endsWith = WA,
- _.eq = Ut,
- _.escape = jA,
- _.escapeRegExp = KA,
- _.every = Qx,
- _.find = t2,
- _.findIndex = cd,
- _.findKey = mA,
- _.findLast = n2,
- _.findLastIndex = ud,
- _.findLastKey = hA,
- _.floor = zT,
- _.forEach = yd,
- _.forEachRight = _d,
- _.forIn = gA,
- _.forInRight = yA,
- _.forOwn = _A,
- _.forOwnRight = wA,
- _.get = Ns,
- _.gt = $2,
- _.gte = F2,
- _.has = CA,
- _.hasIn = Ls,
- _.head = pd,
- _.identity = lt,
- _.includes = s2,
- _.indexOf = tx,
- _.inRange = UA,
- _.invoke = IA,
- _.isArguments = Jn,
- _.isArray = le,
- _.isArrayBuffer = U2,
- _.isArrayLike = at,
- _.isArrayLikeObject = Be,
- _.isBoolean = z2,
- _.isBuffer = On,
- _.isDate = H2,
- _.isElement = W2,
- _.isEmpty = j2,
- _.isEqual = K2,
- _.isEqualWith = G2,
- _.isError = Os,
- _.isFinite = J2,
- _.isFunction = fn,
- _.isInteger = xd,
- _.isLength = hi,
- _.isMap = Ad,
- _.isMatch = Y2,
- _.isMatchWith = q2,
- _.isNaN = Z2,
- _.isNative = X2,
- _.isNil = eA,
- _.isNull = Q2,
- _.isNumber = Td,
- _.isObject = Ne,
- _.isObjectLike = Le,
- _.isPlainObject = nr,
- _.isRegExp = ks,
- _.isSafeInteger = tA,
- _.isSet = Od,
- _.isString = gi,
- _.isSymbol = pt,
- _.isTypedArray = Io,
- _.isUndefined = nA,
- _.isWeakMap = oA,
- _.isWeakSet = rA,
- _.join = ax,
- _.kebabCase = GA,
- _.last = Lt,
- _.lastIndexOf = sx,
- _.lowerCase = JA,
- _.lowerFirst = YA,
- _.lt = iA,
- _.lte = aA,
- _.max = HT,
- _.maxBy = WT,
- _.mean = jT,
- _.meanBy = KT,
- _.min = GT,
- _.minBy = JT,
- _.stubArray = Rs,
- _.stubFalse = $s,
- _.stubObject = BT,
- _.stubString = PT,
- _.stubTrue = DT,
- _.multiply = YT,
- _.nth = lx,
- _.noConflict = IT,
- _.noop = Ms,
- _.now = di,
- _.pad = qA,
- _.padEnd = ZA,
- _.padStart = XA,
- _.parseInt = QA,
- _.random = zA,
- _.reduce = d2,
- _.reduceRight = p2,
- _.repeat = eT,
- _.replace = tT,
- _.result = LA,
- _.round = qT,
- _.runInContext = L,
- _.sample = h2,
- _.size = _2,
- _.snakeCase = nT,
- _.some = w2,
- _.sortedIndex = hx,
- _.sortedIndexBy = gx,
- _.sortedIndexOf = yx,
- _.sortedLastIndex = _x,
- _.sortedLastIndexBy = vx,
- _.sortedLastIndexOf = bx,
- _.startCase = rT,
- _.startsWith = iT,
- _.subtract = ZT,
- _.sum = XT,
- _.sumBy = QT,
- _.template = aT,
- _.times = VT,
- _.toFinite = dn,
- _.toInteger = ue,
- _.toLength = Nd,
- _.toLower = sT,
- _.toNumber = Bt,
- _.toSafeInteger = sA,
- _.toString = be,
- _.toUpper = lT,
- _.trim = cT,
- _.trimEnd = uT,
- _.trimStart = fT,
- _.truncate = dT,
- _.unescape = pT,
- _.uniqueId = RT,
- _.upperCase = mT,
- _.upperFirst = Bs,
- _.each = yd,
- _.eachRight = _d,
- _.first = pd,
- Vs(_, function () {
- var e = {};
- return Yt(_, function (o, a) {
- Ce.call(_.prototype, a) || (e[a] = o)
- }),
- e
- }(), {
- chain: !1
- }),
- _.VERSION = s,
- At(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function (e) {
- _[e].placeholder = _
- }),
- At(["drop", "take"], function (e, o) {
- he.prototype[e] = function (a) {
- a = a === i ? 1 : Ve(ue(a), 0);
- var l = this.__filtered__ && !o ? new he(this) : this.clone();
- return l.__filtered__ ? l.__takeCount__ = Ke(a, l.__takeCount__) : l.__views__.push({
- size: Ke(a, Ee),
- type: e + (l.__dir__ < 0 ? "Right" : "")
- }),
- l
- }
- ,
- he.prototype[e + "Right"] = function (a) {
- return this.reverse()[e](a).reverse()
- }
- }),
- At(["filter", "map", "takeWhile"], function (e, o) {
- var a = o + 1
- , l = a == we || a == K;
- he.prototype[e] = function (m) {
- var b = this.clone();
- return b.__iteratees__.push({
- iteratee: oe(m, 3),
- type: a
- }),
- b.__filtered__ = b.__filtered__ || l,
- b
- }
- }),
- At(["head", "last"], function (e, o) {
- var a = "take" + (o ? "Right" : "");
- he.prototype[e] = function () {
- return this[a](1).value()[0]
- }
- }),
- At(["initial", "tail"], function (e, o) {
- var a = "drop" + (o ? "" : "Right");
- he.prototype[e] = function () {
- return this.__filtered__ ? new he(this) : this[a](1)
- }
- }),
- he.prototype.compact = function () {
- return this.filter(lt)
- }
- ,
- he.prototype.find = function (e) {
- return this.filter(e).head()
- }
- ,
- he.prototype.findLast = function (e) {
- return this.reverse().find(e)
- }
- ,
- he.prototype.invokeMap = de(function (e, o) {
- return typeof e == "function" ? new he(this) : this.map(function (a) {
- return qo(a, e, o)
- })
- }),
- he.prototype.reject = function (e) {
- return this.filter(mi(oe(e)))
- }
- ,
- he.prototype.slice = function (e, o) {
- e = ue(e);
- var a = this;
- return a.__filtered__ && (e > 0 || o < 0) ? new he(a) : (e < 0 ? a = a.takeRight(-e) : e && (a = a.drop(e)),
- o !== i && (o = ue(o),
- a = o < 0 ? a.dropRight(-o) : a.take(o - e)),
- a)
- }
- ,
- he.prototype.takeRightWhile = function (e) {
- return this.reverse().takeWhile(e).reverse()
- }
- ,
- he.prototype.toArray = function () {
- return this.take(Ee)
- }
- ,
- Yt(he.prototype, function (e, o) {
- var a = /^(?:filter|find|map|reject)|While$/.test(o)
- , l = /^(?:head|last)$/.test(o)
- , m = _[l ? "take" + (o == "last" ? "Right" : "") : o]
- , b = l || /^find/.test(o);
- m && (_.prototype[o] = function () {
- var A = this.__wrapped__
- , O = l ? [1] : arguments
- , P = A instanceof he
- , $ = O[0]
- , F = P || le(A)
- , z = function (me) {
- var ye = m.apply(_, Cn([me], O));
- return l && j ? ye[0] : ye
- };
- F && a && typeof $ == "function" && $.length != 1 && (P = F = !1);
- var j = this.__chain__
- , Z = !!this.__actions__.length
- , re = b && !j
- , fe = P && !Z;
- if (!b && F) {
- A = fe ? A : new he(this);
- var ie = e.apply(A, O);
- return ie.__actions__.push({
- func: ui,
- args: [z],
- thisArg: i
- }),
- new Ot(ie, j)
- }
- return re && fe ? e.apply(this, O) : (ie = this.thru(z),
- re ? l ? ie.value()[0] : ie.value() : ie)
- }
- )
- }),
- At(["pop", "push", "shift", "sort", "splice", "unshift"], function (e) {
- var o = Vr[e]
- , a = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru"
- , l = /^(?:pop|shift)$/.test(e);
- _.prototype[e] = function () {
- var m = arguments;
- if (l && !this.__chain__) {
- var b = this.value();
- return o.apply(le(b) ? b : [], m)
- }
- return this[a](function (A) {
- return o.apply(le(A) ? A : [], m)
- })
- }
- }),
- Yt(he.prototype, function (e, o) {
- var a = _[o];
- if (a) {
- var l = a.name + "";
- Ce.call(vo, l) || (vo[l] = []),
- vo[l].push({
- name: o,
- func: a
- })
- }
- }),
- vo[oi(i, g).name] = [{
- name: "wrapper",
- func: i
- }],
- he.prototype.clone = dS,
- he.prototype.reverse = pS,
- he.prototype.value = mS,
- _.prototype.at = Wx,
- _.prototype.chain = jx,
- _.prototype.commit = Kx,
- _.prototype.next = Gx,
- _.prototype.plant = Yx,
- _.prototype.reverse = qx,
- _.prototype.toJSON = _.prototype.valueOf = _.prototype.value = Zx,
- _.prototype.first = _.prototype.head,
- Ho && (_.prototype[Ho] = Jx),
- _
- }
- , yo = jE();
- Fn ? ((Fn.exports = yo)._ = yo,
- Da._ = yo) : Ue._ = yo
- }
- ).call(Dn)
- }(Ir, Ir.exports);
- var ia = Ir.exports;
- const A_ = n.defineComponent({
- name: "awsui-信息流",
- props: {
- ...Fs
- },
- components: {
- ElMention: Zy,
- MapContainer: Bc
- },
- emits: ["change", "update:modelValue"],
- setup(t, r) {
- const i = n.getCurrentInstance()
- , s = i == null ? void 0 : i.appContext.config.globalProperties;
- s == null || s.awsuiTools,
- s == null || s.$store.state;
- const c = s == null ? void 0 : s.AWSPageContext.axiosBaseUrl
- , f = s == null ? void 0 : s.AWSPageContext.settingParam
- , u = s == null ? void 0 : s.awsuiaxios
- , { proxy: d } = i
- , p = n.toRef(t, "options")
- , w = n.inject("formApi")
- , E = n.inject("AWSFile");
- w.bus.$on(`saveDataAfter_${p.value.boDefId}`, (y, g) => {
- if (t.operation.display && p.value.boItemId) {
- let S = document.getElementById("_" + p.value.boItemId);
- S && (S.style.display = "block",
- I.headLayputConfig(S))
- }
- }
- ),
- console.log(t, "props"),
- w.data.getFormData();
- const C = n.inject("isPreview")
- , h = y => y.replace(/\n/g, "</br>")
- , x = n.computed({
- get: () => t.modelValue == null ? "" : t.modelValue,
- set: y => {
- var g;
- t.formDataExtend[t.boItemModel.fieldName].displayValue = y,
- w.data.setFormData((g = t.itemConfig) == null ? void 0 : g.fieldName, y),
- r.emit("update:modelValue", y),
- r.emit("change", y)
- }
- })
- , v = n.reactive({
- height: p.value.height,
- channelTypeValue: "",
- flowTopRef: n.ref(),
- flowBottomRef: n.ref(),
- linkAddressRef: n.ref(),
- enclosureUploadRef: n.ref(),
- listScrollRef: n.ref(),
- defaultPlaceholder: "",
- channelTypeList: [],
- linkAddress: "",
- isInputAddress: !1,
- fileList: [],
- uploadUrl: "",
- isHoverDelete: !1,
- isConverLoading: !1,
- converList: [],
- listHeight: "100%",
- trimOptions: [],
- termLoading: !1,
- commentValue: "",
- streamStartCount: 0,
- streamLimitPage: 30,
- scrollDisabled: !1,
- uploadSuccessFileList: [],
- formViewId: "",
- streamTitle: p.value.label,
- drawerVisible: !1,
- drawerSize: "70%",
- drawerTitle: "",
- objUrl: "",
- imgTotalType: ["gif", "jpg", "jpeg", "png", "bmp", "tif", "tiff", "jpeg2000", "psd", "svg", "dxf", "wmf", "emf", "eps", "tga", "pcx"],
- showImgPreview: !1,
- previewList: [],
- initialIndex: 0,
- videoList: [],
- showVideoPreview: !1,
- videoUrl: "",
- videoName: "",
- videoInfo: "",
- mapContainerRef: n.ref(),
- positionInfo: "",
- isLabelShow: t.itemConfig.showLabel,
- newInputValue: n.ref(''),//张耀 2025年4月18日14:32:32 新增
- newInputDateValue: n.ref(''),//张耀 2025年4月18日14:32:32 新增
- newSelectedOption: n.ref(''),//张耀 2025年4月18日14:32:32 新增
- newSelectedOptions: n.ref(''),
- newInputDateTitle: n.ref(''),
- newSelectedOptionTitle: n.ref(''),
- })
- , I = n.reactive({
- focusInput() {
- v.flowTopRef && (v.flowTopRef.style.borderColor = "#287FF4")
- },
- blurInput() {
- v.flowTopRef && (v.flowTopRef.style.borderColor = "#DCDFE6")
- },
- resetScroll() {
- var y;
- v.listScrollRef && ((y = v.listScrollRef) == null || y.setScrollTop(0))
- },
- submitInfo() {
- console.log("提交--");
- v.formFields.forEach(field => console.log(field.name, field.value));
- console.log("提交++");
- let LYcontent = x.value;
- v.formFields.forEach(field => {
- if (field.value) {
- let displayValue = field.value;
- // 仅处理"列表"类型字段
- if (field.type === '列表') {
- const option = field.list?.find(opt =>
- opt.VALUE.toString() === field.value.toString()
- );
- displayValue = option ? option.LABEL : `[未知选项] ${field.value}`;
- }
- LYcontent += `\n${field.comment}: ${displayValue}`;
- }
- })
- let y = [];
- if (v.fileList?.length > 0) {
- const regex = /([^.]+)$/;
- y = v.uploadSuccessFileList.map((N, B) => ({
- fileName: N.fileName,
- fileType: regex.exec(N.fileName)?.[1] || "",
- fileUUID: N.fileUUID,
- fileSize: N.fileSize,
- fileActName: decodeURI(v.fileList[B].name),
- createUser: p.value.userId
- }));
- }
- const g = {
- sourceId: p.value.sourceId || w.context.processApi.pageContext.processContext.boId,
- defaultTipTitle: p.value.defaultTipTitle,
- sourceDeptId: p.value.sourceDeptId,
- secretkey: "",
- parentSourceId: p.value.parentSourceId,
- boId: w.context.processApi.pageContext.processContext.boId,
- length: t.boItemModel.componentSetting.length,
- boDefId: p.value.boDefId,
- channelType: p.value.channelType,
- networkTeamId: p.value.networkTeamId,
- deleteAfterAslp: p.value.deleteAfterAslp,
- createAfterAslp: p.value.createAfterAslp,
- displayValue: t.formDataExtend[t.boItemModel.fieldName].displayValue || t.boItemModel.componentSetting.displayValue,
- boItemId: p.value.boItemId || t.boItemModel.componentSetting.boItemId,
- columnType: t.boItemModel.componentSetting.columnType,
- displayRule: t.boItemModel.componentSetting.displayRule,
- sourceType: p.value.sourceType,
- isNullable: t.boItemModel.componentSetting.isNullable,
- networkId: p.value.networkId,
- srcObjectContent: p.value.srcObjectContent
- };
- const S = {
- networkId: p.value.networkId,
- teamId: p.value.networkTeamId,
- streamType: 1,
- content: LYcontent,
- attachement: JSON.stringify(y),
- link: v.linkAddress,
- tags: "",
- sourceAppId: f.appId ?? "",
- sourceType: p.value.sourceType,
- sourceId: p.value.sourceId || w.context.processApi.pageContext.processContext.boId,
- channelType: v.channelTypeValue,
- configContent: JSON.stringify(g),
- srcObjectContent: JSON.stringify(p.value.srcObjectContent),
- address: v.positionInfo
- };
- console.log("请求参数:", { url: "jd?cmd=com.actionsoft.apps.network_save_stream&msaDefSvcId=crm&sid=" + f.sessionId, data: S });
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_stream&msaDefSvcId=crm&sid=" + f.sessionId,
- data: S
- }).then(T => {
- console.log("提交响应:", T);
- if (T.result === "ok") {
- x.value = v.linkAddress = "";
- v.fileList = v.uploadSuccessFileList = [];
- const N = T.data.stream;
- if (N.srcObjectContent) {
- try { N.srcObjectContent = JSON.parse(N.srcObjectContent); }
- catch (e) { console.error('[JSON解析错误]', e); }
- }
- if (N.channelType === "待办") {
- N._needEditButton = true;
- N._onEdit = function () {
- console.log('触发编辑操作:', this.id);
- }.bind(N);
- }
- v.converList.unshift(N);
- I.resetScroll();
- setTimeout(() => {
- // 1. 获取列表父容器
- const listContainer = document.querySelector('.list-render');
- if (!listContainer) {
- console.error('[错误] 未找到.list-render容器');
- return;
- }
- // 2. 遍历所有.render-item
- const items = listContainer.querySelectorAll('.render-item');
- console.log('[调试] 列表项数量:', items.length);
- items.forEach((itemEl, index) => {
- const itemData = v.converList[index];
- if (!itemData || !itemData._needEditButton) return;
- // 3. 定位.render-footer
- const renderFooter = itemEl.querySelector('.render-footer');
- if (!renderFooter) {
- console.error(`[错误] 第${index}项缺少.render-footer`);
- return;
- }
- // 4. 防止重复添加
- if (renderFooter.querySelector('.dynamic-edit-btn')) return;
- // 5. 创建按钮
- const btn = document.createElement('button');
- btn.className = 'dynamic-edit-btn';
- btn.innerHTML = '完成';
- btn.style.cssText = `
- padding: 6px 12px;
- margin: 5px 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- position: relative;
- z-index: 9999;
- `;
- // 6. 事件绑定
- btn.addEventListener('click', (e) => {
- e.stopPropagation();
- if (itemData._onEdit) {
- itemData._onEdit();
- }
- btn.style.disabled = true
- const modal = document.createElement('div');
- modal.className = 'dynamic-edit-modal';
- modal.innerHTML = `
- <div class="modal-content" style="
- background: white;
- padding: 24px;
- border-radius: 8px;
- width: 400px;
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- ">
- <div style="
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- ">
- <h3 style="margin: 0; color: #333;">完成信息</h3>
- <button class="close-btn" style="
- background: none;
- border: none;
- font-size: 24px;
- cursor: pointer;
- padding: 0;
- ">×</button>
- </div>
- <div style="margin-bottom:16px;">
- <label style="display:block;margin-bottom:8px;color:#666;font-size:14px;">
- 选择联系人
- </label>
- <select id="contactSelect" style="width:96.5%;padding:8px 12px;border:1px solid #ddd;border-radius:4px;">
- <option value="">请选择联系人</option>
- <!-- 动态填充选项 -->
- </select>
- </div>
- <div style="margin-bottom:16px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">完成日期</label>
- <input type="date" id="finishDateInput"
- style="
- width: 90%;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- font-size: 14px;
- ">
- </div>
- <div style="margin-bottom:24px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">完成内容</label>
- <textarea id="finishInfoArea"
- style="
- width: 90%;
- height: 80px;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- resize: vertical;
- font-family: inherit;
- "></textarea>
- </div>
- <button class="save-btn" style="
- width: 100%;
- padding: 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
- transition: opacity 0.2s;
- ">提交</button>
- </div>
- `;
- modal.style.cssText = `
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 10000;
- `;
- async function loadContacts() {
- try {
- const res = await u.post({
- url: "jd?cmd= ",
- data: {}
- });
- const contactSelect = modal.querySelector('#contactSelect');
- res.data.forEach(contact => {
- const option = document.createElement('option');
- option.value = contact.id;
- option.textContent = contact.name;
- contactSelect.appendChild(option);
- });
- } catch (error) {
- console.error('加载联系人失败:', error);
- d.$message.error('无法加载联系人列表');
- }
- }
- document.body.appendChild(modal);
- loadContacts();
- // 关闭逻辑
- const closeBtn = modal.querySelector('.close-btn');
- closeBtn.addEventListener('click', () => {
- document.body.removeChild(modal);
- });
- // 保存逻辑
- const saveBtn = modal.querySelector('.save-btn');
- saveBtn.addEventListener('click', () => {
- const postData = {
- streamId: itemData.id,
- commentContent: modal.querySelector('#finishInfoArea').value,
- commentType: 3,
- finishDate: modal.querySelector('#finishDateInput').value,
- teamId: itemData.teamId,
- sourceAppId: itemData.sourceAppId,
- sourceType: itemData.sourceType,
- sourceId: itemData.sourceId
- };
- const finishDate = modal.querySelector('#finishDateInput').value;
- const finishContent = modal.querySelector('#finishInfoArea').value;
- const contact = modal.querySelector('#contactSelect').value;
- const contactName = modal.querySelector('#contactSelect').options[contactSelect.selectedIndex].text;
- const combinedContent = `${finishContent}\n完成时间:${finishDate}\n完成人:${contactName}`;
- // 调用第一个保存接口
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_streamcomment_source&sid=" + f.sessionId,
- data: {
- streamId: itemData.id,
- commentContent: combinedContent, // 使用拼接后内容
- commentType: 3,
- }
- }).then(res => {
- if (res.result === 'ok') {
- // 调用第二个日志接口
- return u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_NetworkSave&sid=" + f.sessionId,
- data: {
- boDefName: w.context.processApi.pageContext.processContext.boDefName,
- boId: w.context.processApi.pageContext.processContext.boId,
- data: JSON.stringify({
- CONTENT: postData.commentContent,
- FINISH_DATE: postData.finishDate
- }),
- streamId: postData.streamId,
- commentType: "完成信息"
- }
- });
- }
- throw new Error('第一个接口保存失败');
- }).then(logRes => {
- if (logRes.result === 'ok') {
- document.body.removeChild(modal);
- // 刷新评论列表
- I.getStreamOneInfo(itemData.id);
- d.$message.success('提交成功');
- }
- }).catch(err => {
- d.$message.error('提交失败: ' + (err.message || '未知错误'));
- console.error('保存失败:', err);
- });
- });
- });
- // 7. 插入到容器底部
- renderFooter.prepend(btn);
- console.log(`[成功] 第${index}项按钮已插入`);
- });
- }, 800); // 确保DOM渲染完成
- const udf = v.formFields.reduce((acc, field) => {
- if (field.value) {
- acc[field.name.toUpperCase()] = field.value;
- acc[field.name.toUpperCase() + '_TITLE'] = field.comment;
- if (field.type === '列表') {
- acc[field.name.toUpperCase() + '_TEXT'] = v.newSelectedOptions.find(item => item.value === field.value)?.label;
- }
- }
- return acc;
- }, {});
- udf.CONTENT=LYcontent;
-
- console.log("udf---", JSON.stringify(udf));
- u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_NetworkSave&sid=" + f.sessionId,
- data: {
- boDefName: w.context.processApi.pageContext.processContext.boDefName,
- boId: w.context.processApi.pageContext.processContext.boId,
- data: JSON.stringify(udf),
- streamId: T.data.stream.id,
- commentType: "0"
- }
- }).then(rd => {
- console.log("记录响应:", rd);
- v.formFields.forEach(field => {
- field.value = '';
- const input = document.querySelector(`input[name="${field.name}"]`);
- const select = document.querySelector(`select[name="${field.name}"]`);
- if (input) input.value = '';
- if (select) select.value = '';
- });
- v.newInputDateValue = '';
- v.newSelectedOption = '';
- v.newInputDateTitle = '';
- v.newSelectedOptionTitle = '';
- v.linkAddress = '';
- v.positionInfo = '';
- v.newSelectedOptions = [];
- d.$message.success('提交成功');
- }).catch(err => {
- console.error('[记录错误]', err);
- d.$message.error(`记录失败: ${err.message || '未知错误'}`);
- });
- } else {
- console.error('[提交错误]', T);
- d.$message.error(T.msg || '提交失败');
- }
- }).catch(err => {
- console.error('[提交错误]', err);
- d.$message.error(`提交失败: ${err.message || '未知错误'}`);
- });
- }
- ,
- loadData() {
- v.scrollDisabled = !0,
- console.log("滚动加载"),
- p.value.sourceId && p.value.sourceId != "" && !C && !(s != null && s.isDesign) && I.getSourceList(p.value.sourceId)
- },
- getSourceList(y) {
- v.isConverLoading = !0;
- let g = {
- sourceId: y == "" ? w.context.processApi.pageContext.processContext.boId : y, // 数据表ID
- start: v.streamStartCount,
- limit: v.streamLimitPage
- };
- console.log("数据加载1111");
- u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_network_perm&sid=" + f.sessionId,
- data: {}
- }).then(perm => {
- console.log(perm,567765);
- if (perm.result == "ok" && perm.data && perm.data.length > 0) {
- g.sourceTypes = perm.data+","+p.value.sourceType;
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_load_stream_by_sourceAndType&msaDefSvcId=crm&sid=" + f.sessionId,
- data: g
- }).then(S => {
-
- if (S.result == "ok") {
- // 核心数据存储操作(添加按钮标识)
- v.converList = v.converList.concat(S.data.page.list.map((T, N) => {
- T.srcObjectContent && (T.srcObjectContent = JSON.parse(T.srcObjectContent));
- if (T.channelType === "待办") {
- T._needEditButton = true;
- T._onEdit = function () {
- console.log('触发编辑操作:', this.id);
- // 这里添加实际业务逻辑
- }.bind(T);
- }
- return T;
- }));
- // 分页逻辑
- if (S.data.page.pageCount < S.data.page.end) {
- v.scrollDisabled = !0;
- } else {
- v.streamStartCount = v.streamStartCount + v.streamLimitPage;
- v.scrollDisabled = !1;
- }
- // 初始化状态
- v.converList.forEach(T => {
- T.isHover = !1;
- T.isExpand = !1;
- T.commentList && T.commentList.length > 0 && T.commentList.forEach(N => {
- N.isHover = !1;
- N.isExpand = !1;
- });
- });
- setTimeout(() => {
- // 1. 获取列表父容器
- const listContainer = document.querySelector('.list-render');
- if (!listContainer) {
- console.error('[错误] 未找到.list-render容器');
- return;
- }
- // 2. 遍历所有.render-item
- const items = listContainer.querySelectorAll('.render-item');
- console.log('[调试] 列表项数量:', items.length);
- items.forEach((itemEl, index) => {
- const itemData = v.converList[index];
- if (!itemData || !itemData._needEditButton) return;
- // 3. 定位.render-footer
- const renderFooter = itemEl.querySelector('.render-footer');
- if (!renderFooter) {
- console.error(`[错误] 第${index}项缺少.render-footer`);
- return;
- }
- // 4. 防止重复添加
- if (renderFooter.querySelector('.dynamic-edit-btn')) return;
- // 5. 创建按钮
- const btn = document.createElement('button');
- btn.className = 'dynamic-edit-btn';
- btn.innerHTML = '完成';
- btn.style.cssText = `
- padding: 6px 12px;
- margin: 5px 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- position: relative;
- z-index: 9999;
- `;
- // 6. 事件绑定
- btn.addEventListener('click', (e) => {
- e.stopPropagation();
- if (itemData._onEdit) {
- itemData._onEdit();
- }
-
- const modal = document.createElement('div');
- modal.className = 'dynamic-edit-modal';
- modal.innerHTML = `
- <div class="modal-content" style="
- background: white;
- padding: 24px;
- border-radius: 8px;
- width: 400px;
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- ">
- <div style="
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- ">
- <h3 style="margin: 0; color: #333;">完成信息</h3>
- <button class="close-btn" style="
- background: none;
- border: none;
- font-size: 24px;
- cursor: pointer;
- padding: 0;
- ">×</button>
- </div>
- <div style="margin-bottom:16px;">
- <label style="display:block;margin-bottom:8px;color:#666;font-size:14px;">
- 选择联系人
- </label>
- <select id="contactSelect" style="width:96.5%;padding:8px 12px;border:1px solid #ddd;border-radius:4px;">
- <option value="">请选择联系人</option>
- <!-- 动态填充选项 -->
- </select>
- </div>
- <div style="margin-bottom:16px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">完成日期</label>
- <input type="date" id="finishDateInput"
- style="
- width: 90%;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- font-size: 14px;
- ">
- </div>
- <div style="margin-bottom:24px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">完成内容</label>
- <textarea id="finishInfoArea"
- style="
- width: 90%;
- height: 80px;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- resize: vertical;
- font-family: inherit;
- "></textarea>
- </div>
- <button class="save-btn" style="
- width: 100%;
- padding: 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
- transition: opacity 0.2s;
- ">提交</button>
- </div>
- `;
- modal.style.cssText = `
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 10000;
- `;
- async function loadContacts() {
- try {
- const res = await u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_network_contacts&sid="+f.sessionId,
- data: {}
- });
- const contactSelect = modal.querySelector('#contactSelect');
- res.data.forEach(contact => {
- const option = document.createElement('option');
- option.value = contact.VALUE;
- option.textContent = contact.LABEL;
- contactSelect.appendChild(option);
- });
- } catch (error) {
- console.error('加载联系人失败:', error);
- d.$message.error('无法加载联系人列表');
- }
- }
- document.body.appendChild(modal);
- loadContacts();
- // 关闭逻辑
- const closeBtn = modal.querySelector('.close-btn');
- closeBtn.addEventListener('click', () => {
- document.body.removeChild(modal);
- });
- // 保存逻辑
- const saveBtn = modal.querySelector('.save-btn');
- saveBtn.addEventListener('click', () => {
- const postData = {
- streamId: itemData.id,
- commentContent: modal.querySelector('#finishInfoArea').value,
- commentType: 3,
- finishDate: modal.querySelector('#finishDateInput').value,
- contact:modal.querySelector('#contactSelect').value,
- contactName: modal.querySelector('#contactSelect').options[contactSelect.selectedIndex].text,
- teamId: itemData.teamId,
- sourceAppId: itemData.sourceAppId,
- sourceType: itemData.sourceType,
- sourceId: itemData.sourceId
- };
- const finishDate = modal.querySelector('#finishDateInput').value;
- const finishContent = modal.querySelector('#finishInfoArea').value;
- const contact = modal.querySelector('#contactSelect').value;
- const contactName = modal.querySelector('#contactSelect').options[contactSelect.selectedIndex].text;
- const combinedContent = `${finishContent}\n完成时间:${finishDate}\n完成人:${contactName}`;
- // 调用第一个保存接口
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_streamcomment_source&sid=" + f.sessionId,
- data: {
- streamId: itemData.id,
- commentContent: combinedContent, // 使用拼接后内容
- commentType: 3,
- }
- }).then(res => {
- if (res.result === 'ok') {
- // 调用第二个日志接口
- return u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_NetworkSave&sid=" + f.sessionId,
- data: {
- boDefName: w.context.processApi.pageContext.processContext.boDefName,
- boId: w.context.processApi.pageContext.processContext.boId,
- data: JSON.stringify({
- CONTENT: postData.commentContent,
- FINISH_DATE: postData.finishDate,
- CONTACT:postData.contact,
- CONTACT_NAME: postData.contactName
- }),
- streamId: postData.streamId,
- commentType: "完成信息"
- }
- });
- }
- throw new Error('第一个接口保存失败');
- }).then(logRes => {
- if (logRes.result === 'ok') {
- document.body.removeChild(modal);
- // 刷新评论列表
- I.getStreamOneInfo(itemData.id);
- d.$message.success('提交成功');
- }
- }).catch(err => {
- d.$message.error('提交失败: ' + (err.message || '未知错误'));
- console.error('保存失败:', err);
- });
- });
- });
- // 7. 插入到容器底部
- renderFooter.prepend(btn);
- console.log(`[成功] 第${index}项按钮已插入`);
- });
- }, 800); // 确保DOM渲染完成
- v.isConverLoading = !1;
- v.flowTopRef && v.flowBottomRef && (v.listHeight = v.height - (v.flowTopRef.clientHeight + v.flowBottomRef.clientHeight) - 20);
- }
- });
- } else if (f.appId.indexOf("donenow_") == -1) {
- // 另一个数据源分支的相同处理
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_load_stream_by_source&msaDefSvcId=crm&sid=" + f.sessionId,
- data: g
- }).then(S => {
- console.log(S, "res9901");
- if (S.result == "ok") {
- // 核心数据存储操作(添加按钮标识)
- v.converList = v.converList.concat(S.data.page.list.map((T, N) => {
- T.srcObjectContent && (T.srcObjectContent = JSON.parse(T.srcObjectContent));
- // 新增待办类型判断
- if (T.channelType === "待办") {
- T._needEditButton = true;
- T._onEdit = function () {
- console.log('触发编辑操作:', this.id);
- // 这里添加实际业务逻辑
- }.bind(T);
- }
- return T;
- }));
- // 分页逻辑
- if (S.data.page.pageCount < S.data.page.end) {
- v.scrollDisabled = !0;
- } else {
- v.streamStartCount = v.streamStartCount + v.streamLimitPage;
- v.scrollDisabled = !1;
- }
- // 初始化状态
- v.converList.forEach(T => {
- T.isHover = !1;
- T.isExpand = !1;
- T.commentList && T.commentList.length > 0 && T.commentList.forEach(N => {
- N.isHover = !1;
- N.isExpand = !1;
- });
- });
- setTimeout(() => {
- // 1. 获取列表父容器
- const listContainer = document.querySelector('.list-render');
- if (!listContainer) {
- console.error('[错误] 未找到.list-render容器');
- return;
- }
- // 2. 遍历所有.render-item
- const items = listContainer.querySelectorAll('.render-item');
- console.log('[调试] 列表项数量:', items.length);
- items.forEach((itemEl, index) => {
- const itemData = v.converList[index];
- if (!itemData || !itemData._needEditButton) return;
- // 3. 定位.render-footer
- const renderFooter = itemEl.querySelector('.render-footer');
- if (!renderFooter) {
- console.error(`[错误] 第${index}项缺少.render-footer`);
- return;
- }
- // 4. 防止重复添加
- if (renderFooter.querySelector('.dynamic-edit-btn')) return;
- // 5. 创建按钮
- const btn = document.createElement('button');
- btn.className = 'dynamic-edit-btn';
- btn.innerHTML = '完成';
- btn.style.cssText = `
- padding: 6px 12px;
- margin: 5px 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- position: relative;
- z-index: 9999;
- `;
- // 6. 事件绑定
- btn.addEventListener('click', (e) => {
- e.stopPropagation();
- if (itemData._onEdit) {
- itemData._onEdit();
- }
- const modal = document.createElement('div');
- modal.className = 'dynamic-edit-modal';
- modal.innerHTML = `
- <div class="modal-content" style="
- background: white;
- padding: 24px;
- border-radius: 8px;
- width: 400px;
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- ">
- <div style="
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- ">
- <h3 style="margin: 0; color: #333;">编辑内容</h3>
- <button class="close-btn" style="
- background: none;
- border: none;
- font-size: 24px;
- cursor: pointer;
- padding: 0;
- ">×</button>
- </div>
- <div style="margin-bottom: 16px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">日期选择</label>
- <input type="date" style="
- width: 90%;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- font-size: 14px;
- ">
- </div>
- <div style="margin-bottom: 24px;">
- <label style="
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-size: 14px;
- ">完成信息</label>
- <textarea style="
- width: 90%;
- height: 80px;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- resize: vertical;
- font-family: inherit;
- "></textarea>
- </div>
- <button class="save-btn" style="
- width: 100%;
- padding: 10px;
- background: #1890ff !important;
- color: white !important;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
- transition: opacity 0.2s;
- ">提交</button>
- </div>
- `;
- modal.style.cssText = `
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 10000;
- `;
- document.body.appendChild(modal);
- console.log('[调试] 弹出框已创建并添加到DOM');
- // 关闭按钮逻辑
- const closeBtn = modal.querySelector('.close-btn');
- if (closeBtn) {
- closeBtn.addEventListener('click', () => {
- document.body.removeChild(modal);
- console.log('[调试] 弹出框已关闭');
- });
- } else {
- console.error('[错误] 未找到.close-btn');
- }
- // 保存按钮逻辑
- const saveBtn = modal.querySelector('.save-btn');
- if (saveBtn) {
- saveBtn.addEventListener('click', () => {
- console.log('保存编辑内容');
- // 实现保存编辑内容的业务逻辑
- document.body.removeChild(modal);
- console.log('[调试] 弹出框已保存并关闭');
- });
- } else {
- console.error('[错误] 未找到.save-btn');
- }
- });
- // 7. 插入到容器底部
- renderFooter.prepend(btn);
- console.log(`[成功] 第${index}项按钮已插入`);
- });
- }, 800); // 确保DOM渲染完成
- v.isConverLoading = !1;
- v.flowTopRef && v.flowBottomRef && (v.listHeight = v.height - (v.flowTopRef.clientHeight + v.flowBottomRef.clientHeight) - 20);
- }
- });
- }
- });
- }
- ,
- inputUrl() {
- s != null && s.isDesign || C || (v.isInputAddress = !v.isInputAddress,
- v.isInputAddress ? setTimeout(() => {
- var g;
- (g = v.linkAddressRef) == null || g.focus();
- let y = document.getElementById("_" + p.value.boItemId);
- y && (y.style.display = "block",
- y.children[0].children[0].style.display = "none",
- y.children[0].children[1].style.width = "100%")
- }
- , 0) : (v.linkAddress = "",
- setTimeout(() => {
- let y = document.getElementById("_" + p.value.boItemId);
- y && (y.style.display = "block",
- y.children[0].children[0].style.display = "none",
- y.children[0].children[1].style.width = "100%")
- }
- , 0)))
- },
- deleteFile(y) {
- var g;
- (g = v.enclosureUploadRef) == null || g.handleRemove(y)
- },
- handleExceed(y, g) {
- d.$message.error("单次提交最多不超过5个文件")
- },
- beforeUpload(y) {
- v.uploadUrl = c + "uf?appId=com.actionsoft.apps.network&sid=" + f.sessionId + "&groupValue=" + I.getCurrentYearMonth() + "&fileValue=" + p.value.userId + "&repositoryName=!stream-file-&extParam=",
- console.log(y, "file");
- const g = y.size / 1024 / 1024 < 20;
- return g || d.$message.error("上传失败,单个文件的上传上限为20M"),
- g
- },
- onSuccessFile(y, g) {
- console.log(y, "res"),
- y.data.result == "ok" ? v.uploadSuccessFileList.push(y.data.data.attrs) : d.$message.error(y.data.msg)
- },
- onErrorFile() { },
- onRemoveFile(y) {
- console.log(y, "uploadFile"),
- v.uploadSuccessFileList = v.uploadSuccessFileList.filter(g => g.fileUUID != y.response.data.data.attrs.fileUUID)
- },
- onChangeFile() {
- console.log(v.fileList, "state.fileList"),
- v.fileList.forEach(y => {
- y.isHoverDelete = !1
- }
- )
- },
- onProgress() { },
- getCurrentYearMonth() {
- const y = new Date
- , g = y.getFullYear()
- , S = String(y.getMonth() + 1).padStart(2, "0");
- return `${g}${S}`
- },
- getCookie(y) {
- let g = document.cookie.split(";");
- for (let S = 0; S < g.length; S++) {
- let T = g[S].trim();
- if (T.indexOf(y + "=") === 0)
- return decodeURIComponent(T.substring(y.length + 1, T.length))
- }
- return null
- },
- handleTermSearch(y, g) {
- v.termLoading = !0,
- I.getSearchSomeOne(y)
- },
- getSearchSomeOne(y) {
- u.post({
- url: "jd?cmd=CLIENT_LIEVE_SEARCH_AT_SOMEONE&sid=" + f.sessionId,
- data: {
- limit: 10,
- term: y
- }
- }).then(g => {
- v.trimOptions = [],
- v.trimOptions = g.map((S, T) => ({
- label: S.userName,
- value: S.userName
- })),
- v.termLoading = !1
- }
- )
- },
- deleteConver(y, g, S) {
- S == "stream" ? d.$confirm("确定要删除吗?删除后将无法找回", "提示", {
- confirmButtonText: "确认",
- cancelButtonText: "取消",
- cancelButtonClass: "cancel-btn",
- confirmButtonClass: "confirm-btn",
- showClose: !1,
- type: "warning"
- }).then(() => {
- I.deleteStream(y.id)
- }
- ).catch(() => { }
- ) : S == "comment" && d.$confirm("确定要删除吗?删除后将无法找回", "提示", {
- confirmButtonText: "确认",
- cancelButtonText: "取消",
- cancelButtonClass: "cancel-btn",
- confirmButtonClass: "confirm-btn",
- showClose: !1,
- type: "warning"
- }).then(() => {
- I.deleteComment(y.id, g)
- }
- ).catch(() => { }
- )
- },
- deleteStream(y) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_stream&sid=" + f.sessionId,
- data: {
- streamId: y,
- configContent: {}
- }
- }).then(g => {
- g.result == "ok" && (d.$message.success("删除成功"),
- v.converList.forEach((S, T) => {
- S.id == y && v.converList.splice(T, 1)
- }
- ))
- }
- )
- },
- deleteComment(y, g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcomment&sid=" + f.sessionId,
- data: {
- id: y
- }
- }).then(S => {
- S.result == "ok" && (d.$message.success("删除成功"),
- console.log(g, "fatherItem"),
- g.replysSize--,
- g.commentList.forEach((T, N) => {
- T.id == y && g.commentList.splice(N, 1)
- }
- ))
- }
- )
- },
- optStream(y, g) {
- t.operation.readonly || (console.log(y),
- g == "thumbs" && y.isPraisePost || g == "favorites" && y.isFavoritesPost ? (console.log("取消点赞或收藏"),
- g == "thumbs" ? I.cancelStreamState(y.id) : g == "favorites" && I.cancelFavorites(y.id)) : (g == "thumbs" || g == "favorites") && I.optStreamState(y, g))
- },
- debouncedSubmitComment: ia.debounce(function (y) {
- I.submitComment(y)
- }, 500),
- submitComment(y) {
- I.optStreamState(y, "replys")
- },
- optStreamState(y, g) {
- console.log(JSON.stringify(v.commentValue)),
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_streamcomment_source&sid=" + f.sessionId,
- data: {
- streamId: y.id,
- commentContent: g == "thumbs" ? "点赞" : g == "favorites" ? "收藏" : g == "replys" ? v.commentValue : "",
- commentType: g == "thumbs" ? 1 : g == "favorites" ? 2 : g == "replys" ? 3 : 0,
- teamId: y.teamId,
- sourceAppId: y.sourceAppId,
- sourceType: y.sourceType,
- sourceId: y.sourceId
- }
- }).then(S => {
- S.result == "ok" && (g == "replys" && (v.commentValue = ""),
- I.getStreamOneInfo(y.id))
- let commentDa = {
- CONTENT: g == "thumbs" ? "点赞" : g == "favorites" ? "收藏" : g == "replys" ? v.commentValue : "",
- };
- //记录留言
- u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_NetworkSave&sid=" + f.sessionId,
- data: {
- boDefName: w.context.processApi.pageContext.processContext.boDefName,
- boId: w.context.processApi.pageContext.processContext.boId,
- data: JSON.stringify(commentDa),
- streamId: y.id,
- commentType: g == "thumbs" ? "点赞" : g == "favorites" ? "收藏" : g == "replys" ? "回复" : "",
- }
- }).then(rd => {
- }
- )
- }
- )
- },
- getStreamOneInfo(y) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_get_stream_byid&sid=" + f.sessionId + "&random=" + new Date,
- data: {
- streamId: y
- }
- }).then(g => {
- if (g.result == "ok") {
- let S = g.data.streamModel;
- const T = v.converList.findIndex(N => N.id === y);
- T !== -1 && (v.converList[T] = S,
- S.srcObjectContent && (v.converList[T].srcObjectContent = JSON.parse(S.srcObjectContent))),
- v.commentValue = ""
- }
- }
- )
- },
- cancelStreamState(y) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcommentoperate&sid=" + f.sessionId,
- data: {
- id: y
- }
- }).then(g => {
- g.result == "ok" && I.getStreamOneInfo(y)
- }
- )
- },
- cancelFavorites(y) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcomment_favorite&sid=" + f.sessionId,
- data: {
- id: y
- }
- }).then(g => {
- g.result == "ok" && I.getStreamOneInfo(y)
- }
- )
- },
- saveMyDriver(y) {
- console.log(y, "item"),
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_storage_mydriver&sid=" + f.sessionId,
- data: {
- groupValue: I.getCurrentYearMonth(),
- fileValue: y.createUser,
- fileName: y.fileName,
- fileActName: y.fileActName,
- fileSize: y.fileSize
- }
- }).then(g => {
- g.result == "ok" && d.$message.success("转存成功")
- }
- )
- },
- previewFile(y, g) {
- console.log(g, "data"),
- console.log(y, "item"),
- v.previewList = y.streamContent.attachement.filter(D => {
- var U, X;
- let M = D.fileName.split(".")
- , k = M[M.length - 1].toLowerCase();
- if (v.imgTotalType.indexOf(k) != -1)
- return D.imgUrl = c + ((X = (U = D.url) == null ? void 0 : U.slice) == null ? void 0 : X.call(U, 2)),
- !0
- }
- );
- let S = g.fileName.split(".")
- , T = S[S.length - 1].toLowerCase();
- if (v.imgTotalType.indexOf(T) != -1) {
- v.previewList.forEach((D, M) => {
- D.fileUUID == g.fileUUID && (v.initialIndex = M,
- v.showImgPreview = !0)
- }
- );
- return
- }
- if (T === "mp4") {
- let D = {
- url: c + g.url.replace("./", ""),
- info: "",
- name: g.fileActName
- };
- v.videoList[0] = D,
- console.log(D, "videoObj"),
- v.showVideoPreview = !0;
- return
- }
- const N = new URLSearchParams(g.url.split("?")[1])
- , B = {};
- for (const [D, M] of N.entries())
- B[D] = decodeURIComponent(M);
- console.log(B),
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_openfile",
- data: {
- repositoryName: "!stream-file-",
- groupValue: B.groupValue,
- fileValue: B.fileValue,
- fileName: B.fileName,
- fileNameOriginal: B.fileNameShow,
- isShowDefaultToolbar: "true",
- isCopy: "true",
- isPrint: "true",
- isDownload: "true",
- sid: f.sessionId
- }
- }).then(D => {
- D.result == "ok" && window.open(D.data.url)
- }
- )
- },
- handleDownloadFile(y) {
- I.beforeDownLoad(y.url, y)
- },
- async beforeDownLoad(y, g) {
- E.mobileFileDownload(d, y + "&openNewWebview=true&mobileAttachment=true", g ? g.fileActName : "", !1)
- },
- handleClose(y) {
- console.log("handleClose", y)
- },
- handleSwitch(y) {
- console.log("handleSwitch", y)
- },
- openLink(y) {
- window.open(y, "_blank")
- },
- openCompany(y) {
- y.winPosition === "newWin" ? y.srcObjUrl != "" && (y.srcObjUrl.indexOf("#sid") > -1 && (y.srcObjUrl = y.srcObjUrl.replace("#sid", f.sessionId)),
- window.open(y.srcObjUrl, "_blank")) : y.winPosition === "sideBarWin" && y.srcObjUrl != "" && (y.srcObjUrl.indexOf("#sid") > -1 && (y.srcObjUrl = y.srcObjUrl.replace("#sid", f.sessionId)),
- v.objUrl = y.srcObjUrl,
- v.drawerSize = y.barWidth,
- v.drawerTitle = y.barTitle,
- v.drawerVisible = !0)
- },
- renderIcon(y, g) {
- if (y)
- return y.replace("amp;", "")
- },
- isShowComponent() {
- if (t.operation.display) {
- if (p.value.boItemId && !(s != null && s.isDesign)) {
- let y = document.querySelectorAll("#_" + t.boItemModel.id);
- if (f != null && f.isCreate) {
- if (y && y.length > 0) {
- y[0].style.display = "none";
- let g = Array.from(y[0].parentNode.querySelectorAll(":scope > *"))
- , S = [];
- S = g.filter((T, N) => T.id.indexOf("_" + t.boItemModel.id) == -1),
- S.forEach((T, N) => {
- T.style.width = 1 / S.length * 100 + "%"
- }
- )
- }
- } else
- y && y.forEach(g => {
- g.children[0] && g.children[0].children[0] && g.children[0].children[1] && (g.children[0].children[0].style.minHeight = "30px",
- g.children[0].children[1].style.paddingTop = "10px"),
- I.headLayputConfig(g)
- }
- )
- }
- if (s != null && s.isDesign || C) {
- let y = document.querySelectorAll("#_" + t.boItemModel.id);
- y && y.forEach(g => {
- I.headLayputConfig(g)
- }
- )
- }
- }
- },
- headLayputConfig(y) {
- y.children[0] && (y.children[0].style.flexFlow = "column",
- y.children[0].style.paddingLeft = "15px",
- y.children[0].style.paddingRight = "15px",
- y.children[0].children[0] && y.children[0].children[0].classList.value == "el-form-item__label" && (v.isLabelShow || v.isLabelShow === void 0 ? (console.log("show label"),
- y.children[0].children[0].style.display = "block") : (y.children[0].children[0].style.display = "none",
- console.log("hide label")),
- y.children[0].children[0].style.width = "100%",
- y.children[0].children[0].style.height = "24px",
- y.children[0].children[0].style.border = "none",
- y.children[0].children[0].style.paddingLeft = "5px",
- y.children[0].children[0].style.background = "transparent",
- y.children[0].children[0].style.minHeight = "24px",
- s != null && s.isDesign ? y.children[0].children[0].style.marginBottom = "10px" : y.children[0].children[0].style.marginBottom = "0px",
- y.children[0].children[0].children[0] && (y.children[0].children[0].children[0].style.fontSize = "16px",
- y.children[0].children[0].children[0].style.fontWeight = 500,
- y.children[0].children[0].children[0].style.color = "#232D3E")),
- y.children[0].children[1] && (y.children[0].children[1].style.width = "100%",
- y.children[0].children[1].style.alignItems = "flex-start"))
- },
- getCurrentAdress() {
- var g;
- console.log(v.mapContainerRef, "mapContainerRef");
- let y = {
- aMapKey: p.value.aMapKey,
- securityJsCode: p.value.securityJsCode
- };
- (g = v.mapContainerRef) == null || g.initAMapBase(y).then(S => {
- v.positionInfo = S
- }
- )
- }
- });
- v.newInputDateTitle = "";//修改标题
- v.newSelectedOptionTitle = "";//修改标题
- v.newSelectedOptions = [];
- /* 获取自定义字段的标题和下拉框选项 */
- let boDefName = w.context.processApi.pageContext.processContext.boDefName;
- let boDefTitle = w.context.processApi.pageContext.processContext.boDefTitle;
- let boId = w.context.processApi.pageContext.processContext.boId;
- let processInstId = w.context.processApi.pageContext.processContext.processInstId;
- v.formFields = [];
- u.post({
- url: "jd?cmd=com.awspaas.user.apps.donenow_sys_network_udfList&sid=" + f.sessionId,
- data: {
- boDefName: boDefName,
- boId: boId
- }
- }).then(rd => {
- console.log(rd, 123321);
- if (rd.result === "ok" && rd.data) { // 修正条件判断中的错误
- // 初始化动态表单字段
- v.formFields = rd.data.map(field => ({
- name: field.name,
- comment: field.comment,
- type: field.type,
- required: field.required === "1",
- value: field.value || '',
- list: field.list || []
- }));
- // 定义容器获取函数
- const getParentContainer = () => {
- const oldField = document.getElementById('newInputDateDiv') || document.getElementById('newSelectedOptionDiv');
- return oldField?.parentNode || document.querySelector('.el-form') || document.body;
- };
- let fu = document.querySelector('.flow-footer')
- fu.style.height = '100%'
- fu.style.overflowX = 'auto'
- fu.style.minWidth = '300px'
- // 获取父容器
- const parentContainer = getParentContainer();
- let pfooter = document.querySelector('.information_flow .flow-top .flow-footer .footer-right .footer-select')
- pfooter.style.minWidth = '80px'
- let phher = document.querySelector('.el-select__placeholder span')
- phher.style.display = 'flex'
- // 设置父容器的布局样式
- Object.assign(parentContainer.style, {
- display: 'flex',
- gap: '15px', // 字段间距
- width: '100%'
- });
- // 字段创建函数
- const createField = (field) => {
- const container = document.createElement('div');
- container.className = 'el-form-item';
- // 设置基础宽度和弹性基准
- container.style.width = field.type === '日期' ? '260px' : '200px';
- container.style.flex = '0 0 auto'; // 禁止伸缩
- // 创建标签
- const label = document.createElement('div');
- label.className = 'el-form-item__label';
- label.style.fontSize = '14px';
- label.style.color = '#606266';
- label.innerHTML = `${field.comment}${field.required ? '<span style="color:red">*</span>' : ''}`;
- container.appendChild(label);
- // 创建输入控件
- let input;
- switch (field.type) {
- case '列表':
- input = document.createElement('select');
- input.style.width = '100%'; // 宽度自适应
- input.className = 'el-form-item__content dynamic-input';
- field.list.forEach(opt => {
- const option = document.createElement('option');
- option.value = opt.VALUE;
- option.textContent = opt.LABEL;
- input.appendChild(option);
- });
- break;
- case '日期':
- input = document.createElement('input');
- input.type = 'date';
- input.style.width = '100%'; // 宽度自适应
- input.className = 'el-form-item__content dynamic-input';
- break;
- case '单行文本':
- default:
- input = document.createElement('input');
- input.type = 'text';
- input.style.width = '100%'; // 宽度自适应
- input.className = 'el-form-item__content dynamic-input';
- break;
- }
- input.name = field.name;
- input.value = field.value || '';
- input.addEventListener('change', (e) => {
- field.value = e.target.value;
- });
- container.appendChild(input);
- return container;
- };
- // 清理旧字段
- ['newInputDateDiv', 'newSelectedOptionDiv'].forEach(id => {
- const el = document.getElementById(id);
- el?.parentNode?.removeChild(el);
- });
- // 渲染新字段
- const maxVisibleFields = 1; // 默认显示
- const allFields = [];
- v.formFields.forEach((field, index) => {
- const fieldElement = createField(field);
- if (index >= maxVisibleFields) {
- fieldElement.style.display = 'none';
- }
- parentContainer.appendChild(fieldElement);
- allFields.push(fieldElement);
- });
- // 添加展开/收起按钮
- if (v.formFields.length > maxVisibleFields) {
- const toggleBtn = document.createElement('button');
- toggleBtn.innerHTML = '▼ 展开';
- toggleBtn.style.cssText = `
- width: 80px; /* 按钮宽度 */
- padding: 8px 12px;
- background: #f8f9fa;
- border: 1px solid #dee2e6;
- border-radius: 4px;
- cursor: pointer;
- transition: all 0.3s;
- position: relative; /* 使用相对定位 */
- margin-left: auto; /* 将按钮推到右侧 */
- `;
- // 添加按钮样式
- toggleBtn.addEventListener('click', () => {
- const isExpanded = toggleBtn.innerHTML.includes('收起');
- allFields.forEach((field, index) => {
- if (index >= maxVisibleFields) {
- field.style.display = isExpanded ? 'none' : 'flex';
- }
- });
- // 强制浏览器重新计算布局
- parentContainer.style.display = 'none';
- parentContainer.offsetHeight; // 触发重绘
- parentContainer.style.display = 'flex';
- toggleBtn.innerHTML = isExpanded ? '▼ 展开' : '▲ 收起';
- });
- // 创建一个容器来放置按钮
- const btnContainer = document.createElement('div');
- btnContainer.style.cssText = `
- display: flex;
- align-items: flex-end;
- position: relative;
- `;
- btnContainer.appendChild(toggleBtn);
- parentContainer.appendChild(btnContainer);
- }
- } else {
- //console.error('[表单错误] 数据异常:', rd);
- //d.$message.error(rd.msg || '字段加载失败');
- }
- }).catch(err => {
- console.error('[表单错误] 请求异常:', err);
- d.$message.error('网络错误,请检查控制台');
- });
- // u.post({
- // url: "jd?cmd=com.awspaas.user.apps.donenow_sys_network_udf&sid=" + f.sessionId,
- // data: {
- // boDefName: boDefName,
- // boId: boId
- // }
- // }).then(rd => {
- // console.log(rd);
- // if (rd.result == "ok" && rd.msg != '未配置' && rd.data) {
- // v.newInputDateTitle = rd.data.newInputDateTitle;
- // v.newSelectedOptionTitle = rd.data.newSelectedOptionTitle;
- // if (rd.data.newSelectedOptions.length > 0)
- // v.newSelectedOptions = rd.data.newSelectedOptions.map(item => ({
- // label: item.label ?? item.LABEL,
- // value: item.value ?? item.VALUE
- // }));
- // let elementD = document.getElementById('newInputDateDiv');
- // if (elementD) {
- // if (v.newInputDateTitle && v.newInputDateTitle.length > 0) {
- // elementD.style.display = 'block';
- // }
- // else {
- // elementD.style.display = 'none';
- // }
- // }
- // let elementS = document.getElementById('newSelectedOptionDiv');
- // if (elementS) {
- // if (v.newSelectedOptionTitle && v.newSelectedOptionTitle.length > 0) {
- // elementS.style.display = 'block';
- // }
- // else {
- // elementS.style.display = 'none';
- // }
- // }
- // }
- // }
- // )
- return n.onMounted(() => {
- console.log(f, "settingParam"),
- console.log(p, "options"),
- p.value.sourceId && p.value.sourceId != "" && !C && !(s != null && s.isDesign) && (I.getSourceList(p.value.sourceId),
- p.value.aMapKey && p.value.aMapKey != "" && p.value.securityJsCode && p.value.securityJsCode != "" && I.getCurrentAdress()),
- n.nextTick(() => {
- I.isShowComponent()
- }
- )
- }
- ),
- n.watch(() => t.itemConfig.showLabel, y => {
- s != null && s.isDesign && (v.isLabelShow = y,
- I.isShowComponent())
- }
- , {
- immediate: !0
- }),
- n.watch(() => p.value.height, y => {
- v.height = y
- }
- ),
- n.watch(() => p.value.label, y => {
- v.streamTitle = y
- }
- ),
- n.watch(() => p.value.defaultTipTitle, y => {
- v.defaultPlaceholder = y
- }
- , {
- immediate: !0
- }),
- n.watch(() => p.value.channelType, y => {
- y != "" ? (v.channelTypeList = y.split(" ").splice(0, 5),
- v.channelTypeValue = y.split(" ")[0]) : v.channelTypeList = []
- }
- , {
- immediate: !0
- }),
- {
- inputValue: x,
- baseUrl: c,
- isPreView: C,
- getFileSuffixIconFont: Zi,
- formatText: h,
- ...n.toRefs(v),
- ...n.toRefs(I),
- }
- }
- })
- , T_ = t => (n.pushScopeId("data-v-f520604c"),
- t = t(),
- n.popScopeId(),
- t)
- , O_ = {
- class: "flow-top",
- ref: "flowTopRef"
- }
- , k_ = {
- class: "flow-main"
- }
- , N_ = {
- key: 0,
- class: "flow-address"
- }
- , L_ = T_(() => n.createElementVNode("i", {
- class: "awsui-iconfont address_icon"
- }, "", -1))
- , B_ = {
- class: "uploadFile"
- }
- , P_ = {
- class: "file-group"
- }
- , D_ = ["onMouseenter", "onMouseleave"]
- , V_ = {
- class: "item-icon"
- }
- , M_ = ["innerHTML"]
- , R_ = {
- class: "item-name"
- }
- , $_ = {
- class: "item-process"
- }
- , F_ = ["onClick"]
- , U_ = {
- class: "flow-footer",
- style: {
- "min-width": "500px"
- }
- }
- , z_ = {
- class: "footer-left"
- }
- , H_ = {
- class: "footer-right"
- }
- , W_ = {
- class: "ellipsis-option"
- }
- , j_ = {
- class: "flow-bottom",
- ref: "flowBottomRef"
- }
- , K_ = {
- class: "conver-list"
- }
- , G_ = {
- class: "skeleton-item",
- key: 0
- }
- , J_ = {
- class: "skeleton-item-top"
- }
- , Y_ = {
- class: "skeleton-item-bottom"
- }
- , q_ = ["infinite-scroll-disabled"]
- , Z_ = ["onMouseenter", "onMouseleave"]
- , X_ = {
- class: "header-avatar"
- }
- , Q_ = ["src"]
- , ew = {
- class: "header-name"
- }
- , tw = {
- class: "name-txt"
- }
- , nw = {
- class: "header-tag"
- }
- , ow = {
- key: 0,
- class: "header-delete"
- }
- , rw = ["onClick"]
- , iw = {
- class: "render-main"
- }
- , aw = ["innerHTML", "onMouseenter", "onMouseleave"]
- , sw = {
- key: 1,
- class: "top-link"
- }
- , lw = ["onClick"]
- , cw = {
- class: "link-desc"
- }
- , uw = {
- key: 2,
- class: "top-attachment"
- }
- , fw = {
- class: "item-icon"
- }
- , dw = ["innerHTML"]
- , pw = ["onClick"]
- , mw = {
- class: "item-opt"
- }
- , hw = ["onClick"]
- , gw = ["onClick"]
- , yw = ["onClick"]
- , _w = {
- key: 0,
- class: "main-middle"
- }
- , ww = {
- key: 0,
- class: "middle-icon"
- }
- , vw = ["innerHTML"]
- , bw = {
- class: "middle-type"
- }
- , Cw = {
- class: "type-txt"
- }
- , Ew = {
- class: "middle-company"
- }
- , Sw = ["onClick"]
- , Iw = {
- class: "main-bottom"
- }
- , xw = {
- class: "bottom-date"
- }
- , Aw = {
- key: 0,
- class: "bottom-source"
- }
- , Tw = {
- key: 1,
- class: "bottom-source"
- }
- , Ow = {
- class: "render-footer"
- }
- , kw = {
- class: "footer-thumbs-up footer-opt"
- }
- , Nw = ["onClick"]
- , Lw = ["onClick"]
- , Bw = ["onClick"]
- , Pw = {
- class: "footer-comment footer-opt"
- }
- , Dw = ["onClick"]
- , Vw = ["onClick"]
- , Mw = {
- class: "footer-collection footer-opt"
- }
- , Rw = ["onClick"]
- , $w = ["onClick"]
- , Fw = ["onClick"]
- , Uw = {
- key: 0,
- class: "render-comment"
- }
- , zw = {
- class: "comment-opt"
- }
- , Hw = {
- class: "more-comment"
- }
- , Ww = ["onMouseenter", "onMouseleave"]
- , jw = {
- class: "item-header"
- }
- , Kw = {
- class: "header-avatar"
- }
- , Gw = ["src"]
- , Jw = {
- class: "header-name"
- }
- , Yw = {
- class: "name-txt"
- }
- , qw = {
- key: 0,
- class: "header-delete"
- }
- , Zw = ["onClick"]
- , Xw = {
- class: "item-main"
- }
- , Qw = {
- class: "main-top"
- }
- , ev = ["innerHTML"]
- , tv = {
- class: "main-bottom"
- }
- , nv = {
- class: "bottom-date"
- }
- , ov = {
- key: 0,
- class: "more-item"
- }
- , rv = ["onClick"]
- , iv = ["onMouseenter", "onMouseleave"]
- , av = {
- class: "item-header"
- }
- , sv = {
- class: "header-avatar"
- }
- , lv = ["src"]
- , cv = {
- class: "header-name"
- }
- , uv = {
- class: "name-txt"
- }
- , fv = {
- key: 0,
- class: "header-delete"
- }
- , dv = ["onClick"]
- , pv = {
- class: "item-main"
- }
- , mv = ["innerHTML"]
- , hv = {
- class: "main-bottom"
- }
- , gv = {
- class: "bottom-date"
- }
- , yv = {
- key: 1,
- class: "more-item"
- }
- , _v = ["onClick"]
- , wv = ["src"];
- function vv(t, r, i, s, c, f) {
- const u = n.resolveComponent("el-mention")
- , d = n.resolveComponent("el-divider")
- , p = n.resolveComponent("el-input")
- , w = n.resolveComponent("el-progress")
- , E = n.resolveComponent("el-tooltip")
- , C = n.resolveComponent("el-upload")
- , h = n.resolveComponent("el-option")
- , x = n.resolveComponent("el-select")
- , v = n.resolveComponent("awsui-button")
- , I = n.resolveComponent("el-skeleton-item")
- , y = n.resolveComponent("el-tag")
- , g = n.resolveComponent("el-scrollbar")
- , S = n.resolveComponent("el-skeleton")
- , T = n.resolveComponent("el-drawer")
- , N = n.resolveComponent("awsui-image-viewer")
- , B = n.resolveComponent("awsui-video-preview")
- , D = n.resolveComponent("map-container")
- , M = n.resolveDirective("infinite-scroll")
- , a = n.resolveComponent("el-date-picker")
- , l = n.resolveComponent("el-text");
- return n.openBlock(),
- n.createElementBlock("div", {
- class: "information_flow",
- style: n.normalizeStyle({
- height: t.height + "px"
- })
- }, [n.createElementVNode("div", O_, [n.createElementVNode("main", k_, [n.createVNode(u, {
- modelValue: t.inputValue,
- "onUpdate:modelValue": r[0] || (r[0] = k => t.inputValue = k),
- type: "textarea",
- rows: 5,
- placeholder: t.defaultPlaceholder,
- options: t.trimOptions,
- loading: t.termLoading,
- disabled: t.isDesign || t.isPreView,
- whole: "",
- class: "no-resize",
- onFocus: t.focusInput,
- onBlur: t.blurInput,
- onSearch: t.handleTermSearch
- }, {
- loading: n.withCtx(() => [n.createTextVNode(" 加载中... ")]),
- _: 1
- }, 8, ["modelValue", "placeholder", "options", "loading", "disabled", "onFocus", "onBlur", "onSearch"])]), n.createVNode(d, {
- class: "flow-divider"
- }), t.isInputAddress ? (n.openBlock(),
- n.createElementBlock("div", N_, [n.createVNode(p, {
- modelValue: t.linkAddress,
- "onUpdate:modelValue": r[1] || (r[1] = k => t.linkAddress = k),
- placeholder: "请在此输入链接",
- class: "link-input",
- ref: "linkAddressRef"
- }, {
- prepend: n.withCtx(() => [L_]),
- _: 1
- }, 8, ["modelValue"])])) : n.createCommentVNode("", !0), n.createElementVNode("div", B_, [n.createElementVNode("div", P_, [n.createVNode(n.TransitionGroup, null, {
- default: n.withCtx(() => [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.fileList, k => (n.openBlock(),
- n.createElementBlock("div", {
- class: "file-item",
- key: k.uid,
- onMouseenter: U => k.isHoverDelete = !0,
- onMouseleave: U => k.isHoverDelete = !1
- }, [n.createElementVNode("div", V_, [n.createElementVNode("i", {
- class: "awsui-iconfont",
- innerHTML: t.getFileSuffixIconFont(k.name),
- style: {
- color: "#287ff4"
- }
- }, null, 8, M_)]), n.createElementVNode("div", R_, n.toDisplayString(k.name), 1), n.createElementVNode("div", $_, [!k.isHoverDelete && k.percentage !== 100 ? (n.openBlock(),
- n.createBlock(w, {
- key: 0,
- class: "progress-main",
- type: "circle",
- width: "18",
- "stroke-width": "2",
- percentage: k.percentage,
- "show-text": !1
- }, null, 8, ["percentage"])) : n.createCommentVNode("", !0), k.isHoverDelete ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 1,
- class: "awsui-iconfont deleteIcon",
- onClick: U => t.deleteFile(k)
- }, "", 8, F_)) : n.createCommentVNode("", !0)])], 40, D_))), 128))]),
- _: 1
- })])]), n.createElementVNode("footer", U_, [n.createElementVNode("div", z_, [n.createVNode(E, {
- effect: "dark",
- content: "添加链接",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("i", {
- class: n.normalizeClass(["awsui-iconfont footer-icon-pointer", t.isDesign || t.isPreView ? "notallow" : ""]),
- onClick: r[2] || (r[2] = (...k) => t.inputUrl && t.inputUrl(...k))
- }, "", 2)]),
- _: 1
- }), n.createVNode(E, {
- effect: "dark",
- content: "添加附件",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createVNode(C, {
- "file-list": t.fileList,
- "onUpdate:fileList": r[3] || (r[3] = k => t.fileList = k),
- ref: "enclosureUploadRef",
- class: "enclosure-upload",
- action: t.uploadUrl,
- multiple: "",
- limit: 5,
- "show-file-list": !1,
- "on-exceed": t.handleExceed,
- "on-success": t.onSuccessFile,
- "on-error": t.onErrorFile,
- "on-remove": t.onRemoveFile,
- "on-change": t.onChangeFile,
- "on-progress": t.onProgress,
- "before-upload": t.beforeUpload,
- disabled: t.isDesign || t.isPreView
- }, {
- default: n.withCtx(() => [n.createElementVNode("i", {
- class: n.normalizeClass(["awsui-iconfont footer-icon-pointer", t.isDesign || t.isPreView ? "notallow" : ""])
- }, "", 2)]),
- _: 1
- }, 8, ["file-list", "action", "on-exceed", "on-success", "on-error", "on-remove", "on-change", "on-progress", "before-upload", "disabled"])]),
- _: 1
- })]), n.createElementVNode("div", H_, [n.createVNode(x, {
- modelValue: t.channelTypeValue,
- "onUpdate:modelValue": r[4] || (r[4] = k => t.channelTypeValue = k),
- placeholder: "请选择话题",
- class: "footer-select",
- style: {
- padding: "0px",
- "max-width": "90px"
- },
- "fit-input-width": !0
- }, {
- default: n.withCtx(() => [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.channelTypeList, (k, U) => (n.openBlock(),
- n.createBlock(h, {
- label: "# " + k,
- value: k
- }, {
- default: n.withCtx(() => [n.createVNode(E, {
- content: k,
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("span", W_, "# " + n.toDisplayString(k), 1)]),
- _: 2
- }, 1032, ["content"])]),
- _: 2
- }, 1032, ["label", "value"]))), 256))]),
- _: 1
- }, 8, ["modelValue"]),
- //张耀 2025年4月18日 新增 开始
- /*
- n.createElementVNode("span", null, "输入框标题:"),
- n.createVNode(p, {
- modelValue: t.newInputValue,
- "onUpdate:modelValue": r[16] || (r[16] = k => t.newInputValue = k),
- placeholder: "请输入内容",
- class: "new-input",
- style: { width: '150px' } // 直接设置内联样式
- }, null, 8, ["modelValue"]),
- */
- // 添加日期选择器
- n.createVNode('div', {
- id: 'newInputDateDiv', style: {
- display: "none",
- "min-width": "120px", /* 最小宽度,避免内容挤压 */
- width: 'auto', /* 自动适应内容或父容器 */
- flex: '0 0 auto', /* 不缩小、不放大,基于内容/width */
- 'white-space': 'nowrap', /* 防止内容换行 */
- }
- }, [
- n.createVNode(l, null, () => t.newInputDateTitle),
- n.createVNode(a, {
- modelValue: t.newInputDateValue,
- "onUpdate:modelValue": r[17] || (r[17] = k => t.newInputDateValue = k),
- type: "date",
- placeholder: "请选择日期",
- style: {
- width: '120px',
- flex: '0 0 auto',
- 'white-space': 'nowrap',
- },
- type: "date", // 关键配置:启用日期输入
- format: "YYYY-MM-DD", // 显示格式(可选)
- valueFormat: "YYYY-MM-DD", // 绑定值格式(可选)
- }, null, 8, ["modelValue"]),
- ]),
- n.createVNode('div', {
- id: 'newSelectedOptionDiv', style: {
- display: "none",
- "min-width": "120px", /* 最小宽度,避免内容挤压 */
- width: 'auto', /* 自动适应内容或父容器 */
- flex: '0 0 auto', /* 不缩小、不放大,基于内容/width */
- 'white-space': 'nowrap', /* 防止内容换行 */
- }
- }, [
- // 添加下拉框
- n.createVNode(l, null, () => t.newSelectedOptionTitle),
- n.createVNode(x, {
- modelValue: t.newSelectedOption,
- "onUpdate:modelValue": r[18] || (r[18] = k => t.newSelectedOption = k),
- placeholder: "请选择",
- class: "new-select",
- style: {
- "min-width": '120px',
- width: 'auto',
- flex: '0 0 auto',
- 'white-space': 'nowrap',
- } // 直接设置内联样式
- }, {
- default: n.withCtx(() =>
- t.newSelectedOptions.map(opt =>
- n.createVNode(h, {
- label: opt.label,
- value: opt.value,
- key: opt.value
- })
- )
- ),
- _: 1
- }, 8, ["modelValue"])
- ]),
- //张耀 2025年4月18日 新增 结束
- ])])], 512), n.createElementVNode("div", j_, [n.createVNode(v, {
- type: "primary",
- disabled: !t.inputValue || t.isDesign || t.isPreView || !t.channelTypeValue || t.operation.readonly,
- onClick: t.submitInfo
- }, {
- default: n.withCtx(() => [n.createTextVNode("提交")]),
- _: 1
- }, 8, ["disabled", "onClick"])], 512), n.createElementVNode("div", K_, [!t.isPreView && !t.isDesign ? (n.openBlock(),
- n.createBlock(S, {
- key: 0,
- class: "list-skeleton",
- animated: "",
- loading: t.isConverLoading,
- rows: 5
- }, {
- template: n.withCtx(() => [(n.openBlock(),
- n.createElementBlock(n.Fragment, null, n.renderList(5, k => n.createElementVNode("div", G_, [n.createElementVNode("div", J_, [n.createVNode(I, {
- variant: "circle",
- class: "top-avatar"
- }), n.createVNode(I, {
- variant: "text",
- class: "top-txt"
- }), n.createVNode(I, {
- variant: "text"
- })]), n.createElementVNode("div", Y_, [n.createVNode(I, {
- class: "bottom-main",
- variant: "text"
- })])])), 64))]),
- default: n.withCtx(() => [n.createVNode(g, {
- height: t.listHeight,
- class: "list-scroll",
- ref: "listScrollRef"
- }, {
- default: n.withCtx(() => [n.withDirectives((n.openBlock(),
- n.createElementBlock("div", {
- class: "list-render",
- style: {
- overflow: "auto"
- },
- "infinite-scroll-immediate": !0,
- "infinite-scroll-disabled": t.scrollDisabled
- }, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.converList, k => (n.openBlock(),
- n.createElementBlock("div", {
- class: "render-item",
- key: k.id
- }, [n.createElementVNode("div", {
- class: n.normalizeClass(["item-first", k.isHover && k.commentList.length != 0 ? "item-hover comment-list" : k.isHover ? "item-hover" : k.commentList.length != 0 ? "comment-list" : ""])
- }, [n.createElementVNode("div", {
- class: "render-header",
- onMouseenter: U => k.isHover = !0,
- onMouseleave: U => k.isHover = !1
- }, [n.createElementVNode("div", X_, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + k.userPhoto
- }, null, 8, Q_)]), n.createElementVNode("div", ew, [n.createElementVNode("div", tw, n.toDisplayString(k.createUserName), 1)]), n.createElementVNode("div", nw, [k.channelType ? (n.openBlock(),
- n.createBlock(y, {
- key: 0,
- effect: "light",
- round: ""
- }, {
- default: n.withCtx(() => [n.createTextVNode("# " + n.toDisplayString(k.channelType), 1)]),
- _: 2
- }, 1024)) : n.createCommentVNode("", !0)]), k.isHover && k.isDelete ? (n.openBlock(),
- n.createElementBlock("div", ow, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: U => t.deleteConver(k, "", "stream")
- }, "", 8, rw)])) : n.createCommentVNode("", !0)], 40, Z_), n.createElementVNode("div", iw, [n.createVNode(g, {
- class: "main-top"
- }, {
- default: n.withCtx(() => [k.streamContent.content != "" ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "top-txt",
- innerHTML: k.streamContent.content,
- onMouseenter: U => k.isHover = !0,
- onMouseleave: U => k.isHover = !1
- }, null, 40, aw)) : n.createCommentVNode("", !0), k.streamContent.link != "" ? (n.openBlock(),
- n.createElementBlock("div", sw, [n.createElementVNode("div", {
- class: "link-title",
- onClick: U => t.openLink(k.streamContent.link)
- }, n.toDisplayString(k.streamContent.linkTitle), 9, lw), n.createElementVNode("div", cw, n.toDisplayString(k.streamContent.linkDescription), 1)])) : n.createCommentVNode("", !0), k.streamContent.attachement.length != 0 ? (n.openBlock(),
- n.createElementBlock("div", uw, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(k.streamContent.attachement, (U, X) => (n.openBlock(),
- n.createElementBlock("div", {
- class: "attachment-item",
- key: X
- }, [n.createElementVNode("div", fw, [n.createElementVNode("i", {
- class: "awsui-iconfont",
- innerHTML: t.getFileSuffixIconFont(U.fileActName),
- style: {
- color: "#287ff4"
- }
- }, null, 8, dw)]), n.createElementVNode("div", {
- class: "item-name",
- onClick: W => t.previewFile(k, U)
- }, n.toDisplayString(U.fileActName), 9, pw), n.createElementVNode("div", mw, [n.createVNode(E, {
- effect: "dark",
- content: "转存到网盘",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("i", {
- class: "awsui-iconfont opt-icon",
- onClick: W => t.saveMyDriver(U)
- }, "", 8, hw)]),
- _: 2
- }, 1024), n.createVNode(E, {
- effect: "dark",
- content: "预览",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("i", {
- class: "awsui-iconfont opt-icon",
- onClick: W => t.previewFile(k, U)
- }, "", 8, gw)]),
- _: 2
- }, 1024), n.createVNode(E, {
- effect: "dark",
- content: "下载",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("i", {
- class: "awsui-iconfont opt-icon",
- onClick: W => t.handleDownloadFile(U)
- }, "", 8, yw)]),
- _: 2
- }, 1024)])]))), 128))])) : n.createCommentVNode("", !0)]),
- _: 2
- }, 1024), k.srcObjectContent ? (n.openBlock(),
- n.createElementBlock("div", _w, [k.srcObjectContent.srcObjIcon && k.srcObjectContent.srcObjIcon.color != "" && k.srcObjectContent.srcObjIcon.icon != "" ? (n.openBlock(),
- n.createElementBlock("div", ww, [n.createElementVNode("div", {
- class: "custom_icon",
- style: n.normalizeStyle({
- backgroundColor: k.srcObjectContent.srcObjIcon.color
- })
- }, [n.createElementVNode("i", {
- class: "awsui-iconfont icon_main",
- innerHTML: t.renderIcon(k.srcObjectContent.srcObjIcon.icon, k)
- }, null, 8, vw)], 4)])) : n.createCommentVNode("", !0), n.createElementVNode("div", bw, [n.createVNode(E, {
- class: "box-item",
- effect: "dark",
- content: k.srcObjectContent.srcObjType,
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", Cw, n.toDisplayString(k.srcObjectContent.srcObjType), 1)]),
- _: 2
- }, 1032, ["content"])]), n.createElementVNode("div", Ew, [n.createVNode(E, {
- class: "box-item",
- effect: "dark",
- content: k.srcObjectContent.srcObjTitle,
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", {
- class: n.normalizeClass(k.srcObjectContent.srcObjUrl == "" ? "company-empty" : "company-txt"),
- onClick: U => t.openCompany(k.srcObjectContent)
- }, n.toDisplayString(k.srcObjectContent.srcObjTitle), 11, Sw)]),
- _: 2
- }, 1032, ["content"])])])) : n.createCommentVNode("", !0), n.createElementVNode("div", Iw, [n.createElementVNode("span", xw, n.toDisplayString(k.createTime), 1), k.address != "" ? (n.openBlock(),
- n.createElementBlock("span", Aw, "来自 " + n.toDisplayString(k.deviceType) + " - " + n.toDisplayString(k.address), 1)) : (n.openBlock(),
- n.createElementBlock("span", Tw, "来自 " + n.toDisplayString(k.deviceType), 1))])]), n.createElementVNode("div", Ow, [n.createVNode(E, {
- class: "box-item",
- effect: "dark",
- content: "点赞",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", kw, [k.isPraisePost ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("i", {
- key: 0,
- class: "awsui-iconfont opt-icon-default",
- onClick: U => t.optStream(k, "thumbs")
- }, "", 8, Nw)), k.isPraisePost ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 1,
- class: "awsui-iconfont opt-icon-active",
- onClick: U => t.optStream(k, "thumbs")
- }, "", 8, Lw)) : n.createCommentVNode("", !0), n.createElementVNode("div", {
- class: "thumbs-up-num",
- onClick: U => t.optStream(k, "thumbs")
- }, n.toDisplayString(k.praiseSize), 9, Bw)])]),
- _: 2
- }, 1024), n.createVNode(E, {
- class: "box-item",
- effect: "dark",
- content: "评论",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", Pw, [n.createElementVNode("i", {
- class: "awsui-iconfont opt-icon-default",
- onClick: U => k.isExpand = !k.isExpand
- }, "", 8, Dw), n.createElementVNode("div", {
- class: "comment-num",
- onClick: U => k.isExpand = !k.isExpand
- }, n.toDisplayString(k.replysSize), 9, Vw)])]),
- _: 2
- }, 1024), n.createVNode(E, {
- class: "box-item",
- effect: "dark",
- content: "收藏",
- placement: "top"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", Mw, [k.isFavoritesPost ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("i", {
- key: 0,
- class: "awsui-iconfont opt-icon-default",
- onClick: U => t.optStream(k, "favorites")
- }, "", 8, Rw)), k.isFavoritesPost ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 1,
- class: "awsui-iconfont opt-icon-favorite",
- onClick: U => t.optStream(k, "favorites")
- }, "", 8, $w)) : n.createCommentVNode("", !0), n.createElementVNode("div", {
- clas: "collection-num",
- onClick: U => t.optStream(k, "favorites")
- }, n.toDisplayString(k.favoritesSize), 9, Fw)])]),
- _: 2
- }, 1024)])], 2), k.isExpand && !t.operation.readonly ? (n.openBlock(),
- n.createElementBlock("div", Uw, [n.createVNode(u, {
- modelValue: t.commentValue,
- "onUpdate:modelValue": r[5] || (r[5] = U => t.commentValue = U),
- type: "textarea",
- rows: 3,
- placeholder: "发布你的评论",
- options: t.trimOptions,
- loading: t.termLoading,
- whole: "",
- class: "no-resize",
- onSearch: t.handleTermSearch
- }, {
- loading: n.withCtx(() => [n.createTextVNode(" 加载中... ")]),
- _: 1
- }, 8, ["modelValue", "options", "loading", "onSearch"]), n.createElementVNode("div", zw, [n.createVNode(v, {
- type: "primary",
- disabled: !t.commentValue,
- onClick: U => t.debouncedSubmitComment(k)
- }, {
- default: n.withCtx(() => [n.createTextVNode("确定")]),
- _: 2
- }, 1032, ["disabled", "onClick"]), n.createVNode(v, {
- onClick: U => k.isExpand = !1
- }, {
- default: n.withCtx(() => [n.createTextVNode("取消")]),
- _: 2
- }, 1032, ["onClick"])])])) : n.createCommentVNode("", !0), n.createElementVNode("div", Hw, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(k.commentList.slice(0, 2), U => (n.openBlock(),
- n.createElementBlock("div", {
- class: "comment-item",
- key: U.id,
- onMouseenter: X => U.isHover = !0,
- onMouseleave: X => U.isHover = !1
- }, [n.createElementVNode("div", jw, [n.createElementVNode("div", Kw, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + U.userPhoto
- }, null, 8, Gw)]), n.createElementVNode("div", Jw, [n.createElementVNode("div", Yw, n.toDisplayString(U.createUserName), 1)]), U.isHover && U.createUserId == t.options.userId ? (n.openBlock(),
- n.createElementBlock("div", qw, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: X => t.deleteConver(U, k, "comment")
- }, "", 8, Zw)])) : n.createCommentVNode("", !0)]), n.createElementVNode("div", Xw, [n.createElementVNode("div", Qw, [n.createElementVNode("div", {
- class: "top-txt",
- innerHTML: t.formatText(U.commentContent)
- }, null, 8, ev)]), n.createElementVNode("div", tv, [n.createElementVNode("div", nv, n.toDisplayString(U.createTime), 1)])])], 40, Ww))), 128)), k.commentList.length > 2 ? (n.openBlock(),
- n.createElementBlock("div", ov, [k.commentList[2].isExpand ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "more-txt",
- onClick: U => k.commentList[2].isExpand = !0
- }, "显示更多记录", 8, rv))])) : n.createCommentVNode("", !0), n.createVNode(n.TransitionGroup, null, {
- default: n.withCtx(() => [k.commentList.length > 2 && k.commentList[2].isExpand ? (n.openBlock(!0),
- n.createElementBlock(n.Fragment, {
- key: 0
- }, n.renderList(k.commentList.slice(2, k.commentList.length), U => (n.openBlock(),
- n.createElementBlock("div", {
- class: "comment-item",
- key: U.id,
- onMouseenter: X => U.isHover = !0,
- onMouseleave: X => U.isHover = !1
- }, [n.createElementVNode("div", av, [n.createElementVNode("div", sv, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + U.userPhoto
- }, null, 8, lv)]), n.createElementVNode("div", cv, [n.createElementVNode("div", uv, n.toDisplayString(U.createUserName), 1)]), U.isHover && U.createUserId == t.options.userId ? (n.openBlock(),
- n.createElementBlock("div", fv, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: X => t.deleteConver(U, k, "comment")
- }, "", 8, dv)])) : n.createCommentVNode("", !0)]), n.createElementVNode("div", pv, [n.createVNode(g, {
- class: "main-top",
- height: "40px"
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", {
- class: "top-txt",
- innerHTML: t.formatText(U.commentContent)
- }, null, 8, mv)]),
- _: 2
- }, 1024), n.createElementVNode("div", hv, [n.createElementVNode("div", gv, n.toDisplayString(U.createTime), 1)])])], 40, iv))), 128)) : n.createCommentVNode("", !0)]),
- _: 2
- }, 1024), k.commentList.length > 2 ? (n.openBlock(),
- n.createElementBlock("div", yv, [k.commentList[2].isExpand ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "more-txt",
- onClick: U => k.commentList[2].isExpand = !1
- }, "收起更多记录", 8, _v)) : n.createCommentVNode("", !0)])) : n.createCommentVNode("", !0)])]))), 128))], 8, q_)), [[M, t.loadData]])]),
- _: 1
- }, 8, ["height"])]),
- _: 1
- }, 8, ["loading"])) : n.createCommentVNode("", !0)]), n.createVNode(T, {
- modelValue: t.drawerVisible,
- "onUpdate:modelValue": r[6] || (r[6] = k => t.drawerVisible = k),
- title: t.drawerTitle,
- size: t.drawerSize,
- direction: "rtl"
- }, {
- default: n.withCtx(() => [n.createElementVNode("iframe", {
- src: t.objUrl,
- frameborder: "0",
- style: {
- width: "100%",
- height: "100%"
- }
- }, null, 8, wv)]),
- _: 1
- }, 8, ["modelValue", "title", "size"]), n.createVNode(N, {
- visible: t.showImgPreview,
- "onUpdate:visible": r[7] || (r[7] = k => t.showImgPreview = k),
- "img-data-list": t.previewList,
- "url-key": "imgUrl",
- "name-key": "fileActName",
- "initial-index": t.initialIndex
- }, null, 8, ["visible", "img-data-list", "initial-index"]), n.createVNode(B, {
- visible: t.showVideoPreview,
- "onUpdate:visible": r[8] || (r[8] = k => t.showVideoPreview = k),
- initialIndex: 0,
- nameKey: "name",
- infoKey: "info",
- "hide-on-click-modal": !1,
- videoDataList: t.videoList,
- urlKey: "url",
- autoPlay: !0,
- loop: !0,
- onClose: t.handleClose,
- onSwitch: t.handleSwitch
- }, null, 8, ["visible", "videoDataList", "onClose", "onSwitch"]), n.createVNode(D, {
- ref: "mapContainerRef"
- }, null, 512)], 4)
- }
- const bv = ra(A_, [["render", vv], ["__scopeId", "data-v-f520604c"]]);
- n.defineComponent({
- name: "params-display",
- components: {},
- props: {
- ...Kd
- },
- setup(t, r) {
- const i = n.getCurrentInstance()
- , s = i == null ? void 0 : i.appContext.config.globalProperties;
- s == null || s.awsuiTools,
- s == null || s.$store.state;
- const c = s == null ? void 0 : s.awsuiaxios
- , { proxy: f } = i
- , u = n.computed({
- get: () => t.modelValue,
- set: w => {
- r.emit("update:modelValue", w)
- }
- });
- if (u.value.options.sourceType == "") {
- let w = /([^_]+)$/;
- u.value.options.sourceType = u.value.boItemModel.boDefName.match(w)[1]
- }
- u.value.options.sourceId == "" && (u.value.options.sourceId = "@form(" + u.value.boItemModel.boDefName + ",ID)");
- const d = n.reactive({
- atOptions: {
- sid: f.AWSPageContext.settingParam.sessionId,
- defaultValue: "",
- disabled: f.isReadOnlyAppAuth,
- contextData: {
- data: [{
- constData: []
- }],
- appId: f.AWSPageContext.settingParam.appId,
- showRelateModel: !0
- }
- },
- networkList: [],
- networkGroupList: {},
- streamHeight: u.value.options.height,
- defaultIconPickerOptions: {
- type: "background",
- customClass: "icon_custom",
- format: !1
- }
- })
- , p = n.reactive({
- changeFixdHeight(w) {
- w || (d.streamHeight = 700,
- p.blurHeight())
- },
- blurHeight() {
- d.streamHeight < 400 ? d.streamHeight = u.value.options.height = 400 : u.value.options.height = d.streamHeight
- },
- saveBindKey() {
- c.post({
- url: "jd",
- data: {
- cmd: "CONSOLE_M_UI_CONFIG_SAVE_AMAP_KEY",
- aMapKey: u.value.options.aMapKey,
- securityJsCode: u.value.options.securityJsCode
- }
- }).then(w => {
- w.result == "ok" && console.log(w)
- }
- )
- },
- getNetWorkInfo() {
- c.post({
- url: "jd",
- data: {
- cmd: "com.actionsoft.apps.network_load_networkandteamdata"
- }
- }).then(w => {
- w.result == "ok" && (d.networkList = w.data.networkList,
- d.networkGroupList = w.data.networkGroupList)
- }
- )
- },
- handleIconFont(w) { }
- });
- return n.onMounted(() => {
- p.getNetWorkInfo()
- }
- ),
- {
- data: u,
- ...n.toRefs(d),
- ...n.toRefs(p)
- }
- }
- });
- const Pc = "AWSUI.Stream2"
- , Cv = {
- customReadonlyRender: (t, r) => !0,
- event: {
- customValidateRule: (t, r, i, s) => {
- t.push({
- validator: (c, f) => {
- if (f == "")
- return !0;
- const u = i.componentSetting;
- return !r.isDesign && u.limitNumber && u.minLength > 0 && f.length < u.minLength ? new Error(`至少输入${r.options.minLength}个字`) : !0
- }
- })
- }
- }
- };
- function aa() { }
- const bt = Object.assign
- , sa = typeof window < "u"
- , la = t => t !== null && typeof t == "object"
- , Mn = t => t != null
- , xr = t => typeof t == "function"
- , Ev = t => la(t) && xr(t.then) && xr(t.catch)
- , Dc = t => typeof t == "number" || /^\d+(\.\d+)?$/.test(t)
- , Sv = () => sa ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
- function Vc(t, r) {
- const i = r.split(".");
- let s = t;
- return i.forEach(c => {
- var f;
- s = la(s) && (f = s[c]) != null ? f : ""
- }
- ),
- s
- }
- function Iv(t, r, i) {
- return r.reduce((s, c) => (s[c] = t[c],
- s), {})
- }
- const ca = null
- , Ct = [Number, String]
- , jt = {
- type: Boolean,
- default: !0
- }
- , We = t => ({
- type: String,
- default: t
- });
- var ua = typeof window < "u"
- , xv = t => t === window
- , Mc = (t, r) => ({
- top: 0,
- left: 0,
- right: t,
- bottom: r,
- width: t,
- height: r
- })
- , Av = t => {
- const r = n.unref(t);
- if (xv(r)) {
- const i = r.innerWidth
- , s = r.innerHeight;
- return Mc(i, s)
- }
- return r != null && r.getBoundingClientRect ? r.getBoundingClientRect() : Mc(0, 0)
- }
- ;
- function Tv(t) {
- const r = n.inject(t, null);
- if (r) {
- const i = n.getCurrentInstance()
- , { link: s, unlink: c, internalChildren: f } = r;
- s(i),
- n.onUnmounted(() => c(i));
- const u = n.computed(() => f.indexOf(i));
- return {
- parent: r,
- index: u
- }
- }
- return {
- parent: null,
- index: n.ref(-1)
- }
- }
- function Ov(t) {
- const r = []
- , i = s => {
- Array.isArray(s) && s.forEach(c => {
- var f;
- n.isVNode(c) && (r.push(c),
- (f = c.component) != null && f.subTree && (r.push(c.component.subTree),
- i(c.component.subTree.children)),
- c.children && i(c.children))
- }
- )
- }
- ;
- return i(t),
- r
- }
- var Rc = (t, r) => {
- const i = t.indexOf(r);
- return i === -1 ? t.findIndex(s => r.key !== void 0 && r.key !== null && s.type === r.type && s.key === r.key) : i
- }
- ;
- function kv(t, r, i) {
- const s = Ov(t.subTree.children);
- i.sort((f, u) => Rc(s, f.vnode) - Rc(s, u.vnode));
- const c = i.map(f => f.proxy);
- r.sort((f, u) => {
- const d = c.indexOf(f)
- , p = c.indexOf(u);
- return d - p
- }
- )
- }
- function Nv(t) {
- const r = n.reactive([])
- , i = n.reactive([])
- , s = n.getCurrentInstance();
- return {
- children: r,
- linkChildren: f => {
- const u = p => {
- p.proxy && (i.push(p),
- r.push(p.proxy),
- kv(s, r, i))
- }
- , d = p => {
- const w = i.indexOf(p);
- r.splice(w, 1),
- i.splice(w, 1)
- }
- ;
- n.provide(t, Object.assign({
- link: u,
- unlink: d,
- children: r,
- internalChildren: i
- }, f))
- }
- }
- }
- function $c(t) {
- let r;
- n.onMounted(() => {
- t(),
- n.nextTick(() => {
- r = !0
- }
- )
- }
- ),
- n.onActivated(() => {
- r && t()
- }
- )
- }
- function Fc(t, r, i = {}) {
- if (!ua)
- return;
- const { target: s = window, passive: c = !1, capture: f = !1 } = i;
- let u = !1, d;
- const p = C => {
- if (u)
- return;
- const h = n.unref(C);
- h && !d && (h.addEventListener(t, r, {
- capture: f,
- passive: c
- }),
- d = !0)
- }
- , w = C => {
- if (u)
- return;
- const h = n.unref(C);
- h && d && (h.removeEventListener(t, r, f),
- d = !1)
- }
- ;
- n.onUnmounted(() => w(s)),
- n.onDeactivated(() => w(s)),
- $c(() => p(s));
- let E;
- return n.isRef(s) && (E = n.watch(s, (C, h) => {
- w(h),
- p(C)
- }
- )),
- () => {
- E == null || E(),
- w(s),
- u = !0
- }
- }
- var Ar, fa;
- function Lv() {
- if (!Ar && (Ar = n.ref(0),
- fa = n.ref(0),
- ua)) {
- const t = () => {
- Ar.value = window.innerWidth,
- fa.value = window.innerHeight
- }
- ;
- t(),
- window.addEventListener("resize", t, {
- passive: !0
- }),
- window.addEventListener("orientationchange", t, {
- passive: !0
- })
- }
- return {
- width: Ar,
- height: fa
- }
- }
- var Bv = /scroll|auto|overlay/i
- , Pv = ua ? window : void 0;
- function Dv(t) {
- return t.tagName !== "HTML" && t.tagName !== "BODY" && t.nodeType === 1
- }
- function Vv(t, r = Pv) {
- let i = t;
- for (; i && i !== r && Dv(i);) {
- const { overflowY: s } = window.getComputedStyle(i);
- if (Bv.test(s))
- return i;
- i = i.parentNode
- }
- return r
- }
- Sv();
- const Mv = t => t.stopPropagation();
- function da(t, r) {
- (typeof t.cancelable != "boolean" || t.cancelable) && t.preventDefault(),
- r && Mv(t)
- }
- const { width: Rv, height: $v } = Lv();
- function Et(t) {
- if (Mn(t))
- return Dc(t) ? `${t}px` : String(t)
- }
- function Fv(t) {
- if (Mn(t)) {
- if (Array.isArray(t))
- return {
- width: Et(t[0]),
- height: Et(t[1])
- };
- const r = Et(t);
- return {
- width: r,
- height: r
- }
- }
- }
- function Uv(t) {
- const r = {};
- return t !== void 0 && (r.zIndex = +t),
- r
- }
- const zv = /-(\w)/g
- , Uc = t => t.replace(zv, (r, i) => i.toUpperCase())
- , Hv = t => t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "")
- , { hasOwnProperty: Wv } = Object.prototype;
- function jv(t, r, i) {
- const s = r[i];
- Mn(s) && (!Wv.call(t, i) || !la(s) ? t[i] = s : t[i] = zc(Object(t[i]), s))
- }
- function zc(t, r) {
- return Object.keys(r).forEach(i => {
- jv(t, r, i)
- }
- ),
- t
- }
- var Kv = {
- name: "姓名",
- tel: "电话",
- save: "保存",
- clear: "清空",
- cancel: "取消",
- confirm: "确认",
- delete: "删除",
- loading: "加载中...",
- noCoupon: "暂无优惠券",
- nameEmpty: "请填写姓名",
- addContact: "添加联系人",
- telInvalid: "请填写正确的电话",
- vanCalendar: {
- end: "结束",
- start: "开始",
- title: "日期选择",
- weekdays: ["日", "一", "二", "三", "四", "五", "六"],
- monthTitle: (t, r) => `${t}年${r}月`,
- rangePrompt: t => `最多选择 ${t} 天`
- },
- vanCascader: {
- select: "请选择"
- },
- vanPagination: {
- prev: "上一页",
- next: "下一页"
- },
- vanPullRefresh: {
- pulling: "下拉即可刷新...",
- loosing: "释放即可刷新..."
- },
- vanSubmitBar: {
- label: "合计:"
- },
- vanCoupon: {
- unlimited: "无门槛",
- discount: t => `${t}折`,
- condition: t => `满${t}元可用`
- },
- vanCouponCell: {
- title: "优惠券",
- count: t => `${t}张可用`
- },
- vanCouponList: {
- exchange: "兑换",
- close: "不使用",
- enable: "可用",
- disabled: "不可用",
- placeholder: "输入优惠码"
- },
- vanAddressEdit: {
- area: "地区",
- areaEmpty: "请选择地区",
- addressEmpty: "请填写详细地址",
- addressDetail: "详细地址",
- defaultAddress: "设为默认收货地址"
- },
- vanAddressList: {
- add: "新增地址"
- }
- };
- const Hc = n.ref("zh-CN")
- , Wc = n.reactive({
- "zh-CN": Kv
- });
- var Gv = {
- messages() {
- return Wc[Hc.value]
- },
- use(t, r) {
- Hc.value = t,
- this.add({
- [t]: r
- })
- },
- add(t = {}) {
- zc(Wc, t)
- }
- };
- function Jv(t) {
- const r = Uc(t) + ".";
- return (i, ...s) => {
- const c = Gv.messages()
- , f = Vc(c, r + i) || Vc(c, i);
- return xr(f) ? f(...s) : f
- }
- }
- function pa(t, r) {
- return r ? typeof r == "string" ? ` ${t}--${r}` : Array.isArray(r) ? r.reduce((i, s) => i + pa(t, s), "") : Object.keys(r).reduce((i, s) => i + (r[s] ? pa(t, s) : ""), "") : ""
- }
- function Yv(t) {
- return (r, i) => (r && typeof r != "string" && (i = r,
- r = ""),
- r = r ? `${t}__${r}` : t,
- `${r}${pa(r, i)}`)
- }
- function Kt(t) {
- const r = `van-${t}`;
- return [r, Yv(r), Jv(r)]
- }
- const ma = "van-hairline"
- , qv = `${ma}--top`
- , Zv = `${ma}--left`
- , Xv = `${ma}--surround`
- , Qv = "van-haptics-feedback"
- , jc = 5;
- function Kc(t, { args: r = [], done: i, canceled: s, error: c }) {
- if (t) {
- const f = t.apply(null, r);
- Ev(f) ? f.then(u => {
- u ? i() : s && s()
- }
- ).catch(c || aa) : f ? i() : s && s()
- } else
- i()
- }
- function tn(t) {
- return t.install = r => {
- const { name: i } = t;
- i && (r.component(i, t),
- r.component(Uc(`-${i}`), t))
- }
- ,
- t
- }
- const Gc = Symbol();
- function eb(t) {
- const r = n.inject(Gc, null);
- r && n.watch(r, i => {
- i && t()
- }
- )
- }
- const tb = (t, r) => {
- const i = n.ref()
- , s = () => {
- i.value = Av(t).height
- }
- ;
- return n.onMounted(() => {
- n.nextTick(s);
- for (let c = 1; c <= 3; c++)
- setTimeout(s, 100 * c)
- }
- ),
- eb(() => n.nextTick(s)),
- n.watch([Rv, $v], s),
- i
- }
- ;
- function nb(t, r) {
- const i = tb(t);
- return s => n.createVNode("div", {
- class: r("placeholder"),
- style: {
- height: i.value ? `${i.value}px` : void 0
- }
- }, [s()])
- }
- const [Jc, Yc] = Kt("action-bar")
- , qc = Symbol(Jc)
- , ob = {
- placeholder: Boolean,
- safeAreaInsetBottom: jt
- };
- var rb = n.defineComponent({
- name: Jc,
- props: ob,
- setup(t, { slots: r }) {
- const i = n.ref()
- , s = nb(i, Yc)
- , { linkChildren: c } = Nv(qc);
- c();
- const f = () => {
- var u;
- return n.createVNode("div", {
- ref: i,
- class: [Yc(), {
- "van-safe-area-bottom": t.safeAreaInsetBottom
- }]
- }, [(u = r.default) == null ? void 0 : u.call(r)])
- }
- ;
- return () => t.placeholder ? s(f) : f()
- }
- });
- const ib = tn(rb);
- function ha(t) {
- const r = n.getCurrentInstance();
- r && bt(r.proxy, t)
- }
- const Zc = {
- to: [String, Object],
- url: String,
- replace: Boolean
- };
- function ab({ to: t, url: r, replace: i, $router: s }) {
- t && s ? s[i ? "replace" : "push"](t) : r && (i ? location.replace(r) : location.href = r)
- }
- function Xc() {
- const t = n.getCurrentInstance().proxy;
- return () => ab(t)
- }
- const [sb, Qc] = Kt("badge")
- , lb = {
- dot: Boolean,
- max: Ct,
- tag: We("div"),
- color: String,
- offset: Array,
- content: Ct,
- showZero: jt,
- position: We("top-right")
- };
- var cb = n.defineComponent({
- name: sb,
- props: lb,
- setup(t, { slots: r }) {
- const i = () => {
- if (r.content)
- return !0;
- const { content: d, showZero: p } = t;
- return Mn(d) && d !== "" && (p || d !== 0 && d !== "0")
- }
- , s = () => {
- const { dot: d, max: p, content: w } = t;
- if (!d && i())
- return r.content ? r.content() : Mn(p) && Dc(w) && +w > +p ? `${p}+` : w
- }
- , c = d => d.startsWith("-") ? d.replace("-", "") : `-${d}`
- , f = n.computed(() => {
- const d = {
- background: t.color
- };
- if (t.offset) {
- const [p, w] = t.offset
- , { position: E } = t
- , [C, h] = E.split("-");
- r.default ? (typeof w == "number" ? d[C] = Et(C === "top" ? w : -w) : d[C] = C === "top" ? Et(w) : c(w),
- typeof p == "number" ? d[h] = Et(h === "left" ? p : -p) : d[h] = h === "left" ? Et(p) : c(p)) : (d.marginTop = Et(w),
- d.marginLeft = Et(p))
- }
- return d
- }
- )
- , u = () => {
- if (i() || t.dot)
- return n.createVNode("div", {
- class: Qc([t.position, {
- dot: t.dot,
- fixed: !!r.default
- }]),
- style: f.value
- }, [s()])
- }
- ;
- return () => {
- if (r.default) {
- const { tag: d } = t;
- return n.createVNode(d, {
- class: Qc("wrapper")
- }, {
- default: () => [r.default(), u()]
- })
- }
- return u()
- }
- }
- });
- const ub = tn(cb);
- let eu = 2e3;
- const fb = () => ++eu
- , db = t => {
- eu = t
- }
- , [tu, pb] = Kt("config-provider")
- , nu = Symbol(tu)
- , mb = {
- tag: We("div"),
- theme: We("light"),
- zIndex: Number,
- themeVars: Object,
- themeVarsDark: Object,
- themeVarsLight: Object,
- themeVarsScope: We("local"),
- iconPrefix: String
- };
- function hb(t) {
- return t.replace(/([a-zA-Z])(\d)/g, "$1-$2")
- }
- function gb(t) {
- const r = {};
- return Object.keys(t).forEach(i => {
- const s = hb(Hv(i));
- r[`--van-${s}`] = t[i]
- }
- ),
- r
- }
- function Tr(t = {}, r = {}) {
- Object.keys(t).forEach(i => {
- t[i] !== r[i] && document.documentElement.style.setProperty(i, t[i])
- }
- ),
- Object.keys(r).forEach(i => {
- t[i] || document.documentElement.style.removeProperty(i)
- }
- )
- }
- n.defineComponent({
- name: tu,
- props: mb,
- setup(t, { slots: r }) {
- const i = n.computed(() => gb(bt({}, t.themeVars, t.theme === "dark" ? t.themeVarsDark : t.themeVarsLight)));
- if (sa) {
- const s = () => {
- document.documentElement.classList.add(`van-theme-${t.theme}`)
- }
- , c = (f = t.theme) => {
- document.documentElement.classList.remove(`van-theme-${f}`)
- }
- ;
- n.watch(() => t.theme, (f, u) => {
- u && c(u),
- s()
- }
- , {
- immediate: !0
- }),
- n.onActivated(s),
- n.onDeactivated(c),
- n.onBeforeUnmount(c),
- n.watch(i, (f, u) => {
- t.themeVarsScope === "global" && Tr(f, u)
- }
- ),
- n.watch(() => t.themeVarsScope, (f, u) => {
- u === "global" && Tr({}, i.value),
- f === "global" && Tr(i.value, {})
- }
- ),
- t.themeVarsScope === "global" && Tr(i.value, {})
- }
- return n.provide(nu, t),
- n.watchEffect(() => {
- t.zIndex !== void 0 && db(t.zIndex)
- }
- ),
- () => n.createVNode(t.tag, {
- class: pb(),
- style: t.themeVarsScope === "local" ? i.value : void 0
- }, {
- default: () => {
- var s;
- return [(s = r.default) == null ? void 0 : s.call(r)]
- }
- })
- }
- });
- const [yb, ou] = Kt("icon")
- , _b = t => t == null ? void 0 : t.includes("/")
- , wb = {
- dot: Boolean,
- tag: We("i"),
- name: String,
- size: Ct,
- badge: Ct,
- color: String,
- badgeProps: Object,
- classPrefix: String
- };
- var vb = n.defineComponent({
- name: yb,
- props: wb,
- setup(t, { slots: r }) {
- const i = n.inject(nu, null)
- , s = n.computed(() => t.classPrefix || (i == null ? void 0 : i.iconPrefix) || ou());
- return () => {
- const { tag: c, dot: f, name: u, size: d, badge: p, color: w } = t
- , E = _b(u);
- return n.createVNode(ub, n.mergeProps({
- dot: f,
- tag: c,
- class: [s.value, E ? "" : `${s.value}-${u}`],
- style: {
- color: w,
- fontSize: Et(d)
- },
- content: p
- }, t.badgeProps), {
- default: () => {
- var C;
- return [(C = r.default) == null ? void 0 : C.call(r), E && n.createVNode("img", {
- class: ou("image"),
- src: u
- }, null)]
- }
- })
- }
- }
- });
- const ru = tn(vb)
- , [bb, $o] = Kt("loading")
- , Cb = Array(12).fill(null).map((t, r) => n.createVNode("i", {
- class: $o("line", String(r + 1))
- }, null))
- , Eb = n.createVNode("svg", {
- class: $o("circular"),
- viewBox: "25 25 50 50"
- }, [n.createVNode("circle", {
- cx: "50",
- cy: "50",
- r: "20",
- fill: "none"
- }, null)])
- , Sb = {
- size: Ct,
- type: We("circular"),
- color: String,
- vertical: Boolean,
- textSize: Ct,
- textColor: String
- };
- var Ib = n.defineComponent({
- name: bb,
- props: Sb,
- setup(t, { slots: r }) {
- const i = n.computed(() => bt({
- color: t.color
- }, Fv(t.size)))
- , s = () => {
- const f = t.type === "spinner" ? Cb : Eb;
- return n.createVNode("span", {
- class: $o("spinner", t.type),
- style: i.value
- }, [r.icon ? r.icon() : f])
- }
- , c = () => {
- var f;
- if (r.default)
- return n.createVNode("span", {
- class: $o("text"),
- style: {
- fontSize: Et(t.textSize),
- color: (f = t.textColor) != null ? f : t.color
- }
- }, [r.default()])
- }
- ;
- return () => {
- const { type: f, vertical: u } = t;
- return n.createVNode("div", {
- class: $o([f, {
- vertical: u
- }]),
- "aria-live": "polite",
- "aria-busy": !0
- }, [s(), c()])
- }
- }
- });
- const xb = tn(Ib)
- , [Ab, uo] = Kt("button")
- , Tb = bt({}, Zc, {
- tag: We("button"),
- text: String,
- icon: String,
- type: We("default"),
- size: We("normal"),
- color: String,
- block: Boolean,
- plain: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- iconPrefix: String,
- nativeType: We("button"),
- loadingSize: Ct,
- loadingText: String,
- loadingType: String,
- iconPosition: We("left")
- });
- var Ob = n.defineComponent({
- name: Ab,
- props: Tb,
- emits: ["click"],
- setup(t, { emit: r, slots: i }) {
- const s = Xc()
- , c = () => i.loading ? i.loading() : n.createVNode(xb, {
- size: t.loadingSize,
- type: t.loadingType,
- class: uo("loading")
- }, null)
- , f = () => {
- if (t.loading)
- return c();
- if (i.icon)
- return n.createVNode("div", {
- class: uo("icon")
- }, [i.icon()]);
- if (t.icon)
- return n.createVNode(ru, {
- name: t.icon,
- class: uo("icon"),
- classPrefix: t.iconPrefix
- }, null)
- }
- , u = () => {
- let w;
- if (t.loading ? w = t.loadingText : w = i.default ? i.default() : t.text,
- w)
- return n.createVNode("span", {
- class: uo("text")
- }, [w])
- }
- , d = () => {
- const { color: w, plain: E } = t;
- if (w) {
- const C = {
- color: E ? w : "white"
- };
- return E || (C.background = w),
- w.includes("gradient") ? C.border = 0 : C.borderColor = w,
- C
- }
- }
- , p = w => {
- t.loading ? da(w) : t.disabled || (r("click", w),
- s())
- }
- ;
- return () => {
- const { tag: w, type: E, size: C, block: h, round: x, plain: v, square: I, loading: y, disabled: g, hairline: S, nativeType: T, iconPosition: N } = t
- , B = [uo([E, C, {
- plain: v,
- block: h,
- round: x,
- square: I,
- loading: y,
- disabled: g,
- hairline: S
- }]), {
- [Xv]: S
- }];
- return n.createVNode(w, {
- type: T,
- class: B,
- style: d(),
- disabled: g,
- onClick: p
- }, {
- default: () => [n.createVNode("div", {
- class: uo("content")
- }, [N === "left" && f(), u(), N === "right" && f()])]
- })
- }
- }
- });
- const ga = tn(Ob)
- , [kb, Nb] = Kt("action-bar-button")
- , Lb = bt({}, Zc, {
- type: String,
- text: String,
- icon: String,
- color: String,
- loading: Boolean,
- disabled: Boolean
- });
- var Bb = n.defineComponent({
- name: kb,
- props: Lb,
- setup(t, { slots: r }) {
- const i = Xc()
- , { parent: s, index: c } = Tv(qc)
- , f = n.computed(() => {
- if (s) {
- const d = s.children[c.value - 1];
- return !(d && "isButton" in d)
- }
- }
- )
- , u = n.computed(() => {
- if (s) {
- const d = s.children[c.value + 1];
- return !(d && "isButton" in d)
- }
- }
- );
- return ha({
- isButton: !0
- }),
- () => {
- const { type: d, icon: p, text: w, color: E, loading: C, disabled: h } = t;
- return n.createVNode(ga, {
- class: Nb([d, {
- last: u.value,
- first: f.value
- }]),
- size: "large",
- type: d,
- icon: p,
- color: E,
- loading: C,
- disabled: h,
- onClick: i
- }, {
- default: () => [r.default ? r.default() : w]
- })
- }
- }
- });
- const iu = tn(Bb)
- , ya = {
- show: Boolean,
- zIndex: Ct,
- overlay: jt,
- duration: Ct,
- teleport: [String, Object],
- lockScroll: jt,
- lazyRender: jt,
- beforeClose: Function,
- overlayStyle: Object,
- overlayClass: ca,
- transitionAppear: Boolean,
- closeOnClickOverlay: jt
- }
- , Pb = Object.keys(ya);
- function Db(t, r) {
- return t > r ? "horizontal" : r > t ? "vertical" : ""
- }
- function Vb() {
- const t = n.ref(0)
- , r = n.ref(0)
- , i = n.ref(0)
- , s = n.ref(0)
- , c = n.ref(0)
- , f = n.ref(0)
- , u = n.ref("")
- , d = n.ref(!0)
- , p = () => u.value === "vertical"
- , w = () => u.value === "horizontal"
- , E = () => {
- i.value = 0,
- s.value = 0,
- c.value = 0,
- f.value = 0,
- u.value = "",
- d.value = !0
- }
- ;
- return {
- move: x => {
- const v = x.touches[0];
- i.value = (v.clientX < 0 ? 0 : v.clientX) - t.value,
- s.value = v.clientY - r.value,
- c.value = Math.abs(i.value),
- f.value = Math.abs(s.value);
- const I = 10;
- (!u.value || c.value < I && f.value < I) && (u.value = Db(c.value, f.value)),
- d.value && (c.value > jc || f.value > jc) && (d.value = !1)
- }
- ,
- start: x => {
- E(),
- t.value = x.touches[0].clientX,
- r.value = x.touches[0].clientY
- }
- ,
- reset: E,
- startX: t,
- startY: r,
- deltaX: i,
- deltaY: s,
- offsetX: c,
- offsetY: f,
- direction: u,
- isVertical: p,
- isHorizontal: w,
- isTap: d
- }
- }
- let Fo = 0;
- const au = "van-overflow-hidden";
- function Mb(t, r) {
- const i = Vb()
- , s = "01"
- , c = "10"
- , f = E => {
- i.move(E);
- const C = i.deltaY.value > 0 ? c : s
- , h = Vv(E.target, t.value)
- , { scrollHeight: x, offsetHeight: v, scrollTop: I } = h;
- let y = "11";
- I === 0 ? y = v >= x ? "00" : "01" : I + v >= x && (y = "10"),
- y !== "11" && i.isVertical() && !(parseInt(y, 2) & parseInt(C, 2)) && da(E, !0)
- }
- , u = () => {
- document.addEventListener("touchstart", i.start),
- document.addEventListener("touchmove", f, {
- passive: !1
- }),
- Fo || document.body.classList.add(au),
- Fo++
- }
- , d = () => {
- Fo && (document.removeEventListener("touchstart", i.start),
- document.removeEventListener("touchmove", f),
- Fo--,
- Fo || document.body.classList.remove(au))
- }
- , p = () => r() && u()
- , w = () => r() && d();
- $c(p),
- n.onDeactivated(w),
- n.onBeforeUnmount(w),
- n.watch(r, E => {
- E ? u() : d()
- }
- )
- }
- function su(t) {
- const r = n.ref(!1);
- return n.watch(t, i => {
- i && (r.value = i)
- }
- , {
- immediate: !0
- }),
- i => () => r.value ? i() : null
- }
- const lu = () => {
- var t;
- const { scopeId: r } = ((t = n.getCurrentInstance()) == null ? void 0 : t.vnode) || {};
- return r ? {
- [r]: ""
- } : null
- }
- , [Rb, $b] = Kt("overlay")
- , Fb = {
- show: Boolean,
- zIndex: Ct,
- duration: Ct,
- className: ca,
- lockScroll: jt,
- lazyRender: jt,
- customStyle: Object
- };
- var Ub = n.defineComponent({
- name: Rb,
- props: Fb,
- setup(t, { slots: r }) {
- const i = n.ref()
- , s = su(() => t.show || !t.lazyRender)
- , c = u => {
- t.lockScroll && da(u, !0)
- }
- , f = s(() => {
- var u;
- const d = bt(Uv(t.zIndex), t.customStyle);
- return Mn(t.duration) && (d.animationDuration = `${t.duration}s`),
- n.withDirectives(n.createVNode("div", {
- ref: i,
- style: d,
- class: [$b(), t.className]
- }, [(u = r.default) == null ? void 0 : u.call(r)]), [[n.vShow, t.show]])
- }
- );
- return Fc("touchmove", c, {
- target: i
- }),
- () => n.createVNode(n.Transition, {
- name: "van-fade",
- appear: !0
- }, {
- default: f
- })
- }
- });
- const zb = tn(Ub)
- , Hb = bt({}, ya, {
- round: Boolean,
- position: We("center"),
- closeIcon: We("cross"),
- closeable: Boolean,
- transition: String,
- iconPrefix: String,
- closeOnPopstate: Boolean,
- closeIconPosition: We("top-right"),
- safeAreaInsetTop: Boolean,
- safeAreaInsetBottom: Boolean
- })
- , [Wb, cu] = Kt("popup");
- var jb = n.defineComponent({
- name: Wb,
- inheritAttrs: !1,
- props: Hb,
- emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
- setup(t, { emit: r, attrs: i, slots: s }) {
- let c, f;
- const u = n.ref()
- , d = n.ref()
- , p = su(() => t.show || !t.lazyRender)
- , w = n.computed(() => {
- const D = {
- zIndex: u.value
- };
- if (Mn(t.duration)) {
- const M = t.position === "center" ? "animationDuration" : "transitionDuration";
- D[M] = `${t.duration}s`
- }
- return D
- }
- )
- , E = () => {
- c || (c = !0,
- u.value = t.zIndex !== void 0 ? +t.zIndex : fb(),
- r("open"))
- }
- , C = () => {
- c && Kc(t.beforeClose, {
- done() {
- c = !1,
- r("close"),
- r("update:show", !1)
- }
- })
- }
- , h = D => {
- r("clickOverlay", D),
- t.closeOnClickOverlay && C()
- }
- , x = () => {
- if (t.overlay)
- return n.createVNode(zb, n.mergeProps({
- show: t.show,
- class: t.overlayClass,
- zIndex: u.value,
- duration: t.duration,
- customStyle: t.overlayStyle,
- role: t.closeOnClickOverlay ? "button" : void 0,
- tabindex: t.closeOnClickOverlay ? 0 : void 0
- }, lu(), {
- onClick: h
- }), {
- default: s["overlay-content"]
- })
- }
- , v = D => {
- r("clickCloseIcon", D),
- C()
- }
- , I = () => {
- if (t.closeable)
- return n.createVNode(ru, {
- role: "button",
- tabindex: 0,
- name: t.closeIcon,
- class: [cu("close-icon", t.closeIconPosition), Qv],
- classPrefix: t.iconPrefix,
- onClick: v
- }, null)
- }
- ;
- let y;
- const g = () => {
- y && clearTimeout(y),
- y = setTimeout(() => {
- r("opened")
- }
- )
- }
- , S = () => r("closed")
- , T = D => r("keydown", D)
- , N = p(() => {
- var D;
- const { round: M, position: k, safeAreaInsetTop: U, safeAreaInsetBottom: X } = t;
- return n.withDirectives(n.createVNode("div", n.mergeProps({
- ref: d,
- style: w.value,
- role: "dialog",
- tabindex: 0,
- class: [cu({
- round: M,
- [k]: k
- }), {
- "van-safe-area-top": U,
- "van-safe-area-bottom": X
- }],
- onKeydown: T
- }, i, lu()), [(D = s.default) == null ? void 0 : D.call(s), I()]), [[n.vShow, t.show]])
- }
- )
- , B = () => {
- const { position: D, transition: M, transitionAppear: k } = t
- , U = D === "center" ? "van-fade" : `van-popup-slide-${D}`;
- return n.createVNode(n.Transition, {
- name: M || U,
- appear: k,
- onAfterEnter: g,
- onAfterLeave: S
- }, {
- default: N
- })
- }
- ;
- return n.watch(() => t.show, D => {
- D && !c && (E(),
- i.tabindex === 0 && n.nextTick(() => {
- var M;
- (M = d.value) == null || M.focus()
- }
- )),
- !D && c && (c = !1,
- r("close"))
- }
- ),
- ha({
- popupRef: d
- }),
- Mb(d, () => t.show && t.lockScroll),
- Fc("popstate", () => {
- t.closeOnPopstate && (C(),
- f = !1)
- }
- ),
- n.onMounted(() => {
- t.show && E()
- }
- ),
- n.onActivated(() => {
- f && (r("update:show", !0),
- f = !1)
- }
- ),
- n.onDeactivated(() => {
- t.show && t.teleport && (C(),
- f = !0)
- }
- ),
- n.provide(Gc, () => t.show),
- () => t.teleport ? n.createVNode(n.Teleport, {
- to: t.teleport
- }, {
- default: () => [x(), B()]
- }) : n.createVNode(n.Fragment, null, [x(), B()])
- }
- });
- const Kb = tn(jb);
- function Gb() {
- const t = n.reactive({
- show: !1
- })
- , r = c => {
- t.show = c
- }
- , i = c => {
- bt(t, c, {
- transitionAppear: !0
- }),
- r(!0)
- }
- , s = () => r(!1);
- return ha({
- open: i,
- close: s,
- toggle: r
- }),
- {
- open: i,
- close: s,
- state: t,
- toggle: r
- }
- }
- function Jb(t) {
- const r = n.createApp(t)
- , i = document.createElement("div");
- return document.body.appendChild(i),
- {
- instance: r.mount(i),
- unmount() {
- r.unmount(),
- document.body.removeChild(i)
- }
- }
- }
- const [Yb, Mt, Or] = Kt("dialog")
- , qb = bt({}, ya, {
- title: String,
- theme: String,
- width: Ct,
- message: [String, Function],
- callback: Function,
- allowHtml: Boolean,
- className: ca,
- transition: We("van-dialog-bounce"),
- messageAlign: String,
- closeOnPopstate: jt,
- showCancelButton: Boolean,
- cancelButtonText: String,
- cancelButtonColor: String,
- cancelButtonDisabled: Boolean,
- confirmButtonText: String,
- confirmButtonColor: String,
- confirmButtonDisabled: Boolean,
- showConfirmButton: jt,
- closeOnClickOverlay: Boolean
- })
- , Zb = [...Pb, "transition", "closeOnPopstate"];
- var uu = n.defineComponent({
- name: Yb,
- props: qb,
- emits: ["confirm", "cancel", "keydown", "update:show"],
- setup(t, { emit: r, slots: i }) {
- const s = n.ref()
- , c = n.reactive({
- confirm: !1,
- cancel: !1
- })
- , f = g => r("update:show", g)
- , u = g => {
- var S;
- f(!1),
- (S = t.callback) == null || S.call(t, g)
- }
- , d = g => () => {
- t.show && (r(g),
- t.beforeClose ? (c[g] = !0,
- Kc(t.beforeClose, {
- args: [g],
- done() {
- u(g),
- c[g] = !1
- },
- canceled() {
- c[g] = !1
- }
- })) : u(g))
- }
- , p = d("cancel")
- , w = d("confirm")
- , E = n.withKeys(g => {
- var S, T;
- if (g.target !== ((T = (S = s.value) == null ? void 0 : S.popupRef) == null ? void 0 : T.value))
- return;
- ({
- Enter: t.showConfirmButton ? w : aa,
- Escape: t.showCancelButton ? p : aa
- })[g.key](),
- r("keydown", g)
- }
- , ["enter", "esc"])
- , C = () => {
- const g = i.title ? i.title() : t.title;
- if (g)
- return n.createVNode("div", {
- class: Mt("header", {
- isolated: !t.message && !i.default
- })
- }, [g])
- }
- , h = g => {
- const { message: S, allowHtml: T, messageAlign: N } = t
- , B = Mt("message", {
- "has-title": g,
- [N]: N
- })
- , D = xr(S) ? S() : S;
- return T && typeof D == "string" ? n.createVNode("div", {
- class: B,
- innerHTML: D
- }, null) : n.createVNode("div", {
- class: B
- }, [D])
- }
- , x = () => {
- if (i.default)
- return n.createVNode("div", {
- class: Mt("content")
- }, [i.default()]);
- const { title: g, message: S, allowHtml: T } = t;
- if (S) {
- const N = !!(g || i.title);
- return n.createVNode("div", {
- key: T ? 1 : 0,
- class: Mt("content", {
- isolated: !N
- })
- }, [h(N)])
- }
- }
- , v = () => n.createVNode("div", {
- class: [qv, Mt("footer")]
- }, [t.showCancelButton && n.createVNode(ga, {
- size: "large",
- text: t.cancelButtonText || Or("cancel"),
- class: Mt("cancel"),
- style: {
- color: t.cancelButtonColor
- },
- loading: c.cancel,
- disabled: t.cancelButtonDisabled,
- onClick: p
- }, null), t.showConfirmButton && n.createVNode(ga, {
- size: "large",
- text: t.confirmButtonText || Or("confirm"),
- class: [Mt("confirm"), {
- [Zv]: t.showCancelButton
- }],
- style: {
- color: t.confirmButtonColor
- },
- loading: c.confirm,
- disabled: t.confirmButtonDisabled,
- onClick: w
- }, null)])
- , I = () => n.createVNode(ib, {
- class: Mt("footer")
- }, {
- default: () => [t.showCancelButton && n.createVNode(iu, {
- type: "warning",
- text: t.cancelButtonText || Or("cancel"),
- class: Mt("cancel"),
- color: t.cancelButtonColor,
- loading: c.cancel,
- disabled: t.cancelButtonDisabled,
- onClick: p
- }, null), t.showConfirmButton && n.createVNode(iu, {
- type: "danger",
- text: t.confirmButtonText || Or("confirm"),
- class: Mt("confirm"),
- color: t.confirmButtonColor,
- loading: c.confirm,
- disabled: t.confirmButtonDisabled,
- onClick: w
- }, null)]
- })
- , y = () => i.footer ? i.footer() : t.theme === "round-button" ? I() : v();
- return () => {
- const { width: g, title: S, theme: T, message: N, className: B } = t;
- return n.createVNode(Kb, n.mergeProps({
- ref: s,
- role: "dialog",
- class: [Mt([T]), B],
- style: {
- width: Et(g)
- },
- tabindex: 0,
- "aria-labelledby": S || N,
- onKeydown: E,
- "onUpdate:show": f
- }, Iv(t, Zb)), {
- default: () => [C(), x(), y()]
- })
- }
- }
- });
- let _a, Xb = bt({}, {
- title: "",
- width: "",
- theme: null,
- message: "",
- overlay: !0,
- callback: null,
- teleport: "body",
- className: "",
- allowHtml: !1,
- lockScroll: !0,
- transition: void 0,
- beforeClose: null,
- overlayClass: "",
- overlayStyle: void 0,
- messageAlign: "",
- cancelButtonText: "",
- cancelButtonColor: null,
- cancelButtonDisabled: !1,
- confirmButtonText: "",
- confirmButtonColor: null,
- confirmButtonDisabled: !1,
- showConfirmButton: !0,
- showCancelButton: !1,
- closeOnPopstate: !0,
- closeOnClickOverlay: !1
- });
- function Qb() {
- ({ instance: _a } = Jb({
- setup() {
- const { state: r, toggle: i } = Gb();
- return () => n.createVNode(uu, n.mergeProps(r, {
- "onUpdate:show": i
- }), null)
- }
- }))
- }
- function e1(t) {
- return sa ? new Promise((r, i) => {
- _a || Qb(),
- _a.open(bt({}, Xb, t, {
- callback: s => {
- (s === "confirm" ? r : i)(s)
- }
- }))
- }
- ) : Promise.resolve(void 0)
- }
- const fu = t => e1(bt({
- showCancelButton: !0
- }, t));
- tn(uu);
- var du = {
- exports: {}
- };
- /*!
- * clipboard.js v2.0.11
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */
- (function (t, r) {
- (function (s, c) {
- t.exports = c()
- }
- )(Dn, function () {
- return function () {
- var i = {
- 686: function (f, u, d) {
- d.d(u, {
- default: function () {
- return Ee
- }
- });
- var p = d(279)
- , w = d.n(p)
- , E = d(370)
- , C = d.n(E)
- , h = d(817)
- , x = d.n(h);
- function v(te) {
- try {
- return document.execCommand(te)
- } catch {
- return !1
- }
- }
- var I = function (Y) {
- var G = x()(Y);
- return v("cut"),
- G
- }
- , y = I;
- function g(te) {
- var Y = document.documentElement.getAttribute("dir") === "rtl"
- , G = document.createElement("textarea");
- G.style.fontSize = "12pt",
- G.style.border = "0",
- G.style.padding = "0",
- G.style.margin = "0",
- G.style.position = "absolute",
- G.style[Y ? "right" : "left"] = "-9999px";
- var q = window.pageYOffset || document.documentElement.scrollTop;
- return G.style.top = "".concat(q, "px"),
- G.setAttribute("readonly", ""),
- G.value = te,
- G
- }
- var S = function (Y, G) {
- var q = g(Y);
- G.container.appendChild(q);
- var ee = x()(q);
- return v("copy"),
- q.remove(),
- ee
- }
- , T = function (Y) {
- var G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
- container: document.body
- }
- , q = "";
- return typeof Y == "string" ? q = S(Y, G) : Y instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(Y == null ? void 0 : Y.type) ? q = S(Y.value, G) : (q = x()(Y),
- v("copy")),
- q
- }
- , N = T;
- function B(te) {
- "@babel/helpers - typeof";
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? B = function (G) {
- return typeof G
- }
- : B = function (G) {
- return G && typeof Symbol == "function" && G.constructor === Symbol && G !== Symbol.prototype ? "symbol" : typeof G
- }
- ,
- B(te)
- }
- var D = function () {
- var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
- , G = Y.action
- , q = G === void 0 ? "copy" : G
- , ee = Y.container
- , ae = Y.target
- , Te = Y.text;
- if (q !== "copy" && q !== "cut")
- throw new Error('Invalid "action" value, use either "copy" or "cut"');
- if (ae !== void 0)
- if (ae && B(ae) === "object" && ae.nodeType === 1) {
- if (q === "copy" && ae.hasAttribute("disabled"))
- throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
- if (q === "cut" && (ae.hasAttribute("readonly") || ae.hasAttribute("disabled")))
- throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)
- } else
- throw new Error('Invalid "target" value, use a valid Element');
- if (Te)
- return N(Te, {
- container: ee
- });
- if (ae)
- return q === "cut" ? y(ae) : N(ae, {
- container: ee
- })
- }
- , M = D;
- function k(te) {
- "@babel/helpers - typeof";
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? k = function (G) {
- return typeof G
- }
- : k = function (G) {
- return G && typeof Symbol == "function" && G.constructor === Symbol && G !== Symbol.prototype ? "symbol" : typeof G
- }
- ,
- k(te)
- }
- function U(te, Y) {
- if (!(te instanceof Y))
- throw new TypeError("Cannot call a class as a function")
- }
- function X(te, Y) {
- for (var G = 0; G < Y.length; G++) {
- var q = Y[G];
- q.enumerable = q.enumerable || !1,
- q.configurable = !0,
- "value" in q && (q.writable = !0),
- Object.defineProperty(te, q.key, q)
- }
- }
- function W(te, Y, G) {
- return Y && X(te.prototype, Y),
- G && X(te, G),
- te
- }
- function Q(te, Y) {
- if (typeof Y != "function" && Y !== null)
- throw new TypeError("Super expression must either be null or a function");
- te.prototype = Object.create(Y && Y.prototype, {
- constructor: {
- value: te,
- writable: !0,
- configurable: !0
- }
- }),
- Y && ne(te, Y)
- }
- function ne(te, Y) {
- return ne = Object.setPrototypeOf || function (q, ee) {
- return q.__proto__ = ee,
- q
- }
- ,
- ne(te, Y)
- }
- function we(te) {
- var Y = ce();
- return function () {
- var q = ge(te), ee;
- if (Y) {
- var ae = ge(this).constructor;
- ee = Reflect.construct(q, arguments, ae)
- } else
- ee = q.apply(this, arguments);
- return _e(this, ee)
- }
- }
- function _e(te, Y) {
- return Y && (k(Y) === "object" || typeof Y == "function") ? Y : K(te)
- }
- function K(te) {
- if (te === void 0)
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return te
- }
- function ce() {
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
- return !1;
- if (typeof Proxy == "function")
- return !0;
- try {
- return Date.prototype.toString.call(Reflect.construct(Date, [], function () { })),
- !0
- } catch {
- return !1
- }
- }
- function ge(te) {
- return ge = Object.setPrototypeOf ? Object.getPrototypeOf : function (G) {
- return G.__proto__ || Object.getPrototypeOf(G)
- }
- ,
- ge(te)
- }
- function Ie(te, Y) {
- var G = "data-clipboard-".concat(te);
- if (Y.hasAttribute(G))
- return Y.getAttribute(G)
- }
- var Fe = function (te) {
- Q(G, te);
- var Y = we(G);
- function G(q, ee) {
- var ae;
- return U(this, G),
- ae = Y.call(this),
- ae.resolveOptions(ee),
- ae.listenClick(q),
- ae
- }
- return W(G, [{
- key: "resolveOptions",
- value: function () {
- var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- this.action = typeof ee.action == "function" ? ee.action : this.defaultAction,
- this.target = typeof ee.target == "function" ? ee.target : this.defaultTarget,
- this.text = typeof ee.text == "function" ? ee.text : this.defaultText,
- this.container = k(ee.container) === "object" ? ee.container : document.body
- }
- }, {
- key: "listenClick",
- value: function (ee) {
- var ae = this;
- this.listener = C()(ee, "click", function (Te) {
- return ae.onClick(Te)
- })
- }
- }, {
- key: "onClick",
- value: function (ee) {
- var ae = ee.delegateTarget || ee.currentTarget
- , Te = this.action(ae) || "copy"
- , ot = M({
- action: Te,
- container: this.container,
- target: this.target(ae),
- text: this.text(ae)
- });
- this.emit(ot ? "success" : "error", {
- action: Te,
- text: ot,
- trigger: ae,
- clearSelection: function () {
- ae && ae.focus(),
- window.getSelection().removeAllRanges()
- }
- })
- }
- }, {
- key: "defaultAction",
- value: function (ee) {
- return Ie("action", ee)
- }
- }, {
- key: "defaultTarget",
- value: function (ee) {
- var ae = Ie("target", ee);
- if (ae)
- return document.querySelector(ae)
- }
- }, {
- key: "defaultText",
- value: function (ee) {
- return Ie("text", ee)
- }
- }, {
- key: "destroy",
- value: function () {
- this.listener.destroy()
- }
- }], [{
- key: "copy",
- value: function (ee) {
- var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
- container: document.body
- };
- return N(ee, ae)
- }
- }, {
- key: "cut",
- value: function (ee) {
- return y(ee)
- }
- }, {
- key: "isSupported",
- value: function () {
- var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"]
- , ae = typeof ee == "string" ? [ee] : ee
- , Te = !!document.queryCommandSupported;
- return ae.forEach(function (ot) {
- Te = Te && !!document.queryCommandSupported(ot)
- }),
- Te
- }
- }]),
- G
- }(w())
- , Ee = Fe
- },
- 828: function (f) {
- var u = 9;
- if (typeof Element < "u" && !Element.prototype.matches) {
- var d = Element.prototype;
- d.matches = d.matchesSelector || d.mozMatchesSelector || d.msMatchesSelector || d.oMatchesSelector || d.webkitMatchesSelector
- }
- function p(w, E) {
- for (; w && w.nodeType !== u;) {
- if (typeof w.matches == "function" && w.matches(E))
- return w;
- w = w.parentNode
- }
- }
- f.exports = p
- },
- 438: function (f, u, d) {
- var p = d(828);
- function w(h, x, v, I, y) {
- var g = C.apply(this, arguments);
- return h.addEventListener(v, g, y),
- {
- destroy: function () {
- h.removeEventListener(v, g, y)
- }
- }
- }
- function E(h, x, v, I, y) {
- return typeof h.addEventListener == "function" ? w.apply(null, arguments) : typeof v == "function" ? w.bind(null, document).apply(null, arguments) : (typeof h == "string" && (h = document.querySelectorAll(h)),
- Array.prototype.map.call(h, function (g) {
- return w(g, x, v, I, y)
- }))
- }
- function C(h, x, v, I) {
- return function (y) {
- y.delegateTarget = p(y.target, x),
- y.delegateTarget && I.call(h, y)
- }
- }
- f.exports = E
- },
- 879: function (f, u) {
- u.node = function (d) {
- return d !== void 0 && d instanceof HTMLElement && d.nodeType === 1
- }
- ,
- u.nodeList = function (d) {
- var p = Object.prototype.toString.call(d);
- return d !== void 0 && (p === "[object NodeList]" || p === "[object HTMLCollection]") && "length" in d && (d.length === 0 || u.node(d[0]))
- }
- ,
- u.string = function (d) {
- return typeof d == "string" || d instanceof String
- }
- ,
- u.fn = function (d) {
- var p = Object.prototype.toString.call(d);
- return p === "[object Function]"
- }
- },
- 370: function (f, u, d) {
- var p = d(879)
- , w = d(438);
- function E(v, I, y) {
- if (!v && !I && !y)
- throw new Error("Missing required arguments");
- if (!p.string(I))
- throw new TypeError("Second argument must be a String");
- if (!p.fn(y))
- throw new TypeError("Third argument must be a Function");
- if (p.node(v))
- return C(v, I, y);
- if (p.nodeList(v))
- return h(v, I, y);
- if (p.string(v))
- return x(v, I, y);
- throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")
- }
- function C(v, I, y) {
- return v.addEventListener(I, y),
- {
- destroy: function () {
- v.removeEventListener(I, y)
- }
- }
- }
- function h(v, I, y) {
- return Array.prototype.forEach.call(v, function (g) {
- g.addEventListener(I, y)
- }),
- {
- destroy: function () {
- Array.prototype.forEach.call(v, function (g) {
- g.removeEventListener(I, y)
- })
- }
- }
- }
- function x(v, I, y) {
- return w(document.body, v, I, y)
- }
- f.exports = E
- },
- 817: function (f) {
- function u(d) {
- var p;
- if (d.nodeName === "SELECT")
- d.focus(),
- p = d.value;
- else if (d.nodeName === "INPUT" || d.nodeName === "TEXTAREA") {
- var w = d.hasAttribute("readonly");
- w || d.setAttribute("readonly", ""),
- d.select(),
- d.setSelectionRange(0, d.value.length),
- w || d.removeAttribute("readonly"),
- p = d.value
- } else {
- d.hasAttribute("contenteditable") && d.focus();
- var E = window.getSelection()
- , C = document.createRange();
- C.selectNodeContents(d),
- E.removeAllRanges(),
- E.addRange(C),
- p = E.toString()
- }
- return p
- }
- f.exports = u
- },
- 279: function (f) {
- function u() { }
- u.prototype = {
- on: function (d, p, w) {
- var E = this.e || (this.e = {});
- return (E[d] || (E[d] = [])).push({
- fn: p,
- ctx: w
- }),
- this
- },
- once: function (d, p, w) {
- var E = this;
- function C() {
- E.off(d, C),
- p.apply(w, arguments)
- }
- return C._ = p,
- this.on(d, C, w)
- },
- emit: function (d) {
- var p = [].slice.call(arguments, 1)
- , w = ((this.e || (this.e = {}))[d] || []).slice()
- , E = 0
- , C = w.length;
- for (E; E < C; E++)
- w[E].fn.apply(w[E].ctx, p);
- return this
- },
- off: function (d, p) {
- var w = this.e || (this.e = {})
- , E = w[d]
- , C = [];
- if (E && p)
- for (var h = 0, x = E.length; h < x; h++)
- E[h].fn !== p && E[h].fn._ !== p && C.push(E[h]);
- return C.length ? w[d] = C : delete w[d],
- this
- }
- },
- f.exports = u,
- f.exports.TinyEmitter = u
- }
- }
- , s = {};
- function c(f) {
- if (s[f])
- return s[f].exports;
- var u = s[f] = {
- exports: {}
- };
- return i[f](u, u.exports, c),
- u.exports
- }
- return function () {
- c.n = function (f) {
- var u = f && f.__esModule ? function () {
- return f.default
- }
- : function () {
- return f
- }
- ;
- return c.d(u, {
- a: u
- }),
- u
- }
- }(),
- function () {
- c.d = function (f, u) {
- for (var d in u)
- c.o(u, d) && !c.o(f, d) && Object.defineProperty(f, d, {
- enumerable: !0,
- get: u[d]
- })
- }
- }(),
- function () {
- c.o = function (f, u) {
- return Object.prototype.hasOwnProperty.call(f, u)
- }
- }(),
- c(686)
- }().default
- })
- }
- )(du);
- var t1 = du.exports;
- const n1 = yc(t1)
- , o1 = n.defineComponent({
- name: "mobile-conver-detail",
- props: {
- converDetailInfo: {
- type: Object,
- default: () => { }
- },
- options: {
- type: Object,
- default: () => { }
- },
- operation: {
- type: Object,
- default: () => { }
- }
- },
- setup(t, { emit: r }) {
- const i = n.getCurrentInstance()
- , s = i == null ? void 0 : i.appContext.config.globalProperties
- , c = s == null ? void 0 : s.AWSPageContext.settingParam
- , f = s == null ? void 0 : s.awsuiTools;
- s == null || s.$store.state;
- const u = s == null ? void 0 : s.awsuiaxios
- , d = s == null ? void 0 : s.AWSPageContext.axiosBaseUrl
- , { proxy: p } = i;
- n.getCurrentInstance();
- const w = n.inject("isPreview");
- n.toRef(t, "options");
- const E = n.inject("AWSFile")
- , C = n.ref(!1)
- , h = g => g.replace(/\n/g, "</br>")
- , x = () => /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream
- , v = n.computed(() => f.getBrowser().isWechat && window.__wxjs_environment === "miniprogram");
- vc();
- const I = n.reactive({
- converDetailInfo: {},
- commentValue: "",
- commentValueRef: n.ref(),
- showOptPopover: [],
- optActions: [{
- text: "转存到网盘",
- icon: ""
- }, {
- text: "预览文件",
- icon: ""
- }, {
- text: "下载文件",
- icon: ""
- }],
- showVideoPreview: !1,
- videoUrl: "",
- videoName: "",
- videoInfo: "",
- commentBtnDisabled: !1
- })
- , y = n.reactive({
- downloadFile(g, S, T) {
- console.log(S, "file"),
- console.log(T, "type"),
- T == "转存到网盘" ? y.saveMyDriver(S) : T == "预览文件" ? y.previewFile(S) : T == "下载文件" && y.downloadMyFile(g, S)
- },
- showCommentPopUp() {
- var g;
- (g = t.operation) != null && g.readonly,
- I.converDetailInfo.isExpand = !I.converDetailInfo.isExpand
- },
- closeCommentPopUp() {
- I.commentValue = ""
- },
- commentPopUpOpened() {
- setTimeout(() => {
- var g;
- console.log("2", I.commentValueRef),
- (g = I.commentValueRef) == null || g.focus()
- }
- , 100)
- },
- debouncedSubmitComment: ia.debounce(function (g) {
- I.commentBtnDisabled = !0,
- y.submitComment(g)
- }, 200),
- submitComment(g) {
- y.optStreamState(g, "replys")
- },
- deleteConver(g, S) {
- S == "stream" ? (console.log(p, "thisss"),
- fu({
- title: "提示",
- message: " 确定要删除吗?删除后将无法找回",
- className: "custom-dialog"
- }).then(() => {
- y.deleteStream(g.id)
- }
- ).catch(() => { }
- )) : S == "comment" && fu({
- title: "提示",
- message: " 确定要删除吗?删除后将无法找回",
- className: "custom-dialog"
- }).then(() => {
- y.deleteComment(g)
- }
- ).catch(() => { }
- )
- },
- deleteStream(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_stream&sid=" + c.sessionId,
- data: {
- streamId: g,
- configContent: {}
- }
- }).then(S => {
- S.result == "ok" && (p.$notify({
- type: "success",
- message: "删除成功"
- }),
- y.updateSourceList(g))
- }
- )
- },
- updateSourceList(g) {
- r("updateSource", g)
- },
- deleteComment(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcomment&sid=" + c.sessionId,
- data: {
- id: g.id
- }
- }).then(S => {
- S.result == "ok" && (p.$notify({
- type: "success",
- message: "删除成功"
- }),
- y.getStreamOneInfo(g.streamId))
- }
- )
- },
- optStream(g, S) {
- var T;
- (T = t.operation) != null && T.readonly || (S == "thumbs" && g.isPraisePost || S == "favorites" && g.isFavoritesPost ? (console.log("取消点赞或收藏"),
- S == "thumbs" ? y.cancelStreamState(g.id) : S == "favorites" && y.cancelFavorites(g.id)) : (S == "thumbs" || S == "favorites") && y.optStreamState(g, S))
- },
- cancelStreamState(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcommentoperate&sid=" + c.sessionId,
- data: {
- id: g
- }
- }).then(S => {
- S.result == "ok" && y.getStreamOneInfo(g)
- }
- )
- },
- cancelFavorites(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_delete_streamcomment_favorite&sid=" + c.sessionId,
- data: {
- id: g
- }
- }).then(S => {
- S.result == "ok" && y.getStreamOneInfo(g)
- }
- )
- },
- optStreamState(g, S) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_streamcomment_source&sid=" + c.sessionId,
- data: {
- streamId: g.id,
- commentContent: S == "thumbs" ? "点赞" : S == "favorites" ? "收藏" : S == "replys" ? I.commentValue : "",
- commentType: S == "thumbs" ? 1 : S == "favorites" ? 2 : S == "replys" ? 3 : 0,
- teamId: g.teamId,
- sourceAppId: g.sourceAppId,
- sourceType: g.sourceType,
- sourceId: g.sourceId
- }
- }).then(T => {
- T.result == "ok" && (S == "replys" && (I.commentValue = "",
- I.commentBtnDisabled = !1,
- I.converDetailInfo.isExpand = !1),
- y.getStreamOneInfo(g.id))
- }
- )
- },
- getStreamOneInfo(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_get_stream_byid&sid=" + c.sessionId + "&random=" + new Date,
- data: {
- streamId: g
- }
- }).then(S => {
- S.result == "ok" && n.nextTick().then(() => {
- C.value = !C.value;
- let T = S.data.streamModel;
- I.converDetailInfo = JSON.parse(JSON.stringify(T)),
- console.log(I.converDetailInfo, "state.converDetailInfo")
- }
- )
- }
- )
- },
- saveMyDriver(g) {
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_storage_mydriver&sid=" + c.sessionId,
- data: {
- groupValue: y.getCurrentYearMonth(),
- fileValue: g.createUser,
- fileName: g.fileName,
- fileActName: g.fileActName,
- fileSize: g.fileSize
- }
- }).then(S => {
- S.result == "ok" && p.$notify({
- type: "success",
- message: "转存成功"
- })
- }
- )
- },
- downloadMyFile(g, S) {
- let T = S.url.replace("./", E.getBaseUrl() + "/") + "&openNewWebview=true&mobileAttachment=true";
- v.value ? y.copyFileLink(g, T) : y.beforeDownLoad(T, S)
- },
- async beforeDownLoad(g, S) {
- E.mobileFileDownload(p, g + "&openNewWebview=true&mobileAttachment=true", S ? S.fileActName : "", !1)
- },
- copyFileLink(g, S) {
- S = S.replace("./", E.getBaseUrl() + "/");
- const T = new n1(g.target, {
- text: () => S
- });
- T.on("success", () => {
- p.$notify({
- type: "success",
- message: "链接已复制"
- }),
- T.destroy()
- }
- ),
- T.on("error", () => {
- p.$notify({
- type: "error",
- message: "复制失败"
- }),
- T.destroy()
- }
- ),
- T.onClick(g)
- },
- previewFile(g) {
- let S = g.fileName.lastIndexOf(".")
- , T = g.fileName.substring(S);
- if (".mp4".indexOf(T) > -1) {
- if (s != null && s.browser.isIPhone || s != null && s.browser.isIPhoneX) {
- let M = g.url.replace("./", E.getBaseUrl() + "/") + "&openNewWebview=true&mobileAttachment=true";
- y.beforeDownLoad(M, g)
- } else
- y.handleVideoPreview({
- imgUrl: g.url.replace("./", ""),
- fileName: g.fileActName,
- previewInfo: ""
- });
- return
- }
- if (".gif,.jpg,.jpeg,.png,.bmp,.tif,.pcx,.tga,.eps,.wmf,.emf,.dxf,.svg,.psd,.jpeg2000,.tiff".indexOf(T) > -1) {
- let M = g.url;
- M = M.replace("./", E.getBaseUrl() + "/");
- let k = {
- urls: [M],
- current: M
- };
- window.previewImage.start(k);
- return
- }
- const B = new URLSearchParams(g.url.split("?")[1])
- , D = {};
- for (const [M, k] of B.entries())
- D[M] = decodeURIComponent(k);
- console.log(D),
- u.post({
- url: "jd?cmd=com.actionsoft.apps.network_openfile",
- data: {
- repositoryName: "!stream-file-",
- groupValue: D.groupValue,
- fileValue: D.fileValue,
- fileName: D.fileName,
- fileNameOriginal: D.fileNameShow,
- isShowDefaultToolbar: "true",
- isCopy: "true",
- isPrint: "true",
- isDownload: "true",
- sid: c.sessionId
- }
- }).then(M => {
- if (M.result == "ok") {
- console.log(M.data.url);
- try {
- y.beforeDownLoad(M.data.url + "&openNewWebview=true&mobileAttachment=true", g)
- } catch {
- window.open(M.data.url + "&openNewWebview=true&mobileAttachment=true")
- }
- }
- }
- )
- },
- handleVideoPreview(g) {
- I.showVideoPreview = !0,
- I.videoUrl = g.imgUrl,
- I.videoName = g.fileName,
- I.videoInfo = g.previewInfo
- },
- getCurrentYearMonth() {
- const g = new Date
- , S = g.getFullYear()
- , T = String(g.getMonth() + 1).padStart(2, "0");
- return `${S}${T}`
- },
- openLink(g) {
- if (g != "")
- try {
- awsWebview.openWebview(g)
- } catch {
- window.open(g)
- }
- },
- openCompany(g) {
- if (console.log(g, "url"),
- g != "") {
- g.indexOf("#sid") > -1 && (g = g.replace("#sid", c.sessionId));
- try {
- awsWebview.openWebview(g)
- } catch {
- window.open(g)
- }
- }
- },
- renderIcon(g) {
- return g.replace("amp;", "")
- }
- });
- return n.onBeforeMount(() => { }
- ),
- n.onMounted(() => { }
- ),
- n.watchEffect(() => {
- console.log("shouldRender:", C.value)
- }
- ),
- n.watch(() => t.converDetailInfo, (g, S) => {
- C.value || (I.converDetailInfo = g)
- }
- , {
- immediate: !0,
- deep: !0
- }),
- {
- shouldRender: C,
- isPreView: w,
- baseUrl: d,
- isIOS: x,
- getFileSuffixIconFont: Zi,
- formatText: h,
- ...n.toRefs(I),
- ...n.toRefs(y)
- }
- }
- })
- , wa = t => (n.pushScopeId("data-v-ff17a253"),
- t = t(),
- n.popScopeId(),
- t)
- , r1 = {
- class: "mobile-conver-detail",
- id: "mobile-conver-detail"
- }
- , i1 = {
- class: "item-first"
- }
- , a1 = {
- class: "header-avatar"
- }
- , s1 = ["src"]
- , l1 = {
- class: "header-name"
- }
- , c1 = {
- class: "name-txt"
- }
- , u1 = {
- class: "header-tag"
- }
- , f1 = {
- class: "tag-txt"
- }
- , d1 = {
- key: 0,
- class: "header-delete"
- }
- , p1 = {
- class: "render-main"
- }
- , m1 = {
- class: "main-top"
- }
- , h1 = ["innerHTML"]
- , g1 = {
- key: 1,
- class: "top-link"
- }
- , y1 = {
- class: "link-desc"
- }
- , _1 = {
- key: 2,
- class: "top-attachment"
- }
- , w1 = {
- class: "item-icon"
- }
- , v1 = ["innerHTML"]
- , b1 = ["onClick"]
- , C1 = {
- class: "item-opt"
- }
- , E1 = {
- class: "opt-content"
- }
- , S1 = ["innerHTML"]
- , I1 = ["onClick"]
- , x1 = wa(() => n.createElementVNode("i", {
- class: "awsui-iconfont"
- }, "", -1))
- , A1 = {
- key: 0,
- class: "new-main-middle"
- }
- , T1 = ["innerHTML"]
- , O1 = {
- class: "custom_type"
- }
- , k1 = {
- class: "main-bottom"
- }
- , N1 = {
- class: "bottom-date"
- }
- , L1 = {
- key: 0,
- class: "bottom-source"
- }
- , B1 = {
- key: 1,
- class: "bottom-source"
- }
- , P1 = {
- class: "render-footer"
- }
- , D1 = {
- class: "footer-thumbs-up footer-opt"
- }
- , V1 = {
- class: "thumbs-up-num"
- }
- , M1 = {
- class: "footer-comment footer-opt"
- }
- , R1 = {
- class: "comment-num"
- }
- , $1 = {
- class: "footer-collection footer-opt"
- }
- , F1 = {
- clas: "collection-num"
- }
- , U1 = {
- class: "more-comment"
- }
- , z1 = {
- class: "item-header"
- }
- , H1 = {
- class: "header-avatar"
- }
- , W1 = ["src"]
- , j1 = {
- class: "header-name"
- }
- , K1 = {
- class: "name-txt"
- }
- , G1 = {
- key: 0,
- class: "header-delete"
- }
- , J1 = ["onClick"]
- , Y1 = {
- class: "item-main"
- }
- , q1 = {
- class: "main-top"
- }
- , Z1 = ["innerHTML"]
- , X1 = {
- class: "main-bottom"
- }
- , Q1 = {
- class: "bottom-date"
- }
- , eC = {
- key: 0,
- class: "more-item"
- }
- , tC = wa(() => n.createElementVNode("i", {
- class: "awsui-iconfont"
- }, "", -1))
- , nC = ["onMouseenter", "onMouseleave"]
- , oC = {
- class: "item-header"
- }
- , rC = {
- class: "header-avatar"
- }
- , iC = ["src"]
- , aC = {
- class: "header-name"
- }
- , sC = {
- class: "name-txt"
- }
- , lC = {
- key: 0,
- class: "header-delete"
- }
- , cC = ["onClick"]
- , uC = {
- class: "item-main"
- }
- , fC = {
- class: "main-top"
- }
- , dC = ["innerHTML"]
- , pC = {
- class: "main-bottom"
- }
- , mC = {
- class: "bottom-date"
- }
- , hC = {
- key: 1,
- class: "more-item"
- }
- , gC = wa(() => n.createElementVNode("i", {
- class: "awsui-iconfont"
- }, "", -1));
- function yC(t, r, i, s, c, f) {
- const u = n.resolveComponent("van-tag")
- , d = n.resolveComponent("van-popover")
- , p = n.resolveComponent("van-button")
- , w = n.resolveComponent("van-field")
- , E = n.resolveComponent("van-popup")
- , C = n.resolveComponent("awsui-video-preview");
- return n.openBlock(),
- n.createElementBlock(n.Fragment, null, [n.createElementVNode("div", r1, [n.createElementVNode("div", i1, [n.createElementVNode("div", {
- class: "render-header",
- onMouseenter: r[1] || (r[1] = h => t.converDetailInfo.isHover = !0),
- onMouseleave: r[2] || (r[2] = h => t.converDetailInfo.isHover = !1)
- }, [n.createElementVNode("div", a1, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + t.converDetailInfo.userPhoto
- }, null, 8, s1)]), n.createElementVNode("div", l1, [n.createElementVNode("div", c1, n.toDisplayString(t.converDetailInfo.createUserName), 1)]), n.createElementVNode("div", u1, [t.converDetailInfo.channelType ? (n.openBlock(),
- n.createBlock(u, {
- key: 0,
- color: "rgba(40, 127, 244, 0.1)",
- round: ""
- }, {
- default: n.withCtx(() => [n.createElementVNode("div", f1, "# " + n.toDisplayString(t.converDetailInfo.channelType), 1)]),
- _: 1
- })) : n.createCommentVNode("", !0)]), t.converDetailInfo.isDelete ? (n.openBlock(),
- n.createElementBlock("div", d1, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: r[0] || (r[0] = h => t.deleteConver(t.converDetailInfo, "stream"))
- }, "")])) : n.createCommentVNode("", !0)], 32), n.createElementVNode("div", p1, [n.createElementVNode("div", m1, [t.converDetailInfo.streamContent.content != "" ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "top-txt",
- innerHTML: t.converDetailInfo.streamContent.content
- }, null, 8, h1)) : n.createCommentVNode("", !0), t.converDetailInfo.streamContent.link != "" ? (n.openBlock(),
- n.createElementBlock("div", g1, [n.createElementVNode("div", {
- class: "link-title",
- onClick: r[3] || (r[3] = h => t.openLink(t.converDetailInfo.streamContent.link))
- }, n.toDisplayString(t.converDetailInfo.streamContent.linkTitle), 1), n.createElementVNode("div", y1, n.toDisplayString(t.converDetailInfo.streamContent.linkDescription), 1)])) : n.createCommentVNode("", !0), t.converDetailInfo.streamContent.attachement.length != 0 ? (n.openBlock(),
- n.createElementBlock("div", _1, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.converDetailInfo.streamContent.attachement, (h, x) => (n.openBlock(),
- n.createElementBlock("div", {
- class: "attachment-item",
- key: x
- }, [n.createElementVNode("div", w1, [n.createElementVNode("i", {
- class: "awsui-iconfont",
- innerHTML: t.getFileSuffixIconFont(h.fileActName),
- style: {
- color: "#287ff4"
- }
- }, null, 8, v1)]), n.createElementVNode("div", {
- class: "item-name",
- onClick: n.withModifiers(v => t.downloadFile(v, h, "预览文件"), ["stop"])
- }, n.toDisplayString(h.fileActName), 9, b1), n.createElementVNode("div", C1, [n.createVNode(d, {
- class: "opt-popover",
- placement: "bottom-end",
- show: t.showOptPopover[x],
- "onUpdate:show": v => t.showOptPopover[x] = v
- }, {
- reference: n.withCtx(() => [x1]),
- default: n.withCtx(() => [n.createElementVNode("div", E1, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.optActions, v => (n.openBlock(),
- n.createElementBlock("div", {
- class: "content-item",
- key: v.text
- }, [v.icon ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 0,
- class: "awsui-iconfont content-item-icon",
- innerHTML: v.icon
- }, null, 8, S1)) : n.createCommentVNode("", !0), n.createElementVNode("div", {
- class: "content-item-txt",
- onClick: n.withModifiers(I => t.downloadFile(I, h, v.text), ["stop"])
- }, n.toDisplayString(v.text), 9, I1)]))), 128))])]),
- _: 2
- }, 1032, ["show", "onUpdate:show"])])]))), 128))])) : n.createCommentVNode("", !0)]), t.converDetailInfo.srcObjectContent ? (n.openBlock(),
- n.createElementBlock("div", A1, [JSON.parse(t.converDetailInfo.srcObjectContent).srcObjIcon.color != "" && JSON.parse(t.converDetailInfo.srcObjectContent).srcObjIcon.icon != "" ? (n.openBlock(),
- n.createElementBlock("span", {
- key: 0,
- class: "custom_icon",
- style: n.normalizeStyle({
- backgroundColor: JSON.parse(t.converDetailInfo.srcObjectContent).srcObjIcon.color
- })
- }, [n.createElementVNode("i", {
- class: "awsui-iconfont icon_main",
- innerHTML: t.renderIcon(JSON.parse(t.converDetailInfo.srcObjectContent).srcObjIcon.icon)
- }, null, 8, T1)], 4)) : n.createCommentVNode("", !0), n.createElementVNode("span", O1, n.toDisplayString(JSON.parse(t.converDetailInfo.srcObjectContent).srcObjType), 1), n.createElementVNode("span", {
- class: n.normalizeClass(JSON.parse(t.converDetailInfo.srcObjectContent).srcObjUrl == "" ? "company-empty" : "company-txt"),
- onClick: r[4] || (r[4] = h => t.openCompany(JSON.parse(t.converDetailInfo.srcObjectContent).srcObjUrl))
- }, n.toDisplayString(JSON.parse(t.converDetailInfo.srcObjectContent).srcObjTitle), 3)])) : n.createCommentVNode("", !0), n.createElementVNode("div", k1, [n.createElementVNode("span", N1, n.toDisplayString(t.converDetailInfo.createTime), 1), t.converDetailInfo.address != "" ? (n.openBlock(),
- n.createElementBlock("span", L1, "来自 " + n.toDisplayString(t.converDetailInfo.deviceType) + " - " + n.toDisplayString(t.converDetailInfo.address), 1)) : (n.openBlock(),
- n.createElementBlock("span", B1, "来自 " + n.toDisplayString(t.converDetailInfo.deviceType), 1))])]), n.createElementVNode("div", P1, [n.createElementVNode("div", D1, [t.converDetailInfo.isPraisePost ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("i", {
- key: 0,
- class: "awsui-iconfont opt-icon-default",
- onClick: r[5] || (r[5] = h => t.optStream(t.converDetailInfo, "thumbs"))
- }, "")), t.converDetailInfo.isPraisePost ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 1,
- class: "awsui-iconfont opt-icon-active",
- onClick: r[6] || (r[6] = h => t.optStream(t.converDetailInfo, "thumbs"))
- }, "")) : n.createCommentVNode("", !0), n.createElementVNode("div", V1, n.toDisplayString(t.converDetailInfo.praiseSize), 1)]), n.createElementVNode("div", M1, [n.createElementVNode("i", {
- class: "awsui-iconfont opt-icon-default",
- onClick: r[7] || (r[7] = (...h) => t.showCommentPopUp && t.showCommentPopUp(...h))
- }, ""), n.createElementVNode("div", R1, n.toDisplayString(t.converDetailInfo.replysSize), 1)]), n.createElementVNode("div", $1, [t.converDetailInfo.isFavoritesPost ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("i", {
- key: 0,
- class: "awsui-iconfont opt-icon-default",
- onClick: r[8] || (r[8] = h => t.optStream(t.converDetailInfo, "favorites"))
- }, "")), t.converDetailInfo.isFavoritesPost ? (n.openBlock(),
- n.createElementBlock("i", {
- key: 1,
- class: "awsui-iconfont opt-icon-favorite",
- onClick: r[9] || (r[9] = h => t.optStream(t.converDetailInfo, "favorites"))
- }, "")) : n.createCommentVNode("", !0), n.createElementVNode("div", F1, n.toDisplayString(t.converDetailInfo.favoritesSize), 1)])]), n.createElementVNode("div", U1, [(n.openBlock(!0),
- n.createElementBlock(n.Fragment, null, n.renderList(t.converDetailInfo.commentList.slice(0, 2), h => (n.openBlock(),
- n.createElementBlock("div", {
- class: "comment-item",
- key: h.id
- }, [n.createElementVNode("div", z1, [n.createElementVNode("div", H1, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + h.userPhoto
- }, null, 8, W1)]), n.createElementVNode("div", j1, [n.createElementVNode("div", K1, n.toDisplayString(h.createUserName), 1)]), h.createUserId == t.options.userId ? (n.openBlock(),
- n.createElementBlock("div", G1, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: x => t.deleteConver(h, "comment")
- }, "", 8, J1)])) : n.createCommentVNode("", !0)]), n.createElementVNode("div", Y1, [n.createElementVNode("div", q1, [n.createElementVNode("div", {
- class: "top-txt",
- innerHTML: t.formatText(h.commentContent)
- }, null, 8, Z1)]), n.createElementVNode("div", X1, [n.createElementVNode("div", Q1, n.toDisplayString(h.createTime), 1)])])]))), 128)), t.converDetailInfo.commentList.length > 2 ? (n.openBlock(),
- n.createElementBlock("div", eC, [t.converDetailInfo.commentList[2].isExpand ? n.createCommentVNode("", !0) : (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "more-txt",
- onClick: r[10] || (r[10] = h => t.converDetailInfo.commentList[2].isExpand = !0)
- }, [n.createTextVNode(" 显示更多记录 "), tC]))])) : n.createCommentVNode("", !0), n.createVNode(n.TransitionGroup, null, {
- default: n.withCtx(() => [t.converDetailInfo.commentList.length > 2 && t.converDetailInfo.commentList[2].isExpand ? (n.openBlock(!0),
- n.createElementBlock(n.Fragment, {
- key: 0
- }, n.renderList(t.converDetailInfo.commentList.slice(2, t.converDetailInfo.commentList.length), h => (n.openBlock(),
- n.createElementBlock("div", {
- class: "comment-item",
- key: h.id,
- onMouseenter: x => h.isHover = !0,
- onMouseleave: x => h.isHover = !1
- }, [n.createElementVNode("div", oC, [n.createElementVNode("div", rC, [n.createElementVNode("img", {
- class: "avatar-img",
- src: t.baseUrl + h.userPhoto
- }, null, 8, iC)]), n.createElementVNode("div", aC, [n.createElementVNode("div", sC, n.toDisplayString(h.createUserName), 1)]), h.createUserId == t.options.userId ? (n.openBlock(),
- n.createElementBlock("div", lC, [n.createElementVNode("i", {
- class: "awsui-iconfont deleteIcon",
- onClick: x => t.deleteConver(h, "comment")
- }, "", 8, cC)])) : n.createCommentVNode("", !0)]), n.createElementVNode("div", uC, [n.createElementVNode("div", fC, [n.createElementVNode("div", {
- class: "top-txt",
- innerHTML: t.formatText(h.commentContent)
- }, null, 8, dC)]), n.createElementVNode("div", pC, [n.createElementVNode("div", mC, n.toDisplayString(h.createTime), 1)])])], 40, nC))), 128)) : n.createCommentVNode("", !0)]),
- _: 1
- }), t.converDetailInfo.commentList.length > 2 ? (n.openBlock(),
- n.createElementBlock("div", hC, [t.converDetailInfo.commentList[2].isExpand ? (n.openBlock(),
- n.createElementBlock("div", {
- key: 0,
- class: "more-txt",
- onClick: r[11] || (r[11] = h => t.converDetailInfo.commentList[2].isExpand = !1)
- }, [n.createTextVNode(" 收起更多记录 "), gC])) : n.createCommentVNode("", !0)])) : n.createCommentVNode("", !0)])]), n.createVNode(E, {
- show: t.converDetailInfo.isExpand,
- "onUpdate:show": r[14] || (r[14] = h => t.converDetailInfo.isExpand = h),
- position: "bottom",
- class: "comment-popup",
- onClosed: t.closeCommentPopUp,
- onOpened: t.commentPopUpOpened
- }, {
- default: n.withCtx(() => [n.createVNode(w, {
- modelValue: t.commentValue,
- "onUpdate:modelValue": r[13] || (r[13] = h => t.commentValue = h),
- ref: "commentValueRef",
- placeholder: "发布你的评论",
- type: "textarea",
- rows: "1",
- autosize: {
- maxHeight: 180,
- minHeight: 30
- },
- "enter-key-hint": t.isIOS() ? "done" : "send",
- class: "comment-field"
- }, {
- button: n.withCtx(() => [n.createVNode(p, {
- class: "comment-submit-btn",
- type: "primary",
- size: "small",
- disabled: !t.commentValue || t.commentBtnDisabled,
- onClick: r[12] || (r[12] = h => t.debouncedSubmitComment(t.converDetailInfo))
- }, {
- default: n.withCtx(() => [n.createTextVNode("确定")]),
- _: 1
- }, 8, ["disabled"])]),
- _: 1
- }, 8, ["modelValue", "enter-key-hint"])]),
- _: 1
- }, 8, ["show", "onClosed", "onOpened"])]), n.createVNode(C, {
- visible: t.showVideoPreview,
- "onUpdate:visible": r[15] || (r[15] = h => t.showVideoPreview = h),
- url: t.videoUrl,
- "video-name": t.videoName,
- "video-info": t.videoInfo
- }, null, 8, ["visible", "url", "video-name", "video-info"])], 64)
- }
- const _C = ra(o1, [["render", yC], ["__scopeId", "data-v-ff17a253"]]);
- n.defineComponent({
- name: "awsui-m-stream2",
- components: {
- FormVanField: Xd,
- mobileConverDetail: _C,
- MapContainer: Bc
- },
- props: {
- ...Fs
- },
- emits: ["change", "update:modelValue"],
- setup(t, r) {
- const i = n.getCurrentInstance()
- , s = i == null ? void 0 : i.appContext.config.globalProperties
- , c = s == null ? void 0 : s.AWSPageContext.settingParam;
- s == null || s.awsuiTools,
- s == null || s.$store.state;
- const f = s == null ? void 0 : s.awsuiaxios
- , u = s == null ? void 0 : s.AWSPageContext.axiosBaseUrl
- , { proxy: d } = i
- , p = n.toRef(t, "options");
- console.log(p, "options"),
- console.log(s, "globalProperties");
- const w = n.inject("formApi")
- , E = n.inject("isPreview")
- , C = n.computed({
- get: () => t.modelValue == null ? "" : t.modelValue,
- set: S => {
- var T;
- t.formDataExtend[t.boItemModel.fieldName].displayValue = S,
- w.data.setFormData((T = t.itemConfig) == null ? void 0 : T.fieldName, S),
- r.emit("update:modelValue", S),
- r.emit("change", S)
- }
- })
- , h = n.reactive({
- refVanInput: n.ref(),
- linkAddressRef: n.ref(),
- mapContainerRef: n.ref(),
- showPopUpVisable: !1,
- commentValue: "",
- linkAddress: "",
- isInputAddress: !1,
- channelTypeValue: "记录",
- channelTypePicker: !1,
- columns: [],
- fileList: [],
- isFileloading: !1,
- uploadUrl: "",
- pickerChannelVal: [],
- uploadSuccessFileList: [],
- isConverLoading: !1,
- streamStartCount: 0,
- streamLimitPage: 15,
- converList: {},
- moreListShow: !1,
- isListLoading: !1,
- listFinished: !1,
- refreshing: !1,
- mentionPopShow: !1,
- mentionColumns: [],
- searchMentionValue: "",
- commentValueRef: n.ref(),
- realData: {
- list: []
- },
- positionInfo: "",
- popUpHeight: "90%",
- isMentioning: !1,
- commentBtnDisabled: !1
- })
- , x = n.reactive({
- updateValue(S) {
- var B;
- const T = S.target.value
- , N = x.getCursorPosition();
- T[N - 1] !== "@" && h.isMentioning && (console.log("输入了@"),
- h.isMentioning = !1),
- !h.isMentioning && T[N - 1] === "@" && (h.mentionPopShow = !0,
- h.isMentioning = !0,
- (B = h.commentValueRef) == null || B.blur())
- },
- getCursorPosition() {
- if (!h.commentValueRef)
- return 0;
- const S = h.commentValueRef.$el.querySelector("textarea");
- return S ? S.selectionStart : 0
- },
- onSearch() {
- x.getMentionList(h.searchMentionValue)
- },
- onCancel() {
- h.searchMentionValue = "",
- x.getMentionList("")
- },
- onMentionConfirm(S) {
- console.log(S, "selectedValues"),
- h.mentionPopShow = !1,
- h.commentValue += S.selectedOptions[0].text + " ",
- n.nextTick(() => {
- var T;
- (T = h.commentValueRef) == null || T.focus()
- }
- )
- },
- closeAllMoreListVisible() {
- h.converList.list = [],
- h.streamStartCount = 0,
- h.streamLimitPage = 15,
- x.getSourceList(p.value.sourceId, "part"),
- h.moreListShow = !1
- },
- onListLoad() {
- h.streamStartCount = h.streamStartCount + h.streamLimitPage,
- x.getSourceList(p.value.sourceId, "all")
- },
- onRefresh() {
- h.streamStartCount = 0,
- h.streamLimitPage = 15,
- h.listFinished = !1,
- h.isListLoading = !0,
- x.getSourceList(p.value.sourceId, "all")
- },
- updateSource(S) {
- h.moreListShow ? (console.log(S, "id"),
- console.log(h.converList.list, "state.converList.list"),
- h.converList.list = [],
- h.streamStartCount = 0,
- h.streamLimitPage = 15,
- x.getSourceList(p.value.sourceId, "all")) : (console.log("2"),
- h.streamStartCount = 0,
- h.streamLimitPage = 15,
- x.getSourceList(p.value.sourceId, "part"))
- },
- openMorePage() {
- h.moreListShow = !0,
- h.converList.list = [],
- h.streamStartCount = 0,
- h.streamLimitPage = 15,
- x.getSourceList(p.value.sourceId, "all")
- },
- focusInput(S) {
- S.target.blur(),
- !(E || s != null && s.isDesign) && (h.showPopUpVisable = !0,
- x.getMentionList(""))
- },
- showPopUpOpened() {
- setTimeout(() => {
- var S;
- console.log(h.commentValueRef),
- (S = h.commentValueRef) == null || S.focus()
- }
- , 100)
- },
- closePopUp() {
- h.commentValue = "",
- h.isInputAddress = !1,
- h.fileList = [],
- h.showPopUpVisable = !1
- },
- debouncedSubmitComment: ia.debounce(function () {
- h.commentBtnDisabled = !0,
- x.submitInfo()
- }, 200),
- submitInfo() {
- console.log(p.value, "options"),
- console.log(h.fileList, "fileList"),
- console.log(h.uploadSuccessFileList, "state.uploadSuccessFileList");
- let S = [];
- if (h.fileList && h.fileList.length > 0) {
- let B = /([^.]+)$/;
- S = h.uploadSuccessFileList.map((D, M) => ({
- fileName: D.fileName,
- fileType: D.fileName.match(B)[1],
- fileUUID: D.fileUUID,
- fileSize: D.fileSize,
- fileActName: decodeURI(D.fileNameShow),
- createUser: p.value.userId
- }))
- }
- let T = {
- sourceId: p.value.sourceId == "" ? w.context.processApi.pageContext.processContext.boId : p.value.sourceId,
- defaultTipTitle: p.value.defaultTipTitle,
- sourceDeptId: p.value.sourceDeptId,
- secretkey: "",
- parentSourceId: p.value.parentSourceId,
- boId: w.context.processApi.pageContext.processContext.boId,
- length: t.boItemModel.componentSetting.length,
- boDefId: p.value.boDefId,
- channelType: p.value.channelType,
- networkTeamId: p.value.networkTeamId,
- deleteAfterAslp: p.value.deleteAfterAslp,
- createAfterAslp: p.value.createAfterAslp,
- displayValue: t.formDataExtend[t.boItemModel.fieldName].displayValue || t.boItemModel.componentSetting.displayValue,
- boItemId: p.value.boItemId || t.boItemModel.componentSetting.boItemId,
- columnType: t.boItemModel.componentSetting.columnType,
- displayRule: t.boItemModel.componentSetting.displayRule,
- sourceType: p.value.sourceType,
- isNullable: t.boItemModel.componentSetting.isNullable,
- networkId: p.value.networkId,
- srcObjectContent: p.value.srcObjectContent
- }
- , N = {
- networkId: p.value.networkId,
- teamId: p.value.networkTeamId,
- streamType: 1,
- content: h.commentValue,
- attachement: JSON.stringify(S),
- link: h.linkAddress,
- tags: "",
- sourceAppId: c.appId ?? "",
- sourceType: p.value.sourceType,
- sourceId: p.value.sourceId == "" ? w.context.processApi.pageContext.processContext.boId : p.value.sourceId,
- channelType: h.channelTypeValue,
- configContent: JSON.stringify(T),
- srcObjectContent: JSON.stringify(p.value.srcObjectContent),
- address: h.positionInfo
- };
- console.log(N, "param"),
- f.post({
- url: "jd?cmd=com.actionsoft.apps.network_save_stream&msaDefSvcId=crm&sid=" + c.sessionId,
- data: N
- }).then(B => {
- console.log(B, "res"),
- B.result == "ok" && (h.commentValue = "",
- h.linkAddress = "",
- h.fileList = [],
- S = [],
- h.uploadSuccessFileList = [],
- h.showPopUpVisable = !1,
- h.commentBtnDisabled = !1,
- x.getSourceList(N.sourceId, "part"))
- }
- )
- },
- getSourceList(S, T) {
- h.isConverLoading = !0;
- let N = {
- sourceId: S == "" ? w.context.processApi.pageContext.processContext.boId : S,
- start: h.streamStartCount,
- limit: h.streamLimitPage,
- sourceType: p.value.sourceType
- };
- f.post({
- url: "jd?cmd=com.actionsoft.apps.network_load_stream_by_source&msaDefSvcId=crm&sid=" + c.sessionId,
- data: N
- }).then(B => {
- B.result == "ok" && (h.realData.list = B.data.page.list,
- T == "part" ? (h.converList = B.data.page,
- h.converList.list = h.converList.list.slice(0, 2)) : (h.refreshing && (h.converList.list = [],
- h.refreshing = !1),
- h.converList.pageCount = B.data.page.pageCount,
- h.converList.list = h.converList.list.concat(B.data.page.list),
- h.isListLoading = !1,
- h.converList.pageCount < B.data.page.end ? h.listFinished = !0 : h.listFinished = !1),
- h.converList.list.forEach(D => {
- D.isHover = !1,
- D.isExpand = !1,
- D.commentList && D.commentList.length > 0 && D.commentList.forEach(M => {
- M.isHover = !1,
- M.isExpand = !1
- }
- )
- }
- ),
- h.isConverLoading = !1)
- }
- )
- },
- inputUrl() {
- h.isInputAddress = !h.isInputAddress,
- h.isInputAddress ? setTimeout(() => {
- var S;
- (S = h.linkAddressRef) == null || S.focus()
- }
- , 0) : h.linkAddress = ""
- },
- onOversize() {
- console.log("文件大小超出限制"),
- s == null || s.$notify({
- type: "warning",
- message: "上传失败,单个文件的上传上限为20M"
- })
- },
- beforeUpload(S) {
- return console.log(S, "before"),
- h.isFileloading = !0,
- h.uploadUrl = "uf?appId=com.actionsoft.apps.network&sid=" + c.sessionId + "&groupValue=" + x.getCurrentYearMonth() + "&fileValue=" + p.value.userId + "&repositoryName=!stream-file-&extParam=",
- !0
- },
- afterUpload(S) {
- const T = new FormData;
- return T.append("file", S.file),
- new Promise((N, B) => {
- f.upFile({
- url: h.uploadUrl,
- data: T
- }).then(D => {
- D.data.result == "ok" ? (h.uploadSuccessFileList.push(D.data.data.attrs),
- h.isFileloading = !1,
- N(!0)) : (s == null || s.$notify({
- type: "danger",
- message: D.data.msg
- }),
- h.fileList = [])
- }
- ).catch(D => {
- console.log(D, "err")
- }
- )
- }
- )
- },
- openChannelTypePicker() {
- h.columns = p.value.channelType.split(" ").map(S => ({
- text: S,
- value: S
- })),
- h.channelTypePicker = !0
- },
- onChannelTypeChange(S) {
- h.channelTypeValue = S.value,
- h.channelTypePicker = !1
- },
- getCurrentYearMonth() {
- const S = new Date
- , T = S.getFullYear()
- , N = String(S.getMonth() + 1).padStart(2, "0");
- return `${T}${N}`
- },
- deleteFile(S, T) {
- console.log("list", h.fileList),
- h.fileList.splice(T, 1),
- h.uploadSuccessFileList.splice(T, 1)
- },
- getMentionList(S) {
- f.post({
- url: "jd?cmd=CLIENT_LIEVE_SEARCH_AT_SOMEONE&sid=" + c.sessionId,
- data: {
- limit: 10,
- term: S
- }
- }).then(T => {
- h.mentionColumns = [],
- h.mentionColumns = T.map((N, B) => ({
- text: N.userName,
- value: N.id,
- uid: N.uid
- }))
- }
- )
- },
- getCurrentAdress() {
- var N;
- let S = {
- aMapKey: p.value.aMapKey,
- securityJsCode: p.value.securityJsCode
- }
- , T = s == null ? void 0 : s.awsuiTools.getBrowser();
- if (console.log("browser", T),
- T.isAWSMobilePortalApp)
- try {
- d.awsuiTools.loadJS(d.awsuiTools.buildReleasePath("./commons/js/aws.mobile.jsapi.js"), async () => {
- awsJSApi.geolocationGet({
- callback: B => {
- let D = JSON.parse(B);
- if (console.log(D, "mobile定位obj"),
- D.result == "ok") {
- let M = JSON.parse(D.locationresult);
- console.log(M, "info"),
- h.positionInfo = M.address
- }
- }
- })
- }
- )
- } catch {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- else
- T.isWechat || T.isWxWork ? g() : T.isDingtalk ? y() : T.isFeishu ? I() : T.isWeLink ? v() : (N = h.mapContainerRef) == null || N.initAMapBase(S).then(B => {
- h.positionInfo = B
- }
- ).catch(B => {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- )
- }
- })
- , v = () => {
- HWH5.getLocation({
- type: 1
- }).then(S => {
- h.positionInfo = S.address
- }
- ).catch(S => {
- d.$notify({
- type: "warning",
- message: d.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限")
- })
- }
- )
- }
- , I = () => {
- window.tt.getLocation({
- type: "wgs84",
- useCache: !0,
- success: S => {
- S.longitude ? h.positionInfo = S.address : d.$notify({
- type: "warning",
- message: d.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限")
- })
- }
- ,
- fail: S => {
- d.$notify({
- type: "warning",
- message: `getLocation fail: ${JSON.stringify(S)}`
- })
- }
- })
- }
- , y = () => {
- dd.getLocation({
- targetAccuracy: 200,
- coordinate: 1,
- withReGeocode: !0,
- useCache: !0,
- success: S => {
- const { city: T, address: N, accuracy: B, latitude: D, province: M, longitude: k } = S;
- let U = M + T + N;
- h.positionInfo = U
- }
- ,
- fail: S => {
- d.$notify({
- type: "warning",
- message: d.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限")
- })
- }
- })
- }
- , g = () => {
- let S = d
- , T = {
- aMapKey: p.value.aMapKey,
- securityJsCode: p.value.securityJsCode
- };
- if (window.__wxjs_environment === "miniprogram") {
- console.log("window.__wxjs_environment", window.__wxjs_environment),
- self.frameElement && self.frameElement.tagName == "IFRAME" ? (console.log("IFRAME"),
- console.log("(top.window as any).wx", top.window.wx)(top.window).wx.ready(() => {
- top.window.wx.getLocation({
- type: "wgs84",
- success: N => {
- var B;
- console.log("微信定位1", N),
- (B = h.mapContainerRef) == null || B.initAMapBase(T, [N.longitude, N.latitude]).then(D => {
- h.positionInfo = D
- }
- ).catch(D => {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- )
- }
- ,
- fail: N => {
- S.$notify({
- type: "warning",
- message: S.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限2") + JSON.stringify(N)
- })
- }
- })
- }
- )) : (console.log("window"),
- console.log("wx", wx),
- wx.ready(() => {
- wx.getLocation({
- type: "wgs84",
- success: N => {
- var B;
- console.log("微信定位2", N),
- (B = h.mapContainerRef) == null || B.initAMapBase(T, [N.longitude, N.latitude]).then(D => {
- h.positionInfo = D
- }
- ).catch(D => {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- )
- }
- ,
- fail: N => {
- S.$notify({
- type: "warning",
- message: S.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限2") + JSON.stringify(N)
- })
- }
- })
- }
- ));
- return
- }
- self.frameElement && self.frameElement.tagName == "IFRAME" ? top.window.wx.ready(() => {
- top.window.wx.getLocation({
- type: "wgs84",
- success: N => {
- var B;
- (B = h.mapContainerRef) == null || B.initAMapBase(T, [N.longitude, N.latitude]).then(D => {
- h.positionInfo = D
- }
- ).catch(D => {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- )
- }
- ,
- fail: N => {
- S.$notify({
- type: "warning",
- message: S.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限") + JSON.stringify(N)
- })
- }
- })
- }
- ) : wx.ready(() => {
- wx.getLocation({
- type: "wgs84",
- success: N => {
- var B;
- (B = h.mapContainerRef) == null || B.initAMapBase(T, [N.longitude, N.latitude]).then(D => {
- h.positionInfo = D
- }
- ).catch(D => {
- d.$notify({
- type: "warning",
- message: "未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限"
- })
- }
- )
- }
- ,
- fail: N => {
- S.$notify({
- type: "warning",
- message: S.$t("未获取到位置信息,请检查定位功能是否开启以及应用是否授权定位权限") + JSON.stringify(N)
- })
- }
- })
- }
- )
- }
- ;
- return n.onMounted(() => {
- n.nextTick(() => {
- p.value.sourceId && p.value.sourceId != "" && !E && !(s != null && s.isDesign) && (x.getSourceList(p.value.sourceId, "part"),
- p.value.aMapKey && p.value.aMapKey != "" && p.value.securityJsCode && p.value.securityJsCode != "" && x.getCurrentAdress())
- }
- )
- }
- ),
- {
- inputValue: C,
- options: p,
- isPreView: E,
- baseUrl: u,
- getFileSuffixIconFont: Zi,
- ...n.toRefs(h),
- ...n.toRefs(x)
- }
- }
- });
- const wC = t => {
- t.component(Pc + Jd.pc, bv),
- t.config.globalProperties.formComponentsRunTimeContext[Pc] = Cv
- }
- ;
- return t => {
- t.use(wC)
- }
- });
|