| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005 |
- var dA = (M, n, A) => new Promise((D, w) => {
- var z = (Y) => {
- try {
- c(A.next(Y));
- } catch (B) {
- w(B);
- }
- }, l = (Y) => {
- try {
- c(A.throw(Y));
- } catch (B) {
- w(B);
- }
- }, c = (Y) => Y.done ? D(Y.value) : Promise.resolve(Y.value).then(z, l);
- c((A = A.apply(M, n)).next());
- });
- import { e as Og } from "./base64Util.js";
- import { c8 as I, dA as gw, c9 as Bw, n as PA, dB as ZB, dC as bB, dD as lB, dE as GB, ad as dB, dF as ww, dG as aB, dH as Dw, I as uB, dm as yB, B as XB, a6 as sw, a7 as ew, dI as mA, dJ as Kg, dK as Cw, y as tw, dL as jB, aA as Mw } from "./index2.js";
- import { openBlock as m, createElementBlock as T, normalizeStyle as vA, createElementVNode as V, withDirectives as xg, vShow as Zg, createVNode as o, Transition as vw, withCtx as F, normalizeClass as oA, toDisplayString as E, createCommentVNode as AA, Fragment as FA, renderList as bg, createTextVNode as $, createBlock as DA, resolveDynamicComponent as JA, resolveComponent as YA, withModifiers as jA, ref as MA, computed as rw, reactive as fw, onMounted as nw, unref as Eg, normalizeProps as zw, guardReactiveProps as Pw } from "vue";
- import { F as VB, _ as oB } from "./index5.js";
- import { T as cw, _ as Yw } from "./index13.js";
- import { S as FB } from "./index17.js";
- import { _ as Qw } from "./index10.js";
- import { useRoute as Ww, useRouter as Hw } from "vue-router";
- import { g as Lw } from "./account.js";
- import { T as Ow, P as xw, a as Zw } from "./index18.js";
- import { S as bw } from "./index9.js";
- import { C as lw } from "./index19.js";
- import { _ as Gw, a as dw } from "./index11.js";
- import { _ as aw } from "./index16.js";
- var NB = { exports: {} };
- function uw(M) {
- throw new Error('Could not dynamically require "' + M + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
- }
- var KA = { exports: {} }, Ig;
- function U() {
- return Ig || (Ig = 1, function(M, n) {
- (function(A, D) {
- M.exports = D();
- })(I, function() {
- var A = A || function(D, w) {
- var z;
- if (typeof window != "undefined" && window.crypto && (z = window.crypto), typeof self != "undefined" && self.crypto && (z = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (z = globalThis.crypto), !z && typeof window != "undefined" && window.msCrypto && (z = window.msCrypto), !z && typeof I != "undefined" && I.crypto && (z = I.crypto), !z && typeof uw == "function")
- try {
- z = gw;
- } catch (g) {
- }
- var l = function() {
- if (z) {
- if (typeof z.getRandomValues == "function")
- try {
- return z.getRandomValues(new Uint32Array(1))[0];
- } catch (g) {
- }
- if (typeof z.randomBytes == "function")
- try {
- return z.randomBytes(4).readInt32LE();
- } catch (g) {
- }
- }
- throw new Error("Native crypto module could not be used to get secure random number.");
- }, c = Object.create || /* @__PURE__ */ function() {
- function g() {
- }
- return function(C) {
- var r;
- return g.prototype = C, r = new g(), g.prototype = null, r;
- };
- }(), Y = {}, B = Y.lib = {}, s = B.Base = /* @__PURE__ */ function() {
- return {
- /**
- * Creates a new object that inherits from this object.
- *
- * @param {Object} overrides Properties to copy into the new object.
- *
- * @return {Object} The new object.
- *
- * @static
- *
- * @example
- *
- * var MyType = CryptoJS.lib.Base.extend({
- * field: 'value',
- *
- * method: function () {
- * }
- * });
- */
- extend: function(g) {
- var C = c(this);
- return g && C.mixIn(g), (!C.hasOwnProperty("init") || this.init === C.init) && (C.init = function() {
- C.$super.init.apply(this, arguments);
- }), C.init.prototype = C, C.$super = this, C;
- },
- /**
- * Extends this object and runs the init method.
- * Arguments to create() will be passed to init().
- *
- * @return {Object} The new object.
- *
- * @static
- *
- * @example
- *
- * var instance = MyType.create();
- */
- create: function() {
- var g = this.extend();
- return g.init.apply(g, arguments), g;
- },
- /**
- * Initializes a newly created object.
- * Override this method to add some logic when your objects are created.
- *
- * @example
- *
- * var MyType = CryptoJS.lib.Base.extend({
- * init: function () {
- * // ...
- * }
- * });
- */
- init: function() {
- },
- /**
- * Copies properties into this object.
- *
- * @param {Object} properties The properties to mix in.
- *
- * @example
- *
- * MyType.mixIn({
- * field: 'value'
- * });
- */
- mixIn: function(g) {
- for (var C in g)
- g.hasOwnProperty(C) && (this[C] = g[C]);
- g.hasOwnProperty("toString") && (this.toString = g.toString);
- },
- /**
- * Creates a copy of this object.
- *
- * @return {Object} The clone.
- *
- * @example
- *
- * var clone = instance.clone();
- */
- clone: function() {
- return this.init.prototype.extend(this);
- }
- };
- }(), Q = B.WordArray = s.extend({
- /**
- * Initializes a newly created word array.
- *
- * @param {Array} words (Optional) An array of 32-bit words.
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
- *
- * @example
- *
- * var wordArray = CryptoJS.lib.WordArray.create();
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
- */
- init: function(g, C) {
- g = this.words = g || [], C != w ? this.sigBytes = C : this.sigBytes = g.length * 4;
- },
- /**
- * Converts this word array to a string.
- *
- * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
- *
- * @return {string} The stringified word array.
- *
- * @example
- *
- * var string = wordArray + '';
- * var string = wordArray.toString();
- * var string = wordArray.toString(CryptoJS.enc.Utf8);
- */
- toString: function(g) {
- return (g || f).stringify(this);
- },
- /**
- * Concatenates a word array to this word array.
- *
- * @param {WordArray} wordArray The word array to append.
- *
- * @return {WordArray} This word array.
- *
- * @example
- *
- * wordArray1.concat(wordArray2);
- */
- concat: function(g) {
- var C = this.words, r = g.words, O = this.sigBytes, L = g.sigBytes;
- if (this.clamp(), O % 4)
- for (var Z = 0; Z < L; Z++) {
- var d = r[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
- C[O + Z >>> 2] |= d << 24 - (O + Z) % 4 * 8;
- }
- else
- for (var j = 0; j < L; j += 4)
- C[O + j >>> 2] = r[j >>> 2];
- return this.sigBytes += L, this;
- },
- /**
- * Removes insignificant bits.
- *
- * @example
- *
- * wordArray.clamp();
- */
- clamp: function() {
- var g = this.words, C = this.sigBytes;
- g[C >>> 2] &= 4294967295 << 32 - C % 4 * 8, g.length = D.ceil(C / 4);
- },
- /**
- * Creates a copy of this word array.
- *
- * @return {WordArray} The clone.
- *
- * @example
- *
- * var clone = wordArray.clone();
- */
- clone: function() {
- var g = s.clone.call(this);
- return g.words = this.words.slice(0), g;
- },
- /**
- * Creates a word array filled with random bytes.
- *
- * @param {number} nBytes The number of random bytes to generate.
- *
- * @return {WordArray} The random word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.lib.WordArray.random(16);
- */
- random: function(g) {
- for (var C = [], r = 0; r < g; r += 4)
- C.push(l());
- return new Q.init(C, g);
- }
- }), e = Y.enc = {}, f = e.Hex = {
- /**
- * Converts a word array to a hex string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The hex string.
- *
- * @static
- *
- * @example
- *
- * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
- */
- stringify: function(g) {
- for (var C = g.words, r = g.sigBytes, O = [], L = 0; L < r; L++) {
- var Z = C[L >>> 2] >>> 24 - L % 4 * 8 & 255;
- O.push((Z >>> 4).toString(16)), O.push((Z & 15).toString(16));
- }
- return O.join("");
- },
- /**
- * Converts a hex string to a word array.
- *
- * @param {string} hexStr The hex string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Hex.parse(hexString);
- */
- parse: function(g) {
- for (var C = g.length, r = [], O = 0; O < C; O += 2)
- r[O >>> 3] |= parseInt(g.substr(O, 2), 16) << 24 - O % 8 * 4;
- return new Q.init(r, C / 2);
- }
- }, t = e.Latin1 = {
- /**
- * Converts a word array to a Latin1 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The Latin1 string.
- *
- * @static
- *
- * @example
- *
- * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
- */
- stringify: function(g) {
- for (var C = g.words, r = g.sigBytes, O = [], L = 0; L < r; L++) {
- var Z = C[L >>> 2] >>> 24 - L % 4 * 8 & 255;
- O.push(String.fromCharCode(Z));
- }
- return O.join("");
- },
- /**
- * Converts a Latin1 string to a word array.
- *
- * @param {string} latin1Str The Latin1 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
- */
- parse: function(g) {
- for (var C = g.length, r = [], O = 0; O < C; O++)
- r[O >>> 2] |= (g.charCodeAt(O) & 255) << 24 - O % 4 * 8;
- return new Q.init(r, C);
- }
- }, P = e.Utf8 = {
- /**
- * Converts a word array to a UTF-8 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-8 string.
- *
- * @static
- *
- * @example
- *
- * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
- */
- stringify: function(g) {
- try {
- return decodeURIComponent(escape(t.stringify(g)));
- } catch (C) {
- throw new Error("Malformed UTF-8 data");
- }
- },
- /**
- * Converts a UTF-8 string to a word array.
- *
- * @param {string} utf8Str The UTF-8 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
- */
- parse: function(g) {
- return t.parse(unescape(encodeURIComponent(g)));
- }
- }, v = B.BufferedBlockAlgorithm = s.extend({
- /**
- * Resets this block algorithm's data buffer to its initial state.
- *
- * @example
- *
- * bufferedBlockAlgorithm.reset();
- */
- reset: function() {
- this._data = new Q.init(), this._nDataBytes = 0;
- },
- /**
- * Adds new data to this block algorithm's buffer.
- *
- * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
- *
- * @example
- *
- * bufferedBlockAlgorithm._append('data');
- * bufferedBlockAlgorithm._append(wordArray);
- */
- _append: function(g) {
- typeof g == "string" && (g = P.parse(g)), this._data.concat(g), this._nDataBytes += g.sigBytes;
- },
- /**
- * Processes available data blocks.
- *
- * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
- *
- * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
- *
- * @return {WordArray} The processed data.
- *
- * @example
- *
- * var processedData = bufferedBlockAlgorithm._process();
- * var processedData = bufferedBlockAlgorithm._process(!!'flush');
- */
- _process: function(g) {
- var C, r = this._data, O = r.words, L = r.sigBytes, Z = this.blockSize, d = Z * 4, j = L / d;
- g ? j = D.ceil(j) : j = D.max((j | 0) - this._minBufferSize, 0);
- var W = j * Z, x = D.min(W * 4, L);
- if (W) {
- for (var u = 0; u < W; u += Z)
- this._doProcessBlock(O, u);
- C = O.splice(0, W), r.sigBytes -= x;
- }
- return new Q.init(C, x);
- },
- /**
- * Creates a copy of this object.
- *
- * @return {Object} The clone.
- *
- * @example
- *
- * var clone = bufferedBlockAlgorithm.clone();
- */
- clone: function() {
- var g = s.clone.call(this);
- return g._data = this._data.clone(), g;
- },
- _minBufferSize: 0
- });
- B.Hasher = v.extend({
- /**
- * Configuration options.
- */
- cfg: s.extend(),
- /**
- * Initializes a newly created hasher.
- *
- * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
- *
- * @example
- *
- * var hasher = CryptoJS.algo.SHA256.create();
- */
- init: function(g) {
- this.cfg = this.cfg.extend(g), this.reset();
- },
- /**
- * Resets this hasher to its initial state.
- *
- * @example
- *
- * hasher.reset();
- */
- reset: function() {
- v.reset.call(this), this._doReset();
- },
- /**
- * Updates this hasher with a message.
- *
- * @param {WordArray|string} messageUpdate The message to append.
- *
- * @return {Hasher} This hasher.
- *
- * @example
- *
- * hasher.update('message');
- * hasher.update(wordArray);
- */
- update: function(g) {
- return this._append(g), this._process(), this;
- },
- /**
- * Finalizes the hash computation.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
- *
- * @return {WordArray} The hash.
- *
- * @example
- *
- * var hash = hasher.finalize();
- * var hash = hasher.finalize('message');
- * var hash = hasher.finalize(wordArray);
- */
- finalize: function(g) {
- g && this._append(g);
- var C = this._doFinalize();
- return C;
- },
- blockSize: 16,
- /**
- * Creates a shortcut function to a hasher's object interface.
- *
- * @param {Hasher} hasher The hasher to create a helper for.
- *
- * @return {Function} The shortcut function.
- *
- * @static
- *
- * @example
- *
- * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
- */
- _createHelper: function(g) {
- return function(C, r) {
- return new g.init(r).finalize(C);
- };
- },
- /**
- * Creates a shortcut function to the HMAC's object interface.
- *
- * @param {Hasher} hasher The hasher to use in this HMAC helper.
- *
- * @return {Function} The shortcut function.
- *
- * @static
- *
- * @example
- *
- * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
- */
- _createHmacHelper: function(g) {
- return function(C, r) {
- return new H.HMAC.init(g, r).finalize(C);
- };
- }
- });
- var H = Y.algo = {};
- return Y;
- }(Math);
- return A;
- });
- }(KA)), KA.exports;
- }
- var EA = { exports: {} }, pg;
- function kA() {
- return pg || (pg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function(D) {
- var w = A, z = w.lib, l = z.Base, c = z.WordArray, Y = w.x64 = {};
- Y.Word = l.extend({
- /**
- * Initializes a newly created 64-bit word.
- *
- * @param {number} high The high 32 bits.
- * @param {number} low The low 32 bits.
- *
- * @example
- *
- * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
- */
- init: function(B, s) {
- this.high = B, this.low = s;
- }
- /**
- * Bitwise NOTs this word.
- *
- * @return {X64Word} A new x64-Word object after negating.
- *
- * @example
- *
- * var negated = x64Word.not();
- */
- // not: function () {
- // var high = ~this.high;
- // var low = ~this.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise ANDs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to AND with this word.
- *
- * @return {X64Word} A new x64-Word object after ANDing.
- *
- * @example
- *
- * var anded = x64Word.and(anotherX64Word);
- */
- // and: function (word) {
- // var high = this.high & word.high;
- // var low = this.low & word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise ORs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to OR with this word.
- *
- * @return {X64Word} A new x64-Word object after ORing.
- *
- * @example
- *
- * var ored = x64Word.or(anotherX64Word);
- */
- // or: function (word) {
- // var high = this.high | word.high;
- // var low = this.low | word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Bitwise XORs this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to XOR with this word.
- *
- * @return {X64Word} A new x64-Word object after XORing.
- *
- * @example
- *
- * var xored = x64Word.xor(anotherX64Word);
- */
- // xor: function (word) {
- // var high = this.high ^ word.high;
- // var low = this.low ^ word.low;
- // return X64Word.create(high, low);
- // },
- /**
- * Shifts this word n bits to the left.
- *
- * @param {number} n The number of bits to shift.
- *
- * @return {X64Word} A new x64-Word object after shifting.
- *
- * @example
- *
- * var shifted = x64Word.shiftL(25);
- */
- // shiftL: function (n) {
- // if (n < 32) {
- // var high = (this.high << n) | (this.low >>> (32 - n));
- // var low = this.low << n;
- // } else {
- // var high = this.low << (n - 32);
- // var low = 0;
- // }
- // return X64Word.create(high, low);
- // },
- /**
- * Shifts this word n bits to the right.
- *
- * @param {number} n The number of bits to shift.
- *
- * @return {X64Word} A new x64-Word object after shifting.
- *
- * @example
- *
- * var shifted = x64Word.shiftR(7);
- */
- // shiftR: function (n) {
- // if (n < 32) {
- // var low = (this.low >>> n) | (this.high << (32 - n));
- // var high = this.high >>> n;
- // } else {
- // var low = this.high >>> (n - 32);
- // var high = 0;
- // }
- // return X64Word.create(high, low);
- // },
- /**
- * Rotates this word n bits to the left.
- *
- * @param {number} n The number of bits to rotate.
- *
- * @return {X64Word} A new x64-Word object after rotating.
- *
- * @example
- *
- * var rotated = x64Word.rotL(25);
- */
- // rotL: function (n) {
- // return this.shiftL(n).or(this.shiftR(64 - n));
- // },
- /**
- * Rotates this word n bits to the right.
- *
- * @param {number} n The number of bits to rotate.
- *
- * @return {X64Word} A new x64-Word object after rotating.
- *
- * @example
- *
- * var rotated = x64Word.rotR(7);
- */
- // rotR: function (n) {
- // return this.shiftR(n).or(this.shiftL(64 - n));
- // },
- /**
- * Adds this word with the passed word.
- *
- * @param {X64Word} word The x64-Word to add with this word.
- *
- * @return {X64Word} A new x64-Word object after adding.
- *
- * @example
- *
- * var added = x64Word.add(anotherX64Word);
- */
- // add: function (word) {
- // var low = (this.low + word.low) | 0;
- // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
- // var high = (this.high + word.high + carry) | 0;
- // return X64Word.create(high, low);
- // }
- }), Y.WordArray = l.extend({
- /**
- * Initializes a newly created word array.
- *
- * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
- *
- * @example
- *
- * var wordArray = CryptoJS.x64.WordArray.create();
- *
- * var wordArray = CryptoJS.x64.WordArray.create([
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
- * ]);
- *
- * var wordArray = CryptoJS.x64.WordArray.create([
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
- * ], 10);
- */
- init: function(B, s) {
- B = this.words = B || [], s != D ? this.sigBytes = s : this.sigBytes = B.length * 8;
- },
- /**
- * Converts this 64-bit word array to a 32-bit word array.
- *
- * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
- *
- * @example
- *
- * var x32WordArray = x64WordArray.toX32();
- */
- toX32: function() {
- for (var B = this.words, s = B.length, Q = [], e = 0; e < s; e++) {
- var f = B[e];
- Q.push(f.high), Q.push(f.low);
- }
- return c.create(Q, this.sigBytes);
- },
- /**
- * Creates a copy of this word array.
- *
- * @return {X64WordArray} The clone.
- *
- * @example
- *
- * var clone = x64WordArray.clone();
- */
- clone: function() {
- for (var B = l.clone.call(this), s = B.words = this.words.slice(0), Q = s.length, e = 0; e < Q; e++)
- s[e] = s[e].clone();
- return B;
- }
- });
- }(), A;
- });
- }(EA)), EA.exports;
- }
- var IA = { exports: {} }, Tg;
- function yw() {
- return Tg || (Tg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function() {
- if (typeof ArrayBuffer == "function") {
- var D = A, w = D.lib, z = w.WordArray, l = z.init, c = z.init = function(Y) {
- if (Y instanceof ArrayBuffer && (Y = new Uint8Array(Y)), (Y instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && Y instanceof Uint8ClampedArray || Y instanceof Int16Array || Y instanceof Uint16Array || Y instanceof Int32Array || Y instanceof Uint32Array || Y instanceof Float32Array || Y instanceof Float64Array) && (Y = new Uint8Array(Y.buffer, Y.byteOffset, Y.byteLength)), Y instanceof Uint8Array) {
- for (var B = Y.byteLength, s = [], Q = 0; Q < B; Q++)
- s[Q >>> 2] |= Y[Q] << 24 - Q % 4 * 8;
- l.call(this, s, B);
- } else
- l.apply(this, arguments);
- };
- c.prototype = z;
- }
- }(), A.lib.WordArray;
- });
- }(IA)), IA.exports;
- }
- var pA = { exports: {} }, Sg;
- function Xw() {
- return Sg || (Sg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = D.enc;
- l.Utf16 = l.Utf16BE = {
- /**
- * Converts a word array to a UTF-16 BE string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-16 BE string.
- *
- * @static
- *
- * @example
- *
- * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
- */
- stringify: function(Y) {
- for (var B = Y.words, s = Y.sigBytes, Q = [], e = 0; e < s; e += 2) {
- var f = B[e >>> 2] >>> 16 - e % 4 * 8 & 65535;
- Q.push(String.fromCharCode(f));
- }
- return Q.join("");
- },
- /**
- * Converts a UTF-16 BE string to a word array.
- *
- * @param {string} utf16Str The UTF-16 BE string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
- */
- parse: function(Y) {
- for (var B = Y.length, s = [], Q = 0; Q < B; Q++)
- s[Q >>> 1] |= Y.charCodeAt(Q) << 16 - Q % 2 * 16;
- return z.create(s, B * 2);
- }
- }, l.Utf16LE = {
- /**
- * Converts a word array to a UTF-16 LE string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The UTF-16 LE string.
- *
- * @static
- *
- * @example
- *
- * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
- */
- stringify: function(Y) {
- for (var B = Y.words, s = Y.sigBytes, Q = [], e = 0; e < s; e += 2) {
- var f = c(B[e >>> 2] >>> 16 - e % 4 * 8 & 65535);
- Q.push(String.fromCharCode(f));
- }
- return Q.join("");
- },
- /**
- * Converts a UTF-16 LE string to a word array.
- *
- * @param {string} utf16Str The UTF-16 LE string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
- */
- parse: function(Y) {
- for (var B = Y.length, s = [], Q = 0; Q < B; Q++)
- s[Q >>> 1] |= c(Y.charCodeAt(Q) << 16 - Q % 2 * 16);
- return z.create(s, B * 2);
- }
- };
- function c(Y) {
- return Y << 8 & 4278255360 | Y >>> 8 & 16711935;
- }
- }(), A.enc.Utf16;
- });
- }(pA)), pA.exports;
- }
- var TA = { exports: {} }, Ug;
- function OA() {
- return Ug || (Ug = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = D.enc;
- l.Base64 = {
- /**
- * Converts a word array to a Base64 string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @return {string} The Base64 string.
- *
- * @static
- *
- * @example
- *
- * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
- */
- stringify: function(Y) {
- var B = Y.words, s = Y.sigBytes, Q = this._map;
- Y.clamp();
- for (var e = [], f = 0; f < s; f += 3)
- for (var t = B[f >>> 2] >>> 24 - f % 4 * 8 & 255, P = B[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, v = B[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, H = t << 16 | P << 8 | v, g = 0; g < 4 && f + g * 0.75 < s; g++)
- e.push(Q.charAt(H >>> 6 * (3 - g) & 63));
- var C = Q.charAt(64);
- if (C)
- for (; e.length % 4; )
- e.push(C);
- return e.join("");
- },
- /**
- * Converts a Base64 string to a word array.
- *
- * @param {string} base64Str The Base64 string.
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Base64.parse(base64String);
- */
- parse: function(Y) {
- var B = Y.length, s = this._map, Q = this._reverseMap;
- if (!Q) {
- Q = this._reverseMap = [];
- for (var e = 0; e < s.length; e++)
- Q[s.charCodeAt(e)] = e;
- }
- var f = s.charAt(64);
- if (f) {
- var t = Y.indexOf(f);
- t !== -1 && (B = t);
- }
- return c(Y, B, Q);
- },
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
- };
- function c(Y, B, s) {
- for (var Q = [], e = 0, f = 0; f < B; f++)
- if (f % 4) {
- var t = s[Y.charCodeAt(f - 1)] << f % 4 * 2, P = s[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, v = t | P;
- Q[e >>> 2] |= v << 24 - e % 4 * 8, e++;
- }
- return z.create(Q, e);
- }
- }(), A.enc.Base64;
- });
- }(TA)), TA.exports;
- }
- var SA = { exports: {} }, ig;
- function jw() {
- return ig || (ig = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = D.enc;
- l.Base64url = {
- /**
- * Converts a word array to a Base64url string.
- *
- * @param {WordArray} wordArray The word array.
- *
- * @param {boolean} urlSafe Whether to use url safe
- *
- * @return {string} The Base64url string.
- *
- * @static
- *
- * @example
- *
- * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
- */
- stringify: function(Y, B) {
- B === void 0 && (B = !0);
- var s = Y.words, Q = Y.sigBytes, e = B ? this._safe_map : this._map;
- Y.clamp();
- for (var f = [], t = 0; t < Q; t += 3)
- for (var P = s[t >>> 2] >>> 24 - t % 4 * 8 & 255, v = s[t + 1 >>> 2] >>> 24 - (t + 1) % 4 * 8 & 255, H = s[t + 2 >>> 2] >>> 24 - (t + 2) % 4 * 8 & 255, g = P << 16 | v << 8 | H, C = 0; C < 4 && t + C * 0.75 < Q; C++)
- f.push(e.charAt(g >>> 6 * (3 - C) & 63));
- var r = e.charAt(64);
- if (r)
- for (; f.length % 4; )
- f.push(r);
- return f.join("");
- },
- /**
- * Converts a Base64url string to a word array.
- *
- * @param {string} base64Str The Base64url string.
- *
- * @param {boolean} urlSafe Whether to use url safe
- *
- * @return {WordArray} The word array.
- *
- * @static
- *
- * @example
- *
- * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
- */
- parse: function(Y, B) {
- B === void 0 && (B = !0);
- var s = Y.length, Q = B ? this._safe_map : this._map, e = this._reverseMap;
- if (!e) {
- e = this._reverseMap = [];
- for (var f = 0; f < Q.length; f++)
- e[Q.charCodeAt(f)] = f;
- }
- var t = Q.charAt(64);
- if (t) {
- var P = Y.indexOf(t);
- P !== -1 && (s = P);
- }
- return c(Y, s, e);
- },
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
- _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
- };
- function c(Y, B, s) {
- for (var Q = [], e = 0, f = 0; f < B; f++)
- if (f % 4) {
- var t = s[Y.charCodeAt(f - 1)] << f % 4 * 2, P = s[Y.charCodeAt(f)] >>> 6 - f % 4 * 2, v = t | P;
- Q[e >>> 2] |= v << 24 - e % 4 * 8, e++;
- }
- return z.create(Q, e);
- }
- }(), A.enc.Base64url;
- });
- }(SA)), SA.exports;
- }
- var UA = { exports: {} }, qg;
- function xA() {
- return qg || (qg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function(D) {
- var w = A, z = w.lib, l = z.WordArray, c = z.Hasher, Y = w.algo, B = [];
- (function() {
- for (var P = 0; P < 64; P++)
- B[P] = D.abs(D.sin(P + 1)) * 4294967296 | 0;
- })();
- var s = Y.MD5 = c.extend({
- _doReset: function() {
- this._hash = new l.init([
- 1732584193,
- 4023233417,
- 2562383102,
- 271733878
- ]);
- },
- _doProcessBlock: function(P, v) {
- for (var H = 0; H < 16; H++) {
- var g = v + H, C = P[g];
- P[g] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
- }
- var r = this._hash.words, O = P[v + 0], L = P[v + 1], Z = P[v + 2], d = P[v + 3], j = P[v + 4], W = P[v + 5], x = P[v + 6], u = P[v + 7], y = P[v + 8], N = P[v + 9], J = P[v + 10], K = P[v + 11], R = P[v + 12], i = P[v + 13], h = P[v + 14], q = P[v + 15], a = r[0], X = r[1], b = r[2], G = r[3];
- a = Q(a, X, b, G, O, 7, B[0]), G = Q(G, a, X, b, L, 12, B[1]), b = Q(b, G, a, X, Z, 17, B[2]), X = Q(X, b, G, a, d, 22, B[3]), a = Q(a, X, b, G, j, 7, B[4]), G = Q(G, a, X, b, W, 12, B[5]), b = Q(b, G, a, X, x, 17, B[6]), X = Q(X, b, G, a, u, 22, B[7]), a = Q(a, X, b, G, y, 7, B[8]), G = Q(G, a, X, b, N, 12, B[9]), b = Q(b, G, a, X, J, 17, B[10]), X = Q(X, b, G, a, K, 22, B[11]), a = Q(a, X, b, G, R, 7, B[12]), G = Q(G, a, X, b, i, 12, B[13]), b = Q(b, G, a, X, h, 17, B[14]), X = Q(X, b, G, a, q, 22, B[15]), a = e(a, X, b, G, L, 5, B[16]), G = e(G, a, X, b, x, 9, B[17]), b = e(b, G, a, X, K, 14, B[18]), X = e(X, b, G, a, O, 20, B[19]), a = e(a, X, b, G, W, 5, B[20]), G = e(G, a, X, b, J, 9, B[21]), b = e(b, G, a, X, q, 14, B[22]), X = e(X, b, G, a, j, 20, B[23]), a = e(a, X, b, G, N, 5, B[24]), G = e(G, a, X, b, h, 9, B[25]), b = e(b, G, a, X, d, 14, B[26]), X = e(X, b, G, a, y, 20, B[27]), a = e(a, X, b, G, i, 5, B[28]), G = e(G, a, X, b, Z, 9, B[29]), b = e(b, G, a, X, u, 14, B[30]), X = e(X, b, G, a, R, 20, B[31]), a = f(a, X, b, G, W, 4, B[32]), G = f(G, a, X, b, y, 11, B[33]), b = f(b, G, a, X, K, 16, B[34]), X = f(X, b, G, a, h, 23, B[35]), a = f(a, X, b, G, L, 4, B[36]), G = f(G, a, X, b, j, 11, B[37]), b = f(b, G, a, X, u, 16, B[38]), X = f(X, b, G, a, J, 23, B[39]), a = f(a, X, b, G, i, 4, B[40]), G = f(G, a, X, b, O, 11, B[41]), b = f(b, G, a, X, d, 16, B[42]), X = f(X, b, G, a, x, 23, B[43]), a = f(a, X, b, G, N, 4, B[44]), G = f(G, a, X, b, R, 11, B[45]), b = f(b, G, a, X, q, 16, B[46]), X = f(X, b, G, a, Z, 23, B[47]), a = t(a, X, b, G, O, 6, B[48]), G = t(G, a, X, b, u, 10, B[49]), b = t(b, G, a, X, h, 15, B[50]), X = t(X, b, G, a, W, 21, B[51]), a = t(a, X, b, G, R, 6, B[52]), G = t(G, a, X, b, d, 10, B[53]), b = t(b, G, a, X, J, 15, B[54]), X = t(X, b, G, a, L, 21, B[55]), a = t(a, X, b, G, y, 6, B[56]), G = t(G, a, X, b, q, 10, B[57]), b = t(b, G, a, X, x, 15, B[58]), X = t(X, b, G, a, i, 21, B[59]), a = t(a, X, b, G, j, 6, B[60]), G = t(G, a, X, b, K, 10, B[61]), b = t(b, G, a, X, Z, 15, B[62]), X = t(X, b, G, a, N, 21, B[63]), r[0] = r[0] + a | 0, r[1] = r[1] + X | 0, r[2] = r[2] + b | 0, r[3] = r[3] + G | 0;
- },
- _doFinalize: function() {
- var P = this._data, v = P.words, H = this._nDataBytes * 8, g = P.sigBytes * 8;
- v[g >>> 5] |= 128 << 24 - g % 32;
- var C = D.floor(H / 4294967296), r = H;
- v[(g + 64 >>> 9 << 4) + 15] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, v[(g + 64 >>> 9 << 4) + 14] = (r << 8 | r >>> 24) & 16711935 | (r << 24 | r >>> 8) & 4278255360, P.sigBytes = (v.length + 1) * 4, this._process();
- for (var O = this._hash, L = O.words, Z = 0; Z < 4; Z++) {
- var d = L[Z];
- L[Z] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360;
- }
- return O;
- },
- clone: function() {
- var P = c.clone.call(this);
- return P._hash = this._hash.clone(), P;
- }
- });
- function Q(P, v, H, g, C, r, O) {
- var L = P + (v & H | ~v & g) + C + O;
- return (L << r | L >>> 32 - r) + v;
- }
- function e(P, v, H, g, C, r, O) {
- var L = P + (v & g | H & ~g) + C + O;
- return (L << r | L >>> 32 - r) + v;
- }
- function f(P, v, H, g, C, r, O) {
- var L = P + (v ^ H ^ g) + C + O;
- return (L << r | L >>> 32 - r) + v;
- }
- function t(P, v, H, g, C, r, O) {
- var L = P + (H ^ (v | ~g)) + C + O;
- return (L << r | L >>> 32 - r) + v;
- }
- w.MD5 = c._createHelper(s), w.HmacMD5 = c._createHmacHelper(s);
- }(Math), A.MD5;
- });
- }(UA)), UA.exports;
- }
- var iA = { exports: {} }, hg;
- function mB() {
- return hg || (hg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = w.Hasher, c = D.algo, Y = [], B = c.SHA1 = l.extend({
- _doReset: function() {
- this._hash = new z.init([
- 1732584193,
- 4023233417,
- 2562383102,
- 271733878,
- 3285377520
- ]);
- },
- _doProcessBlock: function(s, Q) {
- for (var e = this._hash.words, f = e[0], t = e[1], P = e[2], v = e[3], H = e[4], g = 0; g < 80; g++) {
- if (g < 16)
- Y[g] = s[Q + g] | 0;
- else {
- var C = Y[g - 3] ^ Y[g - 8] ^ Y[g - 14] ^ Y[g - 16];
- Y[g] = C << 1 | C >>> 31;
- }
- var r = (f << 5 | f >>> 27) + H + Y[g];
- g < 20 ? r += (t & P | ~t & v) + 1518500249 : g < 40 ? r += (t ^ P ^ v) + 1859775393 : g < 60 ? r += (t & P | t & v | P & v) - 1894007588 : r += (t ^ P ^ v) - 899497514, H = v, v = P, P = t << 30 | t >>> 2, t = f, f = r;
- }
- e[0] = e[0] + f | 0, e[1] = e[1] + t | 0, e[2] = e[2] + P | 0, e[3] = e[3] + v | 0, e[4] = e[4] + H | 0;
- },
- _doFinalize: function() {
- var s = this._data, Q = s.words, e = this._nDataBytes * 8, f = s.sigBytes * 8;
- return Q[f >>> 5] |= 128 << 24 - f % 32, Q[(f + 64 >>> 9 << 4) + 14] = Math.floor(e / 4294967296), Q[(f + 64 >>> 9 << 4) + 15] = e, s.sigBytes = Q.length * 4, this._process(), this._hash;
- },
- clone: function() {
- var s = l.clone.call(this);
- return s._hash = this._hash.clone(), s;
- }
- });
- D.SHA1 = l._createHelper(B), D.HmacSHA1 = l._createHmacHelper(B);
- }(), A.SHA1;
- });
- }(iA)), iA.exports;
- }
- var qA = { exports: {} }, Rg;
- function lg() {
- return Rg || (Rg = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- return function(D) {
- var w = A, z = w.lib, l = z.WordArray, c = z.Hasher, Y = w.algo, B = [], s = [];
- (function() {
- function f(H) {
- for (var g = D.sqrt(H), C = 2; C <= g; C++)
- if (!(H % C))
- return !1;
- return !0;
- }
- function t(H) {
- return (H - (H | 0)) * 4294967296 | 0;
- }
- for (var P = 2, v = 0; v < 64; )
- f(P) && (v < 8 && (B[v] = t(D.pow(P, 1 / 2))), s[v] = t(D.pow(P, 1 / 3)), v++), P++;
- })();
- var Q = [], e = Y.SHA256 = c.extend({
- _doReset: function() {
- this._hash = new l.init(B.slice(0));
- },
- _doProcessBlock: function(f, t) {
- for (var P = this._hash.words, v = P[0], H = P[1], g = P[2], C = P[3], r = P[4], O = P[5], L = P[6], Z = P[7], d = 0; d < 64; d++) {
- if (d < 16)
- Q[d] = f[t + d] | 0;
- else {
- var j = Q[d - 15], W = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, x = Q[d - 2], u = (x << 15 | x >>> 17) ^ (x << 13 | x >>> 19) ^ x >>> 10;
- Q[d] = W + Q[d - 7] + u + Q[d - 16];
- }
- var y = r & O ^ ~r & L, N = v & H ^ v & g ^ H & g, J = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), K = (r << 26 | r >>> 6) ^ (r << 21 | r >>> 11) ^ (r << 7 | r >>> 25), R = Z + K + y + s[d] + Q[d], i = J + N;
- Z = L, L = O, O = r, r = C + R | 0, C = g, g = H, H = v, v = R + i | 0;
- }
- P[0] = P[0] + v | 0, P[1] = P[1] + H | 0, P[2] = P[2] + g | 0, P[3] = P[3] + C | 0, P[4] = P[4] + r | 0, P[5] = P[5] + O | 0, P[6] = P[6] + L | 0, P[7] = P[7] + Z | 0;
- },
- _doFinalize: function() {
- var f = this._data, t = f.words, P = this._nDataBytes * 8, v = f.sigBytes * 8;
- return t[v >>> 5] |= 128 << 24 - v % 32, t[(v + 64 >>> 9 << 4) + 14] = D.floor(P / 4294967296), t[(v + 64 >>> 9 << 4) + 15] = P, f.sigBytes = t.length * 4, this._process(), this._hash;
- },
- clone: function() {
- var f = c.clone.call(this);
- return f._hash = this._hash.clone(), f;
- }
- });
- w.SHA256 = c._createHelper(e), w.HmacSHA256 = c._createHmacHelper(e);
- }(Math), A.SHA256;
- });
- }(qA)), qA.exports;
- }
- var hA = { exports: {} }, _g;
- function Vw() {
- return _g || (_g = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), lg());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = D.algo, c = l.SHA256, Y = l.SHA224 = c.extend({
- _doReset: function() {
- this._hash = new z.init([
- 3238371032,
- 914150663,
- 812702999,
- 4144912697,
- 4290775857,
- 1750603025,
- 1694076839,
- 3204075428
- ]);
- },
- _doFinalize: function() {
- var B = c._doFinalize.call(this);
- return B.sigBytes -= 4, B;
- }
- });
- D.SHA224 = c._createHelper(Y), D.HmacSHA224 = c._createHmacHelper(Y);
- }(), A.SHA224;
- });
- }(hA)), hA.exports;
- }
- var RA = { exports: {} }, $g;
- function JB() {
- return $g || ($g = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), kA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.Hasher, l = D.x64, c = l.Word, Y = l.WordArray, B = D.algo;
- function s() {
- return c.create.apply(c, arguments);
- }
- var Q = [
- s(1116352408, 3609767458),
- s(1899447441, 602891725),
- s(3049323471, 3964484399),
- s(3921009573, 2173295548),
- s(961987163, 4081628472),
- s(1508970993, 3053834265),
- s(2453635748, 2937671579),
- s(2870763221, 3664609560),
- s(3624381080, 2734883394),
- s(310598401, 1164996542),
- s(607225278, 1323610764),
- s(1426881987, 3590304994),
- s(1925078388, 4068182383),
- s(2162078206, 991336113),
- s(2614888103, 633803317),
- s(3248222580, 3479774868),
- s(3835390401, 2666613458),
- s(4022224774, 944711139),
- s(264347078, 2341262773),
- s(604807628, 2007800933),
- s(770255983, 1495990901),
- s(1249150122, 1856431235),
- s(1555081692, 3175218132),
- s(1996064986, 2198950837),
- s(2554220882, 3999719339),
- s(2821834349, 766784016),
- s(2952996808, 2566594879),
- s(3210313671, 3203337956),
- s(3336571891, 1034457026),
- s(3584528711, 2466948901),
- s(113926993, 3758326383),
- s(338241895, 168717936),
- s(666307205, 1188179964),
- s(773529912, 1546045734),
- s(1294757372, 1522805485),
- s(1396182291, 2643833823),
- s(1695183700, 2343527390),
- s(1986661051, 1014477480),
- s(2177026350, 1206759142),
- s(2456956037, 344077627),
- s(2730485921, 1290863460),
- s(2820302411, 3158454273),
- s(3259730800, 3505952657),
- s(3345764771, 106217008),
- s(3516065817, 3606008344),
- s(3600352804, 1432725776),
- s(4094571909, 1467031594),
- s(275423344, 851169720),
- s(430227734, 3100823752),
- s(506948616, 1363258195),
- s(659060556, 3750685593),
- s(883997877, 3785050280),
- s(958139571, 3318307427),
- s(1322822218, 3812723403),
- s(1537002063, 2003034995),
- s(1747873779, 3602036899),
- s(1955562222, 1575990012),
- s(2024104815, 1125592928),
- s(2227730452, 2716904306),
- s(2361852424, 442776044),
- s(2428436474, 593698344),
- s(2756734187, 3733110249),
- s(3204031479, 2999351573),
- s(3329325298, 3815920427),
- s(3391569614, 3928383900),
- s(3515267271, 566280711),
- s(3940187606, 3454069534),
- s(4118630271, 4000239992),
- s(116418474, 1914138554),
- s(174292421, 2731055270),
- s(289380356, 3203993006),
- s(460393269, 320620315),
- s(685471733, 587496836),
- s(852142971, 1086792851),
- s(1017036298, 365543100),
- s(1126000580, 2618297676),
- s(1288033470, 3409855158),
- s(1501505948, 4234509866),
- s(1607167915, 987167468),
- s(1816402316, 1246189591)
- ], e = [];
- (function() {
- for (var t = 0; t < 80; t++)
- e[t] = s();
- })();
- var f = B.SHA512 = z.extend({
- _doReset: function() {
- this._hash = new Y.init([
- new c.init(1779033703, 4089235720),
- new c.init(3144134277, 2227873595),
- new c.init(1013904242, 4271175723),
- new c.init(2773480762, 1595750129),
- new c.init(1359893119, 2917565137),
- new c.init(2600822924, 725511199),
- new c.init(528734635, 4215389547),
- new c.init(1541459225, 327033209)
- ]);
- },
- _doProcessBlock: function(t, P) {
- for (var v = this._hash.words, H = v[0], g = v[1], C = v[2], r = v[3], O = v[4], L = v[5], Z = v[6], d = v[7], j = H.high, W = H.low, x = g.high, u = g.low, y = C.high, N = C.low, J = r.high, K = r.low, R = O.high, i = O.low, h = L.high, q = L.low, a = Z.high, X = Z.low, b = d.high, G = d.low, S = j, p = W, _ = x, k = u, rA = y, fA = N, aA = J, WA = K, sA = R, wA = i, ZA = h, HA = q, bA = a, nA = X, uA = b, LA = G, CA = 0; CA < 80; CA++) {
- var eA, zA, BA = e[CA];
- if (CA < 16)
- zA = BA.high = t[P + CA * 2] | 0, eA = BA.low = t[P + CA * 2 + 1] | 0;
- else {
- var ag = e[CA - 15], lA = ag.high, yA = ag.low, EB = (lA >>> 1 | yA << 31) ^ (lA >>> 8 | yA << 24) ^ lA >>> 7, ug = (yA >>> 1 | lA << 31) ^ (yA >>> 8 | lA << 24) ^ (yA >>> 7 | lA << 25), yg = e[CA - 2], GA = yg.high, XA = yg.low, IB = (GA >>> 19 | XA << 13) ^ (GA << 3 | XA >>> 29) ^ GA >>> 6, Xg = (XA >>> 19 | GA << 13) ^ (XA << 3 | GA >>> 29) ^ (XA >>> 6 | GA << 26), jg = e[CA - 7], pB = jg.high, TB = jg.low, Vg = e[CA - 16], SB = Vg.high, og = Vg.low;
- eA = ug + TB, zA = EB + pB + (eA >>> 0 < ug >>> 0 ? 1 : 0), eA = eA + Xg, zA = zA + IB + (eA >>> 0 < Xg >>> 0 ? 1 : 0), eA = eA + og, zA = zA + SB + (eA >>> 0 < og >>> 0 ? 1 : 0), BA.high = zA, BA.low = eA;
- }
- var UB = sA & ZA ^ ~sA & bA, Fg = wA & HA ^ ~wA & nA, iB = S & _ ^ S & rA ^ _ & rA, qB = p & k ^ p & fA ^ k & fA, hB = (S >>> 28 | p << 4) ^ (S << 30 | p >>> 2) ^ (S << 25 | p >>> 7), Ng = (p >>> 28 | S << 4) ^ (p << 30 | S >>> 2) ^ (p << 25 | S >>> 7), RB = (sA >>> 14 | wA << 18) ^ (sA >>> 18 | wA << 14) ^ (sA << 23 | wA >>> 9), _B = (wA >>> 14 | sA << 18) ^ (wA >>> 18 | sA << 14) ^ (wA << 23 | sA >>> 9), mg = Q[CA], $B = mg.high, Jg = mg.low, tA = LA + _B, cA = uA + RB + (tA >>> 0 < LA >>> 0 ? 1 : 0), tA = tA + Fg, cA = cA + UB + (tA >>> 0 < Fg >>> 0 ? 1 : 0), tA = tA + Jg, cA = cA + $B + (tA >>> 0 < Jg >>> 0 ? 1 : 0), tA = tA + eA, cA = cA + zA + (tA >>> 0 < eA >>> 0 ? 1 : 0), kg = Ng + qB, Aw = hB + iB + (kg >>> 0 < Ng >>> 0 ? 1 : 0);
- uA = bA, LA = nA, bA = ZA, nA = HA, ZA = sA, HA = wA, wA = WA + tA | 0, sA = aA + cA + (wA >>> 0 < WA >>> 0 ? 1 : 0) | 0, aA = rA, WA = fA, rA = _, fA = k, _ = S, k = p, p = tA + kg | 0, S = cA + Aw + (p >>> 0 < tA >>> 0 ? 1 : 0) | 0;
- }
- W = H.low = W + p, H.high = j + S + (W >>> 0 < p >>> 0 ? 1 : 0), u = g.low = u + k, g.high = x + _ + (u >>> 0 < k >>> 0 ? 1 : 0), N = C.low = N + fA, C.high = y + rA + (N >>> 0 < fA >>> 0 ? 1 : 0), K = r.low = K + WA, r.high = J + aA + (K >>> 0 < WA >>> 0 ? 1 : 0), i = O.low = i + wA, O.high = R + sA + (i >>> 0 < wA >>> 0 ? 1 : 0), q = L.low = q + HA, L.high = h + ZA + (q >>> 0 < HA >>> 0 ? 1 : 0), X = Z.low = X + nA, Z.high = a + bA + (X >>> 0 < nA >>> 0 ? 1 : 0), G = d.low = G + LA, d.high = b + uA + (G >>> 0 < LA >>> 0 ? 1 : 0);
- },
- _doFinalize: function() {
- var t = this._data, P = t.words, v = this._nDataBytes * 8, H = t.sigBytes * 8;
- P[H >>> 5] |= 128 << 24 - H % 32, P[(H + 128 >>> 10 << 5) + 30] = Math.floor(v / 4294967296), P[(H + 128 >>> 10 << 5) + 31] = v, t.sigBytes = P.length * 4, this._process();
- var g = this._hash.toX32();
- return g;
- },
- clone: function() {
- var t = z.clone.call(this);
- return t._hash = this._hash.clone(), t;
- },
- blockSize: 1024 / 32
- });
- D.SHA512 = z._createHelper(f), D.HmacSHA512 = z._createHmacHelper(f);
- }(), A.SHA512;
- });
- }(RA)), RA.exports;
- }
- var _A = { exports: {} }, AB;
- function ow() {
- return AB || (AB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), kA(), JB());
- })(I, function(A) {
- return function() {
- var D = A, w = D.x64, z = w.Word, l = w.WordArray, c = D.algo, Y = c.SHA512, B = c.SHA384 = Y.extend({
- _doReset: function() {
- this._hash = new l.init([
- new z.init(3418070365, 3238371032),
- new z.init(1654270250, 914150663),
- new z.init(2438529370, 812702999),
- new z.init(355462360, 4144912697),
- new z.init(1731405415, 4290775857),
- new z.init(2394180231, 1750603025),
- new z.init(3675008525, 1694076839),
- new z.init(1203062813, 3204075428)
- ]);
- },
- _doFinalize: function() {
- var s = Y._doFinalize.call(this);
- return s.sigBytes -= 16, s;
- }
- });
- D.SHA384 = Y._createHelper(B), D.HmacSHA384 = Y._createHmacHelper(B);
- }(), A.SHA384;
- });
- }(_A)), _A.exports;
- }
- var $A = { exports: {} }, gB;
- function Fw() {
- return gB || (gB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), kA());
- })(I, function(A) {
- return function(D) {
- var w = A, z = w.lib, l = z.WordArray, c = z.Hasher, Y = w.x64, B = Y.Word, s = w.algo, Q = [], e = [], f = [];
- (function() {
- for (var v = 1, H = 0, g = 0; g < 24; g++) {
- Q[v + 5 * H] = (g + 1) * (g + 2) / 2 % 64;
- var C = H % 5, r = (2 * v + 3 * H) % 5;
- v = C, H = r;
- }
- for (var v = 0; v < 5; v++)
- for (var H = 0; H < 5; H++)
- e[v + 5 * H] = H + (2 * v + 3 * H) % 5 * 5;
- for (var O = 1, L = 0; L < 24; L++) {
- for (var Z = 0, d = 0, j = 0; j < 7; j++) {
- if (O & 1) {
- var W = (1 << j) - 1;
- W < 32 ? d ^= 1 << W : Z ^= 1 << W - 32;
- }
- O & 128 ? O = O << 1 ^ 113 : O <<= 1;
- }
- f[L] = B.create(Z, d);
- }
- })();
- var t = [];
- (function() {
- for (var v = 0; v < 25; v++)
- t[v] = B.create();
- })();
- var P = s.SHA3 = c.extend({
- /**
- * Configuration options.
- *
- * @property {number} outputLength
- * The desired number of bits in the output hash.
- * Only values permitted are: 224, 256, 384, 512.
- * Default: 512
- */
- cfg: c.cfg.extend({
- outputLength: 512
- }),
- _doReset: function() {
- for (var v = this._state = [], H = 0; H < 25; H++)
- v[H] = new B.init();
- this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
- },
- _doProcessBlock: function(v, H) {
- for (var g = this._state, C = this.blockSize / 2, r = 0; r < C; r++) {
- var O = v[H + 2 * r], L = v[H + 2 * r + 1];
- O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, L = (L << 8 | L >>> 24) & 16711935 | (L << 24 | L >>> 8) & 4278255360;
- var Z = g[r];
- Z.high ^= L, Z.low ^= O;
- }
- for (var d = 0; d < 24; d++) {
- for (var j = 0; j < 5; j++) {
- for (var W = 0, x = 0, u = 0; u < 5; u++) {
- var Z = g[j + 5 * u];
- W ^= Z.high, x ^= Z.low;
- }
- var y = t[j];
- y.high = W, y.low = x;
- }
- for (var j = 0; j < 5; j++)
- for (var N = t[(j + 4) % 5], J = t[(j + 1) % 5], K = J.high, R = J.low, W = N.high ^ (K << 1 | R >>> 31), x = N.low ^ (R << 1 | K >>> 31), u = 0; u < 5; u++) {
- var Z = g[j + 5 * u];
- Z.high ^= W, Z.low ^= x;
- }
- for (var i = 1; i < 25; i++) {
- var W, x, Z = g[i], h = Z.high, q = Z.low, a = Q[i];
- a < 32 ? (W = h << a | q >>> 32 - a, x = q << a | h >>> 32 - a) : (W = q << a - 32 | h >>> 64 - a, x = h << a - 32 | q >>> 64 - a);
- var X = t[e[i]];
- X.high = W, X.low = x;
- }
- var b = t[0], G = g[0];
- b.high = G.high, b.low = G.low;
- for (var j = 0; j < 5; j++)
- for (var u = 0; u < 5; u++) {
- var i = j + 5 * u, Z = g[i], S = t[i], p = t[(j + 1) % 5 + 5 * u], _ = t[(j + 2) % 5 + 5 * u];
- Z.high = S.high ^ ~p.high & _.high, Z.low = S.low ^ ~p.low & _.low;
- }
- var Z = g[0], k = f[d];
- Z.high ^= k.high, Z.low ^= k.low;
- }
- },
- _doFinalize: function() {
- var v = this._data, H = v.words;
- this._nDataBytes * 8;
- var g = v.sigBytes * 8, C = this.blockSize * 32;
- H[g >>> 5] |= 1 << 24 - g % 32, H[(D.ceil((g + 1) / C) * C >>> 5) - 1] |= 128, v.sigBytes = H.length * 4, this._process();
- for (var r = this._state, O = this.cfg.outputLength / 8, L = O / 8, Z = [], d = 0; d < L; d++) {
- var j = r[d], W = j.high, x = j.low;
- W = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, Z.push(x), Z.push(W);
- }
- return new l.init(Z, O);
- },
- clone: function() {
- for (var v = c.clone.call(this), H = v._state = this._state.slice(0), g = 0; g < 25; g++)
- H[g] = H[g].clone();
- return v;
- }
- });
- w.SHA3 = c._createHelper(P), w.HmacSHA3 = c._createHmacHelper(P);
- }(Math), A.SHA3;
- });
- }($A)), $A.exports;
- }
- var Ag = { exports: {} }, BB;
- function Nw() {
- return BB || (BB = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- /** @preserve
- (c) 2012 by Cédric Mesnil. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- return function(D) {
- var w = A, z = w.lib, l = z.WordArray, c = z.Hasher, Y = w.algo, B = l.create([
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 7,
- 4,
- 13,
- 1,
- 10,
- 6,
- 15,
- 3,
- 12,
- 0,
- 9,
- 5,
- 2,
- 14,
- 11,
- 8,
- 3,
- 10,
- 14,
- 4,
- 9,
- 15,
- 8,
- 1,
- 2,
- 7,
- 0,
- 6,
- 13,
- 11,
- 5,
- 12,
- 1,
- 9,
- 11,
- 10,
- 0,
- 8,
- 12,
- 4,
- 13,
- 3,
- 7,
- 15,
- 14,
- 5,
- 6,
- 2,
- 4,
- 0,
- 5,
- 9,
- 7,
- 12,
- 2,
- 10,
- 14,
- 1,
- 3,
- 8,
- 11,
- 6,
- 15,
- 13
- ]), s = l.create([
- 5,
- 14,
- 7,
- 0,
- 9,
- 2,
- 11,
- 4,
- 13,
- 6,
- 15,
- 8,
- 1,
- 10,
- 3,
- 12,
- 6,
- 11,
- 3,
- 7,
- 0,
- 13,
- 5,
- 10,
- 14,
- 15,
- 8,
- 12,
- 4,
- 9,
- 1,
- 2,
- 15,
- 5,
- 1,
- 3,
- 7,
- 14,
- 6,
- 9,
- 11,
- 8,
- 12,
- 2,
- 10,
- 0,
- 4,
- 13,
- 8,
- 6,
- 4,
- 1,
- 3,
- 11,
- 15,
- 0,
- 5,
- 12,
- 2,
- 13,
- 9,
- 7,
- 10,
- 14,
- 12,
- 15,
- 10,
- 4,
- 1,
- 5,
- 8,
- 7,
- 6,
- 2,
- 13,
- 14,
- 0,
- 3,
- 9,
- 11
- ]), Q = l.create([
- 11,
- 14,
- 15,
- 12,
- 5,
- 8,
- 7,
- 9,
- 11,
- 13,
- 14,
- 15,
- 6,
- 7,
- 9,
- 8,
- 7,
- 6,
- 8,
- 13,
- 11,
- 9,
- 7,
- 15,
- 7,
- 12,
- 15,
- 9,
- 11,
- 7,
- 13,
- 12,
- 11,
- 13,
- 6,
- 7,
- 14,
- 9,
- 13,
- 15,
- 14,
- 8,
- 13,
- 6,
- 5,
- 12,
- 7,
- 5,
- 11,
- 12,
- 14,
- 15,
- 14,
- 15,
- 9,
- 8,
- 9,
- 14,
- 5,
- 6,
- 8,
- 6,
- 5,
- 12,
- 9,
- 15,
- 5,
- 11,
- 6,
- 8,
- 13,
- 12,
- 5,
- 12,
- 13,
- 14,
- 11,
- 8,
- 5,
- 6
- ]), e = l.create([
- 8,
- 9,
- 9,
- 11,
- 13,
- 15,
- 15,
- 5,
- 7,
- 7,
- 8,
- 11,
- 14,
- 14,
- 12,
- 6,
- 9,
- 13,
- 15,
- 7,
- 12,
- 8,
- 9,
- 11,
- 7,
- 7,
- 12,
- 7,
- 6,
- 15,
- 13,
- 11,
- 9,
- 7,
- 15,
- 11,
- 8,
- 6,
- 6,
- 14,
- 12,
- 13,
- 5,
- 14,
- 13,
- 13,
- 7,
- 5,
- 15,
- 5,
- 8,
- 11,
- 14,
- 14,
- 6,
- 14,
- 6,
- 9,
- 12,
- 9,
- 12,
- 5,
- 15,
- 8,
- 8,
- 5,
- 12,
- 9,
- 12,
- 5,
- 14,
- 6,
- 8,
- 13,
- 6,
- 5,
- 15,
- 13,
- 11,
- 11
- ]), f = l.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), t = l.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), P = Y.RIPEMD160 = c.extend({
- _doReset: function() {
- this._hash = l.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
- },
- _doProcessBlock: function(L, Z) {
- for (var d = 0; d < 16; d++) {
- var j = Z + d, W = L[j];
- L[j] = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360;
- }
- var x = this._hash.words, u = f.words, y = t.words, N = B.words, J = s.words, K = Q.words, R = e.words, i, h, q, a, X, b, G, S, p, _;
- b = i = x[0], G = h = x[1], S = q = x[2], p = a = x[3], _ = X = x[4];
- for (var k, d = 0; d < 80; d += 1)
- k = i + L[Z + N[d]] | 0, d < 16 ? k += v(h, q, a) + u[0] : d < 32 ? k += H(h, q, a) + u[1] : d < 48 ? k += g(h, q, a) + u[2] : d < 64 ? k += C(h, q, a) + u[3] : k += r(h, q, a) + u[4], k = k | 0, k = O(k, K[d]), k = k + X | 0, i = X, X = a, a = O(q, 10), q = h, h = k, k = b + L[Z + J[d]] | 0, d < 16 ? k += r(G, S, p) + y[0] : d < 32 ? k += C(G, S, p) + y[1] : d < 48 ? k += g(G, S, p) + y[2] : d < 64 ? k += H(G, S, p) + y[3] : k += v(G, S, p) + y[4], k = k | 0, k = O(k, R[d]), k = k + _ | 0, b = _, _ = p, p = O(S, 10), S = G, G = k;
- k = x[1] + q + p | 0, x[1] = x[2] + a + _ | 0, x[2] = x[3] + X + b | 0, x[3] = x[4] + i + G | 0, x[4] = x[0] + h + S | 0, x[0] = k;
- },
- _doFinalize: function() {
- var L = this._data, Z = L.words, d = this._nDataBytes * 8, j = L.sigBytes * 8;
- Z[j >>> 5] |= 128 << 24 - j % 32, Z[(j + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, L.sigBytes = (Z.length + 1) * 4, this._process();
- for (var W = this._hash, x = W.words, u = 0; u < 5; u++) {
- var y = x[u];
- x[u] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
- }
- return W;
- },
- clone: function() {
- var L = c.clone.call(this);
- return L._hash = this._hash.clone(), L;
- }
- });
- function v(L, Z, d) {
- return L ^ Z ^ d;
- }
- function H(L, Z, d) {
- return L & Z | ~L & d;
- }
- function g(L, Z, d) {
- return (L | ~Z) ^ d;
- }
- function C(L, Z, d) {
- return L & d | Z & ~d;
- }
- function r(L, Z, d) {
- return L ^ (Z | ~d);
- }
- function O(L, Z) {
- return L << Z | L >>> 32 - Z;
- }
- w.RIPEMD160 = c._createHelper(P), w.HmacRIPEMD160 = c._createHmacHelper(P);
- }(), A.RIPEMD160;
- });
- }(Ag)), Ag.exports;
- }
- var gg = { exports: {} }, wB;
- function Gg() {
- return wB || (wB = 1, function(M, n) {
- (function(A, D) {
- M.exports = D(U());
- })(I, function(A) {
- (function() {
- var D = A, w = D.lib, z = w.Base, l = D.enc, c = l.Utf8, Y = D.algo;
- Y.HMAC = z.extend({
- /**
- * Initializes a newly created HMAC.
- *
- * @param {Hasher} hasher The hash algorithm to use.
- * @param {WordArray|string} key The secret key.
- *
- * @example
- *
- * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
- */
- init: function(B, s) {
- B = this._hasher = new B.init(), typeof s == "string" && (s = c.parse(s));
- var Q = B.blockSize, e = Q * 4;
- s.sigBytes > e && (s = B.finalize(s)), s.clamp();
- for (var f = this._oKey = s.clone(), t = this._iKey = s.clone(), P = f.words, v = t.words, H = 0; H < Q; H++)
- P[H] ^= 1549556828, v[H] ^= 909522486;
- f.sigBytes = t.sigBytes = e, this.reset();
- },
- /**
- * Resets this HMAC to its initial state.
- *
- * @example
- *
- * hmacHasher.reset();
- */
- reset: function() {
- var B = this._hasher;
- B.reset(), B.update(this._iKey);
- },
- /**
- * Updates this HMAC with a message.
- *
- * @param {WordArray|string} messageUpdate The message to append.
- *
- * @return {HMAC} This HMAC instance.
- *
- * @example
- *
- * hmacHasher.update('message');
- * hmacHasher.update(wordArray);
- */
- update: function(B) {
- return this._hasher.update(B), this;
- },
- /**
- * Finalizes the HMAC computation.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
- *
- * @return {WordArray} The HMAC.
- *
- * @example
- *
- * var hmac = hmacHasher.finalize();
- * var hmac = hmacHasher.finalize('message');
- * var hmac = hmacHasher.finalize(wordArray);
- */
- finalize: function(B) {
- var s = this._hasher, Q = s.finalize(B);
- s.reset();
- var e = s.finalize(this._oKey.clone().concat(Q));
- return e;
- }
- });
- })();
- });
- }(gg)), gg.exports;
- }
- var Bg = { exports: {} }, DB;
- function mw() {
- return DB || (DB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), lg(), Gg());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.Base, l = w.WordArray, c = D.algo, Y = c.SHA256, B = c.HMAC, s = c.PBKDF2 = z.extend({
- /**
- * Configuration options.
- *
- * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
- * @property {Hasher} hasher The hasher to use. Default: SHA256
- * @property {number} iterations The number of iterations to perform. Default: 250000
- */
- cfg: z.extend({
- keySize: 128 / 32,
- hasher: Y,
- iterations: 25e4
- }),
- /**
- * Initializes a newly created key derivation function.
- *
- * @param {Object} cfg (Optional) The configuration options to use for the derivation.
- *
- * @example
- *
- * var kdf = CryptoJS.algo.PBKDF2.create();
- * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
- * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
- */
- init: function(Q) {
- this.cfg = this.cfg.extend(Q);
- },
- /**
- * Computes the Password-Based Key Derivation Function 2.
- *
- * @param {WordArray|string} password The password.
- * @param {WordArray|string} salt A salt.
- *
- * @return {WordArray} The derived key.
- *
- * @example
- *
- * var key = kdf.compute(password, salt);
- */
- compute: function(Q, e) {
- for (var f = this.cfg, t = B.create(f.hasher, Q), P = l.create(), v = l.create([1]), H = P.words, g = v.words, C = f.keySize, r = f.iterations; H.length < C; ) {
- var O = t.update(e).finalize(v);
- t.reset();
- for (var L = O.words, Z = L.length, d = O, j = 1; j < r; j++) {
- d = t.finalize(d), t.reset();
- for (var W = d.words, x = 0; x < Z; x++)
- L[x] ^= W[x];
- }
- P.concat(O), g[0]++;
- }
- return P.sigBytes = C * 4, P;
- }
- });
- D.PBKDF2 = function(Q, e, f) {
- return s.create(f).compute(Q, e);
- };
- }(), A.PBKDF2;
- });
- }(Bg)), Bg.exports;
- }
- var wg = { exports: {} }, sB;
- function QA() {
- return sB || (sB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), mB(), Gg());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.Base, l = w.WordArray, c = D.algo, Y = c.MD5, B = c.EvpKDF = z.extend({
- /**
- * Configuration options.
- *
- * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
- * @property {Hasher} hasher The hash algorithm to use. Default: MD5
- * @property {number} iterations The number of iterations to perform. Default: 1
- */
- cfg: z.extend({
- keySize: 128 / 32,
- hasher: Y,
- iterations: 1
- }),
- /**
- * Initializes a newly created key derivation function.
- *
- * @param {Object} cfg (Optional) The configuration options to use for the derivation.
- *
- * @example
- *
- * var kdf = CryptoJS.algo.EvpKDF.create();
- * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
- * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
- */
- init: function(s) {
- this.cfg = this.cfg.extend(s);
- },
- /**
- * Derives a key from a password.
- *
- * @param {WordArray|string} password The password.
- * @param {WordArray|string} salt A salt.
- *
- * @return {WordArray} The derived key.
- *
- * @example
- *
- * var key = kdf.compute(password, salt);
- */
- compute: function(s, Q) {
- for (var e, f = this.cfg, t = f.hasher.create(), P = l.create(), v = P.words, H = f.keySize, g = f.iterations; v.length < H; ) {
- e && t.update(e), e = t.update(s).finalize(Q), t.reset();
- for (var C = 1; C < g; C++)
- e = t.finalize(e), t.reset();
- P.concat(e);
- }
- return P.sigBytes = H * 4, P;
- }
- });
- D.EvpKDF = function(s, Q, e) {
- return B.create(e).compute(s, Q);
- };
- }(), A.EvpKDF;
- });
- }(wg)), wg.exports;
- }
- var Dg = { exports: {} }, eB;
- function gA() {
- return eB || (eB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), QA());
- })(I, function(A) {
- A.lib.Cipher || function(D) {
- var w = A, z = w.lib, l = z.Base, c = z.WordArray, Y = z.BufferedBlockAlgorithm, B = w.enc;
- B.Utf8;
- var s = B.Base64, Q = w.algo, e = Q.EvpKDF, f = z.Cipher = Y.extend({
- /**
- * Configuration options.
- *
- * @property {WordArray} iv The IV to use for this operation.
- */
- cfg: l.extend(),
- /**
- * Creates this cipher in encryption mode.
- *
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {Cipher} A cipher instance.
- *
- * @static
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
- */
- createEncryptor: function(W, x) {
- return this.create(this._ENC_XFORM_MODE, W, x);
- },
- /**
- * Creates this cipher in decryption mode.
- *
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {Cipher} A cipher instance.
- *
- * @static
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
- */
- createDecryptor: function(W, x) {
- return this.create(this._DEC_XFORM_MODE, W, x);
- },
- /**
- * Initializes a newly created cipher.
- *
- * @param {number} xformMode Either the encryption or decryption transormation mode constant.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @example
- *
- * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
- */
- init: function(W, x, u) {
- this.cfg = this.cfg.extend(u), this._xformMode = W, this._key = x, this.reset();
- },
- /**
- * Resets this cipher to its initial state.
- *
- * @example
- *
- * cipher.reset();
- */
- reset: function() {
- Y.reset.call(this), this._doReset();
- },
- /**
- * Adds data to be encrypted or decrypted.
- *
- * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
- *
- * @return {WordArray} The data after processing.
- *
- * @example
- *
- * var encrypted = cipher.process('data');
- * var encrypted = cipher.process(wordArray);
- */
- process: function(W) {
- return this._append(W), this._process();
- },
- /**
- * Finalizes the encryption or decryption process.
- * Note that the finalize operation is effectively a destructive, read-once operation.
- *
- * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
- *
- * @return {WordArray} The data after final processing.
- *
- * @example
- *
- * var encrypted = cipher.finalize();
- * var encrypted = cipher.finalize('data');
- * var encrypted = cipher.finalize(wordArray);
- */
- finalize: function(W) {
- W && this._append(W);
- var x = this._doFinalize();
- return x;
- },
- keySize: 128 / 32,
- ivSize: 128 / 32,
- _ENC_XFORM_MODE: 1,
- _DEC_XFORM_MODE: 2,
- /**
- * Creates shortcut functions to a cipher's object interface.
- *
- * @param {Cipher} cipher The cipher to create a helper for.
- *
- * @return {Object} An object with encrypt and decrypt shortcut functions.
- *
- * @static
- *
- * @example
- *
- * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
- */
- _createHelper: /* @__PURE__ */ function() {
- function W(x) {
- return typeof x == "string" ? j : L;
- }
- return function(x) {
- return {
- encrypt: function(u, y, N) {
- return W(y).encrypt(x, u, y, N);
- },
- decrypt: function(u, y, N) {
- return W(y).decrypt(x, u, y, N);
- }
- };
- };
- }()
- });
- z.StreamCipher = f.extend({
- _doFinalize: function() {
- var W = this._process(!0);
- return W;
- },
- blockSize: 1
- });
- var t = w.mode = {}, P = z.BlockCipherMode = l.extend({
- /**
- * Creates this mode for encryption.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @static
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
- */
- createEncryptor: function(W, x) {
- return this.Encryptor.create(W, x);
- },
- /**
- * Creates this mode for decryption.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @static
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
- */
- createDecryptor: function(W, x) {
- return this.Decryptor.create(W, x);
- },
- /**
- * Initializes a newly created mode.
- *
- * @param {Cipher} cipher A block cipher instance.
- * @param {Array} iv The IV words.
- *
- * @example
- *
- * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
- */
- init: function(W, x) {
- this._cipher = W, this._iv = x;
- }
- }), v = t.CBC = function() {
- var W = P.extend();
- W.Encryptor = W.extend({
- /**
- * Processes the data block at offset.
- *
- * @param {Array} words The data words to operate on.
- * @param {number} offset The offset where the block starts.
- *
- * @example
- *
- * mode.processBlock(data.words, offset);
- */
- processBlock: function(u, y) {
- var N = this._cipher, J = N.blockSize;
- x.call(this, u, y, J), N.encryptBlock(u, y), this._prevBlock = u.slice(y, y + J);
- }
- }), W.Decryptor = W.extend({
- /**
- * Processes the data block at offset.
- *
- * @param {Array} words The data words to operate on.
- * @param {number} offset The offset where the block starts.
- *
- * @example
- *
- * mode.processBlock(data.words, offset);
- */
- processBlock: function(u, y) {
- var N = this._cipher, J = N.blockSize, K = u.slice(y, y + J);
- N.decryptBlock(u, y), x.call(this, u, y, J), this._prevBlock = K;
- }
- });
- function x(u, y, N) {
- var J, K = this._iv;
- K ? (J = K, this._iv = D) : J = this._prevBlock;
- for (var R = 0; R < N; R++)
- u[y + R] ^= J[R];
- }
- return W;
- }(), H = w.pad = {}, g = H.Pkcs7 = {
- /**
- * Pads data using the algorithm defined in PKCS #5/7.
- *
- * @param {WordArray} data The data to pad.
- * @param {number} blockSize The multiple that the data should be padded to.
- *
- * @static
- *
- * @example
- *
- * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
- */
- pad: function(W, x) {
- for (var u = x * 4, y = u - W.sigBytes % u, N = y << 24 | y << 16 | y << 8 | y, J = [], K = 0; K < y; K += 4)
- J.push(N);
- var R = c.create(J, y);
- W.concat(R);
- },
- /**
- * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
- *
- * @param {WordArray} data The data to unpad.
- *
- * @static
- *
- * @example
- *
- * CryptoJS.pad.Pkcs7.unpad(wordArray);
- */
- unpad: function(W) {
- var x = W.words[W.sigBytes - 1 >>> 2] & 255;
- W.sigBytes -= x;
- }
- };
- z.BlockCipher = f.extend({
- /**
- * Configuration options.
- *
- * @property {Mode} mode The block mode to use. Default: CBC
- * @property {Padding} padding The padding strategy to use. Default: Pkcs7
- */
- cfg: f.cfg.extend({
- mode: v,
- padding: g
- }),
- reset: function() {
- var W;
- f.reset.call(this);
- var x = this.cfg, u = x.iv, y = x.mode;
- this._xformMode == this._ENC_XFORM_MODE ? W = y.createEncryptor : (W = y.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == W ? this._mode.init(this, u && u.words) : (this._mode = W.call(y, this, u && u.words), this._mode.__creator = W);
- },
- _doProcessBlock: function(W, x) {
- this._mode.processBlock(W, x);
- },
- _doFinalize: function() {
- var W, x = this.cfg.padding;
- return this._xformMode == this._ENC_XFORM_MODE ? (x.pad(this._data, this.blockSize), W = this._process(!0)) : (W = this._process(!0), x.unpad(W)), W;
- },
- blockSize: 128 / 32
- });
- var C = z.CipherParams = l.extend({
- /**
- * Initializes a newly created cipher params object.
- *
- * @param {Object} cipherParams An object with any of the possible cipher parameters.
- *
- * @example
- *
- * var cipherParams = CryptoJS.lib.CipherParams.create({
- * ciphertext: ciphertextWordArray,
- * key: keyWordArray,
- * iv: ivWordArray,
- * salt: saltWordArray,
- * algorithm: CryptoJS.algo.AES,
- * mode: CryptoJS.mode.CBC,
- * padding: CryptoJS.pad.PKCS7,
- * blockSize: 4,
- * formatter: CryptoJS.format.OpenSSL
- * });
- */
- init: function(W) {
- this.mixIn(W);
- },
- /**
- * Converts this cipher params object to a string.
- *
- * @param {Format} formatter (Optional) The formatting strategy to use.
- *
- * @return {string} The stringified cipher params.
- *
- * @throws Error If neither the formatter nor the default formatter is set.
- *
- * @example
- *
- * var string = cipherParams + '';
- * var string = cipherParams.toString();
- * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
- */
- toString: function(W) {
- return (W || this.formatter).stringify(this);
- }
- }), r = w.format = {}, O = r.OpenSSL = {
- /**
- * Converts a cipher params object to an OpenSSL-compatible string.
- *
- * @param {CipherParams} cipherParams The cipher params object.
- *
- * @return {string} The OpenSSL-compatible string.
- *
- * @static
- *
- * @example
- *
- * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
- */
- stringify: function(W) {
- var x, u = W.ciphertext, y = W.salt;
- return y ? x = c.create([1398893684, 1701076831]).concat(y).concat(u) : x = u, x.toString(s);
- },
- /**
- * Converts an OpenSSL-compatible string to a cipher params object.
- *
- * @param {string} openSSLStr The OpenSSL-compatible string.
- *
- * @return {CipherParams} The cipher params object.
- *
- * @static
- *
- * @example
- *
- * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
- */
- parse: function(W) {
- var x, u = s.parse(W), y = u.words;
- return y[0] == 1398893684 && y[1] == 1701076831 && (x = c.create(y.slice(2, 4)), y.splice(0, 4), u.sigBytes -= 16), C.create({ ciphertext: u, salt: x });
- }
- }, L = z.SerializableCipher = l.extend({
- /**
- * Configuration options.
- *
- * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
- */
- cfg: l.extend({
- format: O
- }),
- /**
- * Encrypts a message.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {WordArray|string} message The message to encrypt.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {CipherParams} A cipher params object.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- */
- encrypt: function(W, x, u, y) {
- y = this.cfg.extend(y);
- var N = W.createEncryptor(u, y), J = N.finalize(x), K = N.cfg;
- return C.create({
- ciphertext: J,
- key: u,
- iv: K.iv,
- algorithm: W,
- mode: K.mode,
- padding: K.padding,
- blockSize: W.blockSize,
- formatter: y.format
- });
- },
- /**
- * Decrypts serialized ciphertext.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
- * @param {WordArray} key The key.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {WordArray} The plaintext.
- *
- * @static
- *
- * @example
- *
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
- */
- decrypt: function(W, x, u, y) {
- y = this.cfg.extend(y), x = this._parse(x, y.format);
- var N = W.createDecryptor(u, y).finalize(x.ciphertext);
- return N;
- },
- /**
- * Converts serialized ciphertext to CipherParams,
- * else assumed CipherParams already and returns ciphertext unchanged.
- *
- * @param {CipherParams|string} ciphertext The ciphertext.
- * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
- *
- * @return {CipherParams} The unserialized ciphertext.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
- */
- _parse: function(W, x) {
- return typeof W == "string" ? x.parse(W, this) : W;
- }
- }), Z = w.kdf = {}, d = Z.OpenSSL = {
- /**
- * Derives a key and IV from a password.
- *
- * @param {string} password The password to derive from.
- * @param {number} keySize The size in words of the key to generate.
- * @param {number} ivSize The size in words of the IV to generate.
- * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
- *
- * @return {CipherParams} A cipher params object with the key, IV, and salt.
- *
- * @static
- *
- * @example
- *
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
- */
- execute: function(W, x, u, y, N) {
- if (y || (y = c.random(64 / 8)), N)
- var J = e.create({ keySize: x + u, hasher: N }).compute(W, y);
- else
- var J = e.create({ keySize: x + u }).compute(W, y);
- var K = c.create(J.words.slice(x), u * 4);
- return J.sigBytes = x * 4, C.create({ key: J, iv: K, salt: y });
- }
- }, j = z.PasswordBasedCipher = L.extend({
- /**
- * Configuration options.
- *
- * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
- */
- cfg: L.cfg.extend({
- kdf: d
- }),
- /**
- * Encrypts a message using a password.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {WordArray|string} message The message to encrypt.
- * @param {string} password The password.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {CipherParams} A cipher params object.
- *
- * @static
- *
- * @example
- *
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
- */
- encrypt: function(W, x, u, y) {
- y = this.cfg.extend(y);
- var N = y.kdf.execute(u, W.keySize, W.ivSize, y.salt, y.hasher);
- y.iv = N.iv;
- var J = L.encrypt.call(this, W, x, N.key, y);
- return J.mixIn(N), J;
- },
- /**
- * Decrypts serialized ciphertext using a password.
- *
- * @param {Cipher} cipher The cipher algorithm to use.
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
- * @param {string} password The password.
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
- *
- * @return {WordArray} The plaintext.
- *
- * @static
- *
- * @example
- *
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
- */
- decrypt: function(W, x, u, y) {
- y = this.cfg.extend(y), x = this._parse(x, y.format);
- var N = y.kdf.execute(u, W.keySize, W.ivSize, x.salt, y.hasher);
- y.iv = N.iv;
- var J = L.decrypt.call(this, W, x, N.key, y);
- return J;
- }
- });
- }();
- });
- }(Dg)), Dg.exports;
- }
- var sg = { exports: {} }, CB;
- function Jw() {
- return CB || (CB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.mode.CFB = function() {
- var D = A.lib.BlockCipherMode.extend();
- D.Encryptor = D.extend({
- processBlock: function(z, l) {
- var c = this._cipher, Y = c.blockSize;
- w.call(this, z, l, Y, c), this._prevBlock = z.slice(l, l + Y);
- }
- }), D.Decryptor = D.extend({
- processBlock: function(z, l) {
- var c = this._cipher, Y = c.blockSize, B = z.slice(l, l + Y);
- w.call(this, z, l, Y, c), this._prevBlock = B;
- }
- });
- function w(z, l, c, Y) {
- var B, s = this._iv;
- s ? (B = s.slice(0), this._iv = void 0) : B = this._prevBlock, Y.encryptBlock(B, 0);
- for (var Q = 0; Q < c; Q++)
- z[l + Q] ^= B[Q];
- }
- return D;
- }(), A.mode.CFB;
- });
- }(sg)), sg.exports;
- }
- var eg = { exports: {} }, tB;
- function kw() {
- return tB || (tB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.mode.CTR = function() {
- var D = A.lib.BlockCipherMode.extend(), w = D.Encryptor = D.extend({
- processBlock: function(z, l) {
- var c = this._cipher, Y = c.blockSize, B = this._iv, s = this._counter;
- B && (s = this._counter = B.slice(0), this._iv = void 0);
- var Q = s.slice(0);
- c.encryptBlock(Q, 0), s[Y - 1] = s[Y - 1] + 1 | 0;
- for (var e = 0; e < Y; e++)
- z[l + e] ^= Q[e];
- }
- });
- return D.Decryptor = w, D;
- }(), A.mode.CTR;
- });
- }(eg)), eg.exports;
- }
- var Cg = { exports: {} }, MB;
- function Kw() {
- return MB || (MB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- /** @preserve
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
- * derived from CryptoJS.mode.CTR
- * Jan Hruby jhruby.web@gmail.com
- */
- return A.mode.CTRGladman = function() {
- var D = A.lib.BlockCipherMode.extend();
- function w(c) {
- if ((c >> 24 & 255) === 255) {
- var Y = c >> 16 & 255, B = c >> 8 & 255, s = c & 255;
- Y === 255 ? (Y = 0, B === 255 ? (B = 0, s === 255 ? s = 0 : ++s) : ++B) : ++Y, c = 0, c += Y << 16, c += B << 8, c += s;
- } else
- c += 1 << 24;
- return c;
- }
- function z(c) {
- return (c[0] = w(c[0])) === 0 && (c[1] = w(c[1])), c;
- }
- var l = D.Encryptor = D.extend({
- processBlock: function(c, Y) {
- var B = this._cipher, s = B.blockSize, Q = this._iv, e = this._counter;
- Q && (e = this._counter = Q.slice(0), this._iv = void 0), z(e);
- var f = e.slice(0);
- B.encryptBlock(f, 0);
- for (var t = 0; t < s; t++)
- c[Y + t] ^= f[t];
- }
- });
- return D.Decryptor = l, D;
- }(), A.mode.CTRGladman;
- });
- }(Cg)), Cg.exports;
- }
- var tg = { exports: {} }, vB;
- function Ew() {
- return vB || (vB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.mode.OFB = function() {
- var D = A.lib.BlockCipherMode.extend(), w = D.Encryptor = D.extend({
- processBlock: function(z, l) {
- var c = this._cipher, Y = c.blockSize, B = this._iv, s = this._keystream;
- B && (s = this._keystream = B.slice(0), this._iv = void 0), c.encryptBlock(s, 0);
- for (var Q = 0; Q < Y; Q++)
- z[l + Q] ^= s[Q];
- }
- });
- return D.Decryptor = w, D;
- }(), A.mode.OFB;
- });
- }(tg)), tg.exports;
- }
- var Mg = { exports: {} }, rB;
- function Iw() {
- return rB || (rB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.mode.ECB = function() {
- var D = A.lib.BlockCipherMode.extend();
- return D.Encryptor = D.extend({
- processBlock: function(w, z) {
- this._cipher.encryptBlock(w, z);
- }
- }), D.Decryptor = D.extend({
- processBlock: function(w, z) {
- this._cipher.decryptBlock(w, z);
- }
- }), D;
- }(), A.mode.ECB;
- });
- }(Mg)), Mg.exports;
- }
- var vg = { exports: {} }, fB;
- function pw() {
- return fB || (fB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.pad.AnsiX923 = {
- pad: function(D, w) {
- var z = D.sigBytes, l = w * 4, c = l - z % l, Y = z + c - 1;
- D.clamp(), D.words[Y >>> 2] |= c << 24 - Y % 4 * 8, D.sigBytes += c;
- },
- unpad: function(D) {
- var w = D.words[D.sigBytes - 1 >>> 2] & 255;
- D.sigBytes -= w;
- }
- }, A.pad.Ansix923;
- });
- }(vg)), vg.exports;
- }
- var rg = { exports: {} }, nB;
- function Tw() {
- return nB || (nB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.pad.Iso10126 = {
- pad: function(D, w) {
- var z = w * 4, l = z - D.sigBytes % z;
- D.concat(A.lib.WordArray.random(l - 1)).concat(A.lib.WordArray.create([l << 24], 1));
- },
- unpad: function(D) {
- var w = D.words[D.sigBytes - 1 >>> 2] & 255;
- D.sigBytes -= w;
- }
- }, A.pad.Iso10126;
- });
- }(rg)), rg.exports;
- }
- var fg = { exports: {} }, zB;
- function Sw() {
- return zB || (zB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.pad.Iso97971 = {
- pad: function(D, w) {
- D.concat(A.lib.WordArray.create([2147483648], 1)), A.pad.ZeroPadding.pad(D, w);
- },
- unpad: function(D) {
- A.pad.ZeroPadding.unpad(D), D.sigBytes--;
- }
- }, A.pad.Iso97971;
- });
- }(fg)), fg.exports;
- }
- var ng = { exports: {} }, PB;
- function Uw() {
- return PB || (PB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.pad.ZeroPadding = {
- pad: function(D, w) {
- var z = w * 4;
- D.clamp(), D.sigBytes += z - (D.sigBytes % z || z);
- },
- unpad: function(D) {
- for (var w = D.words, z = D.sigBytes - 1, z = D.sigBytes - 1; z >= 0; z--)
- if (w[z >>> 2] >>> 24 - z % 4 * 8 & 255) {
- D.sigBytes = z + 1;
- break;
- }
- }
- }, A.pad.ZeroPadding;
- });
- }(ng)), ng.exports;
- }
- var zg = { exports: {} }, cB;
- function iw() {
- return cB || (cB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return A.pad.NoPadding = {
- pad: function() {
- },
- unpad: function() {
- }
- }, A.pad.NoPadding;
- });
- }(zg)), zg.exports;
- }
- var Pg = { exports: {} }, YB;
- function qw() {
- return YB || (YB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), gA());
- })(I, function(A) {
- return function(D) {
- var w = A, z = w.lib, l = z.CipherParams, c = w.enc, Y = c.Hex, B = w.format;
- B.Hex = {
- /**
- * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
- *
- * @param {CipherParams} cipherParams The cipher params object.
- *
- * @return {string} The hexadecimally encoded string.
- *
- * @static
- *
- * @example
- *
- * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
- */
- stringify: function(s) {
- return s.ciphertext.toString(Y);
- },
- /**
- * Converts a hexadecimally encoded ciphertext string to a cipher params object.
- *
- * @param {string} input The hexadecimally encoded string.
- *
- * @return {CipherParams} The cipher params object.
- *
- * @static
- *
- * @example
- *
- * var cipherParams = CryptoJS.format.Hex.parse(hexString);
- */
- parse: function(s) {
- var Q = Y.parse(s);
- return l.create({ ciphertext: Q });
- }
- };
- }(), A.format.Hex;
- });
- }(Pg)), Pg.exports;
- }
- var cg = { exports: {} }, QB;
- function hw() {
- return QB || (QB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.BlockCipher, l = D.algo, c = [], Y = [], B = [], s = [], Q = [], e = [], f = [], t = [], P = [], v = [];
- (function() {
- for (var C = [], r = 0; r < 256; r++)
- r < 128 ? C[r] = r << 1 : C[r] = r << 1 ^ 283;
- for (var O = 0, L = 0, r = 0; r < 256; r++) {
- var Z = L ^ L << 1 ^ L << 2 ^ L << 3 ^ L << 4;
- Z = Z >>> 8 ^ Z & 255 ^ 99, c[O] = Z, Y[Z] = O;
- var d = C[O], j = C[d], W = C[j], x = C[Z] * 257 ^ Z * 16843008;
- B[O] = x << 24 | x >>> 8, s[O] = x << 16 | x >>> 16, Q[O] = x << 8 | x >>> 24, e[O] = x;
- var x = W * 16843009 ^ j * 65537 ^ d * 257 ^ O * 16843008;
- f[Z] = x << 24 | x >>> 8, t[Z] = x << 16 | x >>> 16, P[Z] = x << 8 | x >>> 24, v[Z] = x, O ? (O = d ^ C[C[C[W ^ d]]], L ^= C[C[L]]) : O = L = 1;
- }
- })();
- var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], g = l.AES = z.extend({
- _doReset: function() {
- var C;
- if (!(this._nRounds && this._keyPriorReset === this._key)) {
- for (var r = this._keyPriorReset = this._key, O = r.words, L = r.sigBytes / 4, Z = this._nRounds = L + 6, d = (Z + 1) * 4, j = this._keySchedule = [], W = 0; W < d; W++)
- W < L ? j[W] = O[W] : (C = j[W - 1], W % L ? L > 6 && W % L == 4 && (C = c[C >>> 24] << 24 | c[C >>> 16 & 255] << 16 | c[C >>> 8 & 255] << 8 | c[C & 255]) : (C = C << 8 | C >>> 24, C = c[C >>> 24] << 24 | c[C >>> 16 & 255] << 16 | c[C >>> 8 & 255] << 8 | c[C & 255], C ^= H[W / L | 0] << 24), j[W] = j[W - L] ^ C);
- for (var x = this._invKeySchedule = [], u = 0; u < d; u++) {
- var W = d - u;
- if (u % 4)
- var C = j[W];
- else
- var C = j[W - 4];
- u < 4 || W <= 4 ? x[u] = C : x[u] = f[c[C >>> 24]] ^ t[c[C >>> 16 & 255]] ^ P[c[C >>> 8 & 255]] ^ v[c[C & 255]];
- }
- }
- },
- encryptBlock: function(C, r) {
- this._doCryptBlock(C, r, this._keySchedule, B, s, Q, e, c);
- },
- decryptBlock: function(C, r) {
- var O = C[r + 1];
- C[r + 1] = C[r + 3], C[r + 3] = O, this._doCryptBlock(C, r, this._invKeySchedule, f, t, P, v, Y);
- var O = C[r + 1];
- C[r + 1] = C[r + 3], C[r + 3] = O;
- },
- _doCryptBlock: function(C, r, O, L, Z, d, j, W) {
- for (var x = this._nRounds, u = C[r] ^ O[0], y = C[r + 1] ^ O[1], N = C[r + 2] ^ O[2], J = C[r + 3] ^ O[3], K = 4, R = 1; R < x; R++) {
- var i = L[u >>> 24] ^ Z[y >>> 16 & 255] ^ d[N >>> 8 & 255] ^ j[J & 255] ^ O[K++], h = L[y >>> 24] ^ Z[N >>> 16 & 255] ^ d[J >>> 8 & 255] ^ j[u & 255] ^ O[K++], q = L[N >>> 24] ^ Z[J >>> 16 & 255] ^ d[u >>> 8 & 255] ^ j[y & 255] ^ O[K++], a = L[J >>> 24] ^ Z[u >>> 16 & 255] ^ d[y >>> 8 & 255] ^ j[N & 255] ^ O[K++];
- u = i, y = h, N = q, J = a;
- }
- var i = (W[u >>> 24] << 24 | W[y >>> 16 & 255] << 16 | W[N >>> 8 & 255] << 8 | W[J & 255]) ^ O[K++], h = (W[y >>> 24] << 24 | W[N >>> 16 & 255] << 16 | W[J >>> 8 & 255] << 8 | W[u & 255]) ^ O[K++], q = (W[N >>> 24] << 24 | W[J >>> 16 & 255] << 16 | W[u >>> 8 & 255] << 8 | W[y & 255]) ^ O[K++], a = (W[J >>> 24] << 24 | W[u >>> 16 & 255] << 16 | W[y >>> 8 & 255] << 8 | W[N & 255]) ^ O[K++];
- C[r] = i, C[r + 1] = h, C[r + 2] = q, C[r + 3] = a;
- },
- keySize: 256 / 32
- });
- D.AES = z._createHelper(g);
- }(), A.AES;
- });
- }(cg)), cg.exports;
- }
- var Yg = { exports: {} }, WB;
- function Rw() {
- return WB || (WB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.WordArray, l = w.BlockCipher, c = D.algo, Y = [
- 57,
- 49,
- 41,
- 33,
- 25,
- 17,
- 9,
- 1,
- 58,
- 50,
- 42,
- 34,
- 26,
- 18,
- 10,
- 2,
- 59,
- 51,
- 43,
- 35,
- 27,
- 19,
- 11,
- 3,
- 60,
- 52,
- 44,
- 36,
- 63,
- 55,
- 47,
- 39,
- 31,
- 23,
- 15,
- 7,
- 62,
- 54,
- 46,
- 38,
- 30,
- 22,
- 14,
- 6,
- 61,
- 53,
- 45,
- 37,
- 29,
- 21,
- 13,
- 5,
- 28,
- 20,
- 12,
- 4
- ], B = [
- 14,
- 17,
- 11,
- 24,
- 1,
- 5,
- 3,
- 28,
- 15,
- 6,
- 21,
- 10,
- 23,
- 19,
- 12,
- 4,
- 26,
- 8,
- 16,
- 7,
- 27,
- 20,
- 13,
- 2,
- 41,
- 52,
- 31,
- 37,
- 47,
- 55,
- 30,
- 40,
- 51,
- 45,
- 33,
- 48,
- 44,
- 49,
- 39,
- 56,
- 34,
- 53,
- 46,
- 42,
- 50,
- 36,
- 29,
- 32
- ], s = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], Q = [
- {
- 0: 8421888,
- 268435456: 32768,
- 536870912: 8421378,
- 805306368: 2,
- 1073741824: 512,
- 1342177280: 8421890,
- 1610612736: 8389122,
- 1879048192: 8388608,
- 2147483648: 514,
- 2415919104: 8389120,
- 2684354560: 33280,
- 2952790016: 8421376,
- 3221225472: 32770,
- 3489660928: 8388610,
- 3758096384: 0,
- 4026531840: 33282,
- 134217728: 0,
- 402653184: 8421890,
- 671088640: 33282,
- 939524096: 32768,
- 1207959552: 8421888,
- 1476395008: 512,
- 1744830464: 8421378,
- 2013265920: 2,
- 2281701376: 8389120,
- 2550136832: 33280,
- 2818572288: 8421376,
- 3087007744: 8389122,
- 3355443200: 8388610,
- 3623878656: 32770,
- 3892314112: 514,
- 4160749568: 8388608,
- 1: 32768,
- 268435457: 2,
- 536870913: 8421888,
- 805306369: 8388608,
- 1073741825: 8421378,
- 1342177281: 33280,
- 1610612737: 512,
- 1879048193: 8389122,
- 2147483649: 8421890,
- 2415919105: 8421376,
- 2684354561: 8388610,
- 2952790017: 33282,
- 3221225473: 514,
- 3489660929: 8389120,
- 3758096385: 32770,
- 4026531841: 0,
- 134217729: 8421890,
- 402653185: 8421376,
- 671088641: 8388608,
- 939524097: 512,
- 1207959553: 32768,
- 1476395009: 8388610,
- 1744830465: 2,
- 2013265921: 33282,
- 2281701377: 32770,
- 2550136833: 8389122,
- 2818572289: 514,
- 3087007745: 8421888,
- 3355443201: 8389120,
- 3623878657: 0,
- 3892314113: 33280,
- 4160749569: 8421378
- },
- {
- 0: 1074282512,
- 16777216: 16384,
- 33554432: 524288,
- 50331648: 1074266128,
- 67108864: 1073741840,
- 83886080: 1074282496,
- 100663296: 1073758208,
- 117440512: 16,
- 134217728: 540672,
- 150994944: 1073758224,
- 167772160: 1073741824,
- 184549376: 540688,
- 201326592: 524304,
- 218103808: 0,
- 234881024: 16400,
- 251658240: 1074266112,
- 8388608: 1073758208,
- 25165824: 540688,
- 41943040: 16,
- 58720256: 1073758224,
- 75497472: 1074282512,
- 92274688: 1073741824,
- 109051904: 524288,
- 125829120: 1074266128,
- 142606336: 524304,
- 159383552: 0,
- 176160768: 16384,
- 192937984: 1074266112,
- 209715200: 1073741840,
- 226492416: 540672,
- 243269632: 1074282496,
- 260046848: 16400,
- 268435456: 0,
- 285212672: 1074266128,
- 301989888: 1073758224,
- 318767104: 1074282496,
- 335544320: 1074266112,
- 352321536: 16,
- 369098752: 540688,
- 385875968: 16384,
- 402653184: 16400,
- 419430400: 524288,
- 436207616: 524304,
- 452984832: 1073741840,
- 469762048: 540672,
- 486539264: 1073758208,
- 503316480: 1073741824,
- 520093696: 1074282512,
- 276824064: 540688,
- 293601280: 524288,
- 310378496: 1074266112,
- 327155712: 16384,
- 343932928: 1073758208,
- 360710144: 1074282512,
- 377487360: 16,
- 394264576: 1073741824,
- 411041792: 1074282496,
- 427819008: 1073741840,
- 444596224: 1073758224,
- 461373440: 524304,
- 478150656: 0,
- 494927872: 16400,
- 511705088: 1074266128,
- 528482304: 540672
- },
- {
- 0: 260,
- 1048576: 0,
- 2097152: 67109120,
- 3145728: 65796,
- 4194304: 65540,
- 5242880: 67108868,
- 6291456: 67174660,
- 7340032: 67174400,
- 8388608: 67108864,
- 9437184: 67174656,
- 10485760: 65792,
- 11534336: 67174404,
- 12582912: 67109124,
- 13631488: 65536,
- 14680064: 4,
- 15728640: 256,
- 524288: 67174656,
- 1572864: 67174404,
- 2621440: 0,
- 3670016: 67109120,
- 4718592: 67108868,
- 5767168: 65536,
- 6815744: 65540,
- 7864320: 260,
- 8912896: 4,
- 9961472: 256,
- 11010048: 67174400,
- 12058624: 65796,
- 13107200: 65792,
- 14155776: 67109124,
- 15204352: 67174660,
- 16252928: 67108864,
- 16777216: 67174656,
- 17825792: 65540,
- 18874368: 65536,
- 19922944: 67109120,
- 20971520: 256,
- 22020096: 67174660,
- 23068672: 67108868,
- 24117248: 0,
- 25165824: 67109124,
- 26214400: 67108864,
- 27262976: 4,
- 28311552: 65792,
- 29360128: 67174400,
- 30408704: 260,
- 31457280: 65796,
- 32505856: 67174404,
- 17301504: 67108864,
- 18350080: 260,
- 19398656: 67174656,
- 20447232: 0,
- 21495808: 65540,
- 22544384: 67109120,
- 23592960: 256,
- 24641536: 67174404,
- 25690112: 65536,
- 26738688: 67174660,
- 27787264: 65796,
- 28835840: 67108868,
- 29884416: 67109124,
- 30932992: 67174400,
- 31981568: 4,
- 33030144: 65792
- },
- {
- 0: 2151682048,
- 65536: 2147487808,
- 131072: 4198464,
- 196608: 2151677952,
- 262144: 0,
- 327680: 4198400,
- 393216: 2147483712,
- 458752: 4194368,
- 524288: 2147483648,
- 589824: 4194304,
- 655360: 64,
- 720896: 2147487744,
- 786432: 2151678016,
- 851968: 4160,
- 917504: 4096,
- 983040: 2151682112,
- 32768: 2147487808,
- 98304: 64,
- 163840: 2151678016,
- 229376: 2147487744,
- 294912: 4198400,
- 360448: 2151682112,
- 425984: 0,
- 491520: 2151677952,
- 557056: 4096,
- 622592: 2151682048,
- 688128: 4194304,
- 753664: 4160,
- 819200: 2147483648,
- 884736: 4194368,
- 950272: 4198464,
- 1015808: 2147483712,
- 1048576: 4194368,
- 1114112: 4198400,
- 1179648: 2147483712,
- 1245184: 0,
- 1310720: 4160,
- 1376256: 2151678016,
- 1441792: 2151682048,
- 1507328: 2147487808,
- 1572864: 2151682112,
- 1638400: 2147483648,
- 1703936: 2151677952,
- 1769472: 4198464,
- 1835008: 2147487744,
- 1900544: 4194304,
- 1966080: 64,
- 2031616: 4096,
- 1081344: 2151677952,
- 1146880: 2151682112,
- 1212416: 0,
- 1277952: 4198400,
- 1343488: 4194368,
- 1409024: 2147483648,
- 1474560: 2147487808,
- 1540096: 64,
- 1605632: 2147483712,
- 1671168: 4096,
- 1736704: 2147487744,
- 1802240: 2151678016,
- 1867776: 4160,
- 1933312: 2151682048,
- 1998848: 4194304,
- 2064384: 4198464
- },
- {
- 0: 128,
- 4096: 17039360,
- 8192: 262144,
- 12288: 536870912,
- 16384: 537133184,
- 20480: 16777344,
- 24576: 553648256,
- 28672: 262272,
- 32768: 16777216,
- 36864: 537133056,
- 40960: 536871040,
- 45056: 553910400,
- 49152: 553910272,
- 53248: 0,
- 57344: 17039488,
- 61440: 553648128,
- 2048: 17039488,
- 6144: 553648256,
- 10240: 128,
- 14336: 17039360,
- 18432: 262144,
- 22528: 537133184,
- 26624: 553910272,
- 30720: 536870912,
- 34816: 537133056,
- 38912: 0,
- 43008: 553910400,
- 47104: 16777344,
- 51200: 536871040,
- 55296: 553648128,
- 59392: 16777216,
- 63488: 262272,
- 65536: 262144,
- 69632: 128,
- 73728: 536870912,
- 77824: 553648256,
- 81920: 16777344,
- 86016: 553910272,
- 90112: 537133184,
- 94208: 16777216,
- 98304: 553910400,
- 102400: 553648128,
- 106496: 17039360,
- 110592: 537133056,
- 114688: 262272,
- 118784: 536871040,
- 122880: 0,
- 126976: 17039488,
- 67584: 553648256,
- 71680: 16777216,
- 75776: 17039360,
- 79872: 537133184,
- 83968: 536870912,
- 88064: 17039488,
- 92160: 128,
- 96256: 553910272,
- 100352: 262272,
- 104448: 553910400,
- 108544: 0,
- 112640: 553648128,
- 116736: 16777344,
- 120832: 262144,
- 124928: 537133056,
- 129024: 536871040
- },
- {
- 0: 268435464,
- 256: 8192,
- 512: 270532608,
- 768: 270540808,
- 1024: 268443648,
- 1280: 2097152,
- 1536: 2097160,
- 1792: 268435456,
- 2048: 0,
- 2304: 268443656,
- 2560: 2105344,
- 2816: 8,
- 3072: 270532616,
- 3328: 2105352,
- 3584: 8200,
- 3840: 270540800,
- 128: 270532608,
- 384: 270540808,
- 640: 8,
- 896: 2097152,
- 1152: 2105352,
- 1408: 268435464,
- 1664: 268443648,
- 1920: 8200,
- 2176: 2097160,
- 2432: 8192,
- 2688: 268443656,
- 2944: 270532616,
- 3200: 0,
- 3456: 270540800,
- 3712: 2105344,
- 3968: 268435456,
- 4096: 268443648,
- 4352: 270532616,
- 4608: 270540808,
- 4864: 8200,
- 5120: 2097152,
- 5376: 268435456,
- 5632: 268435464,
- 5888: 2105344,
- 6144: 2105352,
- 6400: 0,
- 6656: 8,
- 6912: 270532608,
- 7168: 8192,
- 7424: 268443656,
- 7680: 270540800,
- 7936: 2097160,
- 4224: 8,
- 4480: 2105344,
- 4736: 2097152,
- 4992: 268435464,
- 5248: 268443648,
- 5504: 8200,
- 5760: 270540808,
- 6016: 270532608,
- 6272: 270540800,
- 6528: 270532616,
- 6784: 8192,
- 7040: 2105352,
- 7296: 2097160,
- 7552: 0,
- 7808: 268435456,
- 8064: 268443656
- },
- {
- 0: 1048576,
- 16: 33555457,
- 32: 1024,
- 48: 1049601,
- 64: 34604033,
- 80: 0,
- 96: 1,
- 112: 34603009,
- 128: 33555456,
- 144: 1048577,
- 160: 33554433,
- 176: 34604032,
- 192: 34603008,
- 208: 1025,
- 224: 1049600,
- 240: 33554432,
- 8: 34603009,
- 24: 0,
- 40: 33555457,
- 56: 34604032,
- 72: 1048576,
- 88: 33554433,
- 104: 33554432,
- 120: 1025,
- 136: 1049601,
- 152: 33555456,
- 168: 34603008,
- 184: 1048577,
- 200: 1024,
- 216: 34604033,
- 232: 1,
- 248: 1049600,
- 256: 33554432,
- 272: 1048576,
- 288: 33555457,
- 304: 34603009,
- 320: 1048577,
- 336: 33555456,
- 352: 34604032,
- 368: 1049601,
- 384: 1025,
- 400: 34604033,
- 416: 1049600,
- 432: 1,
- 448: 0,
- 464: 34603008,
- 480: 33554433,
- 496: 1024,
- 264: 1049600,
- 280: 33555457,
- 296: 34603009,
- 312: 1,
- 328: 33554432,
- 344: 1048576,
- 360: 1025,
- 376: 34604032,
- 392: 33554433,
- 408: 34603008,
- 424: 0,
- 440: 34604033,
- 456: 1049601,
- 472: 1024,
- 488: 33555456,
- 504: 1048577
- },
- {
- 0: 134219808,
- 1: 131072,
- 2: 134217728,
- 3: 32,
- 4: 131104,
- 5: 134350880,
- 6: 134350848,
- 7: 2048,
- 8: 134348800,
- 9: 134219776,
- 10: 133120,
- 11: 134348832,
- 12: 2080,
- 13: 0,
- 14: 134217760,
- 15: 133152,
- 2147483648: 2048,
- 2147483649: 134350880,
- 2147483650: 134219808,
- 2147483651: 134217728,
- 2147483652: 134348800,
- 2147483653: 133120,
- 2147483654: 133152,
- 2147483655: 32,
- 2147483656: 134217760,
- 2147483657: 2080,
- 2147483658: 131104,
- 2147483659: 134350848,
- 2147483660: 0,
- 2147483661: 134348832,
- 2147483662: 134219776,
- 2147483663: 131072,
- 16: 133152,
- 17: 134350848,
- 18: 32,
- 19: 2048,
- 20: 134219776,
- 21: 134217760,
- 22: 134348832,
- 23: 131072,
- 24: 0,
- 25: 131104,
- 26: 134348800,
- 27: 134219808,
- 28: 134350880,
- 29: 133120,
- 30: 2080,
- 31: 134217728,
- 2147483664: 131072,
- 2147483665: 2048,
- 2147483666: 134348832,
- 2147483667: 133152,
- 2147483668: 32,
- 2147483669: 134348800,
- 2147483670: 134217728,
- 2147483671: 134219808,
- 2147483672: 134350880,
- 2147483673: 134217760,
- 2147483674: 134219776,
- 2147483675: 0,
- 2147483676: 133120,
- 2147483677: 2080,
- 2147483678: 131104,
- 2147483679: 134350848
- }
- ], e = [
- 4160749569,
- 528482304,
- 33030144,
- 2064384,
- 129024,
- 8064,
- 504,
- 2147483679
- ], f = c.DES = l.extend({
- _doReset: function() {
- for (var H = this._key, g = H.words, C = [], r = 0; r < 56; r++) {
- var O = Y[r] - 1;
- C[r] = g[O >>> 5] >>> 31 - O % 32 & 1;
- }
- for (var L = this._subKeys = [], Z = 0; Z < 16; Z++) {
- for (var d = L[Z] = [], j = s[Z], r = 0; r < 24; r++)
- d[r / 6 | 0] |= C[(B[r] - 1 + j) % 28] << 31 - r % 6, d[4 + (r / 6 | 0)] |= C[28 + (B[r + 24] - 1 + j) % 28] << 31 - r % 6;
- d[0] = d[0] << 1 | d[0] >>> 31;
- for (var r = 1; r < 7; r++)
- d[r] = d[r] >>> (r - 1) * 4 + 3;
- d[7] = d[7] << 5 | d[7] >>> 27;
- }
- for (var W = this._invSubKeys = [], r = 0; r < 16; r++)
- W[r] = L[15 - r];
- },
- encryptBlock: function(H, g) {
- this._doCryptBlock(H, g, this._subKeys);
- },
- decryptBlock: function(H, g) {
- this._doCryptBlock(H, g, this._invSubKeys);
- },
- _doCryptBlock: function(H, g, C) {
- this._lBlock = H[g], this._rBlock = H[g + 1], t.call(this, 4, 252645135), t.call(this, 16, 65535), P.call(this, 2, 858993459), P.call(this, 8, 16711935), t.call(this, 1, 1431655765);
- for (var r = 0; r < 16; r++) {
- for (var O = C[r], L = this._lBlock, Z = this._rBlock, d = 0, j = 0; j < 8; j++)
- d |= Q[j][((Z ^ O[j]) & e[j]) >>> 0];
- this._lBlock = Z, this._rBlock = L ^ d;
- }
- var W = this._lBlock;
- this._lBlock = this._rBlock, this._rBlock = W, t.call(this, 1, 1431655765), P.call(this, 8, 16711935), P.call(this, 2, 858993459), t.call(this, 16, 65535), t.call(this, 4, 252645135), H[g] = this._lBlock, H[g + 1] = this._rBlock;
- },
- keySize: 64 / 32,
- ivSize: 64 / 32,
- blockSize: 64 / 32
- });
- function t(H, g) {
- var C = (this._lBlock >>> H ^ this._rBlock) & g;
- this._rBlock ^= C, this._lBlock ^= C << H;
- }
- function P(H, g) {
- var C = (this._rBlock >>> H ^ this._lBlock) & g;
- this._lBlock ^= C, this._rBlock ^= C << H;
- }
- D.DES = l._createHelper(f);
- var v = c.TripleDES = l.extend({
- _doReset: function() {
- var H = this._key, g = H.words;
- if (g.length !== 2 && g.length !== 4 && g.length < 6)
- throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
- var C = g.slice(0, 2), r = g.length < 4 ? g.slice(0, 2) : g.slice(2, 4), O = g.length < 6 ? g.slice(0, 2) : g.slice(4, 6);
- this._des1 = f.createEncryptor(z.create(C)), this._des2 = f.createEncryptor(z.create(r)), this._des3 = f.createEncryptor(z.create(O));
- },
- encryptBlock: function(H, g) {
- this._des1.encryptBlock(H, g), this._des2.decryptBlock(H, g), this._des3.encryptBlock(H, g);
- },
- decryptBlock: function(H, g) {
- this._des3.decryptBlock(H, g), this._des2.encryptBlock(H, g), this._des1.decryptBlock(H, g);
- },
- keySize: 192 / 32,
- ivSize: 64 / 32,
- blockSize: 64 / 32
- });
- D.TripleDES = l._createHelper(v);
- }(), A.TripleDES;
- });
- }(Yg)), Yg.exports;
- }
- var Qg = { exports: {} }, HB;
- function _w() {
- return HB || (HB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.StreamCipher, l = D.algo, c = l.RC4 = z.extend({
- _doReset: function() {
- for (var s = this._key, Q = s.words, e = s.sigBytes, f = this._S = [], t = 0; t < 256; t++)
- f[t] = t;
- for (var t = 0, P = 0; t < 256; t++) {
- var v = t % e, H = Q[v >>> 2] >>> 24 - v % 4 * 8 & 255;
- P = (P + f[t] + H) % 256;
- var g = f[t];
- f[t] = f[P], f[P] = g;
- }
- this._i = this._j = 0;
- },
- _doProcessBlock: function(s, Q) {
- s[Q] ^= Y.call(this);
- },
- keySize: 256 / 32,
- ivSize: 0
- });
- function Y() {
- for (var s = this._S, Q = this._i, e = this._j, f = 0, t = 0; t < 4; t++) {
- Q = (Q + 1) % 256, e = (e + s[Q]) % 256;
- var P = s[Q];
- s[Q] = s[e], s[e] = P, f |= s[(s[Q] + s[e]) % 256] << 24 - t * 8;
- }
- return this._i = Q, this._j = e, f;
- }
- D.RC4 = z._createHelper(c);
- var B = l.RC4Drop = c.extend({
- /**
- * Configuration options.
- *
- * @property {number} drop The number of keystream words to drop. Default 192
- */
- cfg: c.cfg.extend({
- drop: 192
- }),
- _doReset: function() {
- c._doReset.call(this);
- for (var s = this.cfg.drop; s > 0; s--)
- Y.call(this);
- }
- });
- D.RC4Drop = z._createHelper(B);
- }(), A.RC4;
- });
- }(Qg)), Qg.exports;
- }
- var Wg = { exports: {} }, LB;
- function $w() {
- return LB || (LB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.StreamCipher, l = D.algo, c = [], Y = [], B = [], s = l.Rabbit = z.extend({
- _doReset: function() {
- for (var e = this._key.words, f = this.cfg.iv, t = 0; t < 4; t++)
- e[t] = (e[t] << 8 | e[t] >>> 24) & 16711935 | (e[t] << 24 | e[t] >>> 8) & 4278255360;
- var P = this._X = [
- e[0],
- e[3] << 16 | e[2] >>> 16,
- e[1],
- e[0] << 16 | e[3] >>> 16,
- e[2],
- e[1] << 16 | e[0] >>> 16,
- e[3],
- e[2] << 16 | e[1] >>> 16
- ], v = this._C = [
- e[2] << 16 | e[2] >>> 16,
- e[0] & 4294901760 | e[1] & 65535,
- e[3] << 16 | e[3] >>> 16,
- e[1] & 4294901760 | e[2] & 65535,
- e[0] << 16 | e[0] >>> 16,
- e[2] & 4294901760 | e[3] & 65535,
- e[1] << 16 | e[1] >>> 16,
- e[3] & 4294901760 | e[0] & 65535
- ];
- this._b = 0;
- for (var t = 0; t < 4; t++)
- Q.call(this);
- for (var t = 0; t < 8; t++)
- v[t] ^= P[t + 4 & 7];
- if (f) {
- var H = f.words, g = H[0], C = H[1], r = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360, O = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, L = r >>> 16 | O & 4294901760, Z = O << 16 | r & 65535;
- v[0] ^= r, v[1] ^= L, v[2] ^= O, v[3] ^= Z, v[4] ^= r, v[5] ^= L, v[6] ^= O, v[7] ^= Z;
- for (var t = 0; t < 4; t++)
- Q.call(this);
- }
- },
- _doProcessBlock: function(e, f) {
- var t = this._X;
- Q.call(this), c[0] = t[0] ^ t[5] >>> 16 ^ t[3] << 16, c[1] = t[2] ^ t[7] >>> 16 ^ t[5] << 16, c[2] = t[4] ^ t[1] >>> 16 ^ t[7] << 16, c[3] = t[6] ^ t[3] >>> 16 ^ t[1] << 16;
- for (var P = 0; P < 4; P++)
- c[P] = (c[P] << 8 | c[P] >>> 24) & 16711935 | (c[P] << 24 | c[P] >>> 8) & 4278255360, e[f + P] ^= c[P];
- },
- blockSize: 128 / 32,
- ivSize: 64 / 32
- });
- function Q() {
- for (var e = this._X, f = this._C, t = 0; t < 8; t++)
- Y[t] = f[t];
- f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < Y[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < Y[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < Y[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < Y[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < Y[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < Y[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < Y[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < Y[7] >>> 0 ? 1 : 0;
- for (var t = 0; t < 8; t++) {
- var P = e[t] + f[t], v = P & 65535, H = P >>> 16, g = ((v * v >>> 17) + v * H >>> 15) + H * H, C = ((P & 4294901760) * P | 0) + ((P & 65535) * P | 0);
- B[t] = g ^ C;
- }
- e[0] = B[0] + (B[7] << 16 | B[7] >>> 16) + (B[6] << 16 | B[6] >>> 16) | 0, e[1] = B[1] + (B[0] << 8 | B[0] >>> 24) + B[7] | 0, e[2] = B[2] + (B[1] << 16 | B[1] >>> 16) + (B[0] << 16 | B[0] >>> 16) | 0, e[3] = B[3] + (B[2] << 8 | B[2] >>> 24) + B[1] | 0, e[4] = B[4] + (B[3] << 16 | B[3] >>> 16) + (B[2] << 16 | B[2] >>> 16) | 0, e[5] = B[5] + (B[4] << 8 | B[4] >>> 24) + B[3] | 0, e[6] = B[6] + (B[5] << 16 | B[5] >>> 16) + (B[4] << 16 | B[4] >>> 16) | 0, e[7] = B[7] + (B[6] << 8 | B[6] >>> 24) + B[5] | 0;
- }
- D.Rabbit = z._createHelper(s);
- }(), A.Rabbit;
- });
- }(Wg)), Wg.exports;
- }
- var Hg = { exports: {} }, OB;
- function AD() {
- return OB || (OB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.StreamCipher, l = D.algo, c = [], Y = [], B = [], s = l.RabbitLegacy = z.extend({
- _doReset: function() {
- var e = this._key.words, f = this.cfg.iv, t = this._X = [
- e[0],
- e[3] << 16 | e[2] >>> 16,
- e[1],
- e[0] << 16 | e[3] >>> 16,
- e[2],
- e[1] << 16 | e[0] >>> 16,
- e[3],
- e[2] << 16 | e[1] >>> 16
- ], P = this._C = [
- e[2] << 16 | e[2] >>> 16,
- e[0] & 4294901760 | e[1] & 65535,
- e[3] << 16 | e[3] >>> 16,
- e[1] & 4294901760 | e[2] & 65535,
- e[0] << 16 | e[0] >>> 16,
- e[2] & 4294901760 | e[3] & 65535,
- e[1] << 16 | e[1] >>> 16,
- e[3] & 4294901760 | e[0] & 65535
- ];
- this._b = 0;
- for (var v = 0; v < 4; v++)
- Q.call(this);
- for (var v = 0; v < 8; v++)
- P[v] ^= t[v + 4 & 7];
- if (f) {
- var H = f.words, g = H[0], C = H[1], r = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360, O = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, L = r >>> 16 | O & 4294901760, Z = O << 16 | r & 65535;
- P[0] ^= r, P[1] ^= L, P[2] ^= O, P[3] ^= Z, P[4] ^= r, P[5] ^= L, P[6] ^= O, P[7] ^= Z;
- for (var v = 0; v < 4; v++)
- Q.call(this);
- }
- },
- _doProcessBlock: function(e, f) {
- var t = this._X;
- Q.call(this), c[0] = t[0] ^ t[5] >>> 16 ^ t[3] << 16, c[1] = t[2] ^ t[7] >>> 16 ^ t[5] << 16, c[2] = t[4] ^ t[1] >>> 16 ^ t[7] << 16, c[3] = t[6] ^ t[3] >>> 16 ^ t[1] << 16;
- for (var P = 0; P < 4; P++)
- c[P] = (c[P] << 8 | c[P] >>> 24) & 16711935 | (c[P] << 24 | c[P] >>> 8) & 4278255360, e[f + P] ^= c[P];
- },
- blockSize: 128 / 32,
- ivSize: 64 / 32
- });
- function Q() {
- for (var e = this._X, f = this._C, t = 0; t < 8; t++)
- Y[t] = f[t];
- f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < Y[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < Y[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < Y[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < Y[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < Y[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < Y[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < Y[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < Y[7] >>> 0 ? 1 : 0;
- for (var t = 0; t < 8; t++) {
- var P = e[t] + f[t], v = P & 65535, H = P >>> 16, g = ((v * v >>> 17) + v * H >>> 15) + H * H, C = ((P & 4294901760) * P | 0) + ((P & 65535) * P | 0);
- B[t] = g ^ C;
- }
- e[0] = B[0] + (B[7] << 16 | B[7] >>> 16) + (B[6] << 16 | B[6] >>> 16) | 0, e[1] = B[1] + (B[0] << 8 | B[0] >>> 24) + B[7] | 0, e[2] = B[2] + (B[1] << 16 | B[1] >>> 16) + (B[0] << 16 | B[0] >>> 16) | 0, e[3] = B[3] + (B[2] << 8 | B[2] >>> 24) + B[1] | 0, e[4] = B[4] + (B[3] << 16 | B[3] >>> 16) + (B[2] << 16 | B[2] >>> 16) | 0, e[5] = B[5] + (B[4] << 8 | B[4] >>> 24) + B[3] | 0, e[6] = B[6] + (B[5] << 16 | B[5] >>> 16) + (B[4] << 16 | B[4] >>> 16) | 0, e[7] = B[7] + (B[6] << 8 | B[6] >>> 24) + B[5] | 0;
- }
- D.RabbitLegacy = z._createHelper(s);
- }(), A.RabbitLegacy;
- });
- }(Hg)), Hg.exports;
- }
- var Lg = { exports: {} }, xB;
- function gD() {
- return xB || (xB = 1, function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), OA(), xA(), QA(), gA());
- })(I, function(A) {
- return function() {
- var D = A, w = D.lib, z = w.BlockCipher, l = D.algo;
- const c = 16, Y = [
- 608135816,
- 2242054355,
- 320440878,
- 57701188,
- 2752067618,
- 698298832,
- 137296536,
- 3964562569,
- 1160258022,
- 953160567,
- 3193202383,
- 887688300,
- 3232508343,
- 3380367581,
- 1065670069,
- 3041331479,
- 2450970073,
- 2306472731
- ], B = [
- [
- 3509652390,
- 2564797868,
- 805139163,
- 3491422135,
- 3101798381,
- 1780907670,
- 3128725573,
- 4046225305,
- 614570311,
- 3012652279,
- 134345442,
- 2240740374,
- 1667834072,
- 1901547113,
- 2757295779,
- 4103290238,
- 227898511,
- 1921955416,
- 1904987480,
- 2182433518,
- 2069144605,
- 3260701109,
- 2620446009,
- 720527379,
- 3318853667,
- 677414384,
- 3393288472,
- 3101374703,
- 2390351024,
- 1614419982,
- 1822297739,
- 2954791486,
- 3608508353,
- 3174124327,
- 2024746970,
- 1432378464,
- 3864339955,
- 2857741204,
- 1464375394,
- 1676153920,
- 1439316330,
- 715854006,
- 3033291828,
- 289532110,
- 2706671279,
- 2087905683,
- 3018724369,
- 1668267050,
- 732546397,
- 1947742710,
- 3462151702,
- 2609353502,
- 2950085171,
- 1814351708,
- 2050118529,
- 680887927,
- 999245976,
- 1800124847,
- 3300911131,
- 1713906067,
- 1641548236,
- 4213287313,
- 1216130144,
- 1575780402,
- 4018429277,
- 3917837745,
- 3693486850,
- 3949271944,
- 596196993,
- 3549867205,
- 258830323,
- 2213823033,
- 772490370,
- 2760122372,
- 1774776394,
- 2652871518,
- 566650946,
- 4142492826,
- 1728879713,
- 2882767088,
- 1783734482,
- 3629395816,
- 2517608232,
- 2874225571,
- 1861159788,
- 326777828,
- 3124490320,
- 2130389656,
- 2716951837,
- 967770486,
- 1724537150,
- 2185432712,
- 2364442137,
- 1164943284,
- 2105845187,
- 998989502,
- 3765401048,
- 2244026483,
- 1075463327,
- 1455516326,
- 1322494562,
- 910128902,
- 469688178,
- 1117454909,
- 936433444,
- 3490320968,
- 3675253459,
- 1240580251,
- 122909385,
- 2157517691,
- 634681816,
- 4142456567,
- 3825094682,
- 3061402683,
- 2540495037,
- 79693498,
- 3249098678,
- 1084186820,
- 1583128258,
- 426386531,
- 1761308591,
- 1047286709,
- 322548459,
- 995290223,
- 1845252383,
- 2603652396,
- 3431023940,
- 2942221577,
- 3202600964,
- 3727903485,
- 1712269319,
- 422464435,
- 3234572375,
- 1170764815,
- 3523960633,
- 3117677531,
- 1434042557,
- 442511882,
- 3600875718,
- 1076654713,
- 1738483198,
- 4213154764,
- 2393238008,
- 3677496056,
- 1014306527,
- 4251020053,
- 793779912,
- 2902807211,
- 842905082,
- 4246964064,
- 1395751752,
- 1040244610,
- 2656851899,
- 3396308128,
- 445077038,
- 3742853595,
- 3577915638,
- 679411651,
- 2892444358,
- 2354009459,
- 1767581616,
- 3150600392,
- 3791627101,
- 3102740896,
- 284835224,
- 4246832056,
- 1258075500,
- 768725851,
- 2589189241,
- 3069724005,
- 3532540348,
- 1274779536,
- 3789419226,
- 2764799539,
- 1660621633,
- 3471099624,
- 4011903706,
- 913787905,
- 3497959166,
- 737222580,
- 2514213453,
- 2928710040,
- 3937242737,
- 1804850592,
- 3499020752,
- 2949064160,
- 2386320175,
- 2390070455,
- 2415321851,
- 4061277028,
- 2290661394,
- 2416832540,
- 1336762016,
- 1754252060,
- 3520065937,
- 3014181293,
- 791618072,
- 3188594551,
- 3933548030,
- 2332172193,
- 3852520463,
- 3043980520,
- 413987798,
- 3465142937,
- 3030929376,
- 4245938359,
- 2093235073,
- 3534596313,
- 375366246,
- 2157278981,
- 2479649556,
- 555357303,
- 3870105701,
- 2008414854,
- 3344188149,
- 4221384143,
- 3956125452,
- 2067696032,
- 3594591187,
- 2921233993,
- 2428461,
- 544322398,
- 577241275,
- 1471733935,
- 610547355,
- 4027169054,
- 1432588573,
- 1507829418,
- 2025931657,
- 3646575487,
- 545086370,
- 48609733,
- 2200306550,
- 1653985193,
- 298326376,
- 1316178497,
- 3007786442,
- 2064951626,
- 458293330,
- 2589141269,
- 3591329599,
- 3164325604,
- 727753846,
- 2179363840,
- 146436021,
- 1461446943,
- 4069977195,
- 705550613,
- 3059967265,
- 3887724982,
- 4281599278,
- 3313849956,
- 1404054877,
- 2845806497,
- 146425753,
- 1854211946
- ],
- [
- 1266315497,
- 3048417604,
- 3681880366,
- 3289982499,
- 290971e4,
- 1235738493,
- 2632868024,
- 2414719590,
- 3970600049,
- 1771706367,
- 1449415276,
- 3266420449,
- 422970021,
- 1963543593,
- 2690192192,
- 3826793022,
- 1062508698,
- 1531092325,
- 1804592342,
- 2583117782,
- 2714934279,
- 4024971509,
- 1294809318,
- 4028980673,
- 1289560198,
- 2221992742,
- 1669523910,
- 35572830,
- 157838143,
- 1052438473,
- 1016535060,
- 1802137761,
- 1753167236,
- 1386275462,
- 3080475397,
- 2857371447,
- 1040679964,
- 2145300060,
- 2390574316,
- 1461121720,
- 2956646967,
- 4031777805,
- 4028374788,
- 33600511,
- 2920084762,
- 1018524850,
- 629373528,
- 3691585981,
- 3515945977,
- 2091462646,
- 2486323059,
- 586499841,
- 988145025,
- 935516892,
- 3367335476,
- 2599673255,
- 2839830854,
- 265290510,
- 3972581182,
- 2759138881,
- 3795373465,
- 1005194799,
- 847297441,
- 406762289,
- 1314163512,
- 1332590856,
- 1866599683,
- 4127851711,
- 750260880,
- 613907577,
- 1450815602,
- 3165620655,
- 3734664991,
- 3650291728,
- 3012275730,
- 3704569646,
- 1427272223,
- 778793252,
- 1343938022,
- 2676280711,
- 2052605720,
- 1946737175,
- 3164576444,
- 3914038668,
- 3967478842,
- 3682934266,
- 1661551462,
- 3294938066,
- 4011595847,
- 840292616,
- 3712170807,
- 616741398,
- 312560963,
- 711312465,
- 1351876610,
- 322626781,
- 1910503582,
- 271666773,
- 2175563734,
- 1594956187,
- 70604529,
- 3617834859,
- 1007753275,
- 1495573769,
- 4069517037,
- 2549218298,
- 2663038764,
- 504708206,
- 2263041392,
- 3941167025,
- 2249088522,
- 1514023603,
- 1998579484,
- 1312622330,
- 694541497,
- 2582060303,
- 2151582166,
- 1382467621,
- 776784248,
- 2618340202,
- 3323268794,
- 2497899128,
- 2784771155,
- 503983604,
- 4076293799,
- 907881277,
- 423175695,
- 432175456,
- 1378068232,
- 4145222326,
- 3954048622,
- 3938656102,
- 3820766613,
- 2793130115,
- 2977904593,
- 26017576,
- 3274890735,
- 3194772133,
- 1700274565,
- 1756076034,
- 4006520079,
- 3677328699,
- 720338349,
- 1533947780,
- 354530856,
- 688349552,
- 3973924725,
- 1637815568,
- 332179504,
- 3949051286,
- 53804574,
- 2852348879,
- 3044236432,
- 1282449977,
- 3583942155,
- 3416972820,
- 4006381244,
- 1617046695,
- 2628476075,
- 3002303598,
- 1686838959,
- 431878346,
- 2686675385,
- 1700445008,
- 1080580658,
- 1009431731,
- 832498133,
- 3223435511,
- 2605976345,
- 2271191193,
- 2516031870,
- 1648197032,
- 4164389018,
- 2548247927,
- 300782431,
- 375919233,
- 238389289,
- 3353747414,
- 2531188641,
- 2019080857,
- 1475708069,
- 455242339,
- 2609103871,
- 448939670,
- 3451063019,
- 1395535956,
- 2413381860,
- 1841049896,
- 1491858159,
- 885456874,
- 4264095073,
- 4001119347,
- 1565136089,
- 3898914787,
- 1108368660,
- 540939232,
- 1173283510,
- 2745871338,
- 3681308437,
- 4207628240,
- 3343053890,
- 4016749493,
- 1699691293,
- 1103962373,
- 3625875870,
- 2256883143,
- 3830138730,
- 1031889488,
- 3479347698,
- 1535977030,
- 4236805024,
- 3251091107,
- 2132092099,
- 1774941330,
- 1199868427,
- 1452454533,
- 157007616,
- 2904115357,
- 342012276,
- 595725824,
- 1480756522,
- 206960106,
- 497939518,
- 591360097,
- 863170706,
- 2375253569,
- 3596610801,
- 1814182875,
- 2094937945,
- 3421402208,
- 1082520231,
- 3463918190,
- 2785509508,
- 435703966,
- 3908032597,
- 1641649973,
- 2842273706,
- 3305899714,
- 1510255612,
- 2148256476,
- 2655287854,
- 3276092548,
- 4258621189,
- 236887753,
- 3681803219,
- 274041037,
- 1734335097,
- 3815195456,
- 3317970021,
- 1899903192,
- 1026095262,
- 4050517792,
- 356393447,
- 2410691914,
- 3873677099,
- 3682840055
- ],
- [
- 3913112168,
- 2491498743,
- 4132185628,
- 2489919796,
- 1091903735,
- 1979897079,
- 3170134830,
- 3567386728,
- 3557303409,
- 857797738,
- 1136121015,
- 1342202287,
- 507115054,
- 2535736646,
- 337727348,
- 3213592640,
- 1301675037,
- 2528481711,
- 1895095763,
- 1721773893,
- 3216771564,
- 62756741,
- 2142006736,
- 835421444,
- 2531993523,
- 1442658625,
- 3659876326,
- 2882144922,
- 676362277,
- 1392781812,
- 170690266,
- 3921047035,
- 1759253602,
- 3611846912,
- 1745797284,
- 664899054,
- 1329594018,
- 3901205900,
- 3045908486,
- 2062866102,
- 2865634940,
- 3543621612,
- 3464012697,
- 1080764994,
- 553557557,
- 3656615353,
- 3996768171,
- 991055499,
- 499776247,
- 1265440854,
- 648242737,
- 3940784050,
- 980351604,
- 3713745714,
- 1749149687,
- 3396870395,
- 4211799374,
- 3640570775,
- 1161844396,
- 3125318951,
- 1431517754,
- 545492359,
- 4268468663,
- 3499529547,
- 1437099964,
- 2702547544,
- 3433638243,
- 2581715763,
- 2787789398,
- 1060185593,
- 1593081372,
- 2418618748,
- 4260947970,
- 69676912,
- 2159744348,
- 86519011,
- 2512459080,
- 3838209314,
- 1220612927,
- 3339683548,
- 133810670,
- 1090789135,
- 1078426020,
- 1569222167,
- 845107691,
- 3583754449,
- 4072456591,
- 1091646820,
- 628848692,
- 1613405280,
- 3757631651,
- 526609435,
- 236106946,
- 48312990,
- 2942717905,
- 3402727701,
- 1797494240,
- 859738849,
- 992217954,
- 4005476642,
- 2243076622,
- 3870952857,
- 3732016268,
- 765654824,
- 3490871365,
- 2511836413,
- 1685915746,
- 3888969200,
- 1414112111,
- 2273134842,
- 3281911079,
- 4080962846,
- 172450625,
- 2569994100,
- 980381355,
- 4109958455,
- 2819808352,
- 2716589560,
- 2568741196,
- 3681446669,
- 3329971472,
- 1835478071,
- 660984891,
- 3704678404,
- 4045999559,
- 3422617507,
- 3040415634,
- 1762651403,
- 1719377915,
- 3470491036,
- 2693910283,
- 3642056355,
- 3138596744,
- 1364962596,
- 2073328063,
- 1983633131,
- 926494387,
- 3423689081,
- 2150032023,
- 4096667949,
- 1749200295,
- 3328846651,
- 309677260,
- 2016342300,
- 1779581495,
- 3079819751,
- 111262694,
- 1274766160,
- 443224088,
- 298511866,
- 1025883608,
- 3806446537,
- 1145181785,
- 168956806,
- 3641502830,
- 3584813610,
- 1689216846,
- 3666258015,
- 3200248200,
- 1692713982,
- 2646376535,
- 4042768518,
- 1618508792,
- 1610833997,
- 3523052358,
- 4130873264,
- 2001055236,
- 3610705100,
- 2202168115,
- 4028541809,
- 2961195399,
- 1006657119,
- 2006996926,
- 3186142756,
- 1430667929,
- 3210227297,
- 1314452623,
- 4074634658,
- 4101304120,
- 2273951170,
- 1399257539,
- 3367210612,
- 3027628629,
- 1190975929,
- 2062231137,
- 2333990788,
- 2221543033,
- 2438960610,
- 1181637006,
- 548689776,
- 2362791313,
- 3372408396,
- 3104550113,
- 3145860560,
- 296247880,
- 1970579870,
- 3078560182,
- 3769228297,
- 1714227617,
- 3291629107,
- 3898220290,
- 166772364,
- 1251581989,
- 493813264,
- 448347421,
- 195405023,
- 2709975567,
- 677966185,
- 3703036547,
- 1463355134,
- 2715995803,
- 1338867538,
- 1343315457,
- 2802222074,
- 2684532164,
- 233230375,
- 2599980071,
- 2000651841,
- 3277868038,
- 1638401717,
- 4028070440,
- 3237316320,
- 6314154,
- 819756386,
- 300326615,
- 590932579,
- 1405279636,
- 3267499572,
- 3150704214,
- 2428286686,
- 3959192993,
- 3461946742,
- 1862657033,
- 1266418056,
- 963775037,
- 2089974820,
- 2263052895,
- 1917689273,
- 448879540,
- 3550394620,
- 3981727096,
- 150775221,
- 3627908307,
- 1303187396,
- 508620638,
- 2975983352,
- 2726630617,
- 1817252668,
- 1876281319,
- 1457606340,
- 908771278,
- 3720792119,
- 3617206836,
- 2455994898,
- 1729034894,
- 1080033504
- ],
- [
- 976866871,
- 3556439503,
- 2881648439,
- 1522871579,
- 1555064734,
- 1336096578,
- 3548522304,
- 2579274686,
- 3574697629,
- 3205460757,
- 3593280638,
- 3338716283,
- 3079412587,
- 564236357,
- 2993598910,
- 1781952180,
- 1464380207,
- 3163844217,
- 3332601554,
- 1699332808,
- 1393555694,
- 1183702653,
- 3581086237,
- 1288719814,
- 691649499,
- 2847557200,
- 2895455976,
- 3193889540,
- 2717570544,
- 1781354906,
- 1676643554,
- 2592534050,
- 3230253752,
- 1126444790,
- 2770207658,
- 2633158820,
- 2210423226,
- 2615765581,
- 2414155088,
- 3127139286,
- 673620729,
- 2805611233,
- 1269405062,
- 4015350505,
- 3341807571,
- 4149409754,
- 1057255273,
- 2012875353,
- 2162469141,
- 2276492801,
- 2601117357,
- 993977747,
- 3918593370,
- 2654263191,
- 753973209,
- 36408145,
- 2530585658,
- 25011837,
- 3520020182,
- 2088578344,
- 530523599,
- 2918365339,
- 1524020338,
- 1518925132,
- 3760827505,
- 3759777254,
- 1202760957,
- 3985898139,
- 3906192525,
- 674977740,
- 4174734889,
- 2031300136,
- 2019492241,
- 3983892565,
- 4153806404,
- 3822280332,
- 352677332,
- 2297720250,
- 60907813,
- 90501309,
- 3286998549,
- 1016092578,
- 2535922412,
- 2839152426,
- 457141659,
- 509813237,
- 4120667899,
- 652014361,
- 1966332200,
- 2975202805,
- 55981186,
- 2327461051,
- 676427537,
- 3255491064,
- 2882294119,
- 3433927263,
- 1307055953,
- 942726286,
- 933058658,
- 2468411793,
- 3933900994,
- 4215176142,
- 1361170020,
- 2001714738,
- 2830558078,
- 3274259782,
- 1222529897,
- 1679025792,
- 2729314320,
- 3714953764,
- 1770335741,
- 151462246,
- 3013232138,
- 1682292957,
- 1483529935,
- 471910574,
- 1539241949,
- 458788160,
- 3436315007,
- 1807016891,
- 3718408830,
- 978976581,
- 1043663428,
- 3165965781,
- 1927990952,
- 4200891579,
- 2372276910,
- 3208408903,
- 3533431907,
- 1412390302,
- 2931980059,
- 4132332400,
- 1947078029,
- 3881505623,
- 4168226417,
- 2941484381,
- 1077988104,
- 1320477388,
- 886195818,
- 18198404,
- 3786409e3,
- 2509781533,
- 112762804,
- 3463356488,
- 1866414978,
- 891333506,
- 18488651,
- 661792760,
- 1628790961,
- 3885187036,
- 3141171499,
- 876946877,
- 2693282273,
- 1372485963,
- 791857591,
- 2686433993,
- 3759982718,
- 3167212022,
- 3472953795,
- 2716379847,
- 445679433,
- 3561995674,
- 3504004811,
- 3574258232,
- 54117162,
- 3331405415,
- 2381918588,
- 3769707343,
- 4154350007,
- 1140177722,
- 4074052095,
- 668550556,
- 3214352940,
- 367459370,
- 261225585,
- 2610173221,
- 4209349473,
- 3468074219,
- 3265815641,
- 314222801,
- 3066103646,
- 3808782860,
- 282218597,
- 3406013506,
- 3773591054,
- 379116347,
- 1285071038,
- 846784868,
- 2669647154,
- 3771962079,
- 3550491691,
- 2305946142,
- 453669953,
- 1268987020,
- 3317592352,
- 3279303384,
- 3744833421,
- 2610507566,
- 3859509063,
- 266596637,
- 3847019092,
- 517658769,
- 3462560207,
- 3443424879,
- 370717030,
- 4247526661,
- 2224018117,
- 4143653529,
- 4112773975,
- 2788324899,
- 2477274417,
- 1456262402,
- 2901442914,
- 1517677493,
- 1846949527,
- 2295493580,
- 3734397586,
- 2176403920,
- 1280348187,
- 1908823572,
- 3871786941,
- 846861322,
- 1172426758,
- 3287448474,
- 3383383037,
- 1655181056,
- 3139813346,
- 901632758,
- 1897031941,
- 2986607138,
- 3066810236,
- 3447102507,
- 1393639104,
- 373351379,
- 950779232,
- 625454576,
- 3124240540,
- 4148612726,
- 2007998917,
- 544563296,
- 2244738638,
- 2330496472,
- 2058025392,
- 1291430526,
- 424198748,
- 50039436,
- 29584100,
- 3605783033,
- 2429876329,
- 2791104160,
- 1057563949,
- 3255363231,
- 3075367218,
- 3463963227,
- 1469046755,
- 985887462
- ]
- ];
- var s = {
- pbox: [],
- sbox: []
- };
- function Q(v, H) {
- let g = H >> 24 & 255, C = H >> 16 & 255, r = H >> 8 & 255, O = H & 255, L = v.sbox[0][g] + v.sbox[1][C];
- return L = L ^ v.sbox[2][r], L = L + v.sbox[3][O], L;
- }
- function e(v, H, g) {
- let C = H, r = g, O;
- for (let L = 0; L < c; ++L)
- C = C ^ v.pbox[L], r = Q(v, C) ^ r, O = C, C = r, r = O;
- return O = C, C = r, r = O, r = r ^ v.pbox[c], C = C ^ v.pbox[c + 1], { left: C, right: r };
- }
- function f(v, H, g) {
- let C = H, r = g, O;
- for (let L = c + 1; L > 1; --L)
- C = C ^ v.pbox[L], r = Q(v, C) ^ r, O = C, C = r, r = O;
- return O = C, C = r, r = O, r = r ^ v.pbox[1], C = C ^ v.pbox[0], { left: C, right: r };
- }
- function t(v, H, g) {
- for (let Z = 0; Z < 4; Z++) {
- v.sbox[Z] = [];
- for (let d = 0; d < 256; d++)
- v.sbox[Z][d] = B[Z][d];
- }
- let C = 0;
- for (let Z = 0; Z < c + 2; Z++)
- v.pbox[Z] = Y[Z] ^ H[C], C++, C >= g && (C = 0);
- let r = 0, O = 0, L = 0;
- for (let Z = 0; Z < c + 2; Z += 2)
- L = e(v, r, O), r = L.left, O = L.right, v.pbox[Z] = r, v.pbox[Z + 1] = O;
- for (let Z = 0; Z < 4; Z++)
- for (let d = 0; d < 256; d += 2)
- L = e(v, r, O), r = L.left, O = L.right, v.sbox[Z][d] = r, v.sbox[Z][d + 1] = O;
- return !0;
- }
- var P = l.Blowfish = z.extend({
- _doReset: function() {
- if (this._keyPriorReset !== this._key) {
- var v = this._keyPriorReset = this._key, H = v.words, g = v.sigBytes / 4;
- t(s, H, g);
- }
- },
- encryptBlock: function(v, H) {
- var g = e(s, v[H], v[H + 1]);
- v[H] = g.left, v[H + 1] = g.right;
- },
- decryptBlock: function(v, H) {
- var g = f(s, v[H], v[H + 1]);
- v[H] = g.left, v[H + 1] = g.right;
- },
- blockSize: 64 / 32,
- keySize: 128 / 32,
- ivSize: 64 / 32
- });
- D.Blowfish = z._createHelper(P);
- }(), A.Blowfish;
- });
- }(Lg)), Lg.exports;
- }
- (function(M, n) {
- (function(A, D, w) {
- M.exports = D(U(), kA(), yw(), Xw(), OA(), jw(), xA(), mB(), lg(), Vw(), JB(), ow(), Fw(), Nw(), Gg(), mw(), QA(), gA(), Jw(), kw(), Kw(), Ew(), Iw(), pw(), Tw(), Sw(), Uw(), iw(), qw(), hw(), Rw(), _w(), $w(), AD(), gD());
- })(I, function(A) {
- return A;
- });
- })(NB);
- var BD = NB.exports;
- const VA = /* @__PURE__ */ Bw(BD);
- function NA(M, n = "XwKsGlMcdPMEhR1B") {
- var A = VA.enc.Utf8.parse(n), D = VA.enc.Utf8.parse(M), w = VA.AES.encrypt(D, A, { mode: VA.mode.ECB, padding: VA.pad.Pkcs7 });
- return w.toString();
- }
- function kB(M) {
- var n, A, D, w, z = M.$el.parentNode.offsetWidth || window.offsetWidth, l = M.$el.parentNode.offsetHeight || window.offsetHeight;
- return M.imgSize.width.indexOf("%") != -1 ? n = parseInt(this.imgSize.width) / 100 * z + "px" : n = this.imgSize.width, M.imgSize.height.indexOf("%") != -1 ? A = parseInt(this.imgSize.height) / 100 * l + "px" : A = this.imgSize.height, M.barSize.width.indexOf("%") != -1 ? D = parseInt(this.barSize.width) / 100 * z + "px" : D = this.barSize.width, M.barSize.height.indexOf("%") != -1 ? w = parseInt(this.barSize.height) / 100 * l + "px" : w = this.barSize.height, { imgWidth: n, imgHeight: A, barWidth: D, barHeight: w };
- }
- const wD = {
- name: "SVerifySlide",
- props: {
- // eslint-disable-next-line vue/require-default-prop
- captchaType: {
- type: String
- },
- type: {
- type: String,
- default: "1"
- },
- // 弹出式pop,固定fixed
- mode: {
- type: String,
- default: "fixed"
- },
- vSpace: {
- type: Number,
- default: 5
- },
- explain: {
- type: String,
- default: window.$l("向右滑动完成验证")
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- blockSize: {
- type: Object,
- default() {
- return {
- width: "50px",
- height: "50px"
- };
- }
- },
- barSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "40px"
- };
- }
- }
- },
- data() {
- return {
- secretKey: "",
- // 后端返回的加密秘钥 字段
- passFlag: "",
- // 是否通过的标识
- backImgBase: "",
- // 验证码背景图片
- blockBackImgBase: "",
- // 验证滑块的背景图片
- backToken: "",
- // 后端返回的唯一token值
- startMoveTime: "",
- // 移动开始的时间
- endMovetime: "",
- // 移动结束的时间
- tipsBackColor: "",
- // 提示词的背景颜色
- tipWords: "",
- text: "",
- finishText: "",
- setSize: {
- imgHeight: 0,
- imgWidth: 0,
- barHeight: 0,
- barWidth: 0
- },
- top: 0,
- left: 0,
- moveBlockLeft: void 0,
- leftBarWidth: void 0,
- // 移动中样式
- moveBlockBackgroundColor: void 0,
- leftBarBorderColor: "var(--s-border-color-base)",
- iconColor: void 0,
- iconClass: "icon-right",
- status: !1,
- // 鼠标状态
- isEnd: !1,
- // 是够验证完成
- showRefresh: !0,
- transitionLeft: "",
- transitionWidth: ""
- };
- },
- computed: {
- barArea() {
- return this.$el.querySelector(".verify-bar-area");
- },
- resetSize() {
- return kB;
- }
- },
- methods: {
- init() {
- this.text = window.$l(this.explain), this.$utils.ls.get("token") && this.getPictrue(), this.$nextTick(() => {
- const n = this.resetSize(this);
- for (const A in n)
- this.setSize[A] = parseInt(n[A]);
- this.$parent.$emit("ready", this);
- });
- var M = this;
- window.removeEventListener("touchmove", function(n) {
- M.move(n);
- }), window.removeEventListener("mousemove", function(n) {
- M.move(n);
- }), window.removeEventListener("touchend", function() {
- M.end();
- }), window.removeEventListener("mouseup", function() {
- M.end();
- }), window.addEventListener("touchmove", function(n) {
- M.move(n);
- }), window.addEventListener("mousemove", function(n) {
- M.move(n);
- }), window.addEventListener("touchend", function() {
- M.end();
- }), window.addEventListener("mouseup", function() {
- M.end();
- });
- },
- // 鼠标按下
- start: function(M) {
- if (M = M || window.event, M.touches)
- var n = M.touches[0].pageX;
- else
- var n = M.clientX;
- this.startLeft = Math.floor(n - this.barArea.getBoundingClientRect().left), this.startMoveTime = +/* @__PURE__ */ new Date(), this.isEnd == !1 && (this.text = "", this.moveBlockBackgroundColor = "var(--s-color)", this.leftBarBorderColor = "var(--s-color)", this.iconColor = "var(--s-text-color-inverse)", M.stopPropagation(), this.status = !0);
- },
- // 鼠标移动
- move: function(M) {
- if (M = M || window.event, this.status && this.isEnd == !1) {
- if (M.touches)
- var n = M.touches[0].pageX;
- else
- var n = M.clientX;
- var A = this.barArea.getBoundingClientRect().left, D = n - A;
- D >= this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2 && (D = this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2), D <= 0 && (D = parseInt(parseInt(this.blockSize.width) / 2)), this.moveBlockLeft = D - this.startLeft + "px", this.leftBarWidth = D - this.startLeft + "px";
- }
- },
- // 鼠标松开
- end: function() {
- this.endMovetime = +/* @__PURE__ */ new Date();
- var M = this;
- if (this.status && this.isEnd == !1) {
- var n = parseInt((this.moveBlockLeft || "").replace("px", ""));
- n = n * 310 / parseInt(this.setSize.imgWidth);
- const A = {
- captchaType: this.captchaType,
- pointJson: this.secretKey ? NA(JSON.stringify({ x: n, y: 5 }), this.secretKey) : JSON.stringify({ x: n, y: 5 }),
- token: this.backToken
- };
- bB(A).then((D) => {
- if (D.repCode == "0000") {
- this.moveBlockBackgroundColor = "var(--s-color-success)", this.leftBarBorderColor = "var(--s-color-success)", this.iconColor = "var(--s-text-color-inverse)", this.iconClass = "icon-check", this.showRefresh = !1, this.isEnd = !0, this.mode == "pop" && setTimeout(() => {
- this.$parent.clickShow = !1, this.refresh();
- }, 1500), this.passFlag = !0, this.tipWords = `${((this.endMovetime - this.startMoveTime) / 1e3).toFixed(2)}s ${window.$l("验证成功")}`;
- var w = this.secretKey ? NA(
- this.backToken + "---" + JSON.stringify({ x: n, y: 5 }),
- this.secretKey
- ) : this.backToken + "---" + JSON.stringify({ x: n, y: 5 });
- setTimeout(() => {
- this.tipWords = "", this.$parent.closeBox(), this.$parent.$emit("success", { captchaVerification: w });
- }, 1e3);
- } else
- this.moveBlockBackgroundColor = "var(--s-color-error)", this.leftBarBorderColor = "var(--s-color-error)", this.iconColor = "var(--s-text-color-inverse)", this.iconClass = "icon-close", this.passFlag = !1, setTimeout(function() {
- M.refresh();
- }, 1e3), this.$parent.$emit("error", this), this.tipWords = window.$l("验证失败"), setTimeout(() => {
- this.tipWords = "";
- }, 1e3);
- }), this.status = !1;
- }
- },
- refresh: function() {
- this.showRefresh = !0, this.finishText = "", this.transitionLeft = "left .3s", this.moveBlockLeft = 0, this.leftBarWidth = void 0, this.transitionWidth = "width .3s", this.leftBarBorderColor = "var(--s-border-color-base)", this.moveBlockBackgroundColor = "var(--s-bg-color-container)", this.iconColor = "var(--s-text-color)", this.iconClass = "icon-right", this.isEnd = !1, this.getPictrue(), setTimeout(() => {
- this.transitionWidth = "", this.transitionLeft = "", this.text = window.$l(this.explain);
- }, 300);
- },
- // 请求背景图片和验证图片
- getPictrue() {
- const M = {
- captchaType: this.captchaType
- };
- ZB(M).then((n) => {
- n.repCode == "0000" ? (this.backImgBase = n.repData.originalImageBase64, this.blockBackImgBase = n.repData.jigsawImageBase64, this.backToken = n.repData.token, this.secretKey = n.repData.secretKey) : this.tipWords = n.repMsg;
- });
- }
- },
- watch: {
- // type变化则全面刷新
- type: {
- immediate: !0,
- handler() {
- this.init();
- }
- }
- },
- mounted() {
- this.$el.onselectstart = function() {
- return !1;
- };
- }
- }, DD = { style: { position: "relative" } }, sD = ["src"], eD = ["textContent"], CD = ["textContent"], tD = ["src"];
- function MD(M, n, A, D, w, z) {
- return m(), T("div", DD, [
- A.type === "2" ? (m(), T("div", {
- key: 0,
- style: vA({ height: parseInt(w.setSize.imgHeight) + A.vSpace + "px" }),
- class: "verify-img-out"
- }, [
- V("div", {
- style: vA({ width: w.setSize.imgWidth + "px", height: w.setSize.imgHeight + "px" }),
- class: "verify-img-panel"
- }, [
- V("img", {
- src: "data:image/png;base64," + w.backImgBase,
- alt: "",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, sD),
- xg(V("div", {
- onClick: n[0] || (n[0] = (...l) => z.refresh && z.refresh(...l)),
- class: "verify-refresh"
- }, [...n[3] || (n[3] = [
- V("i", { class: "iconfont icon-refresh" }, null, -1)
- ])], 512), [
- [Zg, w.showRefresh]
- ]),
- o(vw, { name: "tips" }, {
- default: F(() => [
- w.tipWords ? (m(), T("span", {
- key: 0,
- class: oA([w.passFlag ? "suc-bg" : "err-bg", "verify-tips"])
- }, E(w.tipWords), 3)) : AA("", !0)
- ]),
- _: 1
- })
- ], 4)
- ], 4)) : AA("", !0),
- V("div", {
- style: vA({
- width: w.setSize.imgWidth + "px",
- height: A.barSize.height,
- "line-height": A.barSize.height
- }),
- class: "verify-bar-area"
- }, [
- V("span", {
- class: "verify-msg",
- textContent: E(w.text)
- }, null, 8, eD),
- V("div", {
- style: vA({
- width: w.leftBarWidth !== void 0 ? w.leftBarWidth : A.barSize.height,
- height: A.barSize.height,
- "border-color": w.leftBarBorderColor,
- transaction: w.transitionWidth
- }),
- class: "verify-left-bar"
- }, [
- V("span", {
- class: "verify-msg",
- textContent: E(w.finishText)
- }, null, 8, CD),
- V("div", {
- style: vA({
- width: A.barSize.height,
- height: A.barSize.height,
- "background-color": w.moveBlockBackgroundColor,
- left: w.moveBlockLeft,
- transition: w.transitionLeft
- }),
- onMousedown: n[1] || (n[1] = (...l) => z.start && z.start(...l)),
- onTouchstart: n[2] || (n[2] = (...l) => z.start && z.start(...l)),
- class: "verify-move-block"
- }, [
- V("i", {
- class: oA(["verify-icon iconfont", w.iconClass]),
- style: vA({ color: w.iconColor })
- }, null, 6),
- A.type === "2" ? (m(), T("div", {
- key: 0,
- style: vA({
- width: Math.floor(parseInt(w.setSize.imgWidth) * 47 / 310) + "px",
- height: w.setSize.imgHeight + "px",
- top: "-" + (parseInt(w.setSize.imgHeight) + A.vSpace) + "px",
- "background-size": w.setSize.imgWidth + "px," + w.setSize.imgHeight + "px"
- }),
- class: "verify-sub-block"
- }, [
- V("img", {
- src: "data:image/png;base64," + w.blockBackImgBase,
- alt: "",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, tD)
- ], 4)) : AA("", !0)
- ], 36)
- ], 4)
- ], 4)
- ]);
- }
- const vD = /* @__PURE__ */ PA(wD, [["render", MD]]), rD = {
- name: "VerifyPoints",
- props: {
- // 弹出式pop,固定fixed
- mode: {
- type: String,
- default: "fixed"
- },
- // eslint-disable-next-line vue/require-default-prop
- captchaType: {
- type: String
- },
- // 间隔
- vSpace: {
- type: Number,
- default: 5
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- barSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "40px"
- };
- }
- }
- },
- data() {
- return {
- secretKey: "",
- // 后端返回的ase加密秘钥
- checkNum: 3,
- // 默认需要点击的字数
- fontPos: [],
- // 选中的坐标信息
- checkPosArr: [],
- // 用户点击的坐标
- num: 1,
- // 点击的记数
- pointBackImgBase: "",
- // 后端获取到的背景图片
- poinTextList: [],
- // 后端返回的点击字体顺序
- backToken: "",
- // 后端返回的token值
- setSize: {
- imgHeight: 0,
- imgWidth: 0,
- barHeight: 0,
- barWidth: 0
- },
- tempPoints: [],
- text: "",
- barAreaColor: void 0,
- barAreaBorderColor: void 0,
- showRefresh: !0,
- bindingClick: !0
- };
- },
- computed: {
- resetSize() {
- return kB;
- }
- },
- methods: {
- init() {
- this.fontPos.splice(0, this.fontPos.length), this.checkPosArr.splice(0, this.checkPosArr.length), this.num = 1, this.$utils.ls.get("token") && this.getPictrue(), this.$nextTick(() => {
- this.setSize = this.resetSize(this), this.$parent.$emit("ready", this);
- });
- },
- canvasClick(M) {
- this.checkPosArr.push(this.getMousePos(this.$refs.canvas, M)), this.num == this.checkNum && (this.num = this.createPoint(this.getMousePos(this.$refs.canvas, M)), this.checkPosArr = this.pointTransfrom(this.checkPosArr, this.setSize), setTimeout(() => {
- var n = this.secretKey ? NA(this.backToken + "---" + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + "---" + JSON.stringify(this.checkPosArr);
- const A = {
- captchaType: this.captchaType,
- pointJson: this.secretKey ? NA(JSON.stringify(this.checkPosArr), this.secretKey) : JSON.stringify(this.checkPosArr),
- token: this.backToken
- };
- bB(A).then((D) => {
- D.repCode == "0000" ? (this.barAreaColor = "var(--s-color-success)", this.barAreaBorderColor = "var(--s-color-success)", this.text = window.$l("验证成功"), this.bindingClick = !1, this.mode == "pop" && setTimeout(() => {
- this.$parent.clickShow = !1, this.refresh();
- }, 1500), this.$parent.$emit("success", { captchaVerification: n })) : (this.$parent.$emit("error", this), this.barAreaColor = "var(--s-color-error)", this.barAreaBorderColor = "var(--s-color-error)", this.text = window.$l("验证失败"), setTimeout(() => {
- this.refresh();
- }, 700));
- });
- }, 400)), this.num < this.checkNum && (this.num = this.createPoint(this.getMousePos(this.$refs.canvas, M)));
- },
- // 获取坐标
- getMousePos: function(M, n) {
- var A = n.offsetX, D = n.offsetY;
- return { x: A, y: D };
- },
- // 创建坐标点
- createPoint: function(M) {
- return this.tempPoints.push(Object.assign({}, M)), ++this.num;
- },
- refresh: function() {
- this.tempPoints.splice(0, this.tempPoints.length), this.barAreaColor = "var(--s-text-color)", this.barAreaBorderColor = "var(--s-border-color-base)", this.bindingClick = !0, this.fontPos.splice(0, this.fontPos.length), this.checkPosArr.splice(0, this.checkPosArr.length), this.num = 1, this.getPictrue(), this.text = window.$l("验证失败"), this.showRefresh = !0;
- },
- // 请求背景图片和验证图片
- getPictrue() {
- const M = {
- captchaType: this.captchaType
- };
- ZB(M).then((n) => {
- n.repCode == "0000" ? (this.pointBackImgBase = n.repData.originalImageBase64, this.backToken = n.repData.token, this.secretKey = n.repData.secretKey, this.poinTextList = n.repData.wordList, this.text = window.$l("请依次点击【") + this.poinTextList.join(",") + window.$l("】")) : this.text = n.repMsg;
- });
- },
- // 坐标转换函数
- pointTransfrom(M, n) {
- var A = M.map((D) => {
- const w = Math.round(310 * D.x / parseInt(n.imgWidth)), z = Math.round(155 * D.y / parseInt(n.imgHeight));
- return { x: w, y: z };
- });
- return A;
- }
- },
- watch: {
- // type变化则全面刷新
- type: {
- immediate: !0,
- handler() {
- this.init();
- }
- }
- },
- mounted() {
- this.$el.onselectstart = function() {
- return !1;
- };
- }
- }, fD = { style: { position: "relative" } }, nD = { class: "verify-img-out" }, zD = ["src"], PD = { class: "verify-msg" };
- function cD(M, n, A, D, w, z) {
- return m(), T("div", fD, [
- V("div", nD, [
- V("div", {
- style: vA({
- width: w.setSize.imgWidth,
- height: w.setSize.imgHeight,
- "background-size": w.setSize.imgWidth + " " + w.setSize.imgHeight,
- "margin-bottom": A.vSpace + "px"
- }),
- class: "verify-img-panel"
- }, [
- xg(V("div", {
- onClick: n[0] || (n[0] = (...l) => z.refresh && z.refresh(...l)),
- class: "verify-refresh",
- style: { "z-index": "3" }
- }, [...n[2] || (n[2] = [
- V("i", { class: "iconfont icon-refresh" }, null, -1)
- ])], 512), [
- [Zg, w.showRefresh]
- ]),
- V("img", {
- src: "data:image/png;base64," + w.pointBackImgBase,
- onClick: n[1] || (n[1] = (l) => w.bindingClick ? z.canvasClick(l) : void 0),
- alt: "",
- ref: "canvas",
- style: { width: "100%", height: "100%", display: "block" }
- }, null, 8, zD),
- (m(!0), T(FA, null, bg(w.tempPoints, (l, c) => (m(), T("div", {
- key: c,
- style: vA({
- "background-color": "var(--s-color-success)",
- color: "var(--s-text-color-inverse)",
- "z-index": 9999,
- width: "20px",
- height: "20px",
- "text-align": "center",
- "line-height": "20px",
- "border-radius": "50%",
- position: "absolute",
- top: parseInt(l.y - 10) + "px",
- left: parseInt(l.x - 10) + "px"
- }),
- class: "point-area"
- }, E(c + 1), 5))), 128))
- ], 4)
- ]),
- V("div", {
- style: vA({
- width: w.setSize.imgWidth,
- color: this.barAreaColor,
- "border-color": this.barAreaBorderColor,
- "line-height": this.barSize.height
- }),
- class: "verify-bar-area"
- }, [
- V("span", PD, E(w.text), 1)
- ], 4)
- ]);
- }
- const YD = /* @__PURE__ */ PA(rD, [["render", cD]]), QD = {
- name: "SVerify",
- props: {
- // 双语化
- locale: {
- require: !1,
- type: String,
- default() {
- if (navigator.language)
- var M = navigator.language;
- else
- var M = navigator.browserLanguage;
- return M;
- }
- },
- captchaType: {
- type: String,
- required: !0
- },
- // eslint-disable-next-line vue/require-default-prop
- figure: {
- type: Number
- },
- // eslint-disable-next-line vue/require-default-prop
- arith: {
- type: Number
- },
- mode: {
- type: String,
- default: "pop"
- },
- // eslint-disable-next-line vue/require-default-prop
- vSpace: {
- type: Number
- },
- // eslint-disable-next-line vue/require-default-prop
- explain: {
- type: String
- },
- imgSize: {
- type: Object,
- default() {
- return {
- width: "310px",
- height: "155px"
- };
- }
- },
- // eslint-disable-next-line vue/require-default-prop
- blockSize: {
- type: Object
- },
- // eslint-disable-next-line vue/require-default-prop
- barSize: {
- type: Object
- }
- },
- data() {
- return {
- // showBox:true,
- clickShow: !1,
- // 内部类型
- verifyType: void 0,
- // 所用组件类型
- componentType: void 0
- };
- },
- methods: {
- /**
- * i18n
- * @description 兼容vue-i18n 调用$t来转换ok
- * @param {String} text-被转换的目标
- * @return {String} i18n的结果
- * */
- i18n(M) {
- return this.$t ? this.$t(M) : (this.$options.i18n.messages[this.locale] || this.$options.i18n.messages["en-US"])[M];
- },
- /**
- * refresh
- * @description 刷新
- * */
- refresh() {
- this.instance.refresh && this.instance.refresh();
- },
- closeBox() {
- this.clickShow = !1, this.refresh();
- },
- show() {
- this.mode == "pop" && (this.clickShow = !0);
- }
- },
- computed: {
- instance() {
- return this.$refs.instance || {};
- },
- showBox() {
- return this.mode == "pop" ? this.clickShow : !0;
- }
- },
- watch: {
- captchaType: {
- immediate: !0,
- handler(M) {
- switch (M.toString()) {
- case "blockPuzzle":
- this.verifyType = "2", this.componentType = "VerifySlide";
- break;
- case "clickWord":
- this.verifyType = "", this.componentType = "VerifyPoints";
- break;
- }
- }
- }
- },
- components: {
- VerifySlide: vD,
- VerifyPoints: YD
- }
- }, WD = {
- key: 0,
- class: "verifybox-top"
- };
- function HD(M, n, A, D, w, z) {
- return xg((m(), T("div", {
- class: oA(A.mode == "pop" ? "mask" : "")
- }, [
- V("div", {
- class: oA(A.mode == "pop" ? "verifybox" : ""),
- style: vA({ "max-width": parseInt(A.imgSize.width) + 30 + "px" })
- }, [
- A.mode == "pop" ? (m(), T("div", WD, [
- $(E(M.$l("请完成安全验证")) + " ", 1),
- V("span", {
- onClick: n[0] || (n[0] = (...l) => z.closeBox && z.closeBox(...l)),
- class: "verifybox-close"
- }, [...n[1] || (n[1] = [
- V("i", { class: "iconfont icon-close" }, null, -1)
- ])])
- ])) : AA("", !0),
- V("div", {
- style: vA({ padding: A.mode == "pop" ? "15px" : "0" }),
- class: "verifybox-bottom"
- }, [
- w.componentType ? (m(), DA(JA(w.componentType), {
- key: 0,
- arith: A.arith,
- barSize: A.barSize,
- blockSize: A.blockSize,
- captchaType: A.captchaType,
- explain: A.explain,
- figure: A.figure,
- imgSize: A.imgSize,
- mode: A.mode,
- type: w.verifyType,
- vSpace: A.vSpace,
- ref: "instance"
- }, null, 8, ["arith", "barSize", "blockSize", "captchaType", "explain", "figure", "imgSize", "mode", "type", "vSpace"])) : AA("", !0)
- ], 4)
- ], 6)
- ], 2)), [
- [Zg, z.showBox]
- ]);
- }
- const LD = /* @__PURE__ */ PA(QD, [["render", HD]]), OD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166249698'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1866'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.9%20320.9c0%20123.1-99.8%20222.9-222.9%20222.9-123.1%200-222.9-99.8-222.9-222.9S388.9%2098%20512%2098c123.1%200%20222.9%2099.8%20222.9%20222.9z%20m-63.7%200c0-87.9-71.3-159.2-159.2-159.2S352.8%20233%20352.8%20320.9%20424.1%20480.2%20512%20480.2s159.2-71.3%20159.2-159.3z%20m220.6%20372.8c21.3%2010.2%2034.2%2032%2034.2%2055.5v144.9c0%2017.6-14.3%2031.8-31.8%2031.8H129.8c-17.6%200-31.8-14.3-31.8-31.8V749.2c0-23.6%2012.9-45.4%2034.2-55.5%20115.4-55.1%20243.9-86.2%20379.8-86.2s264.4%2031.1%20379.8%2086.2zM512%20671.2c-125.3%200-243.7%2028.4-350.3%2079v112.1h700.6V750.2c-106.6-50.6-225-79-350.3-79z'%20p-id='1867'%3e%3c/path%3e%3c/svg%3e", xD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166259718'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2023'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20543.8c123.1%200%20222.9-99.8%20222.9-222.9S635.1%2098%20512%2098c-123.1%200-222.9%2099.8-222.9%20222.9S388.9%20543.8%20512%20543.8z%20m414%20205.4c0-23.6-12.9-45.4-34.2-55.5-115.4-55.1-243.9-86.2-379.8-86.2s-264.4%2031-379.8%2086.2c-21.3%2010.2-34.2%2032-34.2%2055.5v144.9c0%2017.6%2014.3%2031.8%2031.8%2031.8h764.3c17.6%200%2031.8-14.3%2031.8-31.8V749.2z'%20p-id='2024'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", ZD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166266687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2226'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20543.8c123.1%200%20222.9-99.8%20222.9-222.9S635.1%2098%20512%2098c-123.1%200-222.9%2099.8-222.9%20222.9S388.9%20543.8%20512%20543.8z%20m414%20205.4c0-23.6-12.9-45.4-34.2-55.5-115.4-55.1-243.9-86.2-379.8-86.2s-264.4%2031-379.8%2086.2c-21.3%2010.2-34.2%2032-34.2%2055.5v144.9c0%2017.6%2014.3%2031.8%2031.8%2031.8h764.3c17.6%200%2031.8-14.3%2031.8-31.8V749.2z'%20p-id='2227'%20fill='%23d81e06'%3e%3c/path%3e%3c/svg%3e", bD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166274515'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2429'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20387v-72.3C247.9%20176.2%20366.1%2064%20512%2064s264.1%20112.2%20264.1%20250.7V387h113.2c20.8%200%2037.7%2016%2037.7%2035.8v501.4c0%2019.8-16.9%2035.8-37.7%2035.8H134.7c-20.8%200-37.7-16-37.7-35.8V422.8c0-19.8%2016.9-35.8%2037.7-35.8h113.2z%20m75.5-72.3V387h377.3v-72.3c0-98.9-84.5-179.1-188.6-179.1s-188.7%2080.2-188.7%20179.1z%20m528.1%20573.7V458.6h-679v429.8h679zM361.1%20745.1v-71.6h301.8v71.6H361.1z'%20p-id='2430'%3e%3c/path%3e%3c/svg%3e", lD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166284874'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2789'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20314.7V387H134.7c-20.8%200-37.7%2016-37.7%2035.8v501.4c0%2019.8%2016.9%2035.8%2037.7%2035.8h754.5c20.8%200%2037.7-16%2037.7-35.8V422.8c0-19.8-16.9-35.8-37.7-35.8H776.1v-72.3C776.1%20176.2%20657.9%2064%20512%2064S247.9%20176.2%20247.9%20314.7z%20m75.5%2072.3v-72.3c0-98.9%2084.5-179.1%20188.6-179.1s188.6%2080.2%20188.6%20179.1V387H323.4z%20m7.5%20315.1v-57.3h362.2v57.3H330.9z'%20p-id='2790'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", GD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166289317'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2992'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M247.9%20314.7V387H134.7c-20.8%200-37.7%2016-37.7%2035.8v501.4c0%2019.8%2016.9%2035.8%2037.7%2035.8h754.5c20.8%200%2037.7-16%2037.7-35.8V422.8c0-19.8-16.9-35.8-37.7-35.8H776.1v-72.3C776.1%20176.2%20657.9%2064%20512%2064S247.9%20176.2%20247.9%20314.7z%20m75.5%2072.3v-72.3c0-98.9%2084.5-179.1%20188.6-179.1s188.6%2080.2%20188.6%20179.1V387H323.4z%20m7.5%20315.1v-57.3h362.2v57.3H330.9z'%20p-id='2993'%20fill='%23d81e06'%3e%3c/path%3e%3c/svg%3e", dD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166678793'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M809.71264%20121.30304H209.93536c-64.84992%200-117.6064%2052.75648-117.6064%20117.6064v373.06368c0%2064.84992%2052.75648%20117.6064%20117.6064%20117.6064h279.36256v123.4688H245.08928a30.72%2030.72%200%200%200%200%2061.44h570.32704a30.72%2030.72%200%200%200%200-61.44h-264.6784v-123.4688h258.97984c64.84992%200%20117.6064-52.75648%20117.6064-117.6064V238.90432c-0.00512-64.8448-52.7616-117.60128-117.61152-117.60128z%20m56.1664%20490.67008c0%2030.97088-25.19552%2056.1664-56.1664%2056.1664H209.93536c-30.97088%200-56.1664-25.19552-56.1664-56.1664V238.90432c0-30.97088%2025.19552-56.1664%2056.1664-56.1664h599.7824c30.97088%200%2056.1664%2025.19552%2056.1664%2056.1664v373.0688z'%20fill='%23ffffff'%20p-id='4913'%3e%3c/path%3e%3c/svg%3e", aD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732167079941'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5991'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M384%20928%20192%20928c-52.928%200-96-43.072-96-96l0-192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C480%20884.928%20436.928%20928%20384%20928zM192%20608c-17.632%200-32%2014.336-32%2032l0%20192c0%2017.664%2014.368%2032%2032%2032l192%200c17.632%200%2032-14.336%2032-32l0-192c0-17.664-14.368-32-32-32L192%20608zM736%20896c-17.696%200-32-14.304-32-32l0-64c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2064C768%20881.696%20753.696%20896%20736%20896zM864%20896c-17.696%200-32-14.304-32-32l0-96c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2096C896%20881.696%20881.696%20896%20864%20896zM864%20672c-17.696%200-32-14.304-32-32l0-64c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2064C896%20657.696%20881.696%20672%20864%20672zM736%20736c-17.696%200-32-14.304-32-32l0-128c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%20128C768%20721.696%20753.696%20736%20736%20736zM608%20896c-17.696%200-32-14.304-32-32l0-128c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%20128C640%20881.696%20625.696%20896%20608%20896zM608%20640c-17.696%200-32-14.304-32-32l0-32c0-17.696%2014.304-32%2032-32s32%2014.304%2032%2032l0%2032C640%20625.696%20625.696%20640%20608%20640zM320%20800%20256%20800c-17.664%200-32-14.304-32-32l0-64c0-17.696%2014.336-32%2032-32l64%200c17.664%200%2032%2014.304%2032%2032l0%2064C352%20785.696%20337.664%20800%20320%20800zM384%20480%20192%20480c-52.928%200-96-43.072-96-96L96%20192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C480%20436.928%20436.928%20480%20384%20480zM192%20160C174.368%20160%20160%20174.368%20160%20192l0%20192c0%2017.632%2014.368%2032%2032%2032l192%200c17.632%200%2032-14.368%2032-32L416%20192c0-17.632-14.368-32-32-32L192%20160zM320%20352%20256%20352c-17.664%200-32-14.336-32-32L224%20256c0-17.664%2014.336-32%2032-32l64%200c17.664%200%2032%2014.336%2032%2032l0%2064C352%20337.664%20337.664%20352%20320%20352zM832%20480l-192%200c-52.928%200-96-43.072-96-96L544%20192c0-52.928%2043.072-96%2096-96l192%200c52.928%200%2096%2043.072%2096%2096l0%20192C928%20436.928%20884.928%20480%20832%20480zM640%20160c-17.664%200-32%2014.368-32%2032l0%20192c0%2017.632%2014.336%2032%2032%2032l192%200c17.664%200%2032-14.368%2032-32L864%20192c0-17.632-14.336-32-32-32L640%20160zM768%20352l-64%200c-17.696%200-32-14.336-32-32L672%20256c0-17.664%2014.304-32%2032-32l64%200c17.696%200%2032%2014.336%2032%2032l0%2064C800%20337.664%20785.696%20352%20768%20352z'%20fill='%23ffffff'%20p-id='5992'%3e%3c/path%3e%3c/svg%3e", uD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166311262'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3195'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M954.2%20485.6C856.7%20281%20709.5%20178%20512.1%20178%20314.6%20178%20167.4%20281%2070%20485.6c-7.9%2016.6-7.9%2036.1%200%2052.8C167.4%20743%20314.7%20846%20512.1%20846c197.5%200%20344.6-103%20442.1-307.6%207.9-16.6%207.9-35.9%200-52.8zM512.1%20772.2c-165.7%200-287.1-83.8-372.7-260.2%2085.6-176.4%20207-260.2%20372.7-260.2S799.2%20335.6%20884.8%20512C799.3%20688.4%20678%20772.2%20512.1%20772.2z'%20p-id='3196'%3e%3c/path%3e%3cpath%20d='M688%20494.1c-0.6-5.9-1.5-11.7-2.6-17.5-1.2-5.8-2.6-11.5-4.3-17.2s-3.7-11.2-6-16.7-4.8-10.8-7.6-16-5.8-10.3-9.1-15.2c-3.3-4.9-6.8-9.6-10.6-14.2s-7.7-8.9-11.9-13.1-8.6-8.1-13.2-11.9c-4.6-3.7-9.3-7.3-14.3-10.5-4.9-3.3-10-6.3-15.2-9.1s-10.6-5.3-16-7.6c-5.5-2.3-11-4.2-16.7-6-5.7-1.7-11.4-3.1-17.2-4.3s-11.7-2-17.6-2.6c-5.9-0.6-11.8-0.9-17.7-0.9-5.9%200-11.8%200.3-17.7%200.9-5.9%200.6-11.7%201.4-17.6%202.6-5.8%201.2-11.5%202.6-17.2%204.3-5.7%201.7-11.2%203.7-16.7%206s-10.8%204.8-16%207.6c-5.2%202.8-10.3%205.8-15.2%209.1s-9.7%206.8-14.3%2010.5c-4.6%203.7-9%207.7-13.2%2011.9s-8.2%208.5-11.9%2013.1c-3.8%204.6-7.3%209.3-10.6%2014.2s-6.3%2010-9.1%2015.2c-2.8%205.2-5.3%2010.5-7.6%2016s-4.3%2011-6%2016.7-3.2%2011.4-4.3%2017.2c-1.2%205.8-2%2011.6-2.6%2017.5-0.6%205.9-0.9%2011.8-0.9%2017.7s0.3%2011.8%200.9%2017.7c0.6%205.9%201.4%2011.7%202.6%2017.5s2.6%2011.5%204.3%2017.2%203.7%2011.2%206%2016.7%204.8%2010.8%207.6%2016%205.8%2010.3%209.1%2015.2c3.3%204.9%206.8%209.6%2010.6%2014.2s7.7%208.9%2011.9%2013.1c4.2%204.2%208.6%208.1%2013.2%2011.9%204.6%203.7%209.3%207.3%2014.3%2010.5%204.9%203.3%2010%206.3%2015.2%209.1s10.6%205.3%2016%207.6c5.5%202.3%2011%204.2%2016.7%206%205.7%201.7%2011.4%203.1%2017.2%204.3%205.8%201.2%2011.7%202%2017.6%202.6%205.9%200.6%2011.8%200.9%2017.7%200.9%205.9%200%2011.8-0.3%2017.7-0.9%205.9-0.6%2011.7-1.4%2017.6-2.6%205.8-1.2%2011.5-2.6%2017.2-4.3s11.2-3.7%2016.7-6%2010.8-4.8%2016-7.6%2010.3-5.8%2015.2-9.1%209.7-6.8%2014.3-10.5%209-7.7%2013.2-11.9%208.2-8.5%2011.9-13.1c3.8-4.6%207.3-9.3%2010.6-14.2s6.3-10%209.1-15.2%205.3-10.5%207.6-16%204.3-11%206-16.7%203.2-11.4%204.3-17.2c1.2-5.8%202-11.6%202.6-17.5s0.9-11.8%200.9-17.7c0-5.9-0.3-11.8-0.9-17.7z%20m-65.4%2029.1c-0.4%203.7-1%207.4-1.7%2011.1s-1.6%207.3-2.7%2010.9-2.4%207.1-3.8%2010.6-3%206.9-4.8%2010.2c-1.8%203.4-3.7%206.6-5.8%209.7-2.1%203.1-4.3%206.1-6.7%209-2.4%202.9-4.9%205.6-7.6%208.3-2.7%202.7-5.5%205.2-8.4%207.6-2.9%202.4-6%204.6-9.1%206.7-3.1%202.1-6.4%204-9.7%205.8s-6.7%203.4-10.2%204.8c-3.4%201.4-7%202.7-10.6%203.8-3.7%201.1-7.3%202-11%202.7-3.7%200.8-7.4%201.3-11.2%201.7-3.8%200.4-7.5%200.6-11.3%200.6s-7.5-0.1-11.3-0.6c-3.8-0.4-7.5-1-11.2-1.7s-7.4-1.6-11-2.7c-3.6-1.1-7.1-2.4-10.6-3.8s-6.9-3-10.2-4.8c-3.3-1.8-6.6-3.7-9.7-5.8-3.2-2.1-6.2-4.3-9.1-6.7-2.9-2.4-5.7-4.9-8.4-7.6-2.7-2.6-5.2-5.4-7.6-8.3s-4.6-5.9-6.7-9c-2.1-3.2-4-6.4-5.8-9.7-1.7-3.3-3.4-6.7-4.8-10.2-1.4-3.5-2.7-7-3.8-10.6-1-3.6-2-7.2-2.7-10.9-0.8-3.6-1.3-7.4-1.7-11.1-0.4-3.7-0.6-7.4-0.6-11.2%200-3.7%200.2-7.5%200.6-11.2%200.4-3.7%201-7.4%201.7-11.1s1.6-7.3%202.7-10.9c1.1-3.6%202.4-7.1%203.8-10.6s3-6.9%204.8-10.2c1.8-3.4%203.7-6.6%205.8-9.7%202.1-3.1%204.3-6.1%206.7-9%202.4-2.9%204.9-5.6%207.6-8.3%202.7-2.7%205.5-5.2%208.4-7.6%202.9-2.4%206-4.6%209.1-6.7%203.1-2.1%206.4-4%209.7-5.8s6.7-3.4%2010.2-4.8c3.4-1.4%207-2.7%2010.6-3.8%203.7-1.1%207.3-2%2011-2.7%203.7-0.8%207.4-1.3%2011.2-1.7%203.8-0.4%207.5-0.6%2011.3-0.6s7.5%200.2%2011.3%200.6c3.8%200.4%207.5%201%2011.2%201.7s7.4%201.6%2011%202.7%207.1%202.4%2010.6%203.8%206.9%203%2010.2%204.8%206.6%203.7%209.7%205.8c3.2%202.1%206.2%204.3%209.1%206.7%202.9%202.4%205.7%204.9%208.4%207.6%202.7%202.6%205.2%205.4%207.6%208.3%202.4%202.9%204.6%205.9%206.7%209%202.1%203.2%204%206.4%205.8%209.7%201.7%203.3%203.4%206.7%204.8%2010.2%201.4%203.5%202.7%207%203.8%2010.6%201%203.6%202%207.2%202.7%2010.9%200.8%203.6%201.3%207.4%201.7%2011.1%200.4%203.7%200.6%207.4%200.6%2011.2%200%203.7-0.2%207.5-0.6%2011.2z'%20p-id='3197'%3e%3c/path%3e%3c/svg%3e", yD = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1732166314161'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3353'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M954.1%20485.6C856.6%20281%20709.4%20178%20512%20178c-197.5%200-344.7%20103-442.1%20307.7-7.9%2016.6-7.9%2036.1%200%2052.8C167.3%20743%20314.6%20846%20512%20846c197.5%200%20344.6-103%20442.1-307.7%207.9-16.6%207.9-35.8%200-52.7z%20m-266.2%2044.1c-0.6%205.9-1.5%2011.7-2.6%2017.5-1.2%205.8-2.6%2011.5-4.3%2017.2s-3.7%2011.2-6%2016.7-4.8%2010.8-7.6%2016c-2.8%205.2-5.8%2010.3-9.1%2015.2-3.3%204.9-6.8%209.6-10.6%2014.2s-7.7%208.9-11.9%2013.1c-4.2%204.2-8.6%208.1-13.2%2011.9-4.6%203.7-9.3%207.3-14.3%2010.5-4.9%203.3-10%206.3-15.2%209.1-5.2%202.8-10.6%205.3-16%207.6-5.5%202.3-11%204.2-16.7%206-5.7%201.7-11.4%203.1-17.2%204.3-5.8%201.2-11.7%202-17.6%202.6-5.9%200.6-11.8%200.9-17.7%200.9-5.9%200-11.8-0.3-17.7-0.9-5.9-0.6-11.7-1.4-17.6-2.6-5.8-1.2-11.5-2.6-17.2-4.3-5.7-1.7-11.2-3.7-16.7-6s-10.8-4.8-16-7.6c-5.2-2.8-10.3-5.8-15.2-9.1-4.9-3.3-9.7-6.8-14.3-10.5-4.6-3.7-9-7.7-13.2-11.9-4.2-4.2-8.2-8.5-11.9-13.1-3.8-4.6-7.3-9.3-10.6-14.2-3.3-4.9-6.3-10-9.1-15.2-2.8-5.2-5.3-10.5-7.6-16s-4.3-11-6-16.7-3.2-11.4-4.3-17.2c-1.2-5.8-2-11.6-2.6-17.5-0.6-5.9-0.9-11.8-0.9-17.7%200-5.9%200.3-11.8%200.9-17.7%200.6-5.9%201.4-11.7%202.6-17.5%201.2-5.8%202.6-11.5%204.3-17.2%201.7-5.7%203.7-11.2%206-16.7s4.8-10.8%207.6-16c2.8-5.2%205.8-10.3%209.1-15.2%203.3-4.9%206.8-9.6%2010.6-14.2s7.7-8.9%2011.9-13.1c4.2-4.2%208.6-8.1%2013.2-11.9%204.6-3.7%209.3-7.3%2014.3-10.5%204.9-3.3%2010-6.3%2015.2-9.1%205.2-2.8%2010.6-5.3%2016-7.6%205.5-2.3%2011-4.2%2016.7-6%205.7-1.7%2011.4-3.1%2017.2-4.3%205.8-1.2%2011.7-2%2017.6-2.6%205.9-0.6%2011.8-0.9%2017.7-0.9%205.9%200%2011.8%200.3%2017.7%200.9%205.9%200.6%2011.7%201.4%2017.6%202.6%205.8%201.2%2011.5%202.6%2017.2%204.3%205.7%201.7%2011.2%203.7%2016.7%206s10.8%204.8%2016%207.6c5.2%202.8%2010.3%205.8%2015.2%209.1%204.9%203.3%209.7%206.8%2014.3%2010.5%204.6%203.7%209%207.7%2013.2%2011.9%204.2%204.2%208.2%208.5%2011.9%2013.1%203.8%204.6%207.3%209.3%2010.6%2014.2%203.3%204.9%206.3%2010%209.1%2015.2%202.8%205.2%205.3%2010.5%207.6%2016s4.3%2011%206%2016.7c1.7%205.7%203.2%2011.4%204.3%2017.2%201.2%205.8%202%2011.6%202.6%2017.5%200.6%205.9%200.9%2011.8%200.9%2017.7-0.1%205.9-0.3%2011.8-0.9%2017.7z'%20p-id='3354'%20fill='%231677FF'%3e%3c/path%3e%3cpath%20d='M623%20512c0%203.8-0.2%207.5-0.6%2011.2-0.4%203.7-0.9%207.5-1.7%2011.1-0.7%203.7-1.7%207.3-2.7%2010.9-1.1%203.6-2.4%207.1-3.8%2010.6s-3.1%206.9-4.8%2010.2c-1.8%203.3-3.7%206.5-5.8%209.7-2.1%203.1-4.3%206.1-6.7%209-2.4%202.9-4.9%205.7-7.6%208.3-2.7%202.7-5.5%205.2-8.4%207.6-2.9%202.4-5.9%204.6-9.1%206.7-3.1%202.1-6.4%204-9.7%205.8-3.3%201.8-6.7%203.4-10.2%204.8-3.5%201.4-7%202.7-10.6%203.8-3.6%201.1-7.3%202-11%202.7-3.7%200.7-7.4%201.3-11.2%201.7-3.8%200.4-7.5%200.6-11.3%200.6-3.8%200-7.5-0.2-11.3-0.6-3.8-0.4-7.5-0.9-11.2-1.7-3.7-0.7-7.3-1.6-11-2.7-3.6-1.1-7.2-2.4-10.6-3.8-3.5-1.4-6.9-3-10.2-4.8-3.3-1.8-6.6-3.7-9.7-5.8-3.1-2.1-6.2-4.3-9.1-6.7-2.9-2.4-5.7-4.9-8.4-7.6-2.7-2.7-5.2-5.4-7.6-8.3-2.4-2.9-4.6-5.9-6.7-9-2.1-3.1-4-6.3-5.8-9.7-1.8-3.3-3.4-6.7-4.8-10.2-1.4-3.5-2.7-7-3.8-10.6-1.1-3.6-2-7.2-2.7-10.9-0.7-3.7-1.3-7.4-1.7-11.1-0.4-3.7-0.6-7.5-0.6-11.2%200-3.8%200.2-7.5%200.6-11.2%200.4-3.7%200.9-7.5%201.7-11.1%200.7-3.7%201.7-7.3%202.7-10.9%201.1-3.6%202.4-7.1%203.8-10.6s3.1-6.9%204.8-10.2c1.8-3.3%203.7-6.5%205.8-9.7%202.1-3.1%204.3-6.1%206.7-9%202.4-2.9%204.9-5.7%207.6-8.3%202.7-2.7%205.5-5.2%208.4-7.6%202.9-2.4%205.9-4.6%209.1-6.7%203.1-2.1%206.4-4%209.7-5.8%203.3-1.8%206.7-3.4%2010.2-4.8%203.5-1.4%207-2.7%2010.6-3.8%203.6-1.1%207.3-2%2011-2.7%203.7-0.7%207.4-1.3%2011.2-1.7%203.8-0.4%207.5-0.6%2011.3-0.6%203.8%200%207.5%200.2%2011.3%200.6%203.8%200.4%207.5%200.9%2011.2%201.7%203.7%200.7%207.3%201.6%2011%202.7%203.6%201.1%207.2%202.4%2010.6%203.8%203.5%201.4%206.9%203%2010.2%204.8%203.3%201.8%206.6%203.7%209.7%205.8%203.1%202.1%206.2%204.3%209.1%206.7%202.9%202.4%205.7%204.9%208.4%207.6%202.7%202.7%205.2%205.4%207.6%208.3%202.4%202.9%204.6%205.9%206.7%209%202.1%203.1%204%206.3%205.8%209.7%201.8%203.3%203.4%206.7%204.8%2010.2%201.4%203.5%202.7%207%203.8%2010.6%201.1%203.6%202%207.2%202.7%2010.9%200.7%203.7%201.3%207.4%201.7%2011.1%200.4%203.7%200.6%207.4%200.6%2011.2z'%20p-id='3355'%20fill='%231677FF'%3e%3c/path%3e%3c/svg%3e", XD = {
- name: "LoginForm",
- components: {
- SVerify: LD
- },
- props: {
- // 手机号登录 - 获取验证码时是否启用拼图验证
- // captchaOpen: {
- // type: Boolean,
- // default: true
- // },
- showTenantry: {
- type: Boolean,
- default: !1
- },
- showAgreement: {
- type: Boolean,
- default: !1
- },
- showAutoLogin: {
- type: Boolean,
- default: !0
- },
- showOtherLogin: {
- type: Boolean,
- default: !1
- }
- },
- data() {
- let M = "clickWord";
- var n = 0, A = 100, D = Math.floor(Math.random() * (A - n)) + n;
- return D % 2 === 0 && (M = "blockPuzzle"), D % 2 === 1 && (M = "clickWord"), {
- iconsFocus: {
- tenantryCode: 1,
- loginName: 1,
- password: 1
- },
- // 密码记录数
- verificationImage: null,
- verificationCodeId: "",
- otherLoginList: [],
- QrCodeLogin: !1,
- typeActive: 1,
- showPassword: !1,
- autoLogin: !1,
- arguments: !1,
- isLoginButtonDisabled: !1,
- // 登录按钮是否禁用
- deadline: 0,
- // 倒计时时间
- isCountdown: !1,
- // 显示倒计时
- loginConfig: {},
- captchaType: M,
- captchaCountdown: 0,
- loginBtn: !1,
- form: {
- tenantryCode: "",
- loginName: "",
- password: "",
- verificationCode: "",
- prefix: "+86",
- mobile: ""
- },
- rules: {
- tenantryCode: [
- {
- required: !0,
- message: this.$l("请输入租户编码"),
- trigger: "blur"
- }
- ],
- loginName: [
- {
- required: !0,
- message: this.$l("请输入账户"),
- trigger: "blur"
- }
- ],
- password: [
- {
- required: !0,
- message: this.$l("请输入密码"),
- trigger: "blur"
- }
- ],
- code: [
- {
- required: !0,
- message: this.$l("请输入短信验证码"),
- trigger: "blur"
- }
- ],
- mobile: [
- {
- required: !0,
- message: this.$l("请输入手机号"),
- trigger: "blur"
- },
- { pattern: /^1[345678]\d{9}$/, message: this.$l("手机号格式不正确"), trigger: "blur" }
- ]
- }
- };
- },
- computed: {
- showPhoneLogin() {
- return this.$utils.env.VITE_APP_LOGIN_PHONE;
- },
- showQRCodeLogin() {
- return this.$utils.env.VITE_APP_LOGIN_QRCODE;
- }
- },
- methods: {
- renderIcon(M, n) {
- return {
- // 租户编码输入框前缀图标:基座没有对应资源(原 tenant-icon-1/2/3.png 从未存在过),
- // 留空即 <img> 不渲染 src、不发请求。业务要图标请自行放到 static 下并在此登记。
- // 注意不能用 new URL('@p/...', import.meta.url):new URL 的资源重写不认 alias,
- // 产物里会原样留下 @p/... 并在运行时 404;要走 import 静态引入。
- tenant: {},
- user: {
- 1: OD,
- 2: xD,
- 3: ZD
- },
- pass: {
- 1: bD,
- 2: lD,
- 3: GD
- },
- login: {
- pcIconWhite: dD,
- qrCodeWhite: aD
- }
- }[M][n];
- },
- handLogin() {
- this.typeActive === 2 ? this.$refs.form.validateFields().then((M) => dA(this, null, function* () {
- M.code && (M.operate = "0", (yield Dw(M)) ? this.handSubmit() : this.$message.error(this.$l("验证码错误/已过期")));
- })).catch(() => {
- this.$message.error(this.$l("验证码错误"));
- }) : this.handSubmit();
- },
- handSubmit() {
- this.$refs.form.validate().then((M) => {
- this.loginBtn = !0;
- const n = {
- clientId: this.$utils.env.VITE_APP_CLIENT_ID
- };
- Object.keys(M).forEach((A) => {
- n[A] = A === "verificationCode" ? M[A] : Og(M[A]);
- }), n.verificationCodeId = this.verificationCodeId, aB(n).then((A) => this.loginSuccess(A)).catch((A) => {
- this.requestFailed(A);
- }).finally(() => {
- this.loginBtn = !1;
- });
- }).catch(() => {
- let M = setTimeout(() => {
- this.loginBtn = !1, clearTimeout(M);
- }, 600);
- });
- },
- // 获取验证码
- handGetCaptchaCount() {
- return dA(this, null, function* () {
- yield this.$refs.form.validateFields("mobile").then((M) => {
- M.mobile && this.$refs.verify.show();
- });
- });
- },
- /**
- * 拼图验证成功 获取验证码
- */
- verifySuccess(M) {
- this.form.verificationCode = M.captchaVerification;
- },
- verifySuccess1(M) {
- this.form.verificationCode = M.captchaVerification, this.captchaCountdown = Date.now() + 1e3 * 60, ww({ mobile: this.form.mobile, operate: "0" }).then((n) => {
- n === "send-success" ? (this.$message.success(this.$l("短信发送成功")), this.captchaCountdown = Date.now() + 1e3 * 60) : this.$message.error(this.$l("短信发送过于频繁,请稍后再试"));
- });
- },
- loginSuccess(M) {
- return dA(this, null, function* () {
- try {
- this.$utils.ls.set("token", M), this.$utils.ls.set("USER-TOKEN", M), this.verificationImage = null, this.verificationCodeId = "";
- const n = window.sessionStorage.getItem("redirect_client_id");
- if (n) {
- const D = dB(), { clients: w } = yield D.Info(), z = w.find((l) => l.clientId === n) || {};
- if (z.redirectUri && z.redirectUri !== "/") {
- this.authorizeUrl(z);
- return;
- }
- }
- const A = this.$utils.env.VITE_APP_DEFAULT_PATH;
- this.$push(A);
- } catch (n) {
- console.log("loginSuccess:", n);
- const A = this.$utils.env.VITE_APP_DEFAULT_PATH;
- this.$push(A);
- }
- });
- },
- authorizeUrl(M) {
- const n = (this.$utils.env.VITE_APP_BASE_URL || "/").replace(/\/+$/, ""), A = `${window.location.protocol}//${window.location.host}${n}/sso.html?client_id=${M.clientId}&scope=${M.scope}&redirect_uri=${encodeURIComponent(M.redirectUri)}`;
- window.location.replace(A);
- },
- requestFailed(M) {
- const n = JSON.parse(M.message);
- if (n != null && n.lockUser) {
- this.$message.error(n.message);
- const A = n == null ? void 0 : n.lockUser, D = A != null && A.lockEndTime && (A != null && A.nowTime) ? A.lockEndTime - A.nowTime : 0;
- D > 0 ? (this.isLoginButtonDisabled = !0, this.isCountdown = !0, this.deadline = Date.now() + D) : (this.isLoginButtonDisabled = !1, this.isCountdown = !1, this.deadline = 0), this.form.verificationCode = "", this.refreshVerificationCode();
- } else {
- let A = !1;
- this.loginConfig && this.loginConfig.enabled && (!this.loginConfig.codeThreshold || this.loginConfig.codeThreshold === "0" ? A = !1 : A = n.failCount >= this.loginConfig.codeThreshold), A && (this.form.verificationCode = "", this.refreshVerificationCode());
- }
- },
- // 获取图片验证码(网关:portal)
- refreshVerificationCode() {
- GB().then((M) => {
- this.verificationImage = `data:image/gif;base64,${M.verificationImage}`, this.verificationCodeId = M.verificationCodeId;
- });
- },
- init() {
- this.otherLoginList = [
- {
- key: "ali",
- icon: "AlipayCircleOutlined"
- },
- {
- key: "weChat",
- icon: "WechatOutlined"
- },
- {
- key: "weibo",
- icon: "WeiboCircleOutlined"
- },
- {
- key: "github",
- icon: "GithubOutlined"
- }
- ], this.getLoginConfig();
- },
- // 登录策略
- getLoginConfig() {
- lB().then((M) => {
- this.loginConfig = M || {};
- });
- },
- handUpdatePassword() {
- console.log("忘记密码");
- },
- onFinish() {
- this.isLoginButtonDisabled = !1, this.isCountdown = !1, this.deadline = 0, this.refreshVerificationCode();
- },
- onFinishReset() {
- this.captchaCountdown = 0;
- },
- formatterTime({ value: M }) {
- console.log(M);
- }
- },
- mounted() {
- this.init();
- }
- }, jD = { class: "form-wrap" }, VD = ["src"], oD = ["src"], FD = { class: "head" }, ND = { class: "welcome" }, mD = {
- key: 0,
- class: "form-main"
- }, JD = {
- key: 0,
- class: "tab-item"
- }, kD = ["src"], KD = ["src"], ED = ["src"], ID = { class: "verification-code-div" }, pD = ["src", "title"], TD = {
- key: 2,
- class: "tools"
- }, SD = {
- key: 3,
- class: "other-login"
- }, UD = { class: "left" }, iD = { class: "label" }, qD = { class: "other-login-list" }, hD = ["src"], RD = { class: "right" }, _D = {
- key: 0,
- class: "tab-item"
- }, $D = { class: "between" }, As = { key: 0 }, gs = {
- key: 0,
- class: "agreement"
- }, Bs = {
- key: 1,
- class: "form-main column-center"
- }, ws = { class: "qr-title" }, Ds = { class: "ICP" };
- function ss(M, n, A, D, w, z) {
- const l = uB, c = oB, Y = YA("s-verify"), B = yB, s = XB, Q = FB, e = Yw, f = ew, t = sw, P = Qw, v = cw, H = VB;
- return m(), T("div", jD, [
- z.showQRCodeLogin ? (m(), T("div", {
- key: 0,
- class: "toggle-login",
- onClick: n[0] || (n[0] = jA((g) => w.QrCodeLogin = !w.QrCodeLogin, ["stop"]))
- })) : AA("", !0),
- z.showQRCodeLogin ? (m(), T("div", {
- key: 1,
- class: "toggle-icon-wrap",
- onClick: n[1] || (n[1] = jA((g) => w.QrCodeLogin = !w.QrCodeLogin, ["stop"]))
- }, [
- w.QrCodeLogin ? (m(), T("img", {
- key: 1,
- class: "toggle-icon",
- src: z.renderIcon("login", "qrCodeWhite")
- }, null, 8, oD)) : (m(), T("img", {
- key: 0,
- class: "toggle-icon",
- src: z.renderIcon("login", "pcIconWhite")
- }, null, 8, VD))
- ])) : AA("", !0),
- o(H, {
- model: w.form,
- rules: w.rules,
- layout: "vertical",
- ref: "form"
- }, {
- default: F(() => [
- V("div", FD, [
- V("div", ND, E(M.$l("欢迎使用")), 1)
- ]),
- w.QrCodeLogin ? (m(), T("div", Bs, [
- V("div", ws, E(M.$l("请使用移动设备扫码登录")), 1),
- n[27] || (n[27] = V("img", {
- src: "",
- class: "qr-code-image"
- }, null, -1))
- ])) : (m(), T("div", mD, [
- o(v, {
- activeKey: w.typeActive,
- "onUpdate:activeKey": n[24] || (n[24] = (g) => w.typeActive = g)
- }, {
- default: F(() => [
- (m(), DA(e, {
- key: 1,
- tab: M.$l("账户密码登录")
- }, {
- default: F(() => [
- w.typeActive === 1 ? (m(), T("div", JD, [
- A.showTenantry ? (m(), DA(c, {
- key: 0,
- label: " ",
- colon: !1,
- name: "tenantryCode"
- }, {
- default: F(() => [
- o(l, {
- value: w.form.tenantryCode,
- "onUpdate:value": n[2] || (n[2] = (g) => w.form.tenantryCode = g),
- valueModifiers: { trim: !0 },
- placeholder: M.$l("租户编码"),
- style: { width: "100%" },
- onFocus: n[3] || (n[3] = (g) => w.iconsFocus.tenantryCode = 2),
- onBlur: n[4] || (n[4] = (g) => w.iconsFocus.tenantryCode = w.form.tenantryCode ? 1 : 3),
- onInput: n[5] || (n[5] = (g) => w.iconsFocus.tenantryCode = w.form.tenantryCode ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: F(() => [
- V("img", {
- class: "prefix-icon",
- src: z.renderIcon("tenant", w.iconsFocus.tenantryCode)
- }, null, 8, kD)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- })) : AA("", !0),
- o(c, {
- label: " ",
- colon: !1,
- name: "loginName"
- }, {
- default: F(() => [
- o(l, {
- value: w.form.loginName,
- "onUpdate:value": n[6] || (n[6] = (g) => w.form.loginName = g),
- placeholder: M.$l("账号"),
- style: { width: "100%" },
- onFocus: n[7] || (n[7] = (g) => w.iconsFocus.loginName = 2),
- onBlur: n[8] || (n[8] = (g) => w.iconsFocus.loginName = w.form.loginName ? 1 : 3),
- onInput: n[9] || (n[9] = (g) => w.iconsFocus.loginName = w.form.loginName ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: F(() => [
- V("img", {
- class: "prefix-icon",
- src: z.renderIcon("user", w.iconsFocus.loginName)
- }, null, 8, KD)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- o(c, {
- label: " ",
- colon: !1,
- name: "password"
- }, {
- default: F(() => [
- o(l, {
- value: w.form.password,
- "onUpdate:value": n[12] || (n[12] = (g) => w.form.password = g),
- placeholder: M.$l("密码"),
- style: { width: "100%" },
- type: w.showPassword ? "text" : "password",
- onFocus: n[13] || (n[13] = (g) => w.iconsFocus.password = 2),
- onBlur: n[14] || (n[14] = (g) => w.iconsFocus.password = w.form.password ? 1 : 3),
- onInput: n[15] || (n[15] = (g) => w.iconsFocus.password = w.form.password ? 2 : 3),
- allowClear: !0,
- size: "large"
- }, {
- prefix: F(() => [
- V("img", {
- class: "prefix-icon",
- src: z.renderIcon("pass", w.iconsFocus.password)
- }, null, 8, ED)
- ]),
- suffix: F(() => [
- w.showPassword ? (m(), T("img", {
- key: 1,
- src: yD,
- class: "eye",
- onClick: n[11] || (n[11] = jA((g) => w.showPassword = !w.showPassword, ["stop"]))
- })) : (m(), T("img", {
- key: 0,
- src: uD,
- class: "eye",
- onClick: n[10] || (n[10] = jA((g) => w.showPassword = !w.showPassword, ["stop"]))
- }))
- ]),
- _: 1
- }, 8, ["value", "placeholder", "type"])
- ]),
- _: 1
- }),
- o(Y, {
- onSuccess: z.verifySuccess,
- mode: "pop",
- captchaType: w.captchaType,
- imgSize: { width: "330px", height: "155px" },
- ref: "verify1"
- }, null, 8, ["onSuccess", "captchaType"]),
- w.verificationImage ? (m(), DA(c, {
- key: 1,
- class: "verification-item"
- }, {
- default: F(() => [
- V("div", ID, [
- o(l, {
- value: w.form.verificationCode,
- "onUpdate:value": n[16] || (n[16] = (g) => w.form.verificationCode = g),
- size: "large",
- placeholder: M.$l("请输入验证码"),
- allowClear: !0
- }, null, 8, ["value", "placeholder"]),
- V("img", {
- class: "verification-img",
- src: w.verificationImage,
- title: M.$l("点击刷新验证码"),
- onClick: n[17] || (n[17] = (...g) => z.refreshVerificationCode && z.refreshVerificationCode(...g))
- }, null, 8, pD)
- ])
- ]),
- _: 1
- })) : AA("", !0),
- A.showAutoLogin ? (m(), T("div", TD, [
- o(B, {
- checked: w.autoLogin,
- "onUpdate:checked": n[18] || (n[18] = (g) => w.autoLogin = g)
- }, {
- default: F(() => [
- V("span", null, E(M.$l("自动登录")), 1)
- ]),
- _: 1
- }, 8, ["checked"]),
- o(s, {
- class: "update-password",
- type: "link",
- onClick: z.handUpdatePassword
- }, {
- default: F(() => [
- $(E(M.$l("忘记密码?")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])) : AA("", !0),
- o(s, {
- class: "login-btn",
- size: "large",
- type: "primary",
- disabled: w.isLoginButtonDisabled,
- onClick: z.handLogin
- }, {
- default: F(() => [
- w.isCountdown ? AA("", !0) : (m(), T("span", {
- key: 0,
- onClick: n[19] || (n[19] = jA((...g) => z.handLogin && z.handLogin(...g), ["stop"]))
- }, E(M.$l("登录")), 1)),
- w.isCountdown ? (m(), DA(Q, {
- key: 1,
- format: "ss",
- size: "mini",
- value: w.deadline,
- onFinish: z.onFinish
- }, null, 8, ["value", "onFinish"])) : AA("", !0)
- ]),
- _: 1
- }, 8, ["disabled", "onClick"]),
- A.showOtherLogin ? (m(), T("div", SD, [
- V("div", UD, [
- V("div", iD, E(M.$l("其他方式登录")), 1),
- V("div", qD, [
- (m(!0), T(FA, null, bg(w.otherLoginList, (g) => (m(), T("div", {
- class: "item",
- key: g.key
- }, [
- g.icon ? (m(), DA(JA(g.icon), {
- key: 0,
- class: "icon-font"
- })) : (m(), T("img", {
- key: 1,
- src: g.src,
- class: "icon"
- }, null, 8, hD))
- ]))), 128))
- ])
- ]),
- V("div", RD, [
- o(s, {
- class: "resign-account",
- type: "link",
- onClick: z.handUpdatePassword
- }, {
- default: F(() => [
- $(E(M.$l("账户注册")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])
- ])) : AA("", !0)
- ])) : AA("", !0)
- ]),
- _: 1
- }, 8, ["tab"])),
- z.showPhoneLogin ? (m(), DA(e, {
- key: 2,
- tab: M.$l("手机号码登录")
- }, {
- default: F(() => [
- w.typeActive === 2 ? (m(), T("div", _D, [
- o(c, {
- label: " ",
- colon: !1,
- name: "mobile"
- }, {
- default: F(() => [
- o(P, {
- style: { width: "100%" },
- value: w.form.mobile,
- "onUpdate:value": n[21] || (n[21] = (g) => w.form.mobile = g),
- controls: !1,
- "has-feedback": "",
- size: "large",
- placeholder: M.$l("手机号")
- }, {
- addonBefore: F(() => [
- o(t, {
- value: w.form.prefix,
- "onUpdate:value": n[20] || (n[20] = (g) => w.form.prefix = g),
- style: { width: "80px" }
- }, {
- default: F(() => [
- o(f, { value: "+86" }, {
- default: F(() => [...n[26] || (n[26] = [
- $("+86", -1)
- ])]),
- _: 1
- })
- ]),
- _: 1
- }, 8, ["value"])
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- o(c, {
- label: " ",
- colon: !1,
- name: "code"
- }, {
- default: F(() => [
- V("div", $D, [
- o(P, {
- controls: !1,
- value: w.form.code,
- "onUpdate:value": n[22] || (n[22] = (g) => w.form.code = g),
- placeholder: M.$l("短息验证码"),
- style: { width: "100%" },
- size: "large",
- allowClear: !0
- }, null, 8, ["value", "placeholder"]),
- o(s, { class: "valid-code" }, {
- default: F(() => [
- w.captchaCountdown <= 0 ? (m(), T("span", {
- key: 0,
- onClick: n[23] || (n[23] = (...g) => z.handGetCaptchaCount && z.handGetCaptchaCount(...g))
- }, E(M.$l("获取验证码")), 1)) : (m(), DA(Q, {
- key: 1,
- size: "mini",
- format: "ss",
- value: w.captchaCountdown,
- onFinish: z.onFinishReset
- }, null, 8, ["value", "onFinish"]))
- ]),
- _: 1
- })
- ])
- ]),
- _: 1
- }),
- o(Y, {
- onSuccess: z.verifySuccess1,
- mode: "pop",
- captchaType: w.captchaType,
- imgSize: { width: "330px", height: "155px" },
- ref: "verify"
- }, null, 8, ["onSuccess", "captchaType"]),
- o(s, {
- class: "login-btn",
- size: "large",
- type: "primary",
- disabled: w.isLoginButtonDisabled,
- onClick: z.handLogin
- }, {
- default: F(() => [
- w.isCountdown ? AA("", !0) : (m(), T("span", As, E(M.$l("登录")), 1)),
- w.isCountdown ? (m(), DA(Q, {
- key: 1,
- format: "ss",
- size: "mini",
- value: w.deadline,
- onFinish: z.onFinish
- }, null, 8, ["value", "onFinish"])) : AA("", !0)
- ]),
- _: 1
- }, 8, ["disabled", "onClick"])
- ])) : AA("", !0)
- ]),
- _: 1
- }, 8, ["tab"])) : AA("", !0)
- ]),
- _: 1
- }, 8, ["activeKey"]),
- A.showAgreement ? (m(), T("div", gs, [
- o(B, {
- checked: w.arguments,
- "onUpdate:checked": n[25] || (n[25] = (g) => w.arguments = g)
- }, {
- default: F(() => [
- V("span", null, E(M.$l("我已阅读同意")), 1)
- ]),
- _: 1
- }, 8, ["checked"]),
- o(s, {
- class: "link-btn",
- type: "link",
- onClick: z.handUpdatePassword
- }, {
- default: F(() => [
- $(E(M.$l("《隐私政策》")), 1)
- ]),
- _: 1
- }, 8, ["onClick"]),
- V("span", null, E(M.$l("和")), 1),
- o(s, {
- class: "link-btn",
- type: "link",
- onClick: z.handUpdatePassword
- }, {
- default: F(() => [
- $(E(M.$l("《服务协议》")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ])) : AA("", !0)
- ]))
- ]),
- _: 1
- }, 8, ["model", "rules"]),
- V("div", Ds, E(M.$utils.env.VITE_APP_CASE_NAME), 1)
- ]);
- }
- const dg = /* @__PURE__ */ PA(XD, [["render", ss], ["__scopeId", "data-v-47e22609"]]), es = new URL("../img/inline-dfddf18de1.png", import.meta.url).href, Cs = {
- name: "LoginTheme1",
- components: { LoginForm: dg },
- props: {
- // 登录页 logo:默认基座 logo,父级拿到系统外观配置(getActivateSystemIcon)后覆盖
- logo: { type: String, default: mA },
- // 系统名称(封面副标题),国际化文案由父级取好后传入
- sysName: { type: String, default: "" }
- },
- data() {
- return {
- coverImg: es
- };
- }
- }, ts = { class: "container-between" }, Ms = { class: "cover" }, vs = { class: "logo-wrap" }, rs = ["src"], fs = { class: "desc" }, ns = ["src"], zs = { class: "form-content" };
- function Ps(M, n, A, D, w, z) {
- const l = YA("LoginForm");
- return m(), T("div", ts, [
- V("div", Ms, [
- V("div", vs, [
- V("img", {
- src: A.logo,
- class: "logo"
- }, null, 8, rs),
- V("div", fs, E(A.sysName), 1)
- ]),
- V("img", {
- src: w.coverImg,
- class: "left-cover"
- }, null, 8, ns)
- ]),
- V("div", zs, [
- o(l)
- ])
- ]);
- }
- const KB = /* @__PURE__ */ PA(Cs, [["render", Ps], ["__scopeId", "data-v-843d2d34"]]), cs = new URL("../img/inline-529cdf6a8f.png", import.meta.url).href, Ys = {
- name: "LoginTheme2",
- components: { LoginForm: dg },
- props: {
- logo: { type: String, default: mA }
- },
- data() {
- return {
- bgImg: cs
- };
- }
- }, Qs = { class: "container-left" }, Ws = ["src"], Hs = ["src"], Ls = { class: "form-content" };
- function Os(M, n, A, D, w, z) {
- const l = YA("LoginForm");
- return m(), T("div", Qs, [
- V("img", {
- src: w.bgImg,
- class: "bg-cover"
- }, null, 8, Ws),
- V("img", {
- src: A.logo,
- class: "logo"
- }, null, 8, Hs),
- V("div", Ls, [
- o(l)
- ])
- ]);
- }
- const xs = /* @__PURE__ */ PA(Ys, [["render", Os], ["__scopeId", "data-v-7315cd41"]]), Zs = new URL("../img/inline-0da6ef80f4.png", import.meta.url).href, bs = {
- name: "LoginTheme3",
- components: { LoginForm: dg },
- props: {
- logo: { type: String, default: mA }
- },
- data() {
- return {
- bgImg: Zs
- };
- }
- }, ls = { class: "container-center" }, Gs = ["src"], ds = ["src"], as = { class: "form-content" };
- function us(M, n, A, D, w, z) {
- const l = YA("LoginForm");
- return m(), T("div", ls, [
- V("img", {
- src: w.bgImg,
- class: "bg-cover"
- }, null, 8, Gs),
- V("img", {
- src: A.logo,
- class: "logo"
- }, null, 8, ds),
- V("div", as, [
- o(l)
- ])
- ]);
- }
- const ys = /* @__PURE__ */ PA(bs, [["render", us], ["__scopeId", "data-v-8b9e9b4b"]]), Xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHFUlEQVR4AexaTW7jNhQm7Sx7gC4KVF5MgO5aZLpIu2h8kjgnieckTk9id9HRohm0u6KZhV2gQA/QbWz2+yjJFqknmaIkJ5lJwGdJ/Hk/Hx8fn8SM1Gf+9wrAZ+4A6tUDTuUB6e9/JumHj7ek9/cPS9AaZEC8rn+9f1iQ0g8Ps1PpRDmDe0AKo2Hk0mzHa2PMnATBV6AExMJropWakYxRC/S3gKQnAGMwANLfPl7RkJLBqsWfBaQAIwWILca26to7AHR1GL402iyhCWcXl04lIYhDgdArADQerk7D6eJNVm/QSFrhWhBu6wtAmJF/fY+4lt4AoMvD+DXUqJv1jdZ6rsfbyQ9vzwua4r4gzTb2AQ+Cg4tTksvvvpHqnU5tH3oBgDOTu7wkf6O1uoGhk8uLN++ajGAb+7CvNnoKZvQOXJTS4KEG+OsFAMz8QtLNKHVHYy4vzu+k9qa6y+/frDB2ar0CXhPDo4l/0dYZAO7dYFZZ8xru/uPb8xu0dSrWKwZw/UKpTgBw3Wvs3wWz4krj6crF83O+dgIA6/5WMG51CuO5LVpChinoEFwVDQBnH1Kqrj/ednZ78G0sNs8wWVaJ+LNkEG4cUGr0b6MB2Glz7TOzrj/gei3JKwOfqN3Zdamt1W00AFj7ZSWs0FO4vhXk/TBJ8qqCH6MBgAQn4eGWh7pTlX1+kAtM8iWZP4ZfogBIhbe0kVa/hIvt1hNgVzPCkXEmJFRCFAAi89HWnxWxWx+VI62rACj9dQzvKAB2Rv0UI6y3Mbv+vC0KAMkQZmxS/SB1Z48bn+/OPPUS8DUa8LlPsKM8QFqDXZKRtlhJsiSdQvhGARDC+PR9zN8xMiMBEIQ9nonbkDRbbRQVx9fIasO36BsHwE7ahgqW2ZWKI2c3XXJ1jLdfkyt5h7TnB+iUaeb+xgHg8sieRt7WeMjPE7UbV9LmbFD9LwFEqx1njLrGfakIe76wM5QG1N7GASAIQz5ulS0k7UrbUlTecACQLJ3lVebNxi4UBUC+DTVmfqNSaqzx0SSf0WBdAej+hAhvmc4nNfBzwCbTXCfetqIoAGokOLOkvDW5245vQ0HIP7O5/FyhTpvBt0e3+fB07C4aAG30O485zv4O53r8qIn2fcaGWZshIC6aQOAbHQMf+2LsoYwefy4eKgERDWVvw2OrEg2AEuOAG6y01o7rQrMrgMDD0GWK4y4anOLNkjNOwie2yqEKeMzL7l0NiODa4UUsGoBcKT8OXNEoqGRL/oHE78O2K6zxOQ2GQQuNGEFig0ebnIetznk765/un+ti+7T9iQaAgrRWe9fkMwlGOR9K8V3/BvX7pYD70LLBMuPYfX+fNxu6uL8dz59oylzPn+GrFO5d8OTs4IBjwplCXRAQ7MsxeRzBMKVSLBXcOLOPZ3hI+0MXjNuXTh5A40QvMGaWu+teEA9J8hklYCIQNBx9puy7H4gb8uJSwa1T0NfxEKcx8KETAFaG7AUJ3HWRz5rtxh/OKGaWh6ETLI0JDJgCwBveo17TcPZh34Ks8dlRe1FVXFd+36KhzbUzANYL5LMAnOur7N9ehMMLjqMBPPPjva80t8vSzuA3K4Dnb8OVPiEVnQGgEBrAWeS9T4zu2PqWNMb3CL8vjU4RP0gYs+ZYvw+fYfyU4PG+K/UCAJWwINQfYSc0husYiY4BGP+R3t//9e+BHgyNNvmJD3lK1Kfx5N8bAFyr9qXHqH/IuIkAxhckpfSXB1Ihf38ovHXSU0I6h/TpDAANx6wuEfSWMGqmtPoqRHBkn2+th2zHWTYpxJa2fDsBADde0HAI9fdnVA1ebFpNHbp4RBQA+awbO+OD29ksgDogdkSfELcGwEZoeV/ea2oTGgRE7gwk7vGxxKBHAvPaBAptCUBYp1m2iMfw0goAu9aNmdexZ1JDQ21Cc3F+x52BVNc/pJ7bHQl8swQKwGKcnEkatUi5jbaIDcEA0HgIFte6wQcJKKiZ1KDPoIUy4FVTypQEMUjy/wVC40IQAE3G0z0545IyQ9XRqyiTsiGj4g1tQDgKAKMshEgzv8JMTOieaH+SQtnQgf9PWAvCMcUaAUgRVBhlBSb2f/g4E0LbSauoQxMIKWJCk0K1AHCrY+oqDLbGC/VPVnUUhIagKALAAIIER/rvzw2CHV3uyYytE9wIwnZcmyeIADCKQpDz6RnPfAXt/AGCfIaiBhCS3KaK6AoAdvaFvZ4Rl0GnwuGZVVgQql+jFXcG2uarWwGABxh+J+65L8H4Qu/8SzIzx6Iqu7rHbbauAgCivr/lbbjn2t4v6Ac7A5ersz3CC3zb8HZ9xCgtuNORIc+iWVoK8GQHECpa8QBE+Qka6D4rGD/P3QlVL69QdxjN06kNr5InVwCgmQCBLx5TMuDzSyYaDXsmvEp2iABIHT/VulcAXvrMdtX/fwAAAP//un2LNgAAAAZJREFUAwBQ41qup/ExBAAAAABJRU5ErkJggg==", js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAEt0lEQVR4AexbzW7bRhCekQr0BXopeigFNHJ7bO2gsH1o/BAFeqt16CHnPkCce3svelFy7zvIQWETqGUUPaVWgkg55xFiafN9lByI5FrU8E+KQ2JH4s7+zMw3w+XukmzJR340AHzkASBNBNQZAeG/z4Pw8sWj8+FoABqD3IJ4Pj4bjvrh5ei4Tp0qj4Alo52btsfOuRMY+AAUgG4SzwMVOXZO+gBlDgYAu6lQ1X+lAITw9pLRFhvmYEzbA/ZhaWitWxkA8OJg4W2rTsv1A/aBvsaMpOWCss5LB4CKQuEBFGSY429lmqD0FJSVAkTSILx4sU6fWX3FyksHAIr2IeE2RU9V9USdHh3sdRXUAUXn2p52VKXnRJ6I/wicuj4B9hfn45YKwCrPKwynsfu79x7v37+X8vr+t99M9ne7Tw73uj0CBHMYHfiLpSgSYpyCmdIAWISnz/MTepeGr6srAUKbI4LmaRPwdunh52KVBgDC85FHgwm83qF3PWUrWWyzAC0VLSryoKxLoRQAwvnkJeV9hHJvpZVrFCISfH0Es2nbB/gaPcarlALAzMkP8W5FOJgxlJN8a56RoBgck+0YBUlennwpAECZ1PSVg1kehXxtODiCn7wUgsW4g6L1U7JmYQAW4R/rl96PMUrIqGoSAMFSLhV5VlGFAfAJbKlOfPxCvJk8S7bHLDE17iTrZOVLAEC/TAtxr9O8gpxPrssHFSoVBmDmXIB+4qk1TYdrvIY5x8EQjZIgpGWjkiUVBsAirGhdjAOxabITKQz0BwWAtK6fwugbECat9vSxFDw+KAB4GfD2itlltJBivqD9uJEU6IHTURVJXYecpYXYDKmeRsdF5wK5IoCGc0GCpe9YRFK3IoCCrS13gttUxSR9rEGi/UXqJDkOMwAUBMP7NDKHvKqaRMvkPNFgBoDGw4qU18HbdIo2TKxKmACg9yFgG42HWlEyrw9MAMis7TP+VLHFhWVrp3ZSPYnMXv5piWl9YANANDXtVZWnXPbyllQ3cV6wbDvPMfD6nMQiLxkB8PQx0+T0NFVpMLz67Pyf5wcWuvjv1U6qowSDgCdY5mxxADJEhpcvf/lU9I202mcWevv2+v+z4dVvGd1nFmdVqBSA88uXXzk3+zNLidvKVfTXs4urn24rL4NfKQBtmX5eWEmVLwr3saKDSgH4fnfnb8j+A5QvqTw73Nv5PV/j9VpVCgBVwMLlIS6DHxW3LBO15OHBbtc0olOelSoHgAod3v/6L+7xm+i7bv7IodA1qRYA1tRlI9UaADYC+xYJbSJgi5yxEVWaCNgI7FsktImALXLGRlRpImAjsFco1Np1EwFWxO5a/SYC7ppHrfY0EWBF7K7VLxwBM3U/bwqUcP6CZky8E8l8TiFLhw0Az5taKnJ8PhxFn7zU/O+cE76ZvmSOSAsbqTFGRsYGwPxNLd97OQHk1E0Q6UnGF7RMAPBRFB6A9jxit4KleEhLHS3KmABgxxRAQTg3XWuoX2niljsf0lqFmAGgAApCJBypvv/Cg5cFAamb5l+gtKcdbrlTNyvlAoBCGAl8iflwr9vDww9+9sLPX+qmIxpOXahTHsoNQB5h29imAWAbvWLRqWjddwAAAP//MGboZgAAAAZJREFUAwAv/CuutfMtNAAAAABJRU5ErkJggg==", Vs = { class: "login-page" }, os = { class: "brand-side" }, Fs = { class: "brand-inner" }, Ns = { class: "brand-logo" }, ms = ["src", "alt"], Js = { class: "brand-footer" }, ks = { class: "form-side" }, Ks = ["src"], Es = ["src"], Is = ["src", "alt"], ps = {
- key: 1,
- class: "error-tip"
- }, Ts = { class: "form-extra" }, Ss = { class: "lock-text" }, Us = { class: "lock-text" }, is = { key: 1 }, qs = { class: "tips" }, hs = /* @__PURE__ */ Object.assign({ name: "LoginTheme4" }, {
- __name: "LoginTheme4",
- props: {
- // 登录页 logo:父级(login.vue)传的兜底图,接口返回 loginPageLogoUrl 后覆盖
- logo: { type: String, default: Kg }
- },
- setup(M) {
- const n = M, A = (b) => window.$l ? window.$l(b) : b, D = Ww(), w = Hw(), z = [
- { icon: "SafetyOutlined", text: "统一身份认证,一次登录全校通行" },
- { icon: "SafetyOutlined", text: "办事、资讯、应用一站聚合" },
- { icon: "SafetyOutlined", text: "全流程安全审计,保障数据隐私" }
- ], l = MA(n.logo || Kg), c = MA("统一认证中心"), Y = MA(null), B = MA(!1), s = MA(""), Q = MA(!1), e = MA(!1), f = MA(""), t = MA(""), P = MA(""), v = MA({}), H = MA(0), g = rw(() => H.value > Date.now()), C = fw({
- loginName: "",
- password: "",
- verificationCode: ""
- }), r = {
- loginName: [{ required: !0, message: A("请输入职工号/学号"), trigger: "blur" }],
- password: [{ required: !0, message: A("请输入登录密码"), trigger: "blur" }],
- verificationCode: [{ required: !0, message: A("请输入验证码"), trigger: "blur" }]
- }, O = () => window.$utils.env, L = () => window.$utils.ls;
- function Z() {
- const b = L().get("LOGIN_ACCOUNT");
- b && (C.loginName = b, Q.value = !0);
- }
- function d() {
- const b = D.params.officeCode;
- b ? (L().set("officeCode", b), f.value = b) : f.value = L().get("officeCode") || "";
- }
- function j() {
- lB({}).then((b) => {
- v.value = b || {};
- }).catch(() => {
- });
- }
- function W() {
- Lw({}).then((b) => {
- Array.isArray(b) && b.length && (e.value = !!b[0].defaultActivateAccount);
- }).catch(() => {
- });
- }
- function x() {
- GB().then((b) => {
- t.value = `data:image/gif;base64,${b.verificationImage}`, P.value = b.verificationCodeId;
- }).catch(() => {
- t.value = "", P.value = "";
- });
- }
- function u() {
- H.value = 0, s.value = "";
- }
- function y(b) {
- if (!b) return {};
- if (typeof b.message == "string")
- try {
- return JSON.parse(b.message);
- } catch (G) {
- return { message: b.message };
- }
- return b;
- }
- function N(b) {
- var p, _;
- const G = y(b);
- if (s.value = G.message || A("账号或密码错误,请重新输入"), G.lockUser) {
- const k = G.lockUser, rA = k.lockEndTime && k.nowTime ? k.lockEndTime - k.nowTime : 0;
- rA > 0 ? H.value = Date.now() + rA : (H.value = 0, s.value = G.message || A("账号已被锁定,请联系管理员")), C.verificationCode = "", x();
- return;
- }
- const S = Number(((p = v.value) == null ? void 0 : p.codeThreshold) || 0);
- (_ = v.value) != null && _.enabled && S > 0 && Number(G.failCount || 0) >= S && (C.verificationCode = "", x());
- }
- function J(b) {
- const G = (O().VITE_APP_BASE_URL || "/").replace(/\/+$/, ""), S = `${window.location.protocol}//${window.location.host}${G}/sso.html?client_id=${b.clientId}&scope=${b.scope}&redirect_uri=${encodeURIComponent(b.redirectUri)}`;
- window.location.replace(S);
- }
- function K(b) {
- return dA(this, null, function* () {
- L().set("token", b), L().set("USER-TOKEN", b), t.value = "", P.value = "";
- const G = window.sessionStorage.getItem("redirect_client_id");
- if (G)
- try {
- const { clients: S } = yield dB().Info(), p = S.find((_) => _.clientId === G) || {};
- if (p.redirectUri && p.redirectUri !== "/") {
- J(p);
- return;
- }
- } catch (S) {
- }
- window.$push(O().VITE_APP_DEFAULT_PATH);
- });
- }
- function R() {
- return dA(this, null, function* () {
- if (!g.value) {
- s.value = "", B.value = !0;
- try {
- const b = {
- clientId: O().VITE_APP_CLIENT_ID,
- loginName: Og(C.loginName || ""),
- password: Og(C.password || ""),
- // 图形验证码按原文提交(与基座 LoginForm 一致)
- verificationCode: C.verificationCode || "",
- verificationCodeId: P.value || ""
- }, G = yield aB(b);
- Q.value ? L().set("LOGIN_ACCOUNT", C.loginName) : L().remove("LOGIN_ACCOUNT"), window.$message.success(A("登录成功,欢迎回来")), yield K(G);
- } catch (b) {
- N(b), C.verificationCode = "";
- } finally {
- B.value = !1;
- }
- }
- });
- }
- function i() {
- w.push("/user/qrCode");
- }
- function h() {
- w.push("/user/forgotPassword");
- }
- function q() {
- w.push("/user/activate");
- }
- function a(b) {
- b && (l.value = b.loginPageLogoUrl || l.value, c.value = b.systemName || c.value);
- }
- function X() {
- const b = L().get("systemIcons");
- if (b) {
- a(b);
- return;
- }
- jB().then((G) => {
- a(G);
- }).catch(() => {
- });
- }
- return nw(() => {
- X(), d(), Z(), j(), W();
- }), (b, G) => {
- const S = Ow, p = xw, _ = Zw, k = bw, rA = uB, fA = oB, aA = Cw, WA = YA("SafetyOutlined"), sA = dw, wA = tw, ZA = Gw, HA = YA("ExclamationCircleFilled"), bA = yB, nA = XB, uA = FB, LA = VB, CA = aw, eA = YA("QrcodeOutlined"), zA = lw;
- return m(), T("div", Vs, [
- V("section", os, [
- G[4] || (G[4] = V("div", { class: "brand-mask" }, null, -1)),
- V("div", Fs, [
- V("div", Ns, [
- V("img", {
- class: "logo-img",
- src: l.value,
- alt: A("学校标识")
- }, null, 8, ms)
- ]),
- o(S, {
- level: 1,
- class: "brand-title"
- }, {
- default: F(() => [
- $(E(c.value), 1)
- ]),
- _: 1
- }),
- o(p, { class: "brand-slogan" }, {
- default: F(() => [
- $(E(A("一个账号,通达校园全部应用与服务")), 1)
- ]),
- _: 1
- }),
- o(k, {
- direction: "vertical",
- size: 16,
- class: "brand-points"
- }, {
- default: F(() => [
- (m(), T(FA, null, bg(z, (BA) => V("div", {
- key: BA.text,
- class: "brand-point"
- }, [
- (m(), DA(JA(BA.icon), { class: "point-icon" })),
- o(_, { class: "point-text" }, {
- default: F(() => [
- $(E(A(BA.text)), 1)
- ]),
- _: 2
- }, 1024)
- ])), 64))
- ]),
- _: 1
- })
- ]),
- V("div", Js, [
- o(_, { class: "copyright-text" }, {
- default: F(() => [
- $(" 智慧校园 · " + E(c.value), 1)
- ]),
- _: 1
- })
- ])
- ]),
- V("section", ks, [
- o(zA, {
- class: "login-card",
- bordered: !1
- }, {
- default: F(() => [
- o(S, {
- level: 3,
- class: "card-title"
- }, {
- default: F(() => [
- $(E(A("账号登录")), 1)
- ]),
- _: 1
- }),
- o(_, {
- type: "secondary",
- class: "card-desc"
- }, {
- default: F(() => [
- $(E(A("学生、教职工请使用学号 / 职工号登录")), 1)
- ]),
- _: 1
- }),
- o(LA, {
- ref_key: "formRef",
- ref: Y,
- class: "login-form",
- model: C,
- rules: r,
- layout: "vertical",
- onFinish: R
- }, {
- default: F(() => [
- o(fA, { name: "loginName" }, {
- default: F(() => [
- o(rA, {
- value: C.loginName,
- "onUpdate:value": G[0] || (G[0] = (BA) => C.loginName = BA),
- size: "large",
- placeholder: A("请输入职工号/学号"),
- autocomplete: "off",
- "allow-clear": ""
- }, {
- prefix: F(() => [
- V("img", {
- class: "field-icon",
- src: Eg(Xs),
- alt: ""
- }, null, 8, Ks)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- o(fA, { name: "password" }, {
- default: F(() => [
- o(aA, {
- value: C.password,
- "onUpdate:value": G[1] || (G[1] = (BA) => C.password = BA),
- size: "large",
- placeholder: A("请输入登录密码"),
- autocomplete: "off"
- }, {
- prefix: F(() => [
- V("img", {
- class: "field-icon",
- src: Eg(js),
- alt: ""
- }, null, 8, Es)
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- t.value ? (m(), DA(fA, {
- key: 0,
- name: "verificationCode"
- }, {
- default: F(() => [
- o(ZA, { gutter: 12 }, {
- default: F(() => [
- o(sA, { span: 14 }, {
- default: F(() => [
- o(rA, {
- value: C.verificationCode,
- "onUpdate:value": G[2] || (G[2] = (BA) => C.verificationCode = BA),
- size: "large",
- placeholder: A("请输入验证码"),
- autocomplete: "off",
- "allow-clear": ""
- }, {
- prefix: F(() => [
- o(WA, { class: "field-icon-text" })
- ]),
- _: 1
- }, 8, ["value", "placeholder"])
- ]),
- _: 1
- }),
- o(sA, { span: 10 }, {
- default: F(() => [
- o(wA, {
- title: A("点击刷新验证码")
- }, {
- default: F(() => [
- V("div", {
- class: "captcha-box",
- onClick: x
- }, [
- V("img", {
- src: t.value,
- alt: A("验证码")
- }, null, 8, Is)
- ])
- ]),
- _: 1
- }, 8, ["title"])
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- })) : AA("", !0),
- s.value ? (m(), T("div", ps, [
- o(HA, { class: "error-icon" }),
- o(_, { type: "danger" }, {
- default: F(() => [
- $(E(s.value), 1)
- ]),
- _: 1
- })
- ])) : AA("", !0),
- V("div", Ts, [
- o(bA, {
- checked: Q.value,
- "onUpdate:checked": G[3] || (G[3] = (BA) => Q.value = BA)
- }, {
- default: F(() => [
- $(E(A("记住我")), 1)
- ]),
- _: 1
- }, 8, ["checked"]),
- o(nA, {
- type: "link",
- class: "link-btn",
- onClick: h
- }, {
- default: F(() => [
- $(E(A("忘记密码?")), 1)
- ]),
- _: 1
- })
- ]),
- o(fA, { class: "submit-item" }, {
- default: F(() => [
- o(nA, {
- type: "primary",
- block: "",
- size: "large",
- "html-type": "submit",
- loading: B.value,
- disabled: g.value
- }, {
- default: F(() => [
- g.value ? (m(), T(FA, { key: 0 }, [
- V("span", Ss, E(A("账号已锁定,")), 1),
- o(uA, {
- class: "lock-countdown",
- value: H.value,
- format: "s",
- onFinish: u
- }, null, 8, ["value"]),
- V("span", Us, E(A("秒后重试")), 1)
- ], 64)) : (m(), T("span", is, E(A("登录")), 1))
- ]),
- _: 1
- }, 8, ["loading", "disabled"])
- ]),
- _: 1
- })
- ]),
- _: 1
- }, 8, ["model"]),
- o(CA, { class: "card-divider" }, {
- default: F(() => [
- $(E(A("其他登录方式")), 1)
- ]),
- _: 1
- }),
- o(nA, {
- block: "",
- size: "large",
- class: "qr-btn",
- onClick: i
- }, {
- icon: F(() => [
- o(eA, { class: "qr-code-2" })
- ]),
- default: F(() => [
- V("span", null, E(A("扫码登录")), 1)
- ]),
- _: 1
- }),
- V("div", qs, [
- o(_, { class: "tips-title" }, {
- default: F(() => [
- $(E(A("温馨提示")), 1)
- ]),
- _: 1
- }),
- e.value ? (m(), DA(p, {
- key: 0,
- class: "tips-line"
- }, {
- default: F(() => [
- $(E(A("1. 新生或新入职教职工,请先")) + " ", 1),
- o(nA, {
- type: "link",
- class: "inline-btn",
- onClick: q
- }, {
- default: F(() => [
- $(E(A("激活账号")), 1)
- ]),
- _: 1
- })
- ]),
- _: 1
- })) : (m(), DA(p, {
- key: 1,
- class: "tips-line"
- }, {
- default: F(() => [
- $(E(A("1. 学生、教职工请使用学号、工号登录")), 1)
- ]),
- _: 1
- })),
- o(p, { class: "tips-line" }, {
- default: F(() => [
- $(E(A("2. 校外人员请使用手机号登录")), 1)
- ]),
- _: 1
- })
- ])
- ]),
- _: 1
- })
- ])
- ]);
- };
- }
- }), Rs = /* @__PURE__ */ PA(hs, [["__scopeId", "data-v-7976423e"]]), _s = {
- 1: KB,
- 2: xs,
- 3: ys,
- 4: Rs
- }, $s = {
- name: "LoginPage",
- data() {
- return {
- spinning: !1,
- sysName: "",
- logo: mA,
- loginTheme: "1"
- };
- },
- computed: {
- themeComponent() {
- return _s[String(this.loginTheme)] || KB;
- },
- // 只有主题 1 有系统名(封面副标题),按主题决定透传哪些 props,避免无用属性落到根节点
- themeProps() {
- const M = { logo: this.logo };
- return String(this.loginTheme) === "1" && (M.sysName = this.sysName), M;
- }
- },
- mounted() {
- this.loginTheme = this.$utils.env.VITE_APP_LOGIN_PATH_THEME, this.spinning = !0, this.spinning = !1, this.getAppearanceConfig();
- },
- methods: {
- getAppearanceConfig() {
- this.sysName = window.$l("统一数据平台 | 管理系统");
- const M = this.$utils.ls.get("systemIcons");
- M ? this.applySystemIcon(M) : jB().then((n) => {
- this.applySystemIcon(n);
- });
- },
- // 应用外观配置:登录页 logo、页签 favicon(已登录后的首页 logo/favicon 由 BasicLayout 处理)
- applySystemIcon(M) {
- M && (M.loginPageLogoUrl && (this.logo = M.loginPageLogoUrl), M.faviconUrl && this.$utils.setFavicon(M.faviconUrl));
- }
- }
- }, A7 = { class: "login-page" }, g7 = { class: "language-check" };
- function B7(M, n, A, D, w, z) {
- const l = YA("s-toggle-language"), c = Mw;
- return m(), DA(c, { spinning: w.spinning }, {
- default: F(() => [
- V("div", A7, [
- (m(), DA(JA(z.themeComponent), zw(Pw(z.themeProps)), null, 16)),
- V("div", g7, [
- o(l, { blockType: "dropdown" })
- ])
- ])
- ]),
- _: 1
- }, 8, ["spinning"]);
- }
- const Q7 = /* @__PURE__ */ PA($s, [["render", B7], ["__scopeId", "data-v-098c9e44"]]);
- export {
- Q7 as default
- };
|