chunk-KMTVWNW7.js 239 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372
  1. import {
  2. __commonJS
  3. } from "./chunk-2LSFTFF7.js";
  4. // node_modules/.pnpm/jquery@3.7.1/node_modules/jquery/dist/jquery.js
  5. var require_jquery = __commonJS({
  6. "node_modules/.pnpm/jquery@3.7.1/node_modules/jquery/dist/jquery.js"(exports, module) {
  7. (function(global, factory) {
  8. "use strict";
  9. if (typeof module === "object" && typeof module.exports === "object") {
  10. module.exports = global.document ? factory(global, true) : function(w) {
  11. if (!w.document) {
  12. throw new Error("jQuery requires a window with a document");
  13. }
  14. return factory(w);
  15. };
  16. } else {
  17. factory(global);
  18. }
  19. })(typeof window !== "undefined" ? window : exports, function(window2, noGlobal) {
  20. "use strict";
  21. var arr = [];
  22. var getProto = Object.getPrototypeOf;
  23. var slice = arr.slice;
  24. var flat = arr.flat ? function(array) {
  25. return arr.flat.call(array);
  26. } : function(array) {
  27. return arr.concat.apply([], array);
  28. };
  29. var push = arr.push;
  30. var indexOf = arr.indexOf;
  31. var class2type = {};
  32. var toString = class2type.toString;
  33. var hasOwn = class2type.hasOwnProperty;
  34. var fnToString = hasOwn.toString;
  35. var ObjectFunctionString = fnToString.call(Object);
  36. var support = {};
  37. var isFunction = function isFunction2(obj) {
  38. return typeof obj === "function" && typeof obj.nodeType !== "number" && typeof obj.item !== "function";
  39. };
  40. var isWindow = function isWindow2(obj) {
  41. return obj != null && obj === obj.window;
  42. };
  43. var document = window2.document;
  44. var preservedScriptAttributes = {
  45. type: true,
  46. src: true,
  47. nonce: true,
  48. noModule: true
  49. };
  50. function DOMEval(code, node, doc) {
  51. doc = doc || document;
  52. var i, val, script = doc.createElement("script");
  53. script.text = code;
  54. if (node) {
  55. for (i in preservedScriptAttributes) {
  56. val = node[i] || node.getAttribute && node.getAttribute(i);
  57. if (val) {
  58. script.setAttribute(i, val);
  59. }
  60. }
  61. }
  62. doc.head.appendChild(script).parentNode.removeChild(script);
  63. }
  64. function toType(obj) {
  65. if (obj == null) {
  66. return obj + "";
  67. }
  68. return typeof obj === "object" || typeof obj === "function" ? class2type[toString.call(obj)] || "object" : typeof obj;
  69. }
  70. var version = "3.7.1", rhtmlSuffix = /HTML$/i, jQuery = function(selector, context) {
  71. return new jQuery.fn.init(selector, context);
  72. };
  73. jQuery.fn = jQuery.prototype = {
  74. // The current version of jQuery being used
  75. jquery: version,
  76. constructor: jQuery,
  77. // The default length of a jQuery object is 0
  78. length: 0,
  79. toArray: function() {
  80. return slice.call(this);
  81. },
  82. // Get the Nth element in the matched element set OR
  83. // Get the whole matched element set as a clean array
  84. get: function(num) {
  85. if (num == null) {
  86. return slice.call(this);
  87. }
  88. return num < 0 ? this[num + this.length] : this[num];
  89. },
  90. // Take an array of elements and push it onto the stack
  91. // (returning the new matched element set)
  92. pushStack: function(elems) {
  93. var ret = jQuery.merge(this.constructor(), elems);
  94. ret.prevObject = this;
  95. return ret;
  96. },
  97. // Execute a callback for every element in the matched set.
  98. each: function(callback) {
  99. return jQuery.each(this, callback);
  100. },
  101. map: function(callback) {
  102. return this.pushStack(jQuery.map(this, function(elem, i) {
  103. return callback.call(elem, i, elem);
  104. }));
  105. },
  106. slice: function() {
  107. return this.pushStack(slice.apply(this, arguments));
  108. },
  109. first: function() {
  110. return this.eq(0);
  111. },
  112. last: function() {
  113. return this.eq(-1);
  114. },
  115. even: function() {
  116. return this.pushStack(jQuery.grep(this, function(_elem, i) {
  117. return (i + 1) % 2;
  118. }));
  119. },
  120. odd: function() {
  121. return this.pushStack(jQuery.grep(this, function(_elem, i) {
  122. return i % 2;
  123. }));
  124. },
  125. eq: function(i) {
  126. var len = this.length, j = +i + (i < 0 ? len : 0);
  127. return this.pushStack(j >= 0 && j < len ? [this[j]] : []);
  128. },
  129. end: function() {
  130. return this.prevObject || this.constructor();
  131. },
  132. // For internal use only.
  133. // Behaves like an Array's method, not like a jQuery method.
  134. push,
  135. sort: arr.sort,
  136. splice: arr.splice
  137. };
  138. jQuery.extend = jQuery.fn.extend = function() {
  139. var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false;
  140. if (typeof target === "boolean") {
  141. deep = target;
  142. target = arguments[i] || {};
  143. i++;
  144. }
  145. if (typeof target !== "object" && !isFunction(target)) {
  146. target = {};
  147. }
  148. if (i === length) {
  149. target = this;
  150. i--;
  151. }
  152. for (; i < length; i++) {
  153. if ((options = arguments[i]) != null) {
  154. for (name in options) {
  155. copy = options[name];
  156. if (name === "__proto__" || target === copy) {
  157. continue;
  158. }
  159. if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {
  160. src = target[name];
  161. if (copyIsArray && !Array.isArray(src)) {
  162. clone = [];
  163. } else if (!copyIsArray && !jQuery.isPlainObject(src)) {
  164. clone = {};
  165. } else {
  166. clone = src;
  167. }
  168. copyIsArray = false;
  169. target[name] = jQuery.extend(deep, clone, copy);
  170. } else if (copy !== void 0) {
  171. target[name] = copy;
  172. }
  173. }
  174. }
  175. }
  176. return target;
  177. };
  178. jQuery.extend({
  179. // Unique for each copy of jQuery on the page
  180. expando: "jQuery" + (version + Math.random()).replace(/\D/g, ""),
  181. // Assume jQuery is ready without the ready module
  182. isReady: true,
  183. error: function(msg) {
  184. throw new Error(msg);
  185. },
  186. noop: function() {
  187. },
  188. isPlainObject: function(obj) {
  189. var proto, Ctor;
  190. if (!obj || toString.call(obj) !== "[object Object]") {
  191. return false;
  192. }
  193. proto = getProto(obj);
  194. if (!proto) {
  195. return true;
  196. }
  197. Ctor = hasOwn.call(proto, "constructor") && proto.constructor;
  198. return typeof Ctor === "function" && fnToString.call(Ctor) === ObjectFunctionString;
  199. },
  200. isEmptyObject: function(obj) {
  201. var name;
  202. for (name in obj) {
  203. return false;
  204. }
  205. return true;
  206. },
  207. // Evaluates a script in a provided context; falls back to the global one
  208. // if not specified.
  209. globalEval: function(code, options, doc) {
  210. DOMEval(code, { nonce: options && options.nonce }, doc);
  211. },
  212. each: function(obj, callback) {
  213. var length, i = 0;
  214. if (isArrayLike(obj)) {
  215. length = obj.length;
  216. for (; i < length; i++) {
  217. if (callback.call(obj[i], i, obj[i]) === false) {
  218. break;
  219. }
  220. }
  221. } else {
  222. for (i in obj) {
  223. if (callback.call(obj[i], i, obj[i]) === false) {
  224. break;
  225. }
  226. }
  227. }
  228. return obj;
  229. },
  230. // Retrieve the text value of an array of DOM nodes
  231. text: function(elem) {
  232. var node, ret = "", i = 0, nodeType = elem.nodeType;
  233. if (!nodeType) {
  234. while (node = elem[i++]) {
  235. ret += jQuery.text(node);
  236. }
  237. }
  238. if (nodeType === 1 || nodeType === 11) {
  239. return elem.textContent;
  240. }
  241. if (nodeType === 9) {
  242. return elem.documentElement.textContent;
  243. }
  244. if (nodeType === 3 || nodeType === 4) {
  245. return elem.nodeValue;
  246. }
  247. return ret;
  248. },
  249. // results is for internal usage only
  250. makeArray: function(arr2, results) {
  251. var ret = results || [];
  252. if (arr2 != null) {
  253. if (isArrayLike(Object(arr2))) {
  254. jQuery.merge(
  255. ret,
  256. typeof arr2 === "string" ? [arr2] : arr2
  257. );
  258. } else {
  259. push.call(ret, arr2);
  260. }
  261. }
  262. return ret;
  263. },
  264. inArray: function(elem, arr2, i) {
  265. return arr2 == null ? -1 : indexOf.call(arr2, elem, i);
  266. },
  267. isXMLDoc: function(elem) {
  268. var namespace = elem && elem.namespaceURI, docElem = elem && (elem.ownerDocument || elem).documentElement;
  269. return !rhtmlSuffix.test(namespace || docElem && docElem.nodeName || "HTML");
  270. },
  271. // Support: Android <=4.0 only, PhantomJS 1 only
  272. // push.apply(_, arraylike) throws on ancient WebKit
  273. merge: function(first, second) {
  274. var len = +second.length, j = 0, i = first.length;
  275. for (; j < len; j++) {
  276. first[i++] = second[j];
  277. }
  278. first.length = i;
  279. return first;
  280. },
  281. grep: function(elems, callback, invert) {
  282. var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert;
  283. for (; i < length; i++) {
  284. callbackInverse = !callback(elems[i], i);
  285. if (callbackInverse !== callbackExpect) {
  286. matches.push(elems[i]);
  287. }
  288. }
  289. return matches;
  290. },
  291. // arg is for internal usage only
  292. map: function(elems, callback, arg) {
  293. var length, value, i = 0, ret = [];
  294. if (isArrayLike(elems)) {
  295. length = elems.length;
  296. for (; i < length; i++) {
  297. value = callback(elems[i], i, arg);
  298. if (value != null) {
  299. ret.push(value);
  300. }
  301. }
  302. } else {
  303. for (i in elems) {
  304. value = callback(elems[i], i, arg);
  305. if (value != null) {
  306. ret.push(value);
  307. }
  308. }
  309. }
  310. return flat(ret);
  311. },
  312. // A global GUID counter for objects
  313. guid: 1,
  314. // jQuery.support is not used in Core but other projects attach their
  315. // properties to it so it needs to exist.
  316. support
  317. });
  318. if (typeof Symbol === "function") {
  319. jQuery.fn[Symbol.iterator] = arr[Symbol.iterator];
  320. }
  321. jQuery.each(
  322. "Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
  323. function(_i, name) {
  324. class2type["[object " + name + "]"] = name.toLowerCase();
  325. }
  326. );
  327. function isArrayLike(obj) {
  328. var length = !!obj && "length" in obj && obj.length, type = toType(obj);
  329. if (isFunction(obj) || isWindow(obj)) {
  330. return false;
  331. }
  332. return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
  333. }
  334. function nodeName(elem, name) {
  335. return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
  336. }
  337. var pop = arr.pop;
  338. var sort = arr.sort;
  339. var splice = arr.splice;
  340. var whitespace = "[\\x20\\t\\r\\n\\f]";
  341. var rtrimCSS = new RegExp(
  342. "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$",
  343. "g"
  344. );
  345. jQuery.contains = function(a, b) {
  346. var bup = b && b.parentNode;
  347. return a === bup || !!(bup && bup.nodeType === 1 && // Support: IE 9 - 11+
  348. // IE doesn't have `contains` on SVG.
  349. (a.contains ? a.contains(bup) : a.compareDocumentPosition && a.compareDocumentPosition(bup) & 16));
  350. };
  351. var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
  352. function fcssescape(ch, asCodePoint) {
  353. if (asCodePoint) {
  354. if (ch === "\0") {
  355. return "�";
  356. }
  357. return ch.slice(0, -1) + "\\" + ch.charCodeAt(ch.length - 1).toString(16) + " ";
  358. }
  359. return "\\" + ch;
  360. }
  361. jQuery.escapeSelector = function(sel) {
  362. return (sel + "").replace(rcssescape, fcssescape);
  363. };
  364. var preferredDoc = document, pushNative = push;
  365. (function() {
  366. var i, Expr, outermostContext, sortInput, hasDuplicate, push2 = pushNative, document2, documentElement2, documentIsHTML, rbuggyQSA, matches, expando = jQuery.expando, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), nonnativeSelectorCache = createCache(), sortOrder = function(a, b) {
  367. if (a === b) {
  368. hasDuplicate = true;
  369. }
  370. return 0;
  371. }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + // Operator (capture 2)
  372. "*([*^$|!~]?=)" + whitespace + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
  373. `*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + identifier + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + attributes + ")*)|.*)\\)|)", rwhitespace = new RegExp(whitespace + "+", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*"), rdescend = new RegExp(whitespace + "|>"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = {
  374. ID: new RegExp("^#(" + identifier + ")"),
  375. CLASS: new RegExp("^\\.(" + identifier + ")"),
  376. TAG: new RegExp("^(" + identifier + "|[*])"),
  377. ATTR: new RegExp("^" + attributes),
  378. PSEUDO: new RegExp("^" + pseudos),
  379. CHILD: new RegExp(
  380. "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)",
  381. "i"
  382. ),
  383. bool: new RegExp("^(?:" + booleans + ")$", "i"),
  384. // For use in libraries implementing .is()
  385. // We use this for POS matching in `select`
  386. needsContext: new RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")
  387. }, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rquickExpr2 = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, runescape = new RegExp("\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g"), funescape = function(escape, nonHex) {
  388. var high = "0x" + escape.slice(1) - 65536;
  389. if (nonHex) {
  390. return nonHex;
  391. }
  392. return high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);
  393. }, unloadHandler = function() {
  394. setDocument();
  395. }, inDisabledFieldset = addCombinator(
  396. function(elem) {
  397. return elem.disabled === true && nodeName(elem, "fieldset");
  398. },
  399. { dir: "parentNode", next: "legend" }
  400. );
  401. function safeActiveElement() {
  402. try {
  403. return document2.activeElement;
  404. } catch (err) {
  405. }
  406. }
  407. try {
  408. push2.apply(
  409. arr = slice.call(preferredDoc.childNodes),
  410. preferredDoc.childNodes
  411. );
  412. arr[preferredDoc.childNodes.length].nodeType;
  413. } catch (e) {
  414. push2 = {
  415. apply: function(target, els) {
  416. pushNative.apply(target, slice.call(els));
  417. },
  418. call: function(target) {
  419. pushNative.apply(target, slice.call(arguments, 1));
  420. }
  421. };
  422. }
  423. function find(selector, context, results, seed) {
  424. var m, i2, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, nodeType = context ? context.nodeType : 9;
  425. results = results || [];
  426. if (typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11) {
  427. return results;
  428. }
  429. if (!seed) {
  430. setDocument(context);
  431. context = context || document2;
  432. if (documentIsHTML) {
  433. if (nodeType !== 11 && (match = rquickExpr2.exec(selector))) {
  434. if (m = match[1]) {
  435. if (nodeType === 9) {
  436. if (elem = context.getElementById(m)) {
  437. if (elem.id === m) {
  438. push2.call(results, elem);
  439. return results;
  440. }
  441. } else {
  442. return results;
  443. }
  444. } else {
  445. if (newContext && (elem = newContext.getElementById(m)) && find.contains(context, elem) && elem.id === m) {
  446. push2.call(results, elem);
  447. return results;
  448. }
  449. }
  450. } else if (match[2]) {
  451. push2.apply(results, context.getElementsByTagName(selector));
  452. return results;
  453. } else if ((m = match[3]) && context.getElementsByClassName) {
  454. push2.apply(results, context.getElementsByClassName(m));
  455. return results;
  456. }
  457. }
  458. if (!nonnativeSelectorCache[selector + " "] && (!rbuggyQSA || !rbuggyQSA.test(selector))) {
  459. newSelector = selector;
  460. newContext = context;
  461. if (nodeType === 1 && (rdescend.test(selector) || rleadingCombinator.test(selector))) {
  462. newContext = rsibling.test(selector) && testContext(context.parentNode) || context;
  463. if (newContext != context || !support.scope) {
  464. if (nid = context.getAttribute("id")) {
  465. nid = jQuery.escapeSelector(nid);
  466. } else {
  467. context.setAttribute("id", nid = expando);
  468. }
  469. }
  470. groups = tokenize(selector);
  471. i2 = groups.length;
  472. while (i2--) {
  473. groups[i2] = (nid ? "#" + nid : ":scope") + " " + toSelector(groups[i2]);
  474. }
  475. newSelector = groups.join(",");
  476. }
  477. try {
  478. push2.apply(
  479. results,
  480. newContext.querySelectorAll(newSelector)
  481. );
  482. return results;
  483. } catch (qsaError) {
  484. nonnativeSelectorCache(selector, true);
  485. } finally {
  486. if (nid === expando) {
  487. context.removeAttribute("id");
  488. }
  489. }
  490. }
  491. }
  492. }
  493. return select(selector.replace(rtrimCSS, "$1"), context, results, seed);
  494. }
  495. function createCache() {
  496. var keys = [];
  497. function cache(key, value) {
  498. if (keys.push(key + " ") > Expr.cacheLength) {
  499. delete cache[keys.shift()];
  500. }
  501. return cache[key + " "] = value;
  502. }
  503. return cache;
  504. }
  505. function markFunction(fn) {
  506. fn[expando] = true;
  507. return fn;
  508. }
  509. function assert(fn) {
  510. var el = document2.createElement("fieldset");
  511. try {
  512. return !!fn(el);
  513. } catch (e) {
  514. return false;
  515. } finally {
  516. if (el.parentNode) {
  517. el.parentNode.removeChild(el);
  518. }
  519. el = null;
  520. }
  521. }
  522. function createInputPseudo(type) {
  523. return function(elem) {
  524. return nodeName(elem, "input") && elem.type === type;
  525. };
  526. }
  527. function createButtonPseudo(type) {
  528. return function(elem) {
  529. return (nodeName(elem, "input") || nodeName(elem, "button")) && elem.type === type;
  530. };
  531. }
  532. function createDisabledPseudo(disabled) {
  533. return function(elem) {
  534. if ("form" in elem) {
  535. if (elem.parentNode && elem.disabled === false) {
  536. if ("label" in elem) {
  537. if ("label" in elem.parentNode) {
  538. return elem.parentNode.disabled === disabled;
  539. } else {
  540. return elem.disabled === disabled;
  541. }
  542. }
  543. return elem.isDisabled === disabled || // Where there is no isDisabled, check manually
  544. elem.isDisabled !== !disabled && inDisabledFieldset(elem) === disabled;
  545. }
  546. return elem.disabled === disabled;
  547. } else if ("label" in elem) {
  548. return elem.disabled === disabled;
  549. }
  550. return false;
  551. };
  552. }
  553. function createPositionalPseudo(fn) {
  554. return markFunction(function(argument) {
  555. argument = +argument;
  556. return markFunction(function(seed, matches2) {
  557. var j, matchIndexes = fn([], seed.length, argument), i2 = matchIndexes.length;
  558. while (i2--) {
  559. if (seed[j = matchIndexes[i2]]) {
  560. seed[j] = !(matches2[j] = seed[j]);
  561. }
  562. }
  563. });
  564. });
  565. }
  566. function testContext(context) {
  567. return context && typeof context.getElementsByTagName !== "undefined" && context;
  568. }
  569. function setDocument(node) {
  570. var subWindow, doc = node ? node.ownerDocument || node : preferredDoc;
  571. if (doc == document2 || doc.nodeType !== 9 || !doc.documentElement) {
  572. return document2;
  573. }
  574. document2 = doc;
  575. documentElement2 = document2.documentElement;
  576. documentIsHTML = !jQuery.isXMLDoc(document2);
  577. matches = documentElement2.matches || documentElement2.webkitMatchesSelector || documentElement2.msMatchesSelector;
  578. if (documentElement2.msMatchesSelector && // Support: IE 11+, Edge 17 - 18+
  579. // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
  580. // two documents; shallow comparisons work.
  581. // eslint-disable-next-line eqeqeq
  582. preferredDoc != document2 && (subWindow = document2.defaultView) && subWindow.top !== subWindow) {
  583. subWindow.addEventListener("unload", unloadHandler);
  584. }
  585. support.getById = assert(function(el) {
  586. documentElement2.appendChild(el).id = jQuery.expando;
  587. return !document2.getElementsByName || !document2.getElementsByName(jQuery.expando).length;
  588. });
  589. support.disconnectedMatch = assert(function(el) {
  590. return matches.call(el, "*");
  591. });
  592. support.scope = assert(function() {
  593. return document2.querySelectorAll(":scope");
  594. });
  595. support.cssHas = assert(function() {
  596. try {
  597. document2.querySelector(":has(*,:jqfake)");
  598. return false;
  599. } catch (e) {
  600. return true;
  601. }
  602. });
  603. if (support.getById) {
  604. Expr.filter.ID = function(id) {
  605. var attrId = id.replace(runescape, funescape);
  606. return function(elem) {
  607. return elem.getAttribute("id") === attrId;
  608. };
  609. };
  610. Expr.find.ID = function(id, context) {
  611. if (typeof context.getElementById !== "undefined" && documentIsHTML) {
  612. var elem = context.getElementById(id);
  613. return elem ? [elem] : [];
  614. }
  615. };
  616. } else {
  617. Expr.filter.ID = function(id) {
  618. var attrId = id.replace(runescape, funescape);
  619. return function(elem) {
  620. var node2 = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
  621. return node2 && node2.value === attrId;
  622. };
  623. };
  624. Expr.find.ID = function(id, context) {
  625. if (typeof context.getElementById !== "undefined" && documentIsHTML) {
  626. var node2, i2, elems, elem = context.getElementById(id);
  627. if (elem) {
  628. node2 = elem.getAttributeNode("id");
  629. if (node2 && node2.value === id) {
  630. return [elem];
  631. }
  632. elems = context.getElementsByName(id);
  633. i2 = 0;
  634. while (elem = elems[i2++]) {
  635. node2 = elem.getAttributeNode("id");
  636. if (node2 && node2.value === id) {
  637. return [elem];
  638. }
  639. }
  640. }
  641. return [];
  642. }
  643. };
  644. }
  645. Expr.find.TAG = function(tag, context) {
  646. if (typeof context.getElementsByTagName !== "undefined") {
  647. return context.getElementsByTagName(tag);
  648. } else {
  649. return context.querySelectorAll(tag);
  650. }
  651. };
  652. Expr.find.CLASS = function(className, context) {
  653. if (typeof context.getElementsByClassName !== "undefined" && documentIsHTML) {
  654. return context.getElementsByClassName(className);
  655. }
  656. };
  657. rbuggyQSA = [];
  658. assert(function(el) {
  659. var input;
  660. documentElement2.appendChild(el).innerHTML = "<a id='" + expando + "' href='' disabled='disabled'></a><select id='" + expando + "-\r\\' disabled='disabled'><option selected=''></option></select>";
  661. if (!el.querySelectorAll("[selected]").length) {
  662. rbuggyQSA.push("\\[" + whitespace + "*(?:value|" + booleans + ")");
  663. }
  664. if (!el.querySelectorAll("[id~=" + expando + "-]").length) {
  665. rbuggyQSA.push("~=");
  666. }
  667. if (!el.querySelectorAll("a#" + expando + "+*").length) {
  668. rbuggyQSA.push(".#.+[+~]");
  669. }
  670. if (!el.querySelectorAll(":checked").length) {
  671. rbuggyQSA.push(":checked");
  672. }
  673. input = document2.createElement("input");
  674. input.setAttribute("type", "hidden");
  675. el.appendChild(input).setAttribute("name", "D");
  676. documentElement2.appendChild(el).disabled = true;
  677. if (el.querySelectorAll(":disabled").length !== 2) {
  678. rbuggyQSA.push(":enabled", ":disabled");
  679. }
  680. input = document2.createElement("input");
  681. input.setAttribute("name", "");
  682. el.appendChild(input);
  683. if (!el.querySelectorAll("[name='']").length) {
  684. rbuggyQSA.push("\\[" + whitespace + "*name" + whitespace + "*=" + whitespace + `*(?:''|"")`);
  685. }
  686. });
  687. if (!support.cssHas) {
  688. rbuggyQSA.push(":has");
  689. }
  690. rbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join("|"));
  691. sortOrder = function(a, b) {
  692. if (a === b) {
  693. hasDuplicate = true;
  694. return 0;
  695. }
  696. var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
  697. if (compare) {
  698. return compare;
  699. }
  700. compare = (a.ownerDocument || a) == (b.ownerDocument || b) ? a.compareDocumentPosition(b) : (
  701. // Otherwise we know they are disconnected
  702. 1
  703. );
  704. if (compare & 1 || !support.sortDetached && b.compareDocumentPosition(a) === compare) {
  705. if (a === document2 || a.ownerDocument == preferredDoc && find.contains(preferredDoc, a)) {
  706. return -1;
  707. }
  708. if (b === document2 || b.ownerDocument == preferredDoc && find.contains(preferredDoc, b)) {
  709. return 1;
  710. }
  711. return sortInput ? indexOf.call(sortInput, a) - indexOf.call(sortInput, b) : 0;
  712. }
  713. return compare & 4 ? -1 : 1;
  714. };
  715. return document2;
  716. }
  717. find.matches = function(expr, elements) {
  718. return find(expr, null, null, elements);
  719. };
  720. find.matchesSelector = function(elem, expr) {
  721. setDocument(elem);
  722. if (documentIsHTML && !nonnativeSelectorCache[expr + " "] && (!rbuggyQSA || !rbuggyQSA.test(expr))) {
  723. try {
  724. var ret = matches.call(elem, expr);
  725. if (ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document
  726. // fragment in IE 9
  727. elem.document && elem.document.nodeType !== 11) {
  728. return ret;
  729. }
  730. } catch (e) {
  731. nonnativeSelectorCache(expr, true);
  732. }
  733. }
  734. return find(expr, document2, null, [elem]).length > 0;
  735. };
  736. find.contains = function(context, elem) {
  737. if ((context.ownerDocument || context) != document2) {
  738. setDocument(context);
  739. }
  740. return jQuery.contains(context, elem);
  741. };
  742. find.attr = function(elem, name) {
  743. if ((elem.ownerDocument || elem) != document2) {
  744. setDocument(elem);
  745. }
  746. var fn = Expr.attrHandle[name.toLowerCase()], val = fn && hasOwn.call(Expr.attrHandle, name.toLowerCase()) ? fn(elem, name, !documentIsHTML) : void 0;
  747. if (val !== void 0) {
  748. return val;
  749. }
  750. return elem.getAttribute(name);
  751. };
  752. find.error = function(msg) {
  753. throw new Error("Syntax error, unrecognized expression: " + msg);
  754. };
  755. jQuery.uniqueSort = function(results) {
  756. var elem, duplicates = [], j = 0, i2 = 0;
  757. hasDuplicate = !support.sortStable;
  758. sortInput = !support.sortStable && slice.call(results, 0);
  759. sort.call(results, sortOrder);
  760. if (hasDuplicate) {
  761. while (elem = results[i2++]) {
  762. if (elem === results[i2]) {
  763. j = duplicates.push(i2);
  764. }
  765. }
  766. while (j--) {
  767. splice.call(results, duplicates[j], 1);
  768. }
  769. }
  770. sortInput = null;
  771. return results;
  772. };
  773. jQuery.fn.uniqueSort = function() {
  774. return this.pushStack(jQuery.uniqueSort(slice.apply(this)));
  775. };
  776. Expr = jQuery.expr = {
  777. // Can be adjusted by the user
  778. cacheLength: 50,
  779. createPseudo: markFunction,
  780. match: matchExpr,
  781. attrHandle: {},
  782. find: {},
  783. relative: {
  784. ">": { dir: "parentNode", first: true },
  785. " ": { dir: "parentNode" },
  786. "+": { dir: "previousSibling", first: true },
  787. "~": { dir: "previousSibling" }
  788. },
  789. preFilter: {
  790. ATTR: function(match) {
  791. match[1] = match[1].replace(runescape, funescape);
  792. match[3] = (match[3] || match[4] || match[5] || "").replace(runescape, funescape);
  793. if (match[2] === "~=") {
  794. match[3] = " " + match[3] + " ";
  795. }
  796. return match.slice(0, 4);
  797. },
  798. CHILD: function(match) {
  799. match[1] = match[1].toLowerCase();
  800. if (match[1].slice(0, 3) === "nth") {
  801. if (!match[3]) {
  802. find.error(match[0]);
  803. }
  804. match[4] = +(match[4] ? match[5] + (match[6] || 1) : 2 * (match[3] === "even" || match[3] === "odd"));
  805. match[5] = +(match[7] + match[8] || match[3] === "odd");
  806. } else if (match[3]) {
  807. find.error(match[0]);
  808. }
  809. return match;
  810. },
  811. PSEUDO: function(match) {
  812. var excess, unquoted = !match[6] && match[2];
  813. if (matchExpr.CHILD.test(match[0])) {
  814. return null;
  815. }
  816. if (match[3]) {
  817. match[2] = match[4] || match[5] || "";
  818. } else if (unquoted && rpseudo.test(unquoted) && // Get excess from tokenize (recursively)
  819. (excess = tokenize(unquoted, true)) && // advance to the next closing parenthesis
  820. (excess = unquoted.indexOf(")", unquoted.length - excess) - unquoted.length)) {
  821. match[0] = match[0].slice(0, excess);
  822. match[2] = unquoted.slice(0, excess);
  823. }
  824. return match.slice(0, 3);
  825. }
  826. },
  827. filter: {
  828. TAG: function(nodeNameSelector) {
  829. var expectedNodeName = nodeNameSelector.replace(runescape, funescape).toLowerCase();
  830. return nodeNameSelector === "*" ? function() {
  831. return true;
  832. } : function(elem) {
  833. return nodeName(elem, expectedNodeName);
  834. };
  835. },
  836. CLASS: function(className) {
  837. var pattern = classCache[className + " "];
  838. return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)")) && classCache(className, function(elem) {
  839. return pattern.test(
  840. typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || ""
  841. );
  842. });
  843. },
  844. ATTR: function(name, operator, check) {
  845. return function(elem) {
  846. var result = find.attr(elem, name);
  847. if (result == null) {
  848. return operator === "!=";
  849. }
  850. if (!operator) {
  851. return true;
  852. }
  853. result += "";
  854. if (operator === "=") {
  855. return result === check;
  856. }
  857. if (operator === "!=") {
  858. return result !== check;
  859. }
  860. if (operator === "^=") {
  861. return check && result.indexOf(check) === 0;
  862. }
  863. if (operator === "*=") {
  864. return check && result.indexOf(check) > -1;
  865. }
  866. if (operator === "$=") {
  867. return check && result.slice(-check.length) === check;
  868. }
  869. if (operator === "~=") {
  870. return (" " + result.replace(rwhitespace, " ") + " ").indexOf(check) > -1;
  871. }
  872. if (operator === "|=") {
  873. return result === check || result.slice(0, check.length + 1) === check + "-";
  874. }
  875. return false;
  876. };
  877. },
  878. CHILD: function(type, what, _argument, first, last) {
  879. var simple = type.slice(0, 3) !== "nth", forward = type.slice(-4) !== "last", ofType = what === "of-type";
  880. return first === 1 && last === 0 ? (
  881. // Shortcut for :nth-*(n)
  882. function(elem) {
  883. return !!elem.parentNode;
  884. }
  885. ) : function(elem, _context, xml) {
  886. var cache, outerCache, node, nodeIndex, start, dir2 = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType, diff = false;
  887. if (parent) {
  888. if (simple) {
  889. while (dir2) {
  890. node = elem;
  891. while (node = node[dir2]) {
  892. if (ofType ? nodeName(node, name) : node.nodeType === 1) {
  893. return false;
  894. }
  895. }
  896. start = dir2 = type === "only" && !start && "nextSibling";
  897. }
  898. return true;
  899. }
  900. start = [forward ? parent.firstChild : parent.lastChild];
  901. if (forward && useCache) {
  902. outerCache = parent[expando] || (parent[expando] = {});
  903. cache = outerCache[type] || [];
  904. nodeIndex = cache[0] === dirruns && cache[1];
  905. diff = nodeIndex && cache[2];
  906. node = nodeIndex && parent.childNodes[nodeIndex];
  907. while (node = ++nodeIndex && node && node[dir2] || // Fallback to seeking `elem` from the start
  908. (diff = nodeIndex = 0) || start.pop()) {
  909. if (node.nodeType === 1 && ++diff && node === elem) {
  910. outerCache[type] = [dirruns, nodeIndex, diff];
  911. break;
  912. }
  913. }
  914. } else {
  915. if (useCache) {
  916. outerCache = elem[expando] || (elem[expando] = {});
  917. cache = outerCache[type] || [];
  918. nodeIndex = cache[0] === dirruns && cache[1];
  919. diff = nodeIndex;
  920. }
  921. if (diff === false) {
  922. while (node = ++nodeIndex && node && node[dir2] || (diff = nodeIndex = 0) || start.pop()) {
  923. if ((ofType ? nodeName(node, name) : node.nodeType === 1) && ++diff) {
  924. if (useCache) {
  925. outerCache = node[expando] || (node[expando] = {});
  926. outerCache[type] = [dirruns, diff];
  927. }
  928. if (node === elem) {
  929. break;
  930. }
  931. }
  932. }
  933. }
  934. }
  935. diff -= last;
  936. return diff === first || diff % first === 0 && diff / first >= 0;
  937. }
  938. };
  939. },
  940. PSEUDO: function(pseudo, argument) {
  941. var args, fn = Expr.pseudos[pseudo] || Expr.setFilters[pseudo.toLowerCase()] || find.error("unsupported pseudo: " + pseudo);
  942. if (fn[expando]) {
  943. return fn(argument);
  944. }
  945. if (fn.length > 1) {
  946. args = [pseudo, pseudo, "", argument];
  947. return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase()) ? markFunction(function(seed, matches2) {
  948. var idx, matched = fn(seed, argument), i2 = matched.length;
  949. while (i2--) {
  950. idx = indexOf.call(seed, matched[i2]);
  951. seed[idx] = !(matches2[idx] = matched[i2]);
  952. }
  953. }) : function(elem) {
  954. return fn(elem, 0, args);
  955. };
  956. }
  957. return fn;
  958. }
  959. },
  960. pseudos: {
  961. // Potentially complex pseudos
  962. not: markFunction(function(selector) {
  963. var input = [], results = [], matcher = compile(selector.replace(rtrimCSS, "$1"));
  964. return matcher[expando] ? markFunction(function(seed, matches2, _context, xml) {
  965. var elem, unmatched = matcher(seed, null, xml, []), i2 = seed.length;
  966. while (i2--) {
  967. if (elem = unmatched[i2]) {
  968. seed[i2] = !(matches2[i2] = elem);
  969. }
  970. }
  971. }) : function(elem, _context, xml) {
  972. input[0] = elem;
  973. matcher(input, null, xml, results);
  974. input[0] = null;
  975. return !results.pop();
  976. };
  977. }),
  978. has: markFunction(function(selector) {
  979. return function(elem) {
  980. return find(selector, elem).length > 0;
  981. };
  982. }),
  983. contains: markFunction(function(text) {
  984. text = text.replace(runescape, funescape);
  985. return function(elem) {
  986. return (elem.textContent || jQuery.text(elem)).indexOf(text) > -1;
  987. };
  988. }),
  989. // "Whether an element is represented by a :lang() selector
  990. // is based solely on the element's language value
  991. // being equal to the identifier C,
  992. // or beginning with the identifier C immediately followed by "-".
  993. // The matching of C against the element's language value is performed case-insensitively.
  994. // The identifier C does not have to be a valid language name."
  995. // https://www.w3.org/TR/selectors/#lang-pseudo
  996. lang: markFunction(function(lang) {
  997. if (!ridentifier.test(lang || "")) {
  998. find.error("unsupported lang: " + lang);
  999. }
  1000. lang = lang.replace(runescape, funescape).toLowerCase();
  1001. return function(elem) {
  1002. var elemLang;
  1003. do {
  1004. if (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) {
  1005. elemLang = elemLang.toLowerCase();
  1006. return elemLang === lang || elemLang.indexOf(lang + "-") === 0;
  1007. }
  1008. } while ((elem = elem.parentNode) && elem.nodeType === 1);
  1009. return false;
  1010. };
  1011. }),
  1012. // Miscellaneous
  1013. target: function(elem) {
  1014. var hash = window2.location && window2.location.hash;
  1015. return hash && hash.slice(1) === elem.id;
  1016. },
  1017. root: function(elem) {
  1018. return elem === documentElement2;
  1019. },
  1020. focus: function(elem) {
  1021. return elem === safeActiveElement() && document2.hasFocus() && !!(elem.type || elem.href || ~elem.tabIndex);
  1022. },
  1023. // Boolean properties
  1024. enabled: createDisabledPseudo(false),
  1025. disabled: createDisabledPseudo(true),
  1026. checked: function(elem) {
  1027. return nodeName(elem, "input") && !!elem.checked || nodeName(elem, "option") && !!elem.selected;
  1028. },
  1029. selected: function(elem) {
  1030. if (elem.parentNode) {
  1031. elem.parentNode.selectedIndex;
  1032. }
  1033. return elem.selected === true;
  1034. },
  1035. // Contents
  1036. empty: function(elem) {
  1037. for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
  1038. if (elem.nodeType < 6) {
  1039. return false;
  1040. }
  1041. }
  1042. return true;
  1043. },
  1044. parent: function(elem) {
  1045. return !Expr.pseudos.empty(elem);
  1046. },
  1047. // Element/input types
  1048. header: function(elem) {
  1049. return rheader.test(elem.nodeName);
  1050. },
  1051. input: function(elem) {
  1052. return rinputs.test(elem.nodeName);
  1053. },
  1054. button: function(elem) {
  1055. return nodeName(elem, "input") && elem.type === "button" || nodeName(elem, "button");
  1056. },
  1057. text: function(elem) {
  1058. var attr;
  1059. return nodeName(elem, "input") && elem.type === "text" && // Support: IE <10 only
  1060. // New HTML5 attribute values (e.g., "search") appear
  1061. // with elem.type === "text"
  1062. ((attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text");
  1063. },
  1064. // Position-in-collection
  1065. first: createPositionalPseudo(function() {
  1066. return [0];
  1067. }),
  1068. last: createPositionalPseudo(function(_matchIndexes, length) {
  1069. return [length - 1];
  1070. }),
  1071. eq: createPositionalPseudo(function(_matchIndexes, length, argument) {
  1072. return [argument < 0 ? argument + length : argument];
  1073. }),
  1074. even: createPositionalPseudo(function(matchIndexes, length) {
  1075. var i2 = 0;
  1076. for (; i2 < length; i2 += 2) {
  1077. matchIndexes.push(i2);
  1078. }
  1079. return matchIndexes;
  1080. }),
  1081. odd: createPositionalPseudo(function(matchIndexes, length) {
  1082. var i2 = 1;
  1083. for (; i2 < length; i2 += 2) {
  1084. matchIndexes.push(i2);
  1085. }
  1086. return matchIndexes;
  1087. }),
  1088. lt: createPositionalPseudo(function(matchIndexes, length, argument) {
  1089. var i2;
  1090. if (argument < 0) {
  1091. i2 = argument + length;
  1092. } else if (argument > length) {
  1093. i2 = length;
  1094. } else {
  1095. i2 = argument;
  1096. }
  1097. for (; --i2 >= 0; ) {
  1098. matchIndexes.push(i2);
  1099. }
  1100. return matchIndexes;
  1101. }),
  1102. gt: createPositionalPseudo(function(matchIndexes, length, argument) {
  1103. var i2 = argument < 0 ? argument + length : argument;
  1104. for (; ++i2 < length; ) {
  1105. matchIndexes.push(i2);
  1106. }
  1107. return matchIndexes;
  1108. })
  1109. }
  1110. };
  1111. Expr.pseudos.nth = Expr.pseudos.eq;
  1112. for (i in { radio: true, checkbox: true, file: true, password: true, image: true }) {
  1113. Expr.pseudos[i] = createInputPseudo(i);
  1114. }
  1115. for (i in { submit: true, reset: true }) {
  1116. Expr.pseudos[i] = createButtonPseudo(i);
  1117. }
  1118. function setFilters() {
  1119. }
  1120. setFilters.prototype = Expr.filters = Expr.pseudos;
  1121. Expr.setFilters = new setFilters();
  1122. function tokenize(selector, parseOnly) {
  1123. var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[selector + " "];
  1124. if (cached) {
  1125. return parseOnly ? 0 : cached.slice(0);
  1126. }
  1127. soFar = selector;
  1128. groups = [];
  1129. preFilters = Expr.preFilter;
  1130. while (soFar) {
  1131. if (!matched || (match = rcomma.exec(soFar))) {
  1132. if (match) {
  1133. soFar = soFar.slice(match[0].length) || soFar;
  1134. }
  1135. groups.push(tokens = []);
  1136. }
  1137. matched = false;
  1138. if (match = rleadingCombinator.exec(soFar)) {
  1139. matched = match.shift();
  1140. tokens.push({
  1141. value: matched,
  1142. // Cast descendant combinators to space
  1143. type: match[0].replace(rtrimCSS, " ")
  1144. });
  1145. soFar = soFar.slice(matched.length);
  1146. }
  1147. for (type in Expr.filter) {
  1148. if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match)))) {
  1149. matched = match.shift();
  1150. tokens.push({
  1151. value: matched,
  1152. type,
  1153. matches: match
  1154. });
  1155. soFar = soFar.slice(matched.length);
  1156. }
  1157. }
  1158. if (!matched) {
  1159. break;
  1160. }
  1161. }
  1162. if (parseOnly) {
  1163. return soFar.length;
  1164. }
  1165. return soFar ? find.error(selector) : (
  1166. // Cache the tokens
  1167. tokenCache(selector, groups).slice(0)
  1168. );
  1169. }
  1170. function toSelector(tokens) {
  1171. var i2 = 0, len = tokens.length, selector = "";
  1172. for (; i2 < len; i2++) {
  1173. selector += tokens[i2].value;
  1174. }
  1175. return selector;
  1176. }
  1177. function addCombinator(matcher, combinator, base) {
  1178. var dir2 = combinator.dir, skip = combinator.next, key = skip || dir2, checkNonElements = base && key === "parentNode", doneName = done++;
  1179. return combinator.first ? (
  1180. // Check against closest ancestor/preceding element
  1181. function(elem, context, xml) {
  1182. while (elem = elem[dir2]) {
  1183. if (elem.nodeType === 1 || checkNonElements) {
  1184. return matcher(elem, context, xml);
  1185. }
  1186. }
  1187. return false;
  1188. }
  1189. ) : (
  1190. // Check against all ancestor/preceding elements
  1191. function(elem, context, xml) {
  1192. var oldCache, outerCache, newCache = [dirruns, doneName];
  1193. if (xml) {
  1194. while (elem = elem[dir2]) {
  1195. if (elem.nodeType === 1 || checkNonElements) {
  1196. if (matcher(elem, context, xml)) {
  1197. return true;
  1198. }
  1199. }
  1200. }
  1201. } else {
  1202. while (elem = elem[dir2]) {
  1203. if (elem.nodeType === 1 || checkNonElements) {
  1204. outerCache = elem[expando] || (elem[expando] = {});
  1205. if (skip && nodeName(elem, skip)) {
  1206. elem = elem[dir2] || elem;
  1207. } else if ((oldCache = outerCache[key]) && oldCache[0] === dirruns && oldCache[1] === doneName) {
  1208. return newCache[2] = oldCache[2];
  1209. } else {
  1210. outerCache[key] = newCache;
  1211. if (newCache[2] = matcher(elem, context, xml)) {
  1212. return true;
  1213. }
  1214. }
  1215. }
  1216. }
  1217. }
  1218. return false;
  1219. }
  1220. );
  1221. }
  1222. function elementMatcher(matchers) {
  1223. return matchers.length > 1 ? function(elem, context, xml) {
  1224. var i2 = matchers.length;
  1225. while (i2--) {
  1226. if (!matchers[i2](elem, context, xml)) {
  1227. return false;
  1228. }
  1229. }
  1230. return true;
  1231. } : matchers[0];
  1232. }
  1233. function multipleContexts(selector, contexts, results) {
  1234. var i2 = 0, len = contexts.length;
  1235. for (; i2 < len; i2++) {
  1236. find(selector, contexts[i2], results);
  1237. }
  1238. return results;
  1239. }
  1240. function condense(unmatched, map, filter, context, xml) {
  1241. var elem, newUnmatched = [], i2 = 0, len = unmatched.length, mapped = map != null;
  1242. for (; i2 < len; i2++) {
  1243. if (elem = unmatched[i2]) {
  1244. if (!filter || filter(elem, context, xml)) {
  1245. newUnmatched.push(elem);
  1246. if (mapped) {
  1247. map.push(i2);
  1248. }
  1249. }
  1250. }
  1251. }
  1252. return newUnmatched;
  1253. }
  1254. function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
  1255. if (postFilter && !postFilter[expando]) {
  1256. postFilter = setMatcher(postFilter);
  1257. }
  1258. if (postFinder && !postFinder[expando]) {
  1259. postFinder = setMatcher(postFinder, postSelector);
  1260. }
  1261. return markFunction(function(seed, results, context, xml) {
  1262. var temp, i2, elem, matcherOut, preMap = [], postMap = [], preexisting = results.length, elems = seed || multipleContexts(
  1263. selector || "*",
  1264. context.nodeType ? [context] : context,
  1265. []
  1266. ), matcherIn = preFilter && (seed || !selector) ? condense(elems, preMap, preFilter, context, xml) : elems;
  1267. if (matcher) {
  1268. matcherOut = postFinder || (seed ? preFilter : preexisting || postFilter) ? (
  1269. // ...intermediate processing is necessary
  1270. []
  1271. ) : (
  1272. // ...otherwise use results directly
  1273. results
  1274. );
  1275. matcher(matcherIn, matcherOut, context, xml);
  1276. } else {
  1277. matcherOut = matcherIn;
  1278. }
  1279. if (postFilter) {
  1280. temp = condense(matcherOut, postMap);
  1281. postFilter(temp, [], context, xml);
  1282. i2 = temp.length;
  1283. while (i2--) {
  1284. if (elem = temp[i2]) {
  1285. matcherOut[postMap[i2]] = !(matcherIn[postMap[i2]] = elem);
  1286. }
  1287. }
  1288. }
  1289. if (seed) {
  1290. if (postFinder || preFilter) {
  1291. if (postFinder) {
  1292. temp = [];
  1293. i2 = matcherOut.length;
  1294. while (i2--) {
  1295. if (elem = matcherOut[i2]) {
  1296. temp.push(matcherIn[i2] = elem);
  1297. }
  1298. }
  1299. postFinder(null, matcherOut = [], temp, xml);
  1300. }
  1301. i2 = matcherOut.length;
  1302. while (i2--) {
  1303. if ((elem = matcherOut[i2]) && (temp = postFinder ? indexOf.call(seed, elem) : preMap[i2]) > -1) {
  1304. seed[temp] = !(results[temp] = elem);
  1305. }
  1306. }
  1307. }
  1308. } else {
  1309. matcherOut = condense(
  1310. matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) : matcherOut
  1311. );
  1312. if (postFinder) {
  1313. postFinder(null, results, matcherOut, xml);
  1314. } else {
  1315. push2.apply(results, matcherOut);
  1316. }
  1317. }
  1318. });
  1319. }
  1320. function matcherFromTokens(tokens) {
  1321. var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i2 = leadingRelative ? 1 : 0, matchContext = addCombinator(function(elem) {
  1322. return elem === checkContext;
  1323. }, implicitRelative, true), matchAnyContext = addCombinator(function(elem) {
  1324. return indexOf.call(checkContext, elem) > -1;
  1325. }, implicitRelative, true), matchers = [function(elem, context, xml) {
  1326. var ret = !leadingRelative && (xml || context != outermostContext) || ((checkContext = context).nodeType ? matchContext(elem, context, xml) : matchAnyContext(elem, context, xml));
  1327. checkContext = null;
  1328. return ret;
  1329. }];
  1330. for (; i2 < len; i2++) {
  1331. if (matcher = Expr.relative[tokens[i2].type]) {
  1332. matchers = [addCombinator(elementMatcher(matchers), matcher)];
  1333. } else {
  1334. matcher = Expr.filter[tokens[i2].type].apply(null, tokens[i2].matches);
  1335. if (matcher[expando]) {
  1336. j = ++i2;
  1337. for (; j < len; j++) {
  1338. if (Expr.relative[tokens[j].type]) {
  1339. break;
  1340. }
  1341. }
  1342. return setMatcher(
  1343. i2 > 1 && elementMatcher(matchers),
  1344. i2 > 1 && toSelector(
  1345. // If the preceding token was a descendant combinator, insert an implicit any-element `*`
  1346. tokens.slice(0, i2 - 1).concat({ value: tokens[i2 - 2].type === " " ? "*" : "" })
  1347. ).replace(rtrimCSS, "$1"),
  1348. matcher,
  1349. i2 < j && matcherFromTokens(tokens.slice(i2, j)),
  1350. j < len && matcherFromTokens(tokens = tokens.slice(j)),
  1351. j < len && toSelector(tokens)
  1352. );
  1353. }
  1354. matchers.push(matcher);
  1355. }
  1356. }
  1357. return elementMatcher(matchers);
  1358. }
  1359. function matcherFromGroupMatchers(elementMatchers, setMatchers) {
  1360. var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function(seed, context, xml, results, outermost) {
  1361. var elem, j, matcher, matchedCount = 0, i2 = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", outermost), dirrunsUnique = dirruns += contextBackup == null ? 1 : Math.random() || 0.1, len = elems.length;
  1362. if (outermost) {
  1363. outermostContext = context == document2 || context || outermost;
  1364. }
  1365. for (; i2 !== len && (elem = elems[i2]) != null; i2++) {
  1366. if (byElement && elem) {
  1367. j = 0;
  1368. if (!context && elem.ownerDocument != document2) {
  1369. setDocument(elem);
  1370. xml = !documentIsHTML;
  1371. }
  1372. while (matcher = elementMatchers[j++]) {
  1373. if (matcher(elem, context || document2, xml)) {
  1374. push2.call(results, elem);
  1375. break;
  1376. }
  1377. }
  1378. if (outermost) {
  1379. dirruns = dirrunsUnique;
  1380. }
  1381. }
  1382. if (bySet) {
  1383. if (elem = !matcher && elem) {
  1384. matchedCount--;
  1385. }
  1386. if (seed) {
  1387. unmatched.push(elem);
  1388. }
  1389. }
  1390. }
  1391. matchedCount += i2;
  1392. if (bySet && i2 !== matchedCount) {
  1393. j = 0;
  1394. while (matcher = setMatchers[j++]) {
  1395. matcher(unmatched, setMatched, context, xml);
  1396. }
  1397. if (seed) {
  1398. if (matchedCount > 0) {
  1399. while (i2--) {
  1400. if (!(unmatched[i2] || setMatched[i2])) {
  1401. setMatched[i2] = pop.call(results);
  1402. }
  1403. }
  1404. }
  1405. setMatched = condense(setMatched);
  1406. }
  1407. push2.apply(results, setMatched);
  1408. if (outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1) {
  1409. jQuery.uniqueSort(results);
  1410. }
  1411. }
  1412. if (outermost) {
  1413. dirruns = dirrunsUnique;
  1414. outermostContext = contextBackup;
  1415. }
  1416. return unmatched;
  1417. };
  1418. return bySet ? markFunction(superMatcher) : superMatcher;
  1419. }
  1420. function compile(selector, match) {
  1421. var i2, setMatchers = [], elementMatchers = [], cached = compilerCache[selector + " "];
  1422. if (!cached) {
  1423. if (!match) {
  1424. match = tokenize(selector);
  1425. }
  1426. i2 = match.length;
  1427. while (i2--) {
  1428. cached = matcherFromTokens(match[i2]);
  1429. if (cached[expando]) {
  1430. setMatchers.push(cached);
  1431. } else {
  1432. elementMatchers.push(cached);
  1433. }
  1434. }
  1435. cached = compilerCache(
  1436. selector,
  1437. matcherFromGroupMatchers(elementMatchers, setMatchers)
  1438. );
  1439. cached.selector = selector;
  1440. }
  1441. return cached;
  1442. }
  1443. function select(selector, context, results, seed) {
  1444. var i2, tokens, token, type, find2, compiled = typeof selector === "function" && selector, match = !seed && tokenize(selector = compiled.selector || selector);
  1445. results = results || [];
  1446. if (match.length === 1) {
  1447. tokens = match[0] = match[0].slice(0);
  1448. if (tokens.length > 2 && (token = tokens[0]).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[tokens[1].type]) {
  1449. context = (Expr.find.ID(
  1450. token.matches[0].replace(runescape, funescape),
  1451. context
  1452. ) || [])[0];
  1453. if (!context) {
  1454. return results;
  1455. } else if (compiled) {
  1456. context = context.parentNode;
  1457. }
  1458. selector = selector.slice(tokens.shift().value.length);
  1459. }
  1460. i2 = matchExpr.needsContext.test(selector) ? 0 : tokens.length;
  1461. while (i2--) {
  1462. token = tokens[i2];
  1463. if (Expr.relative[type = token.type]) {
  1464. break;
  1465. }
  1466. if (find2 = Expr.find[type]) {
  1467. if (seed = find2(
  1468. token.matches[0].replace(runescape, funescape),
  1469. rsibling.test(tokens[0].type) && testContext(context.parentNode) || context
  1470. )) {
  1471. tokens.splice(i2, 1);
  1472. selector = seed.length && toSelector(tokens);
  1473. if (!selector) {
  1474. push2.apply(results, seed);
  1475. return results;
  1476. }
  1477. break;
  1478. }
  1479. }
  1480. }
  1481. }
  1482. (compiled || compile(selector, match))(
  1483. seed,
  1484. context,
  1485. !documentIsHTML,
  1486. results,
  1487. !context || rsibling.test(selector) && testContext(context.parentNode) || context
  1488. );
  1489. return results;
  1490. }
  1491. support.sortStable = expando.split("").sort(sortOrder).join("") === expando;
  1492. setDocument();
  1493. support.sortDetached = assert(function(el) {
  1494. return el.compareDocumentPosition(document2.createElement("fieldset")) & 1;
  1495. });
  1496. jQuery.find = find;
  1497. jQuery.expr[":"] = jQuery.expr.pseudos;
  1498. jQuery.unique = jQuery.uniqueSort;
  1499. find.compile = compile;
  1500. find.select = select;
  1501. find.setDocument = setDocument;
  1502. find.tokenize = tokenize;
  1503. find.escape = jQuery.escapeSelector;
  1504. find.getText = jQuery.text;
  1505. find.isXML = jQuery.isXMLDoc;
  1506. find.selectors = jQuery.expr;
  1507. find.support = jQuery.support;
  1508. find.uniqueSort = jQuery.uniqueSort;
  1509. })();
  1510. var dir = function(elem, dir2, until) {
  1511. var matched = [], truncate = until !== void 0;
  1512. while ((elem = elem[dir2]) && elem.nodeType !== 9) {
  1513. if (elem.nodeType === 1) {
  1514. if (truncate && jQuery(elem).is(until)) {
  1515. break;
  1516. }
  1517. matched.push(elem);
  1518. }
  1519. }
  1520. return matched;
  1521. };
  1522. var siblings = function(n, elem) {
  1523. var matched = [];
  1524. for (; n; n = n.nextSibling) {
  1525. if (n.nodeType === 1 && n !== elem) {
  1526. matched.push(n);
  1527. }
  1528. }
  1529. return matched;
  1530. };
  1531. var rneedsContext = jQuery.expr.match.needsContext;
  1532. var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  1533. function winnow(elements, qualifier, not) {
  1534. if (isFunction(qualifier)) {
  1535. return jQuery.grep(elements, function(elem, i) {
  1536. return !!qualifier.call(elem, i, elem) !== not;
  1537. });
  1538. }
  1539. if (qualifier.nodeType) {
  1540. return jQuery.grep(elements, function(elem) {
  1541. return elem === qualifier !== not;
  1542. });
  1543. }
  1544. if (typeof qualifier !== "string") {
  1545. return jQuery.grep(elements, function(elem) {
  1546. return indexOf.call(qualifier, elem) > -1 !== not;
  1547. });
  1548. }
  1549. return jQuery.filter(qualifier, elements, not);
  1550. }
  1551. jQuery.filter = function(expr, elems, not) {
  1552. var elem = elems[0];
  1553. if (not) {
  1554. expr = ":not(" + expr + ")";
  1555. }
  1556. if (elems.length === 1 && elem.nodeType === 1) {
  1557. return jQuery.find.matchesSelector(elem, expr) ? [elem] : [];
  1558. }
  1559. return jQuery.find.matches(expr, jQuery.grep(elems, function(elem2) {
  1560. return elem2.nodeType === 1;
  1561. }));
  1562. };
  1563. jQuery.fn.extend({
  1564. find: function(selector) {
  1565. var i, ret, len = this.length, self = this;
  1566. if (typeof selector !== "string") {
  1567. return this.pushStack(jQuery(selector).filter(function() {
  1568. for (i = 0; i < len; i++) {
  1569. if (jQuery.contains(self[i], this)) {
  1570. return true;
  1571. }
  1572. }
  1573. }));
  1574. }
  1575. ret = this.pushStack([]);
  1576. for (i = 0; i < len; i++) {
  1577. jQuery.find(selector, self[i], ret);
  1578. }
  1579. return len > 1 ? jQuery.uniqueSort(ret) : ret;
  1580. },
  1581. filter: function(selector) {
  1582. return this.pushStack(winnow(this, selector || [], false));
  1583. },
  1584. not: function(selector) {
  1585. return this.pushStack(winnow(this, selector || [], true));
  1586. },
  1587. is: function(selector) {
  1588. return !!winnow(
  1589. this,
  1590. // If this is a positional/relative selector, check membership in the returned set
  1591. // so $("p:first").is("p:last") won't return true for a doc with two "p".
  1592. typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [],
  1593. false
  1594. ).length;
  1595. }
  1596. });
  1597. var rootjQuery, rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function(selector, context, root) {
  1598. var match, elem;
  1599. if (!selector) {
  1600. return this;
  1601. }
  1602. root = root || rootjQuery;
  1603. if (typeof selector === "string") {
  1604. if (selector[0] === "<" && selector[selector.length - 1] === ">" && selector.length >= 3) {
  1605. match = [null, selector, null];
  1606. } else {
  1607. match = rquickExpr.exec(selector);
  1608. }
  1609. if (match && (match[1] || !context)) {
  1610. if (match[1]) {
  1611. context = context instanceof jQuery ? context[0] : context;
  1612. jQuery.merge(this, jQuery.parseHTML(
  1613. match[1],
  1614. context && context.nodeType ? context.ownerDocument || context : document,
  1615. true
  1616. ));
  1617. if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) {
  1618. for (match in context) {
  1619. if (isFunction(this[match])) {
  1620. this[match](context[match]);
  1621. } else {
  1622. this.attr(match, context[match]);
  1623. }
  1624. }
  1625. }
  1626. return this;
  1627. } else {
  1628. elem = document.getElementById(match[2]);
  1629. if (elem) {
  1630. this[0] = elem;
  1631. this.length = 1;
  1632. }
  1633. return this;
  1634. }
  1635. } else if (!context || context.jquery) {
  1636. return (context || root).find(selector);
  1637. } else {
  1638. return this.constructor(context).find(selector);
  1639. }
  1640. } else if (selector.nodeType) {
  1641. this[0] = selector;
  1642. this.length = 1;
  1643. return this;
  1644. } else if (isFunction(selector)) {
  1645. return root.ready !== void 0 ? root.ready(selector) : (
  1646. // Execute immediately if ready is not present
  1647. selector(jQuery)
  1648. );
  1649. }
  1650. return jQuery.makeArray(selector, this);
  1651. };
  1652. init.prototype = jQuery.fn;
  1653. rootjQuery = jQuery(document);
  1654. var rparentsprev = /^(?:parents|prev(?:Until|All))/, guaranteedUnique = {
  1655. children: true,
  1656. contents: true,
  1657. next: true,
  1658. prev: true
  1659. };
  1660. jQuery.fn.extend({
  1661. has: function(target) {
  1662. var targets = jQuery(target, this), l = targets.length;
  1663. return this.filter(function() {
  1664. var i = 0;
  1665. for (; i < l; i++) {
  1666. if (jQuery.contains(this, targets[i])) {
  1667. return true;
  1668. }
  1669. }
  1670. });
  1671. },
  1672. closest: function(selectors, context) {
  1673. var cur, i = 0, l = this.length, matched = [], targets = typeof selectors !== "string" && jQuery(selectors);
  1674. if (!rneedsContext.test(selectors)) {
  1675. for (; i < l; i++) {
  1676. for (cur = this[i]; cur && cur !== context; cur = cur.parentNode) {
  1677. if (cur.nodeType < 11 && (targets ? targets.index(cur) > -1 : (
  1678. // Don't pass non-elements to jQuery#find
  1679. cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors)
  1680. ))) {
  1681. matched.push(cur);
  1682. break;
  1683. }
  1684. }
  1685. }
  1686. }
  1687. return this.pushStack(matched.length > 1 ? jQuery.uniqueSort(matched) : matched);
  1688. },
  1689. // Determine the position of an element within the set
  1690. index: function(elem) {
  1691. if (!elem) {
  1692. return this[0] && this[0].parentNode ? this.first().prevAll().length : -1;
  1693. }
  1694. if (typeof elem === "string") {
  1695. return indexOf.call(jQuery(elem), this[0]);
  1696. }
  1697. return indexOf.call(
  1698. this,
  1699. // If it receives a jQuery object, the first element is used
  1700. elem.jquery ? elem[0] : elem
  1701. );
  1702. },
  1703. add: function(selector, context) {
  1704. return this.pushStack(
  1705. jQuery.uniqueSort(
  1706. jQuery.merge(this.get(), jQuery(selector, context))
  1707. )
  1708. );
  1709. },
  1710. addBack: function(selector) {
  1711. return this.add(
  1712. selector == null ? this.prevObject : this.prevObject.filter(selector)
  1713. );
  1714. }
  1715. });
  1716. function sibling(cur, dir2) {
  1717. while ((cur = cur[dir2]) && cur.nodeType !== 1) {
  1718. }
  1719. return cur;
  1720. }
  1721. jQuery.each({
  1722. parent: function(elem) {
  1723. var parent = elem.parentNode;
  1724. return parent && parent.nodeType !== 11 ? parent : null;
  1725. },
  1726. parents: function(elem) {
  1727. return dir(elem, "parentNode");
  1728. },
  1729. parentsUntil: function(elem, _i, until) {
  1730. return dir(elem, "parentNode", until);
  1731. },
  1732. next: function(elem) {
  1733. return sibling(elem, "nextSibling");
  1734. },
  1735. prev: function(elem) {
  1736. return sibling(elem, "previousSibling");
  1737. },
  1738. nextAll: function(elem) {
  1739. return dir(elem, "nextSibling");
  1740. },
  1741. prevAll: function(elem) {
  1742. return dir(elem, "previousSibling");
  1743. },
  1744. nextUntil: function(elem, _i, until) {
  1745. return dir(elem, "nextSibling", until);
  1746. },
  1747. prevUntil: function(elem, _i, until) {
  1748. return dir(elem, "previousSibling", until);
  1749. },
  1750. siblings: function(elem) {
  1751. return siblings((elem.parentNode || {}).firstChild, elem);
  1752. },
  1753. children: function(elem) {
  1754. return siblings(elem.firstChild);
  1755. },
  1756. contents: function(elem) {
  1757. if (elem.contentDocument != null && // Support: IE 11+
  1758. // <object> elements with no `data` attribute has an object
  1759. // `contentDocument` with a `null` prototype.
  1760. getProto(elem.contentDocument)) {
  1761. return elem.contentDocument;
  1762. }
  1763. if (nodeName(elem, "template")) {
  1764. elem = elem.content || elem;
  1765. }
  1766. return jQuery.merge([], elem.childNodes);
  1767. }
  1768. }, function(name, fn) {
  1769. jQuery.fn[name] = function(until, selector) {
  1770. var matched = jQuery.map(this, fn, until);
  1771. if (name.slice(-5) !== "Until") {
  1772. selector = until;
  1773. }
  1774. if (selector && typeof selector === "string") {
  1775. matched = jQuery.filter(selector, matched);
  1776. }
  1777. if (this.length > 1) {
  1778. if (!guaranteedUnique[name]) {
  1779. jQuery.uniqueSort(matched);
  1780. }
  1781. if (rparentsprev.test(name)) {
  1782. matched.reverse();
  1783. }
  1784. }
  1785. return this.pushStack(matched);
  1786. };
  1787. });
  1788. var rnothtmlwhite = /[^\x20\t\r\n\f]+/g;
  1789. function createOptions(options) {
  1790. var object = {};
  1791. jQuery.each(options.match(rnothtmlwhite) || [], function(_, flag) {
  1792. object[flag] = true;
  1793. });
  1794. return object;
  1795. }
  1796. jQuery.Callbacks = function(options) {
  1797. options = typeof options === "string" ? createOptions(options) : jQuery.extend({}, options);
  1798. var firing, memory, fired, locked, list = [], queue = [], firingIndex = -1, fire = function() {
  1799. locked = locked || options.once;
  1800. fired = firing = true;
  1801. for (; queue.length; firingIndex = -1) {
  1802. memory = queue.shift();
  1803. while (++firingIndex < list.length) {
  1804. if (list[firingIndex].apply(memory[0], memory[1]) === false && options.stopOnFalse) {
  1805. firingIndex = list.length;
  1806. memory = false;
  1807. }
  1808. }
  1809. }
  1810. if (!options.memory) {
  1811. memory = false;
  1812. }
  1813. firing = false;
  1814. if (locked) {
  1815. if (memory) {
  1816. list = [];
  1817. } else {
  1818. list = "";
  1819. }
  1820. }
  1821. }, self = {
  1822. // Add a callback or a collection of callbacks to the list
  1823. add: function() {
  1824. if (list) {
  1825. if (memory && !firing) {
  1826. firingIndex = list.length - 1;
  1827. queue.push(memory);
  1828. }
  1829. (function add(args) {
  1830. jQuery.each(args, function(_, arg) {
  1831. if (isFunction(arg)) {
  1832. if (!options.unique || !self.has(arg)) {
  1833. list.push(arg);
  1834. }
  1835. } else if (arg && arg.length && toType(arg) !== "string") {
  1836. add(arg);
  1837. }
  1838. });
  1839. })(arguments);
  1840. if (memory && !firing) {
  1841. fire();
  1842. }
  1843. }
  1844. return this;
  1845. },
  1846. // Remove a callback from the list
  1847. remove: function() {
  1848. jQuery.each(arguments, function(_, arg) {
  1849. var index;
  1850. while ((index = jQuery.inArray(arg, list, index)) > -1) {
  1851. list.splice(index, 1);
  1852. if (index <= firingIndex) {
  1853. firingIndex--;
  1854. }
  1855. }
  1856. });
  1857. return this;
  1858. },
  1859. // Check if a given callback is in the list.
  1860. // If no argument is given, return whether or not list has callbacks attached.
  1861. has: function(fn) {
  1862. return fn ? jQuery.inArray(fn, list) > -1 : list.length > 0;
  1863. },
  1864. // Remove all callbacks from the list
  1865. empty: function() {
  1866. if (list) {
  1867. list = [];
  1868. }
  1869. return this;
  1870. },
  1871. // Disable .fire and .add
  1872. // Abort any current/pending executions
  1873. // Clear all callbacks and values
  1874. disable: function() {
  1875. locked = queue = [];
  1876. list = memory = "";
  1877. return this;
  1878. },
  1879. disabled: function() {
  1880. return !list;
  1881. },
  1882. // Disable .fire
  1883. // Also disable .add unless we have memory (since it would have no effect)
  1884. // Abort any pending executions
  1885. lock: function() {
  1886. locked = queue = [];
  1887. if (!memory && !firing) {
  1888. list = memory = "";
  1889. }
  1890. return this;
  1891. },
  1892. locked: function() {
  1893. return !!locked;
  1894. },
  1895. // Call all callbacks with the given context and arguments
  1896. fireWith: function(context, args) {
  1897. if (!locked) {
  1898. args = args || [];
  1899. args = [context, args.slice ? args.slice() : args];
  1900. queue.push(args);
  1901. if (!firing) {
  1902. fire();
  1903. }
  1904. }
  1905. return this;
  1906. },
  1907. // Call all the callbacks with the given arguments
  1908. fire: function() {
  1909. self.fireWith(this, arguments);
  1910. return this;
  1911. },
  1912. // To know if the callbacks have already been called at least once
  1913. fired: function() {
  1914. return !!fired;
  1915. }
  1916. };
  1917. return self;
  1918. };
  1919. function Identity(v) {
  1920. return v;
  1921. }
  1922. function Thrower(ex) {
  1923. throw ex;
  1924. }
  1925. function adoptValue(value, resolve, reject, noValue) {
  1926. var method;
  1927. try {
  1928. if (value && isFunction(method = value.promise)) {
  1929. method.call(value).done(resolve).fail(reject);
  1930. } else if (value && isFunction(method = value.then)) {
  1931. method.call(value, resolve, reject);
  1932. } else {
  1933. resolve.apply(void 0, [value].slice(noValue));
  1934. }
  1935. } catch (value2) {
  1936. reject.apply(void 0, [value2]);
  1937. }
  1938. }
  1939. jQuery.extend({
  1940. Deferred: function(func) {
  1941. var tuples = [
  1942. // action, add listener, callbacks,
  1943. // ... .then handlers, argument index, [final state]
  1944. [
  1945. "notify",
  1946. "progress",
  1947. jQuery.Callbacks("memory"),
  1948. jQuery.Callbacks("memory"),
  1949. 2
  1950. ],
  1951. [
  1952. "resolve",
  1953. "done",
  1954. jQuery.Callbacks("once memory"),
  1955. jQuery.Callbacks("once memory"),
  1956. 0,
  1957. "resolved"
  1958. ],
  1959. [
  1960. "reject",
  1961. "fail",
  1962. jQuery.Callbacks("once memory"),
  1963. jQuery.Callbacks("once memory"),
  1964. 1,
  1965. "rejected"
  1966. ]
  1967. ], state = "pending", promise = {
  1968. state: function() {
  1969. return state;
  1970. },
  1971. always: function() {
  1972. deferred.done(arguments).fail(arguments);
  1973. return this;
  1974. },
  1975. "catch": function(fn) {
  1976. return promise.then(null, fn);
  1977. },
  1978. // Keep pipe for back-compat
  1979. pipe: function() {
  1980. var fns = arguments;
  1981. return jQuery.Deferred(function(newDefer) {
  1982. jQuery.each(tuples, function(_i, tuple) {
  1983. var fn = isFunction(fns[tuple[4]]) && fns[tuple[4]];
  1984. deferred[tuple[1]](function() {
  1985. var returned = fn && fn.apply(this, arguments);
  1986. if (returned && isFunction(returned.promise)) {
  1987. returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);
  1988. } else {
  1989. newDefer[tuple[0] + "With"](
  1990. this,
  1991. fn ? [returned] : arguments
  1992. );
  1993. }
  1994. });
  1995. });
  1996. fns = null;
  1997. }).promise();
  1998. },
  1999. then: function(onFulfilled, onRejected, onProgress) {
  2000. var maxDepth = 0;
  2001. function resolve(depth, deferred2, handler, special) {
  2002. return function() {
  2003. var that = this, args = arguments, mightThrow = function() {
  2004. var returned, then;
  2005. if (depth < maxDepth) {
  2006. return;
  2007. }
  2008. returned = handler.apply(that, args);
  2009. if (returned === deferred2.promise()) {
  2010. throw new TypeError("Thenable self-resolution");
  2011. }
  2012. then = returned && // Support: Promises/A+ section 2.3.4
  2013. // https://promisesaplus.com/#point-64
  2014. // Only check objects and functions for thenability
  2015. (typeof returned === "object" || typeof returned === "function") && returned.then;
  2016. if (isFunction(then)) {
  2017. if (special) {
  2018. then.call(
  2019. returned,
  2020. resolve(maxDepth, deferred2, Identity, special),
  2021. resolve(maxDepth, deferred2, Thrower, special)
  2022. );
  2023. } else {
  2024. maxDepth++;
  2025. then.call(
  2026. returned,
  2027. resolve(maxDepth, deferred2, Identity, special),
  2028. resolve(maxDepth, deferred2, Thrower, special),
  2029. resolve(
  2030. maxDepth,
  2031. deferred2,
  2032. Identity,
  2033. deferred2.notifyWith
  2034. )
  2035. );
  2036. }
  2037. } else {
  2038. if (handler !== Identity) {
  2039. that = void 0;
  2040. args = [returned];
  2041. }
  2042. (special || deferred2.resolveWith)(that, args);
  2043. }
  2044. }, process = special ? mightThrow : function() {
  2045. try {
  2046. mightThrow();
  2047. } catch (e) {
  2048. if (jQuery.Deferred.exceptionHook) {
  2049. jQuery.Deferred.exceptionHook(
  2050. e,
  2051. process.error
  2052. );
  2053. }
  2054. if (depth + 1 >= maxDepth) {
  2055. if (handler !== Thrower) {
  2056. that = void 0;
  2057. args = [e];
  2058. }
  2059. deferred2.rejectWith(that, args);
  2060. }
  2061. }
  2062. };
  2063. if (depth) {
  2064. process();
  2065. } else {
  2066. if (jQuery.Deferred.getErrorHook) {
  2067. process.error = jQuery.Deferred.getErrorHook();
  2068. } else if (jQuery.Deferred.getStackHook) {
  2069. process.error = jQuery.Deferred.getStackHook();
  2070. }
  2071. window2.setTimeout(process);
  2072. }
  2073. };
  2074. }
  2075. return jQuery.Deferred(function(newDefer) {
  2076. tuples[0][3].add(
  2077. resolve(
  2078. 0,
  2079. newDefer,
  2080. isFunction(onProgress) ? onProgress : Identity,
  2081. newDefer.notifyWith
  2082. )
  2083. );
  2084. tuples[1][3].add(
  2085. resolve(
  2086. 0,
  2087. newDefer,
  2088. isFunction(onFulfilled) ? onFulfilled : Identity
  2089. )
  2090. );
  2091. tuples[2][3].add(
  2092. resolve(
  2093. 0,
  2094. newDefer,
  2095. isFunction(onRejected) ? onRejected : Thrower
  2096. )
  2097. );
  2098. }).promise();
  2099. },
  2100. // Get a promise for this deferred
  2101. // If obj is provided, the promise aspect is added to the object
  2102. promise: function(obj) {
  2103. return obj != null ? jQuery.extend(obj, promise) : promise;
  2104. }
  2105. }, deferred = {};
  2106. jQuery.each(tuples, function(i, tuple) {
  2107. var list = tuple[2], stateString = tuple[5];
  2108. promise[tuple[1]] = list.add;
  2109. if (stateString) {
  2110. list.add(
  2111. function() {
  2112. state = stateString;
  2113. },
  2114. // rejected_callbacks.disable
  2115. // fulfilled_callbacks.disable
  2116. tuples[3 - i][2].disable,
  2117. // rejected_handlers.disable
  2118. // fulfilled_handlers.disable
  2119. tuples[3 - i][3].disable,
  2120. // progress_callbacks.lock
  2121. tuples[0][2].lock,
  2122. // progress_handlers.lock
  2123. tuples[0][3].lock
  2124. );
  2125. }
  2126. list.add(tuple[3].fire);
  2127. deferred[tuple[0]] = function() {
  2128. deferred[tuple[0] + "With"](this === deferred ? void 0 : this, arguments);
  2129. return this;
  2130. };
  2131. deferred[tuple[0] + "With"] = list.fireWith;
  2132. });
  2133. promise.promise(deferred);
  2134. if (func) {
  2135. func.call(deferred, deferred);
  2136. }
  2137. return deferred;
  2138. },
  2139. // Deferred helper
  2140. when: function(singleValue) {
  2141. var remaining = arguments.length, i = remaining, resolveContexts = Array(i), resolveValues = slice.call(arguments), primary = jQuery.Deferred(), updateFunc = function(i2) {
  2142. return function(value) {
  2143. resolveContexts[i2] = this;
  2144. resolveValues[i2] = arguments.length > 1 ? slice.call(arguments) : value;
  2145. if (!--remaining) {
  2146. primary.resolveWith(resolveContexts, resolveValues);
  2147. }
  2148. };
  2149. };
  2150. if (remaining <= 1) {
  2151. adoptValue(
  2152. singleValue,
  2153. primary.done(updateFunc(i)).resolve,
  2154. primary.reject,
  2155. !remaining
  2156. );
  2157. if (primary.state() === "pending" || isFunction(resolveValues[i] && resolveValues[i].then)) {
  2158. return primary.then();
  2159. }
  2160. }
  2161. while (i--) {
  2162. adoptValue(resolveValues[i], updateFunc(i), primary.reject);
  2163. }
  2164. return primary.promise();
  2165. }
  2166. });
  2167. var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  2168. jQuery.Deferred.exceptionHook = function(error, asyncError) {
  2169. if (window2.console && window2.console.warn && error && rerrorNames.test(error.name)) {
  2170. window2.console.warn(
  2171. "jQuery.Deferred exception: " + error.message,
  2172. error.stack,
  2173. asyncError
  2174. );
  2175. }
  2176. };
  2177. jQuery.readyException = function(error) {
  2178. window2.setTimeout(function() {
  2179. throw error;
  2180. });
  2181. };
  2182. var readyList = jQuery.Deferred();
  2183. jQuery.fn.ready = function(fn) {
  2184. readyList.then(fn).catch(function(error) {
  2185. jQuery.readyException(error);
  2186. });
  2187. return this;
  2188. };
  2189. jQuery.extend({
  2190. // Is the DOM ready to be used? Set to true once it occurs.
  2191. isReady: false,
  2192. // A counter to track how many items to wait for before
  2193. // the ready event fires. See trac-6781
  2194. readyWait: 1,
  2195. // Handle when the DOM is ready
  2196. ready: function(wait) {
  2197. if (wait === true ? --jQuery.readyWait : jQuery.isReady) {
  2198. return;
  2199. }
  2200. jQuery.isReady = true;
  2201. if (wait !== true && --jQuery.readyWait > 0) {
  2202. return;
  2203. }
  2204. readyList.resolveWith(document, [jQuery]);
  2205. }
  2206. });
  2207. jQuery.ready.then = readyList.then;
  2208. function completed() {
  2209. document.removeEventListener("DOMContentLoaded", completed);
  2210. window2.removeEventListener("load", completed);
  2211. jQuery.ready();
  2212. }
  2213. if (document.readyState === "complete" || document.readyState !== "loading" && !document.documentElement.doScroll) {
  2214. window2.setTimeout(jQuery.ready);
  2215. } else {
  2216. document.addEventListener("DOMContentLoaded", completed);
  2217. window2.addEventListener("load", completed);
  2218. }
  2219. var access = function(elems, fn, key, value, chainable, emptyGet, raw) {
  2220. var i = 0, len = elems.length, bulk = key == null;
  2221. if (toType(key) === "object") {
  2222. chainable = true;
  2223. for (i in key) {
  2224. access(elems, fn, i, key[i], true, emptyGet, raw);
  2225. }
  2226. } else if (value !== void 0) {
  2227. chainable = true;
  2228. if (!isFunction(value)) {
  2229. raw = true;
  2230. }
  2231. if (bulk) {
  2232. if (raw) {
  2233. fn.call(elems, value);
  2234. fn = null;
  2235. } else {
  2236. bulk = fn;
  2237. fn = function(elem, _key, value2) {
  2238. return bulk.call(jQuery(elem), value2);
  2239. };
  2240. }
  2241. }
  2242. if (fn) {
  2243. for (; i < len; i++) {
  2244. fn(
  2245. elems[i],
  2246. key,
  2247. raw ? value : value.call(elems[i], i, fn(elems[i], key))
  2248. );
  2249. }
  2250. }
  2251. }
  2252. if (chainable) {
  2253. return elems;
  2254. }
  2255. if (bulk) {
  2256. return fn.call(elems);
  2257. }
  2258. return len ? fn(elems[0], key) : emptyGet;
  2259. };
  2260. var rmsPrefix = /^-ms-/, rdashAlpha = /-([a-z])/g;
  2261. function fcamelCase(_all, letter) {
  2262. return letter.toUpperCase();
  2263. }
  2264. function camelCase(string) {
  2265. return string.replace(rmsPrefix, "ms-").replace(rdashAlpha, fcamelCase);
  2266. }
  2267. var acceptData = function(owner) {
  2268. return owner.nodeType === 1 || owner.nodeType === 9 || !+owner.nodeType;
  2269. };
  2270. function Data() {
  2271. this.expando = jQuery.expando + Data.uid++;
  2272. }
  2273. Data.uid = 1;
  2274. Data.prototype = {
  2275. cache: function(owner) {
  2276. var value = owner[this.expando];
  2277. if (!value) {
  2278. value = {};
  2279. if (acceptData(owner)) {
  2280. if (owner.nodeType) {
  2281. owner[this.expando] = value;
  2282. } else {
  2283. Object.defineProperty(owner, this.expando, {
  2284. value,
  2285. configurable: true
  2286. });
  2287. }
  2288. }
  2289. }
  2290. return value;
  2291. },
  2292. set: function(owner, data, value) {
  2293. var prop, cache = this.cache(owner);
  2294. if (typeof data === "string") {
  2295. cache[camelCase(data)] = value;
  2296. } else {
  2297. for (prop in data) {
  2298. cache[camelCase(prop)] = data[prop];
  2299. }
  2300. }
  2301. return cache;
  2302. },
  2303. get: function(owner, key) {
  2304. return key === void 0 ? this.cache(owner) : (
  2305. // Always use camelCase key (gh-2257)
  2306. owner[this.expando] && owner[this.expando][camelCase(key)]
  2307. );
  2308. },
  2309. access: function(owner, key, value) {
  2310. if (key === void 0 || key && typeof key === "string" && value === void 0) {
  2311. return this.get(owner, key);
  2312. }
  2313. this.set(owner, key, value);
  2314. return value !== void 0 ? value : key;
  2315. },
  2316. remove: function(owner, key) {
  2317. var i, cache = owner[this.expando];
  2318. if (cache === void 0) {
  2319. return;
  2320. }
  2321. if (key !== void 0) {
  2322. if (Array.isArray(key)) {
  2323. key = key.map(camelCase);
  2324. } else {
  2325. key = camelCase(key);
  2326. key = key in cache ? [key] : key.match(rnothtmlwhite) || [];
  2327. }
  2328. i = key.length;
  2329. while (i--) {
  2330. delete cache[key[i]];
  2331. }
  2332. }
  2333. if (key === void 0 || jQuery.isEmptyObject(cache)) {
  2334. if (owner.nodeType) {
  2335. owner[this.expando] = void 0;
  2336. } else {
  2337. delete owner[this.expando];
  2338. }
  2339. }
  2340. },
  2341. hasData: function(owner) {
  2342. var cache = owner[this.expando];
  2343. return cache !== void 0 && !jQuery.isEmptyObject(cache);
  2344. }
  2345. };
  2346. var dataPriv = new Data();
  2347. var dataUser = new Data();
  2348. var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /[A-Z]/g;
  2349. function getData(data) {
  2350. if (data === "true") {
  2351. return true;
  2352. }
  2353. if (data === "false") {
  2354. return false;
  2355. }
  2356. if (data === "null") {
  2357. return null;
  2358. }
  2359. if (data === +data + "") {
  2360. return +data;
  2361. }
  2362. if (rbrace.test(data)) {
  2363. return JSON.parse(data);
  2364. }
  2365. return data;
  2366. }
  2367. function dataAttr(elem, key, data) {
  2368. var name;
  2369. if (data === void 0 && elem.nodeType === 1) {
  2370. name = "data-" + key.replace(rmultiDash, "-$&").toLowerCase();
  2371. data = elem.getAttribute(name);
  2372. if (typeof data === "string") {
  2373. try {
  2374. data = getData(data);
  2375. } catch (e) {
  2376. }
  2377. dataUser.set(elem, key, data);
  2378. } else {
  2379. data = void 0;
  2380. }
  2381. }
  2382. return data;
  2383. }
  2384. jQuery.extend({
  2385. hasData: function(elem) {
  2386. return dataUser.hasData(elem) || dataPriv.hasData(elem);
  2387. },
  2388. data: function(elem, name, data) {
  2389. return dataUser.access(elem, name, data);
  2390. },
  2391. removeData: function(elem, name) {
  2392. dataUser.remove(elem, name);
  2393. },
  2394. // TODO: Now that all calls to _data and _removeData have been replaced
  2395. // with direct calls to dataPriv methods, these can be deprecated.
  2396. _data: function(elem, name, data) {
  2397. return dataPriv.access(elem, name, data);
  2398. },
  2399. _removeData: function(elem, name) {
  2400. dataPriv.remove(elem, name);
  2401. }
  2402. });
  2403. jQuery.fn.extend({
  2404. data: function(key, value) {
  2405. var i, name, data, elem = this[0], attrs = elem && elem.attributes;
  2406. if (key === void 0) {
  2407. if (this.length) {
  2408. data = dataUser.get(elem);
  2409. if (elem.nodeType === 1 && !dataPriv.get(elem, "hasDataAttrs")) {
  2410. i = attrs.length;
  2411. while (i--) {
  2412. if (attrs[i]) {
  2413. name = attrs[i].name;
  2414. if (name.indexOf("data-") === 0) {
  2415. name = camelCase(name.slice(5));
  2416. dataAttr(elem, name, data[name]);
  2417. }
  2418. }
  2419. }
  2420. dataPriv.set(elem, "hasDataAttrs", true);
  2421. }
  2422. }
  2423. return data;
  2424. }
  2425. if (typeof key === "object") {
  2426. return this.each(function() {
  2427. dataUser.set(this, key);
  2428. });
  2429. }
  2430. return access(this, function(value2) {
  2431. var data2;
  2432. if (elem && value2 === void 0) {
  2433. data2 = dataUser.get(elem, key);
  2434. if (data2 !== void 0) {
  2435. return data2;
  2436. }
  2437. data2 = dataAttr(elem, key);
  2438. if (data2 !== void 0) {
  2439. return data2;
  2440. }
  2441. return;
  2442. }
  2443. this.each(function() {
  2444. dataUser.set(this, key, value2);
  2445. });
  2446. }, null, value, arguments.length > 1, null, true);
  2447. },
  2448. removeData: function(key) {
  2449. return this.each(function() {
  2450. dataUser.remove(this, key);
  2451. });
  2452. }
  2453. });
  2454. jQuery.extend({
  2455. queue: function(elem, type, data) {
  2456. var queue;
  2457. if (elem) {
  2458. type = (type || "fx") + "queue";
  2459. queue = dataPriv.get(elem, type);
  2460. if (data) {
  2461. if (!queue || Array.isArray(data)) {
  2462. queue = dataPriv.access(elem, type, jQuery.makeArray(data));
  2463. } else {
  2464. queue.push(data);
  2465. }
  2466. }
  2467. return queue || [];
  2468. }
  2469. },
  2470. dequeue: function(elem, type) {
  2471. type = type || "fx";
  2472. var queue = jQuery.queue(elem, type), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks(elem, type), next = function() {
  2473. jQuery.dequeue(elem, type);
  2474. };
  2475. if (fn === "inprogress") {
  2476. fn = queue.shift();
  2477. startLength--;
  2478. }
  2479. if (fn) {
  2480. if (type === "fx") {
  2481. queue.unshift("inprogress");
  2482. }
  2483. delete hooks.stop;
  2484. fn.call(elem, next, hooks);
  2485. }
  2486. if (!startLength && hooks) {
  2487. hooks.empty.fire();
  2488. }
  2489. },
  2490. // Not public - generate a queueHooks object, or return the current one
  2491. _queueHooks: function(elem, type) {
  2492. var key = type + "queueHooks";
  2493. return dataPriv.get(elem, key) || dataPriv.access(elem, key, {
  2494. empty: jQuery.Callbacks("once memory").add(function() {
  2495. dataPriv.remove(elem, [type + "queue", key]);
  2496. })
  2497. });
  2498. }
  2499. });
  2500. jQuery.fn.extend({
  2501. queue: function(type, data) {
  2502. var setter = 2;
  2503. if (typeof type !== "string") {
  2504. data = type;
  2505. type = "fx";
  2506. setter--;
  2507. }
  2508. if (arguments.length < setter) {
  2509. return jQuery.queue(this[0], type);
  2510. }
  2511. return data === void 0 ? this : this.each(function() {
  2512. var queue = jQuery.queue(this, type, data);
  2513. jQuery._queueHooks(this, type);
  2514. if (type === "fx" && queue[0] !== "inprogress") {
  2515. jQuery.dequeue(this, type);
  2516. }
  2517. });
  2518. },
  2519. dequeue: function(type) {
  2520. return this.each(function() {
  2521. jQuery.dequeue(this, type);
  2522. });
  2523. },
  2524. clearQueue: function(type) {
  2525. return this.queue(type || "fx", []);
  2526. },
  2527. // Get a promise resolved when queues of a certain type
  2528. // are emptied (fx is the type by default)
  2529. promise: function(type, obj) {
  2530. var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() {
  2531. if (!--count) {
  2532. defer.resolveWith(elements, [elements]);
  2533. }
  2534. };
  2535. if (typeof type !== "string") {
  2536. obj = type;
  2537. type = void 0;
  2538. }
  2539. type = type || "fx";
  2540. while (i--) {
  2541. tmp = dataPriv.get(elements[i], type + "queueHooks");
  2542. if (tmp && tmp.empty) {
  2543. count++;
  2544. tmp.empty.add(resolve);
  2545. }
  2546. }
  2547. resolve();
  2548. return defer.promise(obj);
  2549. }
  2550. });
  2551. var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
  2552. var rcssNum = new RegExp("^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i");
  2553. var cssExpand = ["Top", "Right", "Bottom", "Left"];
  2554. var documentElement = document.documentElement;
  2555. var isAttached = function(elem) {
  2556. return jQuery.contains(elem.ownerDocument, elem);
  2557. }, composed = { composed: true };
  2558. if (documentElement.getRootNode) {
  2559. isAttached = function(elem) {
  2560. return jQuery.contains(elem.ownerDocument, elem) || elem.getRootNode(composed) === elem.ownerDocument;
  2561. };
  2562. }
  2563. var isHiddenWithinTree = function(elem, el) {
  2564. elem = el || elem;
  2565. return elem.style.display === "none" || elem.style.display === "" && // Otherwise, check computed style
  2566. // Support: Firefox <=43 - 45
  2567. // Disconnected elements can have computed display: none, so first confirm that elem is
  2568. // in the document.
  2569. isAttached(elem) && jQuery.css(elem, "display") === "none";
  2570. };
  2571. function adjustCSS(elem, prop, valueParts, tween) {
  2572. var adjusted, scale, maxIterations = 20, currentValue = tween ? function() {
  2573. return tween.cur();
  2574. } : function() {
  2575. return jQuery.css(elem, prop, "");
  2576. }, initial = currentValue(), unit = valueParts && valueParts[3] || (jQuery.cssNumber[prop] ? "" : "px"), initialInUnit = elem.nodeType && (jQuery.cssNumber[prop] || unit !== "px" && +initial) && rcssNum.exec(jQuery.css(elem, prop));
  2577. if (initialInUnit && initialInUnit[3] !== unit) {
  2578. initial = initial / 2;
  2579. unit = unit || initialInUnit[3];
  2580. initialInUnit = +initial || 1;
  2581. while (maxIterations--) {
  2582. jQuery.style(elem, prop, initialInUnit + unit);
  2583. if ((1 - scale) * (1 - (scale = currentValue() / initial || 0.5)) <= 0) {
  2584. maxIterations = 0;
  2585. }
  2586. initialInUnit = initialInUnit / scale;
  2587. }
  2588. initialInUnit = initialInUnit * 2;
  2589. jQuery.style(elem, prop, initialInUnit + unit);
  2590. valueParts = valueParts || [];
  2591. }
  2592. if (valueParts) {
  2593. initialInUnit = +initialInUnit || +initial || 0;
  2594. adjusted = valueParts[1] ? initialInUnit + (valueParts[1] + 1) * valueParts[2] : +valueParts[2];
  2595. if (tween) {
  2596. tween.unit = unit;
  2597. tween.start = initialInUnit;
  2598. tween.end = adjusted;
  2599. }
  2600. }
  2601. return adjusted;
  2602. }
  2603. var defaultDisplayMap = {};
  2604. function getDefaultDisplay(elem) {
  2605. var temp, doc = elem.ownerDocument, nodeName2 = elem.nodeName, display = defaultDisplayMap[nodeName2];
  2606. if (display) {
  2607. return display;
  2608. }
  2609. temp = doc.body.appendChild(doc.createElement(nodeName2));
  2610. display = jQuery.css(temp, "display");
  2611. temp.parentNode.removeChild(temp);
  2612. if (display === "none") {
  2613. display = "block";
  2614. }
  2615. defaultDisplayMap[nodeName2] = display;
  2616. return display;
  2617. }
  2618. function showHide(elements, show) {
  2619. var display, elem, values = [], index = 0, length = elements.length;
  2620. for (; index < length; index++) {
  2621. elem = elements[index];
  2622. if (!elem.style) {
  2623. continue;
  2624. }
  2625. display = elem.style.display;
  2626. if (show) {
  2627. if (display === "none") {
  2628. values[index] = dataPriv.get(elem, "display") || null;
  2629. if (!values[index]) {
  2630. elem.style.display = "";
  2631. }
  2632. }
  2633. if (elem.style.display === "" && isHiddenWithinTree(elem)) {
  2634. values[index] = getDefaultDisplay(elem);
  2635. }
  2636. } else {
  2637. if (display !== "none") {
  2638. values[index] = "none";
  2639. dataPriv.set(elem, "display", display);
  2640. }
  2641. }
  2642. }
  2643. for (index = 0; index < length; index++) {
  2644. if (values[index] != null) {
  2645. elements[index].style.display = values[index];
  2646. }
  2647. }
  2648. return elements;
  2649. }
  2650. jQuery.fn.extend({
  2651. show: function() {
  2652. return showHide(this, true);
  2653. },
  2654. hide: function() {
  2655. return showHide(this);
  2656. },
  2657. toggle: function(state) {
  2658. if (typeof state === "boolean") {
  2659. return state ? this.show() : this.hide();
  2660. }
  2661. return this.each(function() {
  2662. if (isHiddenWithinTree(this)) {
  2663. jQuery(this).show();
  2664. } else {
  2665. jQuery(this).hide();
  2666. }
  2667. });
  2668. }
  2669. });
  2670. var rcheckableType = /^(?:checkbox|radio)$/i;
  2671. var rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i;
  2672. var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
  2673. (function() {
  2674. var fragment = document.createDocumentFragment(), div = fragment.appendChild(document.createElement("div")), input = document.createElement("input");
  2675. input.setAttribute("type", "radio");
  2676. input.setAttribute("checked", "checked");
  2677. input.setAttribute("name", "t");
  2678. div.appendChild(input);
  2679. support.checkClone = div.cloneNode(true).cloneNode(true).lastChild.checked;
  2680. div.innerHTML = "<textarea>x</textarea>";
  2681. support.noCloneChecked = !!div.cloneNode(true).lastChild.defaultValue;
  2682. div.innerHTML = "<option></option>";
  2683. support.option = !!div.lastChild;
  2684. })();
  2685. var wrapMap = {
  2686. // XHTML parsers do not magically insert elements in the
  2687. // same way that tag soup parsers do. So we cannot shorten
  2688. // this by omitting <tbody> or other required elements.
  2689. thead: [1, "<table>", "</table>"],
  2690. col: [2, "<table><colgroup>", "</colgroup></table>"],
  2691. tr: [2, "<table><tbody>", "</tbody></table>"],
  2692. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  2693. _default: [0, "", ""]
  2694. };
  2695. wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
  2696. wrapMap.th = wrapMap.td;
  2697. if (!support.option) {
  2698. wrapMap.optgroup = wrapMap.option = [1, "<select multiple='multiple'>", "</select>"];
  2699. }
  2700. function getAll(context, tag) {
  2701. var ret;
  2702. if (typeof context.getElementsByTagName !== "undefined") {
  2703. ret = context.getElementsByTagName(tag || "*");
  2704. } else if (typeof context.querySelectorAll !== "undefined") {
  2705. ret = context.querySelectorAll(tag || "*");
  2706. } else {
  2707. ret = [];
  2708. }
  2709. if (tag === void 0 || tag && nodeName(context, tag)) {
  2710. return jQuery.merge([context], ret);
  2711. }
  2712. return ret;
  2713. }
  2714. function setGlobalEval(elems, refElements) {
  2715. var i = 0, l = elems.length;
  2716. for (; i < l; i++) {
  2717. dataPriv.set(
  2718. elems[i],
  2719. "globalEval",
  2720. !refElements || dataPriv.get(refElements[i], "globalEval")
  2721. );
  2722. }
  2723. }
  2724. var rhtml = /<|&#?\w+;/;
  2725. function buildFragment(elems, context, scripts, selection, ignored) {
  2726. var elem, tmp, tag, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length;
  2727. for (; i < l; i++) {
  2728. elem = elems[i];
  2729. if (elem || elem === 0) {
  2730. if (toType(elem) === "object") {
  2731. jQuery.merge(nodes, elem.nodeType ? [elem] : elem);
  2732. } else if (!rhtml.test(elem)) {
  2733. nodes.push(context.createTextNode(elem));
  2734. } else {
  2735. tmp = tmp || fragment.appendChild(context.createElement("div"));
  2736. tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
  2737. wrap = wrapMap[tag] || wrapMap._default;
  2738. tmp.innerHTML = wrap[1] + jQuery.htmlPrefilter(elem) + wrap[2];
  2739. j = wrap[0];
  2740. while (j--) {
  2741. tmp = tmp.lastChild;
  2742. }
  2743. jQuery.merge(nodes, tmp.childNodes);
  2744. tmp = fragment.firstChild;
  2745. tmp.textContent = "";
  2746. }
  2747. }
  2748. }
  2749. fragment.textContent = "";
  2750. i = 0;
  2751. while (elem = nodes[i++]) {
  2752. if (selection && jQuery.inArray(elem, selection) > -1) {
  2753. if (ignored) {
  2754. ignored.push(elem);
  2755. }
  2756. continue;
  2757. }
  2758. attached = isAttached(elem);
  2759. tmp = getAll(fragment.appendChild(elem), "script");
  2760. if (attached) {
  2761. setGlobalEval(tmp);
  2762. }
  2763. if (scripts) {
  2764. j = 0;
  2765. while (elem = tmp[j++]) {
  2766. if (rscriptType.test(elem.type || "")) {
  2767. scripts.push(elem);
  2768. }
  2769. }
  2770. }
  2771. }
  2772. return fragment;
  2773. }
  2774. var rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
  2775. function returnTrue() {
  2776. return true;
  2777. }
  2778. function returnFalse() {
  2779. return false;
  2780. }
  2781. function on(elem, types, selector, data, fn, one) {
  2782. var origFn, type;
  2783. if (typeof types === "object") {
  2784. if (typeof selector !== "string") {
  2785. data = data || selector;
  2786. selector = void 0;
  2787. }
  2788. for (type in types) {
  2789. on(elem, type, selector, data, types[type], one);
  2790. }
  2791. return elem;
  2792. }
  2793. if (data == null && fn == null) {
  2794. fn = selector;
  2795. data = selector = void 0;
  2796. } else if (fn == null) {
  2797. if (typeof selector === "string") {
  2798. fn = data;
  2799. data = void 0;
  2800. } else {
  2801. fn = data;
  2802. data = selector;
  2803. selector = void 0;
  2804. }
  2805. }
  2806. if (fn === false) {
  2807. fn = returnFalse;
  2808. } else if (!fn) {
  2809. return elem;
  2810. }
  2811. if (one === 1) {
  2812. origFn = fn;
  2813. fn = function(event) {
  2814. jQuery().off(event);
  2815. return origFn.apply(this, arguments);
  2816. };
  2817. fn.guid = origFn.guid || (origFn.guid = jQuery.guid++);
  2818. }
  2819. return elem.each(function() {
  2820. jQuery.event.add(this, types, fn, data, selector);
  2821. });
  2822. }
  2823. jQuery.event = {
  2824. global: {},
  2825. add: function(elem, types, handler, data, selector) {
  2826. var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.get(elem);
  2827. if (!acceptData(elem)) {
  2828. return;
  2829. }
  2830. if (handler.handler) {
  2831. handleObjIn = handler;
  2832. handler = handleObjIn.handler;
  2833. selector = handleObjIn.selector;
  2834. }
  2835. if (selector) {
  2836. jQuery.find.matchesSelector(documentElement, selector);
  2837. }
  2838. if (!handler.guid) {
  2839. handler.guid = jQuery.guid++;
  2840. }
  2841. if (!(events = elemData.events)) {
  2842. events = elemData.events = /* @__PURE__ */ Object.create(null);
  2843. }
  2844. if (!(eventHandle = elemData.handle)) {
  2845. eventHandle = elemData.handle = function(e) {
  2846. return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply(elem, arguments) : void 0;
  2847. };
  2848. }
  2849. types = (types || "").match(rnothtmlwhite) || [""];
  2850. t = types.length;
  2851. while (t--) {
  2852. tmp = rtypenamespace.exec(types[t]) || [];
  2853. type = origType = tmp[1];
  2854. namespaces = (tmp[2] || "").split(".").sort();
  2855. if (!type) {
  2856. continue;
  2857. }
  2858. special = jQuery.event.special[type] || {};
  2859. type = (selector ? special.delegateType : special.bindType) || type;
  2860. special = jQuery.event.special[type] || {};
  2861. handleObj = jQuery.extend({
  2862. type,
  2863. origType,
  2864. data,
  2865. handler,
  2866. guid: handler.guid,
  2867. selector,
  2868. needsContext: selector && jQuery.expr.match.needsContext.test(selector),
  2869. namespace: namespaces.join(".")
  2870. }, handleObjIn);
  2871. if (!(handlers = events[type])) {
  2872. handlers = events[type] = [];
  2873. handlers.delegateCount = 0;
  2874. if (!special.setup || special.setup.call(elem, data, namespaces, eventHandle) === false) {
  2875. if (elem.addEventListener) {
  2876. elem.addEventListener(type, eventHandle);
  2877. }
  2878. }
  2879. }
  2880. if (special.add) {
  2881. special.add.call(elem, handleObj);
  2882. if (!handleObj.handler.guid) {
  2883. handleObj.handler.guid = handler.guid;
  2884. }
  2885. }
  2886. if (selector) {
  2887. handlers.splice(handlers.delegateCount++, 0, handleObj);
  2888. } else {
  2889. handlers.push(handleObj);
  2890. }
  2891. jQuery.event.global[type] = true;
  2892. }
  2893. },
  2894. // Detach an event or set of events from an element
  2895. remove: function(elem, types, handler, selector, mappedTypes) {
  2896. var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.hasData(elem) && dataPriv.get(elem);
  2897. if (!elemData || !(events = elemData.events)) {
  2898. return;
  2899. }
  2900. types = (types || "").match(rnothtmlwhite) || [""];
  2901. t = types.length;
  2902. while (t--) {
  2903. tmp = rtypenamespace.exec(types[t]) || [];
  2904. type = origType = tmp[1];
  2905. namespaces = (tmp[2] || "").split(".").sort();
  2906. if (!type) {
  2907. for (type in events) {
  2908. jQuery.event.remove(elem, type + types[t], handler, selector, true);
  2909. }
  2910. continue;
  2911. }
  2912. special = jQuery.event.special[type] || {};
  2913. type = (selector ? special.delegateType : special.bindType) || type;
  2914. handlers = events[type] || [];
  2915. tmp = tmp[2] && new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)");
  2916. origCount = j = handlers.length;
  2917. while (j--) {
  2918. handleObj = handlers[j];
  2919. if ((mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!tmp || tmp.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || selector === "**" && handleObj.selector)) {
  2920. handlers.splice(j, 1);
  2921. if (handleObj.selector) {
  2922. handlers.delegateCount--;
  2923. }
  2924. if (special.remove) {
  2925. special.remove.call(elem, handleObj);
  2926. }
  2927. }
  2928. }
  2929. if (origCount && !handlers.length) {
  2930. if (!special.teardown || special.teardown.call(elem, namespaces, elemData.handle) === false) {
  2931. jQuery.removeEvent(elem, type, elemData.handle);
  2932. }
  2933. delete events[type];
  2934. }
  2935. }
  2936. if (jQuery.isEmptyObject(events)) {
  2937. dataPriv.remove(elem, "handle events");
  2938. }
  2939. },
  2940. dispatch: function(nativeEvent) {
  2941. var i, j, ret, matched, handleObj, handlerQueue, args = new Array(arguments.length), event = jQuery.event.fix(nativeEvent), handlers = (dataPriv.get(this, "events") || /* @__PURE__ */ Object.create(null))[event.type] || [], special = jQuery.event.special[event.type] || {};
  2942. args[0] = event;
  2943. for (i = 1; i < arguments.length; i++) {
  2944. args[i] = arguments[i];
  2945. }
  2946. event.delegateTarget = this;
  2947. if (special.preDispatch && special.preDispatch.call(this, event) === false) {
  2948. return;
  2949. }
  2950. handlerQueue = jQuery.event.handlers.call(this, event, handlers);
  2951. i = 0;
  2952. while ((matched = handlerQueue[i++]) && !event.isPropagationStopped()) {
  2953. event.currentTarget = matched.elem;
  2954. j = 0;
  2955. while ((handleObj = matched.handlers[j++]) && !event.isImmediatePropagationStopped()) {
  2956. if (!event.rnamespace || handleObj.namespace === false || event.rnamespace.test(handleObj.namespace)) {
  2957. event.handleObj = handleObj;
  2958. event.data = handleObj.data;
  2959. ret = ((jQuery.event.special[handleObj.origType] || {}).handle || handleObj.handler).apply(matched.elem, args);
  2960. if (ret !== void 0) {
  2961. if ((event.result = ret) === false) {
  2962. event.preventDefault();
  2963. event.stopPropagation();
  2964. }
  2965. }
  2966. }
  2967. }
  2968. }
  2969. if (special.postDispatch) {
  2970. special.postDispatch.call(this, event);
  2971. }
  2972. return event.result;
  2973. },
  2974. handlers: function(event, handlers) {
  2975. var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target;
  2976. if (delegateCount && // Support: IE <=9
  2977. // Black-hole SVG <use> instance trees (trac-13180)
  2978. cur.nodeType && // Support: Firefox <=42
  2979. // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
  2980. // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
  2981. // Support: IE 11 only
  2982. // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
  2983. !(event.type === "click" && event.button >= 1)) {
  2984. for (; cur !== this; cur = cur.parentNode || this) {
  2985. if (cur.nodeType === 1 && !(event.type === "click" && cur.disabled === true)) {
  2986. matchedHandlers = [];
  2987. matchedSelectors = {};
  2988. for (i = 0; i < delegateCount; i++) {
  2989. handleObj = handlers[i];
  2990. sel = handleObj.selector + " ";
  2991. if (matchedSelectors[sel] === void 0) {
  2992. matchedSelectors[sel] = handleObj.needsContext ? jQuery(sel, this).index(cur) > -1 : jQuery.find(sel, this, null, [cur]).length;
  2993. }
  2994. if (matchedSelectors[sel]) {
  2995. matchedHandlers.push(handleObj);
  2996. }
  2997. }
  2998. if (matchedHandlers.length) {
  2999. handlerQueue.push({ elem: cur, handlers: matchedHandlers });
  3000. }
  3001. }
  3002. }
  3003. }
  3004. cur = this;
  3005. if (delegateCount < handlers.length) {
  3006. handlerQueue.push({ elem: cur, handlers: handlers.slice(delegateCount) });
  3007. }
  3008. return handlerQueue;
  3009. },
  3010. addProp: function(name, hook) {
  3011. Object.defineProperty(jQuery.Event.prototype, name, {
  3012. enumerable: true,
  3013. configurable: true,
  3014. get: isFunction(hook) ? function() {
  3015. if (this.originalEvent) {
  3016. return hook(this.originalEvent);
  3017. }
  3018. } : function() {
  3019. if (this.originalEvent) {
  3020. return this.originalEvent[name];
  3021. }
  3022. },
  3023. set: function(value) {
  3024. Object.defineProperty(this, name, {
  3025. enumerable: true,
  3026. configurable: true,
  3027. writable: true,
  3028. value
  3029. });
  3030. }
  3031. });
  3032. },
  3033. fix: function(originalEvent) {
  3034. return originalEvent[jQuery.expando] ? originalEvent : new jQuery.Event(originalEvent);
  3035. },
  3036. special: {
  3037. load: {
  3038. // Prevent triggered image.load events from bubbling to window.load
  3039. noBubble: true
  3040. },
  3041. click: {
  3042. // Utilize native event to ensure correct state for checkable inputs
  3043. setup: function(data) {
  3044. var el = this || data;
  3045. if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
  3046. leverageNative(el, "click", true);
  3047. }
  3048. return false;
  3049. },
  3050. trigger: function(data) {
  3051. var el = this || data;
  3052. if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
  3053. leverageNative(el, "click");
  3054. }
  3055. return true;
  3056. },
  3057. // For cross-browser consistency, suppress native .click() on links
  3058. // Also prevent it if we're currently inside a leveraged native-event stack
  3059. _default: function(event) {
  3060. var target = event.target;
  3061. return rcheckableType.test(target.type) && target.click && nodeName(target, "input") && dataPriv.get(target, "click") || nodeName(target, "a");
  3062. }
  3063. },
  3064. beforeunload: {
  3065. postDispatch: function(event) {
  3066. if (event.result !== void 0 && event.originalEvent) {
  3067. event.originalEvent.returnValue = event.result;
  3068. }
  3069. }
  3070. }
  3071. }
  3072. };
  3073. function leverageNative(el, type, isSetup) {
  3074. if (!isSetup) {
  3075. if (dataPriv.get(el, type) === void 0) {
  3076. jQuery.event.add(el, type, returnTrue);
  3077. }
  3078. return;
  3079. }
  3080. dataPriv.set(el, type, false);
  3081. jQuery.event.add(el, type, {
  3082. namespace: false,
  3083. handler: function(event) {
  3084. var result, saved = dataPriv.get(this, type);
  3085. if (event.isTrigger & 1 && this[type]) {
  3086. if (!saved) {
  3087. saved = slice.call(arguments);
  3088. dataPriv.set(this, type, saved);
  3089. this[type]();
  3090. result = dataPriv.get(this, type);
  3091. dataPriv.set(this, type, false);
  3092. if (saved !== result) {
  3093. event.stopImmediatePropagation();
  3094. event.preventDefault();
  3095. return result;
  3096. }
  3097. } else if ((jQuery.event.special[type] || {}).delegateType) {
  3098. event.stopPropagation();
  3099. }
  3100. } else if (saved) {
  3101. dataPriv.set(this, type, jQuery.event.trigger(
  3102. saved[0],
  3103. saved.slice(1),
  3104. this
  3105. ));
  3106. event.stopPropagation();
  3107. event.isImmediatePropagationStopped = returnTrue;
  3108. }
  3109. }
  3110. });
  3111. }
  3112. jQuery.removeEvent = function(elem, type, handle) {
  3113. if (elem.removeEventListener) {
  3114. elem.removeEventListener(type, handle);
  3115. }
  3116. };
  3117. jQuery.Event = function(src, props) {
  3118. if (!(this instanceof jQuery.Event)) {
  3119. return new jQuery.Event(src, props);
  3120. }
  3121. if (src && src.type) {
  3122. this.originalEvent = src;
  3123. this.type = src.type;
  3124. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === void 0 && // Support: Android <=2.3 only
  3125. src.returnValue === false ? returnTrue : returnFalse;
  3126. this.target = src.target && src.target.nodeType === 3 ? src.target.parentNode : src.target;
  3127. this.currentTarget = src.currentTarget;
  3128. this.relatedTarget = src.relatedTarget;
  3129. } else {
  3130. this.type = src;
  3131. }
  3132. if (props) {
  3133. jQuery.extend(this, props);
  3134. }
  3135. this.timeStamp = src && src.timeStamp || Date.now();
  3136. this[jQuery.expando] = true;
  3137. };
  3138. jQuery.Event.prototype = {
  3139. constructor: jQuery.Event,
  3140. isDefaultPrevented: returnFalse,
  3141. isPropagationStopped: returnFalse,
  3142. isImmediatePropagationStopped: returnFalse,
  3143. isSimulated: false,
  3144. preventDefault: function() {
  3145. var e = this.originalEvent;
  3146. this.isDefaultPrevented = returnTrue;
  3147. if (e && !this.isSimulated) {
  3148. e.preventDefault();
  3149. }
  3150. },
  3151. stopPropagation: function() {
  3152. var e = this.originalEvent;
  3153. this.isPropagationStopped = returnTrue;
  3154. if (e && !this.isSimulated) {
  3155. e.stopPropagation();
  3156. }
  3157. },
  3158. stopImmediatePropagation: function() {
  3159. var e = this.originalEvent;
  3160. this.isImmediatePropagationStopped = returnTrue;
  3161. if (e && !this.isSimulated) {
  3162. e.stopImmediatePropagation();
  3163. }
  3164. this.stopPropagation();
  3165. }
  3166. };
  3167. jQuery.each({
  3168. altKey: true,
  3169. bubbles: true,
  3170. cancelable: true,
  3171. changedTouches: true,
  3172. ctrlKey: true,
  3173. detail: true,
  3174. eventPhase: true,
  3175. metaKey: true,
  3176. pageX: true,
  3177. pageY: true,
  3178. shiftKey: true,
  3179. view: true,
  3180. "char": true,
  3181. code: true,
  3182. charCode: true,
  3183. key: true,
  3184. keyCode: true,
  3185. button: true,
  3186. buttons: true,
  3187. clientX: true,
  3188. clientY: true,
  3189. offsetX: true,
  3190. offsetY: true,
  3191. pointerId: true,
  3192. pointerType: true,
  3193. screenX: true,
  3194. screenY: true,
  3195. targetTouches: true,
  3196. toElement: true,
  3197. touches: true,
  3198. which: true
  3199. }, jQuery.event.addProp);
  3200. jQuery.each({ focus: "focusin", blur: "focusout" }, function(type, delegateType) {
  3201. function focusMappedHandler(nativeEvent) {
  3202. if (document.documentMode) {
  3203. var handle = dataPriv.get(this, "handle"), event = jQuery.event.fix(nativeEvent);
  3204. event.type = nativeEvent.type === "focusin" ? "focus" : "blur";
  3205. event.isSimulated = true;
  3206. handle(nativeEvent);
  3207. if (event.target === event.currentTarget) {
  3208. handle(event);
  3209. }
  3210. } else {
  3211. jQuery.event.simulate(
  3212. delegateType,
  3213. nativeEvent.target,
  3214. jQuery.event.fix(nativeEvent)
  3215. );
  3216. }
  3217. }
  3218. jQuery.event.special[type] = {
  3219. // Utilize native event if possible so blur/focus sequence is correct
  3220. setup: function() {
  3221. var attaches;
  3222. leverageNative(this, type, true);
  3223. if (document.documentMode) {
  3224. attaches = dataPriv.get(this, delegateType);
  3225. if (!attaches) {
  3226. this.addEventListener(delegateType, focusMappedHandler);
  3227. }
  3228. dataPriv.set(this, delegateType, (attaches || 0) + 1);
  3229. } else {
  3230. return false;
  3231. }
  3232. },
  3233. trigger: function() {
  3234. leverageNative(this, type);
  3235. return true;
  3236. },
  3237. teardown: function() {
  3238. var attaches;
  3239. if (document.documentMode) {
  3240. attaches = dataPriv.get(this, delegateType) - 1;
  3241. if (!attaches) {
  3242. this.removeEventListener(delegateType, focusMappedHandler);
  3243. dataPriv.remove(this, delegateType);
  3244. } else {
  3245. dataPriv.set(this, delegateType, attaches);
  3246. }
  3247. } else {
  3248. return false;
  3249. }
  3250. },
  3251. // Suppress native focus or blur if we're currently inside
  3252. // a leveraged native-event stack
  3253. _default: function(event) {
  3254. return dataPriv.get(event.target, type);
  3255. },
  3256. delegateType
  3257. };
  3258. jQuery.event.special[delegateType] = {
  3259. setup: function() {
  3260. var doc = this.ownerDocument || this.document || this, dataHolder = document.documentMode ? this : doc, attaches = dataPriv.get(dataHolder, delegateType);
  3261. if (!attaches) {
  3262. if (document.documentMode) {
  3263. this.addEventListener(delegateType, focusMappedHandler);
  3264. } else {
  3265. doc.addEventListener(type, focusMappedHandler, true);
  3266. }
  3267. }
  3268. dataPriv.set(dataHolder, delegateType, (attaches || 0) + 1);
  3269. },
  3270. teardown: function() {
  3271. var doc = this.ownerDocument || this.document || this, dataHolder = document.documentMode ? this : doc, attaches = dataPriv.get(dataHolder, delegateType) - 1;
  3272. if (!attaches) {
  3273. if (document.documentMode) {
  3274. this.removeEventListener(delegateType, focusMappedHandler);
  3275. } else {
  3276. doc.removeEventListener(type, focusMappedHandler, true);
  3277. }
  3278. dataPriv.remove(dataHolder, delegateType);
  3279. } else {
  3280. dataPriv.set(dataHolder, delegateType, attaches);
  3281. }
  3282. }
  3283. };
  3284. });
  3285. jQuery.each({
  3286. mouseenter: "mouseover",
  3287. mouseleave: "mouseout",
  3288. pointerenter: "pointerover",
  3289. pointerleave: "pointerout"
  3290. }, function(orig, fix) {
  3291. jQuery.event.special[orig] = {
  3292. delegateType: fix,
  3293. bindType: fix,
  3294. handle: function(event) {
  3295. var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj;
  3296. if (!related || related !== target && !jQuery.contains(target, related)) {
  3297. event.type = handleObj.origType;
  3298. ret = handleObj.handler.apply(this, arguments);
  3299. event.type = fix;
  3300. }
  3301. return ret;
  3302. }
  3303. };
  3304. });
  3305. jQuery.fn.extend({
  3306. on: function(types, selector, data, fn) {
  3307. return on(this, types, selector, data, fn);
  3308. },
  3309. one: function(types, selector, data, fn) {
  3310. return on(this, types, selector, data, fn, 1);
  3311. },
  3312. off: function(types, selector, fn) {
  3313. var handleObj, type;
  3314. if (types && types.preventDefault && types.handleObj) {
  3315. handleObj = types.handleObj;
  3316. jQuery(types.delegateTarget).off(
  3317. handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
  3318. handleObj.selector,
  3319. handleObj.handler
  3320. );
  3321. return this;
  3322. }
  3323. if (typeof types === "object") {
  3324. for (type in types) {
  3325. this.off(type, selector, types[type]);
  3326. }
  3327. return this;
  3328. }
  3329. if (selector === false || typeof selector === "function") {
  3330. fn = selector;
  3331. selector = void 0;
  3332. }
  3333. if (fn === false) {
  3334. fn = returnFalse;
  3335. }
  3336. return this.each(function() {
  3337. jQuery.event.remove(this, types, fn, selector);
  3338. });
  3339. }
  3340. });
  3341. var rnoInnerhtml = /<script|<style|<link/i, rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rcleanScript = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
  3342. function manipulationTarget(elem, content) {
  3343. if (nodeName(elem, "table") && nodeName(content.nodeType !== 11 ? content : content.firstChild, "tr")) {
  3344. return jQuery(elem).children("tbody")[0] || elem;
  3345. }
  3346. return elem;
  3347. }
  3348. function disableScript(elem) {
  3349. elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
  3350. return elem;
  3351. }
  3352. function restoreScript(elem) {
  3353. if ((elem.type || "").slice(0, 5) === "true/") {
  3354. elem.type = elem.type.slice(5);
  3355. } else {
  3356. elem.removeAttribute("type");
  3357. }
  3358. return elem;
  3359. }
  3360. function cloneCopyEvent(src, dest) {
  3361. var i, l, type, pdataOld, udataOld, udataCur, events;
  3362. if (dest.nodeType !== 1) {
  3363. return;
  3364. }
  3365. if (dataPriv.hasData(src)) {
  3366. pdataOld = dataPriv.get(src);
  3367. events = pdataOld.events;
  3368. if (events) {
  3369. dataPriv.remove(dest, "handle events");
  3370. for (type in events) {
  3371. for (i = 0, l = events[type].length; i < l; i++) {
  3372. jQuery.event.add(dest, type, events[type][i]);
  3373. }
  3374. }
  3375. }
  3376. }
  3377. if (dataUser.hasData(src)) {
  3378. udataOld = dataUser.access(src);
  3379. udataCur = jQuery.extend({}, udataOld);
  3380. dataUser.set(dest, udataCur);
  3381. }
  3382. }
  3383. function fixInput(src, dest) {
  3384. var nodeName2 = dest.nodeName.toLowerCase();
  3385. if (nodeName2 === "input" && rcheckableType.test(src.type)) {
  3386. dest.checked = src.checked;
  3387. } else if (nodeName2 === "input" || nodeName2 === "textarea") {
  3388. dest.defaultValue = src.defaultValue;
  3389. }
  3390. }
  3391. function domManip(collection, args, callback, ignored) {
  3392. args = flat(args);
  3393. var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[0], valueIsFunction = isFunction(value);
  3394. if (valueIsFunction || l > 1 && typeof value === "string" && !support.checkClone && rchecked.test(value)) {
  3395. return collection.each(function(index) {
  3396. var self = collection.eq(index);
  3397. if (valueIsFunction) {
  3398. args[0] = value.call(this, index, self.html());
  3399. }
  3400. domManip(self, args, callback, ignored);
  3401. });
  3402. }
  3403. if (l) {
  3404. fragment = buildFragment(args, collection[0].ownerDocument, false, collection, ignored);
  3405. first = fragment.firstChild;
  3406. if (fragment.childNodes.length === 1) {
  3407. fragment = first;
  3408. }
  3409. if (first || ignored) {
  3410. scripts = jQuery.map(getAll(fragment, "script"), disableScript);
  3411. hasScripts = scripts.length;
  3412. for (; i < l; i++) {
  3413. node = fragment;
  3414. if (i !== iNoClone) {
  3415. node = jQuery.clone(node, true, true);
  3416. if (hasScripts) {
  3417. jQuery.merge(scripts, getAll(node, "script"));
  3418. }
  3419. }
  3420. callback.call(collection[i], node, i);
  3421. }
  3422. if (hasScripts) {
  3423. doc = scripts[scripts.length - 1].ownerDocument;
  3424. jQuery.map(scripts, restoreScript);
  3425. for (i = 0; i < hasScripts; i++) {
  3426. node = scripts[i];
  3427. if (rscriptType.test(node.type || "") && !dataPriv.access(node, "globalEval") && jQuery.contains(doc, node)) {
  3428. if (node.src && (node.type || "").toLowerCase() !== "module") {
  3429. if (jQuery._evalUrl && !node.noModule) {
  3430. jQuery._evalUrl(node.src, {
  3431. nonce: node.nonce || node.getAttribute("nonce")
  3432. }, doc);
  3433. }
  3434. } else {
  3435. DOMEval(node.textContent.replace(rcleanScript, ""), node, doc);
  3436. }
  3437. }
  3438. }
  3439. }
  3440. }
  3441. }
  3442. return collection;
  3443. }
  3444. function remove(elem, selector, keepData) {
  3445. var node, nodes = selector ? jQuery.filter(selector, elem) : elem, i = 0;
  3446. for (; (node = nodes[i]) != null; i++) {
  3447. if (!keepData && node.nodeType === 1) {
  3448. jQuery.cleanData(getAll(node));
  3449. }
  3450. if (node.parentNode) {
  3451. if (keepData && isAttached(node)) {
  3452. setGlobalEval(getAll(node, "script"));
  3453. }
  3454. node.parentNode.removeChild(node);
  3455. }
  3456. }
  3457. return elem;
  3458. }
  3459. jQuery.extend({
  3460. htmlPrefilter: function(html) {
  3461. return html;
  3462. },
  3463. clone: function(elem, dataAndEvents, deepDataAndEvents) {
  3464. var i, l, srcElements, destElements, clone = elem.cloneNode(true), inPage = isAttached(elem);
  3465. if (!support.noCloneChecked && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem)) {
  3466. destElements = getAll(clone);
  3467. srcElements = getAll(elem);
  3468. for (i = 0, l = srcElements.length; i < l; i++) {
  3469. fixInput(srcElements[i], destElements[i]);
  3470. }
  3471. }
  3472. if (dataAndEvents) {
  3473. if (deepDataAndEvents) {
  3474. srcElements = srcElements || getAll(elem);
  3475. destElements = destElements || getAll(clone);
  3476. for (i = 0, l = srcElements.length; i < l; i++) {
  3477. cloneCopyEvent(srcElements[i], destElements[i]);
  3478. }
  3479. } else {
  3480. cloneCopyEvent(elem, clone);
  3481. }
  3482. }
  3483. destElements = getAll(clone, "script");
  3484. if (destElements.length > 0) {
  3485. setGlobalEval(destElements, !inPage && getAll(elem, "script"));
  3486. }
  3487. return clone;
  3488. },
  3489. cleanData: function(elems) {
  3490. var data, elem, type, special = jQuery.event.special, i = 0;
  3491. for (; (elem = elems[i]) !== void 0; i++) {
  3492. if (acceptData(elem)) {
  3493. if (data = elem[dataPriv.expando]) {
  3494. if (data.events) {
  3495. for (type in data.events) {
  3496. if (special[type]) {
  3497. jQuery.event.remove(elem, type);
  3498. } else {
  3499. jQuery.removeEvent(elem, type, data.handle);
  3500. }
  3501. }
  3502. }
  3503. elem[dataPriv.expando] = void 0;
  3504. }
  3505. if (elem[dataUser.expando]) {
  3506. elem[dataUser.expando] = void 0;
  3507. }
  3508. }
  3509. }
  3510. }
  3511. });
  3512. jQuery.fn.extend({
  3513. detach: function(selector) {
  3514. return remove(this, selector, true);
  3515. },
  3516. remove: function(selector) {
  3517. return remove(this, selector);
  3518. },
  3519. text: function(value) {
  3520. return access(this, function(value2) {
  3521. return value2 === void 0 ? jQuery.text(this) : this.empty().each(function() {
  3522. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3523. this.textContent = value2;
  3524. }
  3525. });
  3526. }, null, value, arguments.length);
  3527. },
  3528. append: function() {
  3529. return domManip(this, arguments, function(elem) {
  3530. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3531. var target = manipulationTarget(this, elem);
  3532. target.appendChild(elem);
  3533. }
  3534. });
  3535. },
  3536. prepend: function() {
  3537. return domManip(this, arguments, function(elem) {
  3538. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3539. var target = manipulationTarget(this, elem);
  3540. target.insertBefore(elem, target.firstChild);
  3541. }
  3542. });
  3543. },
  3544. before: function() {
  3545. return domManip(this, arguments, function(elem) {
  3546. if (this.parentNode) {
  3547. this.parentNode.insertBefore(elem, this);
  3548. }
  3549. });
  3550. },
  3551. after: function() {
  3552. return domManip(this, arguments, function(elem) {
  3553. if (this.parentNode) {
  3554. this.parentNode.insertBefore(elem, this.nextSibling);
  3555. }
  3556. });
  3557. },
  3558. empty: function() {
  3559. var elem, i = 0;
  3560. for (; (elem = this[i]) != null; i++) {
  3561. if (elem.nodeType === 1) {
  3562. jQuery.cleanData(getAll(elem, false));
  3563. elem.textContent = "";
  3564. }
  3565. }
  3566. return this;
  3567. },
  3568. clone: function(dataAndEvents, deepDataAndEvents) {
  3569. dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
  3570. deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
  3571. return this.map(function() {
  3572. return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
  3573. });
  3574. },
  3575. html: function(value) {
  3576. return access(this, function(value2) {
  3577. var elem = this[0] || {}, i = 0, l = this.length;
  3578. if (value2 === void 0 && elem.nodeType === 1) {
  3579. return elem.innerHTML;
  3580. }
  3581. if (typeof value2 === "string" && !rnoInnerhtml.test(value2) && !wrapMap[(rtagName.exec(value2) || ["", ""])[1].toLowerCase()]) {
  3582. value2 = jQuery.htmlPrefilter(value2);
  3583. try {
  3584. for (; i < l; i++) {
  3585. elem = this[i] || {};
  3586. if (elem.nodeType === 1) {
  3587. jQuery.cleanData(getAll(elem, false));
  3588. elem.innerHTML = value2;
  3589. }
  3590. }
  3591. elem = 0;
  3592. } catch (e) {
  3593. }
  3594. }
  3595. if (elem) {
  3596. this.empty().append(value2);
  3597. }
  3598. }, null, value, arguments.length);
  3599. },
  3600. replaceWith: function() {
  3601. var ignored = [];
  3602. return domManip(this, arguments, function(elem) {
  3603. var parent = this.parentNode;
  3604. if (jQuery.inArray(this, ignored) < 0) {
  3605. jQuery.cleanData(getAll(this));
  3606. if (parent) {
  3607. parent.replaceChild(elem, this);
  3608. }
  3609. }
  3610. }, ignored);
  3611. }
  3612. });
  3613. jQuery.each({
  3614. appendTo: "append",
  3615. prependTo: "prepend",
  3616. insertBefore: "before",
  3617. insertAfter: "after",
  3618. replaceAll: "replaceWith"
  3619. }, function(name, original) {
  3620. jQuery.fn[name] = function(selector) {
  3621. var elems, ret = [], insert = jQuery(selector), last = insert.length - 1, i = 0;
  3622. for (; i <= last; i++) {
  3623. elems = i === last ? this : this.clone(true);
  3624. jQuery(insert[i])[original](elems);
  3625. push.apply(ret, elems.get());
  3626. }
  3627. return this.pushStack(ret);
  3628. };
  3629. });
  3630. var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i");
  3631. var rcustomProp = /^--/;
  3632. var getStyles = function(elem) {
  3633. var view = elem.ownerDocument.defaultView;
  3634. if (!view || !view.opener) {
  3635. view = window2;
  3636. }
  3637. return view.getComputedStyle(elem);
  3638. };
  3639. var swap = function(elem, options, callback) {
  3640. var ret, name, old = {};
  3641. for (name in options) {
  3642. old[name] = elem.style[name];
  3643. elem.style[name] = options[name];
  3644. }
  3645. ret = callback.call(elem);
  3646. for (name in options) {
  3647. elem.style[name] = old[name];
  3648. }
  3649. return ret;
  3650. };
  3651. var rboxStyle = new RegExp(cssExpand.join("|"), "i");
  3652. (function() {
  3653. function computeStyleTests() {
  3654. if (!div) {
  3655. return;
  3656. }
  3657. container.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";
  3658. div.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";
  3659. documentElement.appendChild(container).appendChild(div);
  3660. var divStyle = window2.getComputedStyle(div);
  3661. pixelPositionVal = divStyle.top !== "1%";
  3662. reliableMarginLeftVal = roundPixelMeasures(divStyle.marginLeft) === 12;
  3663. div.style.right = "60%";
  3664. pixelBoxStylesVal = roundPixelMeasures(divStyle.right) === 36;
  3665. boxSizingReliableVal = roundPixelMeasures(divStyle.width) === 36;
  3666. div.style.position = "absolute";
  3667. scrollboxSizeVal = roundPixelMeasures(div.offsetWidth / 3) === 12;
  3668. documentElement.removeChild(container);
  3669. div = null;
  3670. }
  3671. function roundPixelMeasures(measure) {
  3672. return Math.round(parseFloat(measure));
  3673. }
  3674. var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, reliableTrDimensionsVal, reliableMarginLeftVal, container = document.createElement("div"), div = document.createElement("div");
  3675. if (!div.style) {
  3676. return;
  3677. }
  3678. div.style.backgroundClip = "content-box";
  3679. div.cloneNode(true).style.backgroundClip = "";
  3680. support.clearCloneStyle = div.style.backgroundClip === "content-box";
  3681. jQuery.extend(support, {
  3682. boxSizingReliable: function() {
  3683. computeStyleTests();
  3684. return boxSizingReliableVal;
  3685. },
  3686. pixelBoxStyles: function() {
  3687. computeStyleTests();
  3688. return pixelBoxStylesVal;
  3689. },
  3690. pixelPosition: function() {
  3691. computeStyleTests();
  3692. return pixelPositionVal;
  3693. },
  3694. reliableMarginLeft: function() {
  3695. computeStyleTests();
  3696. return reliableMarginLeftVal;
  3697. },
  3698. scrollboxSize: function() {
  3699. computeStyleTests();
  3700. return scrollboxSizeVal;
  3701. },
  3702. // Support: IE 9 - 11+, Edge 15 - 18+
  3703. // IE/Edge misreport `getComputedStyle` of table rows with width/height
  3704. // set in CSS while `offset*` properties report correct values.
  3705. // Behavior in IE 9 is more subtle than in newer versions & it passes
  3706. // some versions of this test; make sure not to make it pass there!
  3707. //
  3708. // Support: Firefox 70+
  3709. // Only Firefox includes border widths
  3710. // in computed dimensions. (gh-4529)
  3711. reliableTrDimensions: function() {
  3712. var table, tr, trChild, trStyle;
  3713. if (reliableTrDimensionsVal == null) {
  3714. table = document.createElement("table");
  3715. tr = document.createElement("tr");
  3716. trChild = document.createElement("div");
  3717. table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
  3718. tr.style.cssText = "box-sizing:content-box;border:1px solid";
  3719. tr.style.height = "1px";
  3720. trChild.style.height = "9px";
  3721. trChild.style.display = "block";
  3722. documentElement.appendChild(table).appendChild(tr).appendChild(trChild);
  3723. trStyle = window2.getComputedStyle(tr);
  3724. reliableTrDimensionsVal = parseInt(trStyle.height, 10) + parseInt(trStyle.borderTopWidth, 10) + parseInt(trStyle.borderBottomWidth, 10) === tr.offsetHeight;
  3725. documentElement.removeChild(table);
  3726. }
  3727. return reliableTrDimensionsVal;
  3728. }
  3729. });
  3730. })();
  3731. function curCSS(elem, name, computed) {
  3732. var width, minWidth, maxWidth, ret, isCustomProp = rcustomProp.test(name), style = elem.style;
  3733. computed = computed || getStyles(elem);
  3734. if (computed) {
  3735. ret = computed.getPropertyValue(name) || computed[name];
  3736. if (isCustomProp && ret) {
  3737. ret = ret.replace(rtrimCSS, "$1") || void 0;
  3738. }
  3739. if (ret === "" && !isAttached(elem)) {
  3740. ret = jQuery.style(elem, name);
  3741. }
  3742. if (!support.pixelBoxStyles() && rnumnonpx.test(ret) && rboxStyle.test(name)) {
  3743. width = style.width;
  3744. minWidth = style.minWidth;
  3745. maxWidth = style.maxWidth;
  3746. style.minWidth = style.maxWidth = style.width = ret;
  3747. ret = computed.width;
  3748. style.width = width;
  3749. style.minWidth = minWidth;
  3750. style.maxWidth = maxWidth;
  3751. }
  3752. }
  3753. return ret !== void 0 ? (
  3754. // Support: IE <=9 - 11 only
  3755. // IE returns zIndex value as an integer.
  3756. ret + ""
  3757. ) : ret;
  3758. }
  3759. function addGetHookIf(conditionFn, hookFn) {
  3760. return {
  3761. get: function() {
  3762. if (conditionFn()) {
  3763. delete this.get;
  3764. return;
  3765. }
  3766. return (this.get = hookFn).apply(this, arguments);
  3767. }
  3768. };
  3769. }
  3770. var cssPrefixes = ["Webkit", "Moz", "ms"], emptyStyle = document.createElement("div").style, vendorProps = {};
  3771. function vendorPropName(name) {
  3772. var capName = name[0].toUpperCase() + name.slice(1), i = cssPrefixes.length;
  3773. while (i--) {
  3774. name = cssPrefixes[i] + capName;
  3775. if (name in emptyStyle) {
  3776. return name;
  3777. }
  3778. }
  3779. }
  3780. function finalPropName(name) {
  3781. var final = jQuery.cssProps[name] || vendorProps[name];
  3782. if (final) {
  3783. return final;
  3784. }
  3785. if (name in emptyStyle) {
  3786. return name;
  3787. }
  3788. return vendorProps[name] = vendorPropName(name) || name;
  3789. }
  3790. var rdisplayswap = /^(none|table(?!-c[ea]).+)/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = {
  3791. letterSpacing: "0",
  3792. fontWeight: "400"
  3793. };
  3794. function setPositiveNumber(_elem, value, subtract) {
  3795. var matches = rcssNum.exec(value);
  3796. return matches ? (
  3797. // Guard against undefined "subtract", e.g., when used as in cssHooks
  3798. Math.max(0, matches[2] - (subtract || 0)) + (matches[3] || "px")
  3799. ) : value;
  3800. }
  3801. function boxModelAdjustment(elem, dimension, box, isBorderBox, styles, computedVal) {
  3802. var i = dimension === "width" ? 1 : 0, extra = 0, delta = 0, marginDelta = 0;
  3803. if (box === (isBorderBox ? "border" : "content")) {
  3804. return 0;
  3805. }
  3806. for (; i < 4; i += 2) {
  3807. if (box === "margin") {
  3808. marginDelta += jQuery.css(elem, box + cssExpand[i], true, styles);
  3809. }
  3810. if (!isBorderBox) {
  3811. delta += jQuery.css(elem, "padding" + cssExpand[i], true, styles);
  3812. if (box !== "padding") {
  3813. delta += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3814. } else {
  3815. extra += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3816. }
  3817. } else {
  3818. if (box === "content") {
  3819. delta -= jQuery.css(elem, "padding" + cssExpand[i], true, styles);
  3820. }
  3821. if (box !== "margin") {
  3822. delta -= jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
  3823. }
  3824. }
  3825. }
  3826. if (!isBorderBox && computedVal >= 0) {
  3827. delta += Math.max(0, Math.ceil(
  3828. elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - computedVal - delta - extra - 0.5
  3829. // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
  3830. // Use an explicit zero to avoid NaN (gh-3964)
  3831. )) || 0;
  3832. }
  3833. return delta + marginDelta;
  3834. }
  3835. function getWidthOrHeight(elem, dimension, extra) {
  3836. var styles = getStyles(elem), boxSizingNeeded = !support.boxSizingReliable() || extra, isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box", valueIsBorderBox = isBorderBox, val = curCSS(elem, dimension, styles), offsetProp = "offset" + dimension[0].toUpperCase() + dimension.slice(1);
  3837. if (rnumnonpx.test(val)) {
  3838. if (!extra) {
  3839. return val;
  3840. }
  3841. val = "auto";
  3842. }
  3843. if ((!support.boxSizingReliable() && isBorderBox || // Support: IE 10 - 11+, Edge 15 - 18+
  3844. // IE/Edge misreport `getComputedStyle` of table rows with width/height
  3845. // set in CSS while `offset*` properties report correct values.
  3846. // Interestingly, in some cases IE 9 doesn't suffer from this issue.
  3847. !support.reliableTrDimensions() && nodeName(elem, "tr") || // Fall back to offsetWidth/offsetHeight when value is "auto"
  3848. // This happens for inline elements with no explicit setting (gh-3571)
  3849. val === "auto" || // Support: Android <=4.1 - 4.3 only
  3850. // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
  3851. !parseFloat(val) && jQuery.css(elem, "display", false, styles) === "inline") && // Make sure the element is visible & connected
  3852. elem.getClientRects().length) {
  3853. isBorderBox = jQuery.css(elem, "boxSizing", false, styles) === "border-box";
  3854. valueIsBorderBox = offsetProp in elem;
  3855. if (valueIsBorderBox) {
  3856. val = elem[offsetProp];
  3857. }
  3858. }
  3859. val = parseFloat(val) || 0;
  3860. return val + boxModelAdjustment(
  3861. elem,
  3862. dimension,
  3863. extra || (isBorderBox ? "border" : "content"),
  3864. valueIsBorderBox,
  3865. styles,
  3866. // Provide the current computed size to request scroll gutter calculation (gh-3589)
  3867. val
  3868. ) + "px";
  3869. }
  3870. jQuery.extend({
  3871. // Add in style property hooks for overriding the default
  3872. // behavior of getting and setting a style property
  3873. cssHooks: {
  3874. opacity: {
  3875. get: function(elem, computed) {
  3876. if (computed) {
  3877. var ret = curCSS(elem, "opacity");
  3878. return ret === "" ? "1" : ret;
  3879. }
  3880. }
  3881. }
  3882. },
  3883. // Don't automatically add "px" to these possibly-unitless properties
  3884. cssNumber: {
  3885. animationIterationCount: true,
  3886. aspectRatio: true,
  3887. borderImageSlice: true,
  3888. columnCount: true,
  3889. flexGrow: true,
  3890. flexShrink: true,
  3891. fontWeight: true,
  3892. gridArea: true,
  3893. gridColumn: true,
  3894. gridColumnEnd: true,
  3895. gridColumnStart: true,
  3896. gridRow: true,
  3897. gridRowEnd: true,
  3898. gridRowStart: true,
  3899. lineHeight: true,
  3900. opacity: true,
  3901. order: true,
  3902. orphans: true,
  3903. scale: true,
  3904. widows: true,
  3905. zIndex: true,
  3906. zoom: true,
  3907. // SVG-related
  3908. fillOpacity: true,
  3909. floodOpacity: true,
  3910. stopOpacity: true,
  3911. strokeMiterlimit: true,
  3912. strokeOpacity: true
  3913. },
  3914. // Add in properties whose names you wish to fix before
  3915. // setting or getting the value
  3916. cssProps: {},
  3917. // Get and set the style property on a DOM Node
  3918. style: function(elem, name, value, extra) {
  3919. if (!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style) {
  3920. return;
  3921. }
  3922. var ret, type, hooks, origName = camelCase(name), isCustomProp = rcustomProp.test(name), style = elem.style;
  3923. if (!isCustomProp) {
  3924. name = finalPropName(origName);
  3925. }
  3926. hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  3927. if (value !== void 0) {
  3928. type = typeof value;
  3929. if (type === "string" && (ret = rcssNum.exec(value)) && ret[1]) {
  3930. value = adjustCSS(elem, name, ret);
  3931. type = "number";
  3932. }
  3933. if (value == null || value !== value) {
  3934. return;
  3935. }
  3936. if (type === "number" && !isCustomProp) {
  3937. value += ret && ret[3] || (jQuery.cssNumber[origName] ? "" : "px");
  3938. }
  3939. if (!support.clearCloneStyle && value === "" && name.indexOf("background") === 0) {
  3940. style[name] = "inherit";
  3941. }
  3942. if (!hooks || !("set" in hooks) || (value = hooks.set(elem, value, extra)) !== void 0) {
  3943. if (isCustomProp) {
  3944. style.setProperty(name, value);
  3945. } else {
  3946. style[name] = value;
  3947. }
  3948. }
  3949. } else {
  3950. if (hooks && "get" in hooks && (ret = hooks.get(elem, false, extra)) !== void 0) {
  3951. return ret;
  3952. }
  3953. return style[name];
  3954. }
  3955. },
  3956. css: function(elem, name, extra, styles) {
  3957. var val, num, hooks, origName = camelCase(name), isCustomProp = rcustomProp.test(name);
  3958. if (!isCustomProp) {
  3959. name = finalPropName(origName);
  3960. }
  3961. hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  3962. if (hooks && "get" in hooks) {
  3963. val = hooks.get(elem, true, extra);
  3964. }
  3965. if (val === void 0) {
  3966. val = curCSS(elem, name, styles);
  3967. }
  3968. if (val === "normal" && name in cssNormalTransform) {
  3969. val = cssNormalTransform[name];
  3970. }
  3971. if (extra === "" || extra) {
  3972. num = parseFloat(val);
  3973. return extra === true || isFinite(num) ? num || 0 : val;
  3974. }
  3975. return val;
  3976. }
  3977. });
  3978. jQuery.each(["height", "width"], function(_i, dimension) {
  3979. jQuery.cssHooks[dimension] = {
  3980. get: function(elem, computed, extra) {
  3981. if (computed) {
  3982. return rdisplayswap.test(jQuery.css(elem, "display")) && // Support: Safari 8+
  3983. // Table columns in Safari have non-zero offsetWidth & zero
  3984. // getBoundingClientRect().width unless display is changed.
  3985. // Support: IE <=11 only
  3986. // Running getBoundingClientRect on a disconnected node
  3987. // in IE throws an error.
  3988. (!elem.getClientRects().length || !elem.getBoundingClientRect().width) ? swap(elem, cssShow, function() {
  3989. return getWidthOrHeight(elem, dimension, extra);
  3990. }) : getWidthOrHeight(elem, dimension, extra);
  3991. }
  3992. },
  3993. set: function(elem, value, extra) {
  3994. var matches, styles = getStyles(elem), scrollboxSizeBuggy = !support.scrollboxSize() && styles.position === "absolute", boxSizingNeeded = scrollboxSizeBuggy || extra, isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box", subtract = extra ? boxModelAdjustment(
  3995. elem,
  3996. dimension,
  3997. extra,
  3998. isBorderBox,
  3999. styles
  4000. ) : 0;
  4001. if (isBorderBox && scrollboxSizeBuggy) {
  4002. subtract -= Math.ceil(
  4003. elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - 0.5
  4004. );
  4005. }
  4006. if (subtract && (matches = rcssNum.exec(value)) && (matches[3] || "px") !== "px") {
  4007. elem.style[dimension] = value;
  4008. value = jQuery.css(elem, dimension);
  4009. }
  4010. return setPositiveNumber(elem, value, subtract);
  4011. }
  4012. };
  4013. });
  4014. jQuery.cssHooks.marginLeft = addGetHookIf(
  4015. support.reliableMarginLeft,
  4016. function(elem, computed) {
  4017. if (computed) {
  4018. return (parseFloat(curCSS(elem, "marginLeft")) || elem.getBoundingClientRect().left - swap(elem, { marginLeft: 0 }, function() {
  4019. return elem.getBoundingClientRect().left;
  4020. })) + "px";
  4021. }
  4022. }
  4023. );
  4024. jQuery.each({
  4025. margin: "",
  4026. padding: "",
  4027. border: "Width"
  4028. }, function(prefix, suffix) {
  4029. jQuery.cssHooks[prefix + suffix] = {
  4030. expand: function(value) {
  4031. var i = 0, expanded = {}, parts = typeof value === "string" ? value.split(" ") : [value];
  4032. for (; i < 4; i++) {
  4033. expanded[prefix + cssExpand[i] + suffix] = parts[i] || parts[i - 2] || parts[0];
  4034. }
  4035. return expanded;
  4036. }
  4037. };
  4038. if (prefix !== "margin") {
  4039. jQuery.cssHooks[prefix + suffix].set = setPositiveNumber;
  4040. }
  4041. });
  4042. jQuery.fn.extend({
  4043. css: function(name, value) {
  4044. return access(this, function(elem, name2, value2) {
  4045. var styles, len, map = {}, i = 0;
  4046. if (Array.isArray(name2)) {
  4047. styles = getStyles(elem);
  4048. len = name2.length;
  4049. for (; i < len; i++) {
  4050. map[name2[i]] = jQuery.css(elem, name2[i], false, styles);
  4051. }
  4052. return map;
  4053. }
  4054. return value2 !== void 0 ? jQuery.style(elem, name2, value2) : jQuery.css(elem, name2);
  4055. }, name, value, arguments.length > 1);
  4056. }
  4057. });
  4058. function Tween(elem, options, prop, end, easing) {
  4059. return new Tween.prototype.init(elem, options, prop, end, easing);
  4060. }
  4061. jQuery.Tween = Tween;
  4062. Tween.prototype = {
  4063. constructor: Tween,
  4064. init: function(elem, options, prop, end, easing, unit) {
  4065. this.elem = elem;
  4066. this.prop = prop;
  4067. this.easing = easing || jQuery.easing._default;
  4068. this.options = options;
  4069. this.start = this.now = this.cur();
  4070. this.end = end;
  4071. this.unit = unit || (jQuery.cssNumber[prop] ? "" : "px");
  4072. },
  4073. cur: function() {
  4074. var hooks = Tween.propHooks[this.prop];
  4075. return hooks && hooks.get ? hooks.get(this) : Tween.propHooks._default.get(this);
  4076. },
  4077. run: function(percent) {
  4078. var eased, hooks = Tween.propHooks[this.prop];
  4079. if (this.options.duration) {
  4080. this.pos = eased = jQuery.easing[this.easing](
  4081. percent,
  4082. this.options.duration * percent,
  4083. 0,
  4084. 1,
  4085. this.options.duration
  4086. );
  4087. } else {
  4088. this.pos = eased = percent;
  4089. }
  4090. this.now = (this.end - this.start) * eased + this.start;
  4091. if (this.options.step) {
  4092. this.options.step.call(this.elem, this.now, this);
  4093. }
  4094. if (hooks && hooks.set) {
  4095. hooks.set(this);
  4096. } else {
  4097. Tween.propHooks._default.set(this);
  4098. }
  4099. return this;
  4100. }
  4101. };
  4102. Tween.prototype.init.prototype = Tween.prototype;
  4103. Tween.propHooks = {
  4104. _default: {
  4105. get: function(tween) {
  4106. var result;
  4107. if (tween.elem.nodeType !== 1 || tween.elem[tween.prop] != null && tween.elem.style[tween.prop] == null) {
  4108. return tween.elem[tween.prop];
  4109. }
  4110. result = jQuery.css(tween.elem, tween.prop, "");
  4111. return !result || result === "auto" ? 0 : result;
  4112. },
  4113. set: function(tween) {
  4114. if (jQuery.fx.step[tween.prop]) {
  4115. jQuery.fx.step[tween.prop](tween);
  4116. } else if (tween.elem.nodeType === 1 && (jQuery.cssHooks[tween.prop] || tween.elem.style[finalPropName(tween.prop)] != null)) {
  4117. jQuery.style(tween.elem, tween.prop, tween.now + tween.unit);
  4118. } else {
  4119. tween.elem[tween.prop] = tween.now;
  4120. }
  4121. }
  4122. }
  4123. };
  4124. Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
  4125. set: function(tween) {
  4126. if (tween.elem.nodeType && tween.elem.parentNode) {
  4127. tween.elem[tween.prop] = tween.now;
  4128. }
  4129. }
  4130. };
  4131. jQuery.easing = {
  4132. linear: function(p) {
  4133. return p;
  4134. },
  4135. swing: function(p) {
  4136. return 0.5 - Math.cos(p * Math.PI) / 2;
  4137. },
  4138. _default: "swing"
  4139. };
  4140. jQuery.fx = Tween.prototype.init;
  4141. jQuery.fx.step = {};
  4142. var fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/;
  4143. function schedule() {
  4144. if (inProgress) {
  4145. if (document.hidden === false && window2.requestAnimationFrame) {
  4146. window2.requestAnimationFrame(schedule);
  4147. } else {
  4148. window2.setTimeout(schedule, jQuery.fx.interval);
  4149. }
  4150. jQuery.fx.tick();
  4151. }
  4152. }
  4153. function createFxNow() {
  4154. window2.setTimeout(function() {
  4155. fxNow = void 0;
  4156. });
  4157. return fxNow = Date.now();
  4158. }
  4159. function genFx(type, includeWidth) {
  4160. var which, i = 0, attrs = { height: type };
  4161. includeWidth = includeWidth ? 1 : 0;
  4162. for (; i < 4; i += 2 - includeWidth) {
  4163. which = cssExpand[i];
  4164. attrs["margin" + which] = attrs["padding" + which] = type;
  4165. }
  4166. if (includeWidth) {
  4167. attrs.opacity = attrs.width = type;
  4168. }
  4169. return attrs;
  4170. }
  4171. function createTween(value, prop, animation) {
  4172. var tween, collection = (Animation.tweeners[prop] || []).concat(Animation.tweeners["*"]), index = 0, length = collection.length;
  4173. for (; index < length; index++) {
  4174. if (tween = collection[index].call(animation, prop, value)) {
  4175. return tween;
  4176. }
  4177. }
  4178. }
  4179. function defaultPrefilter(elem, props, opts) {
  4180. var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree(elem), dataShow = dataPriv.get(elem, "fxshow");
  4181. if (!opts.queue) {
  4182. hooks = jQuery._queueHooks(elem, "fx");
  4183. if (hooks.unqueued == null) {
  4184. hooks.unqueued = 0;
  4185. oldfire = hooks.empty.fire;
  4186. hooks.empty.fire = function() {
  4187. if (!hooks.unqueued) {
  4188. oldfire();
  4189. }
  4190. };
  4191. }
  4192. hooks.unqueued++;
  4193. anim.always(function() {
  4194. anim.always(function() {
  4195. hooks.unqueued--;
  4196. if (!jQuery.queue(elem, "fx").length) {
  4197. hooks.empty.fire();
  4198. }
  4199. });
  4200. });
  4201. }
  4202. for (prop in props) {
  4203. value = props[prop];
  4204. if (rfxtypes.test(value)) {
  4205. delete props[prop];
  4206. toggle = toggle || value === "toggle";
  4207. if (value === (hidden ? "hide" : "show")) {
  4208. if (value === "show" && dataShow && dataShow[prop] !== void 0) {
  4209. hidden = true;
  4210. } else {
  4211. continue;
  4212. }
  4213. }
  4214. orig[prop] = dataShow && dataShow[prop] || jQuery.style(elem, prop);
  4215. }
  4216. }
  4217. propTween = !jQuery.isEmptyObject(props);
  4218. if (!propTween && jQuery.isEmptyObject(orig)) {
  4219. return;
  4220. }
  4221. if (isBox && elem.nodeType === 1) {
  4222. opts.overflow = [style.overflow, style.overflowX, style.overflowY];
  4223. restoreDisplay = dataShow && dataShow.display;
  4224. if (restoreDisplay == null) {
  4225. restoreDisplay = dataPriv.get(elem, "display");
  4226. }
  4227. display = jQuery.css(elem, "display");
  4228. if (display === "none") {
  4229. if (restoreDisplay) {
  4230. display = restoreDisplay;
  4231. } else {
  4232. showHide([elem], true);
  4233. restoreDisplay = elem.style.display || restoreDisplay;
  4234. display = jQuery.css(elem, "display");
  4235. showHide([elem]);
  4236. }
  4237. }
  4238. if (display === "inline" || display === "inline-block" && restoreDisplay != null) {
  4239. if (jQuery.css(elem, "float") === "none") {
  4240. if (!propTween) {
  4241. anim.done(function() {
  4242. style.display = restoreDisplay;
  4243. });
  4244. if (restoreDisplay == null) {
  4245. display = style.display;
  4246. restoreDisplay = display === "none" ? "" : display;
  4247. }
  4248. }
  4249. style.display = "inline-block";
  4250. }
  4251. }
  4252. }
  4253. if (opts.overflow) {
  4254. style.overflow = "hidden";
  4255. anim.always(function() {
  4256. style.overflow = opts.overflow[0];
  4257. style.overflowX = opts.overflow[1];
  4258. style.overflowY = opts.overflow[2];
  4259. });
  4260. }
  4261. propTween = false;
  4262. for (prop in orig) {
  4263. if (!propTween) {
  4264. if (dataShow) {
  4265. if ("hidden" in dataShow) {
  4266. hidden = dataShow.hidden;
  4267. }
  4268. } else {
  4269. dataShow = dataPriv.access(elem, "fxshow", { display: restoreDisplay });
  4270. }
  4271. if (toggle) {
  4272. dataShow.hidden = !hidden;
  4273. }
  4274. if (hidden) {
  4275. showHide([elem], true);
  4276. }
  4277. anim.done(function() {
  4278. if (!hidden) {
  4279. showHide([elem]);
  4280. }
  4281. dataPriv.remove(elem, "fxshow");
  4282. for (prop in orig) {
  4283. jQuery.style(elem, prop, orig[prop]);
  4284. }
  4285. });
  4286. }
  4287. propTween = createTween(hidden ? dataShow[prop] : 0, prop, anim);
  4288. if (!(prop in dataShow)) {
  4289. dataShow[prop] = propTween.start;
  4290. if (hidden) {
  4291. propTween.end = propTween.start;
  4292. propTween.start = 0;
  4293. }
  4294. }
  4295. }
  4296. }
  4297. function propFilter(props, specialEasing) {
  4298. var index, name, easing, value, hooks;
  4299. for (index in props) {
  4300. name = camelCase(index);
  4301. easing = specialEasing[name];
  4302. value = props[index];
  4303. if (Array.isArray(value)) {
  4304. easing = value[1];
  4305. value = props[index] = value[0];
  4306. }
  4307. if (index !== name) {
  4308. props[name] = value;
  4309. delete props[index];
  4310. }
  4311. hooks = jQuery.cssHooks[name];
  4312. if (hooks && "expand" in hooks) {
  4313. value = hooks.expand(value);
  4314. delete props[name];
  4315. for (index in value) {
  4316. if (!(index in props)) {
  4317. props[index] = value[index];
  4318. specialEasing[index] = easing;
  4319. }
  4320. }
  4321. } else {
  4322. specialEasing[name] = easing;
  4323. }
  4324. }
  4325. }
  4326. function Animation(elem, properties, options) {
  4327. var result, stopped, index = 0, length = Animation.prefilters.length, deferred = jQuery.Deferred().always(function() {
  4328. delete tick.elem;
  4329. }), tick = function() {
  4330. if (stopped) {
  4331. return false;
  4332. }
  4333. var currentTime = fxNow || createFxNow(), remaining = Math.max(0, animation.startTime + animation.duration - currentTime), temp = remaining / animation.duration || 0, percent = 1 - temp, index2 = 0, length2 = animation.tweens.length;
  4334. for (; index2 < length2; index2++) {
  4335. animation.tweens[index2].run(percent);
  4336. }
  4337. deferred.notifyWith(elem, [animation, percent, remaining]);
  4338. if (percent < 1 && length2) {
  4339. return remaining;
  4340. }
  4341. if (!length2) {
  4342. deferred.notifyWith(elem, [animation, 1, 0]);
  4343. }
  4344. deferred.resolveWith(elem, [animation]);
  4345. return false;
  4346. }, animation = deferred.promise({
  4347. elem,
  4348. props: jQuery.extend({}, properties),
  4349. opts: jQuery.extend(true, {
  4350. specialEasing: {},
  4351. easing: jQuery.easing._default
  4352. }, options),
  4353. originalProperties: properties,
  4354. originalOptions: options,
  4355. startTime: fxNow || createFxNow(),
  4356. duration: options.duration,
  4357. tweens: [],
  4358. createTween: function(prop, end) {
  4359. var tween = jQuery.Tween(
  4360. elem,
  4361. animation.opts,
  4362. prop,
  4363. end,
  4364. animation.opts.specialEasing[prop] || animation.opts.easing
  4365. );
  4366. animation.tweens.push(tween);
  4367. return tween;
  4368. },
  4369. stop: function(gotoEnd) {
  4370. var index2 = 0, length2 = gotoEnd ? animation.tweens.length : 0;
  4371. if (stopped) {
  4372. return this;
  4373. }
  4374. stopped = true;
  4375. for (; index2 < length2; index2++) {
  4376. animation.tweens[index2].run(1);
  4377. }
  4378. if (gotoEnd) {
  4379. deferred.notifyWith(elem, [animation, 1, 0]);
  4380. deferred.resolveWith(elem, [animation, gotoEnd]);
  4381. } else {
  4382. deferred.rejectWith(elem, [animation, gotoEnd]);
  4383. }
  4384. return this;
  4385. }
  4386. }), props = animation.props;
  4387. propFilter(props, animation.opts.specialEasing);
  4388. for (; index < length; index++) {
  4389. result = Animation.prefilters[index].call(animation, elem, props, animation.opts);
  4390. if (result) {
  4391. if (isFunction(result.stop)) {
  4392. jQuery._queueHooks(animation.elem, animation.opts.queue).stop = result.stop.bind(result);
  4393. }
  4394. return result;
  4395. }
  4396. }
  4397. jQuery.map(props, createTween, animation);
  4398. if (isFunction(animation.opts.start)) {
  4399. animation.opts.start.call(elem, animation);
  4400. }
  4401. animation.progress(animation.opts.progress).done(animation.opts.done, animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);
  4402. jQuery.fx.timer(
  4403. jQuery.extend(tick, {
  4404. elem,
  4405. anim: animation,
  4406. queue: animation.opts.queue
  4407. })
  4408. );
  4409. return animation;
  4410. }
  4411. jQuery.Animation = jQuery.extend(Animation, {
  4412. tweeners: {
  4413. "*": [function(prop, value) {
  4414. var tween = this.createTween(prop, value);
  4415. adjustCSS(tween.elem, prop, rcssNum.exec(value), tween);
  4416. return tween;
  4417. }]
  4418. },
  4419. tweener: function(props, callback) {
  4420. if (isFunction(props)) {
  4421. callback = props;
  4422. props = ["*"];
  4423. } else {
  4424. props = props.match(rnothtmlwhite);
  4425. }
  4426. var prop, index = 0, length = props.length;
  4427. for (; index < length; index++) {
  4428. prop = props[index];
  4429. Animation.tweeners[prop] = Animation.tweeners[prop] || [];
  4430. Animation.tweeners[prop].unshift(callback);
  4431. }
  4432. },
  4433. prefilters: [defaultPrefilter],
  4434. prefilter: function(callback, prepend) {
  4435. if (prepend) {
  4436. Animation.prefilters.unshift(callback);
  4437. } else {
  4438. Animation.prefilters.push(callback);
  4439. }
  4440. }
  4441. });
  4442. jQuery.speed = function(speed, easing, fn) {
  4443. var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
  4444. complete: fn || !fn && easing || isFunction(speed) && speed,
  4445. duration: speed,
  4446. easing: fn && easing || easing && !isFunction(easing) && easing
  4447. };
  4448. if (jQuery.fx.off) {
  4449. opt.duration = 0;
  4450. } else {
  4451. if (typeof opt.duration !== "number") {
  4452. if (opt.duration in jQuery.fx.speeds) {
  4453. opt.duration = jQuery.fx.speeds[opt.duration];
  4454. } else {
  4455. opt.duration = jQuery.fx.speeds._default;
  4456. }
  4457. }
  4458. }
  4459. if (opt.queue == null || opt.queue === true) {
  4460. opt.queue = "fx";
  4461. }
  4462. opt.old = opt.complete;
  4463. opt.complete = function() {
  4464. if (isFunction(opt.old)) {
  4465. opt.old.call(this);
  4466. }
  4467. if (opt.queue) {
  4468. jQuery.dequeue(this, opt.queue);
  4469. }
  4470. };
  4471. return opt;
  4472. };
  4473. jQuery.fn.extend({
  4474. fadeTo: function(speed, to, easing, callback) {
  4475. return this.filter(isHiddenWithinTree).css("opacity", 0).show().end().animate({ opacity: to }, speed, easing, callback);
  4476. },
  4477. animate: function(prop, speed, easing, callback) {
  4478. var empty = jQuery.isEmptyObject(prop), optall = jQuery.speed(speed, easing, callback), doAnimation = function() {
  4479. var anim = Animation(this, jQuery.extend({}, prop), optall);
  4480. if (empty || dataPriv.get(this, "finish")) {
  4481. anim.stop(true);
  4482. }
  4483. };
  4484. doAnimation.finish = doAnimation;
  4485. return empty || optall.queue === false ? this.each(doAnimation) : this.queue(optall.queue, doAnimation);
  4486. },
  4487. stop: function(type, clearQueue, gotoEnd) {
  4488. var stopQueue = function(hooks) {
  4489. var stop = hooks.stop;
  4490. delete hooks.stop;
  4491. stop(gotoEnd);
  4492. };
  4493. if (typeof type !== "string") {
  4494. gotoEnd = clearQueue;
  4495. clearQueue = type;
  4496. type = void 0;
  4497. }
  4498. if (clearQueue) {
  4499. this.queue(type || "fx", []);
  4500. }
  4501. return this.each(function() {
  4502. var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = dataPriv.get(this);
  4503. if (index) {
  4504. if (data[index] && data[index].stop) {
  4505. stopQueue(data[index]);
  4506. }
  4507. } else {
  4508. for (index in data) {
  4509. if (data[index] && data[index].stop && rrun.test(index)) {
  4510. stopQueue(data[index]);
  4511. }
  4512. }
  4513. }
  4514. for (index = timers.length; index--; ) {
  4515. if (timers[index].elem === this && (type == null || timers[index].queue === type)) {
  4516. timers[index].anim.stop(gotoEnd);
  4517. dequeue = false;
  4518. timers.splice(index, 1);
  4519. }
  4520. }
  4521. if (dequeue || !gotoEnd) {
  4522. jQuery.dequeue(this, type);
  4523. }
  4524. });
  4525. },
  4526. finish: function(type) {
  4527. if (type !== false) {
  4528. type = type || "fx";
  4529. }
  4530. return this.each(function() {
  4531. var index, data = dataPriv.get(this), queue = data[type + "queue"], hooks = data[type + "queueHooks"], timers = jQuery.timers, length = queue ? queue.length : 0;
  4532. data.finish = true;
  4533. jQuery.queue(this, type, []);
  4534. if (hooks && hooks.stop) {
  4535. hooks.stop.call(this, true);
  4536. }
  4537. for (index = timers.length; index--; ) {
  4538. if (timers[index].elem === this && timers[index].queue === type) {
  4539. timers[index].anim.stop(true);
  4540. timers.splice(index, 1);
  4541. }
  4542. }
  4543. for (index = 0; index < length; index++) {
  4544. if (queue[index] && queue[index].finish) {
  4545. queue[index].finish.call(this);
  4546. }
  4547. }
  4548. delete data.finish;
  4549. });
  4550. }
  4551. });
  4552. jQuery.each(["toggle", "show", "hide"], function(_i, name) {
  4553. var cssFn = jQuery.fn[name];
  4554. jQuery.fn[name] = function(speed, easing, callback) {
  4555. return speed == null || typeof speed === "boolean" ? cssFn.apply(this, arguments) : this.animate(genFx(name, true), speed, easing, callback);
  4556. };
  4557. });
  4558. jQuery.each({
  4559. slideDown: genFx("show"),
  4560. slideUp: genFx("hide"),
  4561. slideToggle: genFx("toggle"),
  4562. fadeIn: { opacity: "show" },
  4563. fadeOut: { opacity: "hide" },
  4564. fadeToggle: { opacity: "toggle" }
  4565. }, function(name, props) {
  4566. jQuery.fn[name] = function(speed, easing, callback) {
  4567. return this.animate(props, speed, easing, callback);
  4568. };
  4569. });
  4570. jQuery.timers = [];
  4571. jQuery.fx.tick = function() {
  4572. var timer, i = 0, timers = jQuery.timers;
  4573. fxNow = Date.now();
  4574. for (; i < timers.length; i++) {
  4575. timer = timers[i];
  4576. if (!timer() && timers[i] === timer) {
  4577. timers.splice(i--, 1);
  4578. }
  4579. }
  4580. if (!timers.length) {
  4581. jQuery.fx.stop();
  4582. }
  4583. fxNow = void 0;
  4584. };
  4585. jQuery.fx.timer = function(timer) {
  4586. jQuery.timers.push(timer);
  4587. jQuery.fx.start();
  4588. };
  4589. jQuery.fx.interval = 13;
  4590. jQuery.fx.start = function() {
  4591. if (inProgress) {
  4592. return;
  4593. }
  4594. inProgress = true;
  4595. schedule();
  4596. };
  4597. jQuery.fx.stop = function() {
  4598. inProgress = null;
  4599. };
  4600. jQuery.fx.speeds = {
  4601. slow: 600,
  4602. fast: 200,
  4603. // Default speed
  4604. _default: 400
  4605. };
  4606. jQuery.fn.delay = function(time, type) {
  4607. time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
  4608. type = type || "fx";
  4609. return this.queue(type, function(next, hooks) {
  4610. var timeout = window2.setTimeout(next, time);
  4611. hooks.stop = function() {
  4612. window2.clearTimeout(timeout);
  4613. };
  4614. });
  4615. };
  4616. (function() {
  4617. var input = document.createElement("input"), select = document.createElement("select"), opt = select.appendChild(document.createElement("option"));
  4618. input.type = "checkbox";
  4619. support.checkOn = input.value !== "";
  4620. support.optSelected = opt.selected;
  4621. input = document.createElement("input");
  4622. input.value = "t";
  4623. input.type = "radio";
  4624. support.radioValue = input.value === "t";
  4625. })();
  4626. var boolHook, attrHandle = jQuery.expr.attrHandle;
  4627. jQuery.fn.extend({
  4628. attr: function(name, value) {
  4629. return access(this, jQuery.attr, name, value, arguments.length > 1);
  4630. },
  4631. removeAttr: function(name) {
  4632. return this.each(function() {
  4633. jQuery.removeAttr(this, name);
  4634. });
  4635. }
  4636. });
  4637. jQuery.extend({
  4638. attr: function(elem, name, value) {
  4639. var ret, hooks, nType = elem.nodeType;
  4640. if (nType === 3 || nType === 8 || nType === 2) {
  4641. return;
  4642. }
  4643. if (typeof elem.getAttribute === "undefined") {
  4644. return jQuery.prop(elem, name, value);
  4645. }
  4646. if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
  4647. hooks = jQuery.attrHooks[name.toLowerCase()] || (jQuery.expr.match.bool.test(name) ? boolHook : void 0);
  4648. }
  4649. if (value !== void 0) {
  4650. if (value === null) {
  4651. jQuery.removeAttr(elem, name);
  4652. return;
  4653. }
  4654. if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== void 0) {
  4655. return ret;
  4656. }
  4657. elem.setAttribute(name, value + "");
  4658. return value;
  4659. }
  4660. if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  4661. return ret;
  4662. }
  4663. ret = jQuery.find.attr(elem, name);
  4664. return ret == null ? void 0 : ret;
  4665. },
  4666. attrHooks: {
  4667. type: {
  4668. set: function(elem, value) {
  4669. if (!support.radioValue && value === "radio" && nodeName(elem, "input")) {
  4670. var val = elem.value;
  4671. elem.setAttribute("type", value);
  4672. if (val) {
  4673. elem.value = val;
  4674. }
  4675. return value;
  4676. }
  4677. }
  4678. }
  4679. },
  4680. removeAttr: function(elem, value) {
  4681. var name, i = 0, attrNames = value && value.match(rnothtmlwhite);
  4682. if (attrNames && elem.nodeType === 1) {
  4683. while (name = attrNames[i++]) {
  4684. elem.removeAttribute(name);
  4685. }
  4686. }
  4687. }
  4688. });
  4689. boolHook = {
  4690. set: function(elem, value, name) {
  4691. if (value === false) {
  4692. jQuery.removeAttr(elem, name);
  4693. } else {
  4694. elem.setAttribute(name, name);
  4695. }
  4696. return name;
  4697. }
  4698. };
  4699. jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function(_i, name) {
  4700. var getter = attrHandle[name] || jQuery.find.attr;
  4701. attrHandle[name] = function(elem, name2, isXML) {
  4702. var ret, handle, lowercaseName = name2.toLowerCase();
  4703. if (!isXML) {
  4704. handle = attrHandle[lowercaseName];
  4705. attrHandle[lowercaseName] = ret;
  4706. ret = getter(elem, name2, isXML) != null ? lowercaseName : null;
  4707. attrHandle[lowercaseName] = handle;
  4708. }
  4709. return ret;
  4710. };
  4711. });
  4712. var rfocusable = /^(?:input|select|textarea|button)$/i, rclickable = /^(?:a|area)$/i;
  4713. jQuery.fn.extend({
  4714. prop: function(name, value) {
  4715. return access(this, jQuery.prop, name, value, arguments.length > 1);
  4716. },
  4717. removeProp: function(name) {
  4718. return this.each(function() {
  4719. delete this[jQuery.propFix[name] || name];
  4720. });
  4721. }
  4722. });
  4723. jQuery.extend({
  4724. prop: function(elem, name, value) {
  4725. var ret, hooks, nType = elem.nodeType;
  4726. if (nType === 3 || nType === 8 || nType === 2) {
  4727. return;
  4728. }
  4729. if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
  4730. name = jQuery.propFix[name] || name;
  4731. hooks = jQuery.propHooks[name];
  4732. }
  4733. if (value !== void 0) {
  4734. if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== void 0) {
  4735. return ret;
  4736. }
  4737. return elem[name] = value;
  4738. }
  4739. if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  4740. return ret;
  4741. }
  4742. return elem[name];
  4743. },
  4744. propHooks: {
  4745. tabIndex: {
  4746. get: function(elem) {
  4747. var tabindex = jQuery.find.attr(elem, "tabindex");
  4748. if (tabindex) {
  4749. return parseInt(tabindex, 10);
  4750. }
  4751. if (rfocusable.test(elem.nodeName) || rclickable.test(elem.nodeName) && elem.href) {
  4752. return 0;
  4753. }
  4754. return -1;
  4755. }
  4756. }
  4757. },
  4758. propFix: {
  4759. "for": "htmlFor",
  4760. "class": "className"
  4761. }
  4762. });
  4763. if (!support.optSelected) {
  4764. jQuery.propHooks.selected = {
  4765. get: function(elem) {
  4766. var parent = elem.parentNode;
  4767. if (parent && parent.parentNode) {
  4768. parent.parentNode.selectedIndex;
  4769. }
  4770. return null;
  4771. },
  4772. set: function(elem) {
  4773. var parent = elem.parentNode;
  4774. if (parent) {
  4775. parent.selectedIndex;
  4776. if (parent.parentNode) {
  4777. parent.parentNode.selectedIndex;
  4778. }
  4779. }
  4780. }
  4781. };
  4782. }
  4783. jQuery.each([
  4784. "tabIndex",
  4785. "readOnly",
  4786. "maxLength",
  4787. "cellSpacing",
  4788. "cellPadding",
  4789. "rowSpan",
  4790. "colSpan",
  4791. "useMap",
  4792. "frameBorder",
  4793. "contentEditable"
  4794. ], function() {
  4795. jQuery.propFix[this.toLowerCase()] = this;
  4796. });
  4797. function stripAndCollapse(value) {
  4798. var tokens = value.match(rnothtmlwhite) || [];
  4799. return tokens.join(" ");
  4800. }
  4801. function getClass(elem) {
  4802. return elem.getAttribute && elem.getAttribute("class") || "";
  4803. }
  4804. function classesToArray(value) {
  4805. if (Array.isArray(value)) {
  4806. return value;
  4807. }
  4808. if (typeof value === "string") {
  4809. return value.match(rnothtmlwhite) || [];
  4810. }
  4811. return [];
  4812. }
  4813. jQuery.fn.extend({
  4814. addClass: function(value) {
  4815. var classNames, cur, curValue, className, i, finalValue;
  4816. if (isFunction(value)) {
  4817. return this.each(function(j) {
  4818. jQuery(this).addClass(value.call(this, j, getClass(this)));
  4819. });
  4820. }
  4821. classNames = classesToArray(value);
  4822. if (classNames.length) {
  4823. return this.each(function() {
  4824. curValue = getClass(this);
  4825. cur = this.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
  4826. if (cur) {
  4827. for (i = 0; i < classNames.length; i++) {
  4828. className = classNames[i];
  4829. if (cur.indexOf(" " + className + " ") < 0) {
  4830. cur += className + " ";
  4831. }
  4832. }
  4833. finalValue = stripAndCollapse(cur);
  4834. if (curValue !== finalValue) {
  4835. this.setAttribute("class", finalValue);
  4836. }
  4837. }
  4838. });
  4839. }
  4840. return this;
  4841. },
  4842. removeClass: function(value) {
  4843. var classNames, cur, curValue, className, i, finalValue;
  4844. if (isFunction(value)) {
  4845. return this.each(function(j) {
  4846. jQuery(this).removeClass(value.call(this, j, getClass(this)));
  4847. });
  4848. }
  4849. if (!arguments.length) {
  4850. return this.attr("class", "");
  4851. }
  4852. classNames = classesToArray(value);
  4853. if (classNames.length) {
  4854. return this.each(function() {
  4855. curValue = getClass(this);
  4856. cur = this.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
  4857. if (cur) {
  4858. for (i = 0; i < classNames.length; i++) {
  4859. className = classNames[i];
  4860. while (cur.indexOf(" " + className + " ") > -1) {
  4861. cur = cur.replace(" " + className + " ", " ");
  4862. }
  4863. }
  4864. finalValue = stripAndCollapse(cur);
  4865. if (curValue !== finalValue) {
  4866. this.setAttribute("class", finalValue);
  4867. }
  4868. }
  4869. });
  4870. }
  4871. return this;
  4872. },
  4873. toggleClass: function(value, stateVal) {
  4874. var classNames, className, i, self, type = typeof value, isValidValue = type === "string" || Array.isArray(value);
  4875. if (isFunction(value)) {
  4876. return this.each(function(i2) {
  4877. jQuery(this).toggleClass(
  4878. value.call(this, i2, getClass(this), stateVal),
  4879. stateVal
  4880. );
  4881. });
  4882. }
  4883. if (typeof stateVal === "boolean" && isValidValue) {
  4884. return stateVal ? this.addClass(value) : this.removeClass(value);
  4885. }
  4886. classNames = classesToArray(value);
  4887. return this.each(function() {
  4888. if (isValidValue) {
  4889. self = jQuery(this);
  4890. for (i = 0; i < classNames.length; i++) {
  4891. className = classNames[i];
  4892. if (self.hasClass(className)) {
  4893. self.removeClass(className);
  4894. } else {
  4895. self.addClass(className);
  4896. }
  4897. }
  4898. } else if (value === void 0 || type === "boolean") {
  4899. className = getClass(this);
  4900. if (className) {
  4901. dataPriv.set(this, "__className__", className);
  4902. }
  4903. if (this.setAttribute) {
  4904. this.setAttribute(
  4905. "class",
  4906. className || value === false ? "" : dataPriv.get(this, "__className__") || ""
  4907. );
  4908. }
  4909. }
  4910. });
  4911. },
  4912. hasClass: function(selector) {
  4913. var className, elem, i = 0;
  4914. className = " " + selector + " ";
  4915. while (elem = this[i++]) {
  4916. if (elem.nodeType === 1 && (" " + stripAndCollapse(getClass(elem)) + " ").indexOf(className) > -1) {
  4917. return true;
  4918. }
  4919. }
  4920. return false;
  4921. }
  4922. });
  4923. var rreturn = /\r/g;
  4924. jQuery.fn.extend({
  4925. val: function(value) {
  4926. var hooks, ret, valueIsFunction, elem = this[0];
  4927. if (!arguments.length) {
  4928. if (elem) {
  4929. hooks = jQuery.valHooks[elem.type] || jQuery.valHooks[elem.nodeName.toLowerCase()];
  4930. if (hooks && "get" in hooks && (ret = hooks.get(elem, "value")) !== void 0) {
  4931. return ret;
  4932. }
  4933. ret = elem.value;
  4934. if (typeof ret === "string") {
  4935. return ret.replace(rreturn, "");
  4936. }
  4937. return ret == null ? "" : ret;
  4938. }
  4939. return;
  4940. }
  4941. valueIsFunction = isFunction(value);
  4942. return this.each(function(i) {
  4943. var val;
  4944. if (this.nodeType !== 1) {
  4945. return;
  4946. }
  4947. if (valueIsFunction) {
  4948. val = value.call(this, i, jQuery(this).val());
  4949. } else {
  4950. val = value;
  4951. }
  4952. if (val == null) {
  4953. val = "";
  4954. } else if (typeof val === "number") {
  4955. val += "";
  4956. } else if (Array.isArray(val)) {
  4957. val = jQuery.map(val, function(value2) {
  4958. return value2 == null ? "" : value2 + "";
  4959. });
  4960. }
  4961. hooks = jQuery.valHooks[this.type] || jQuery.valHooks[this.nodeName.toLowerCase()];
  4962. if (!hooks || !("set" in hooks) || hooks.set(this, val, "value") === void 0) {
  4963. this.value = val;
  4964. }
  4965. });
  4966. }
  4967. });
  4968. jQuery.extend({
  4969. valHooks: {
  4970. option: {
  4971. get: function(elem) {
  4972. var val = jQuery.find.attr(elem, "value");
  4973. return val != null ? val : (
  4974. // Support: IE <=10 - 11 only
  4975. // option.text throws exceptions (trac-14686, trac-14858)
  4976. // Strip and collapse whitespace
  4977. // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
  4978. stripAndCollapse(jQuery.text(elem))
  4979. );
  4980. }
  4981. },
  4982. select: {
  4983. get: function(elem) {
  4984. var value, option, i, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one", values = one ? null : [], max = one ? index + 1 : options.length;
  4985. if (index < 0) {
  4986. i = max;
  4987. } else {
  4988. i = one ? index : 0;
  4989. }
  4990. for (; i < max; i++) {
  4991. option = options[i];
  4992. if ((option.selected || i === index) && // Don't return options that are disabled or in a disabled optgroup
  4993. !option.disabled && (!option.parentNode.disabled || !nodeName(option.parentNode, "optgroup"))) {
  4994. value = jQuery(option).val();
  4995. if (one) {
  4996. return value;
  4997. }
  4998. values.push(value);
  4999. }
  5000. }
  5001. return values;
  5002. },
  5003. set: function(elem, value) {
  5004. var optionSet, option, options = elem.options, values = jQuery.makeArray(value), i = options.length;
  5005. while (i--) {
  5006. option = options[i];
  5007. if (option.selected = jQuery.inArray(jQuery.valHooks.option.get(option), values) > -1) {
  5008. optionSet = true;
  5009. }
  5010. }
  5011. if (!optionSet) {
  5012. elem.selectedIndex = -1;
  5013. }
  5014. return values;
  5015. }
  5016. }
  5017. }
  5018. });
  5019. jQuery.each(["radio", "checkbox"], function() {
  5020. jQuery.valHooks[this] = {
  5021. set: function(elem, value) {
  5022. if (Array.isArray(value)) {
  5023. return elem.checked = jQuery.inArray(jQuery(elem).val(), value) > -1;
  5024. }
  5025. }
  5026. };
  5027. if (!support.checkOn) {
  5028. jQuery.valHooks[this].get = function(elem) {
  5029. return elem.getAttribute("value") === null ? "on" : elem.value;
  5030. };
  5031. }
  5032. });
  5033. var location = window2.location;
  5034. var nonce = { guid: Date.now() };
  5035. var rquery = /\?/;
  5036. jQuery.parseXML = function(data) {
  5037. var xml, parserErrorElem;
  5038. if (!data || typeof data !== "string") {
  5039. return null;
  5040. }
  5041. try {
  5042. xml = new window2.DOMParser().parseFromString(data, "text/xml");
  5043. } catch (e) {
  5044. }
  5045. parserErrorElem = xml && xml.getElementsByTagName("parsererror")[0];
  5046. if (!xml || parserErrorElem) {
  5047. jQuery.error("Invalid XML: " + (parserErrorElem ? jQuery.map(parserErrorElem.childNodes, function(el) {
  5048. return el.textContent;
  5049. }).join("\n") : data));
  5050. }
  5051. return xml;
  5052. };
  5053. var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, stopPropagationCallback = function(e) {
  5054. e.stopPropagation();
  5055. };
  5056. jQuery.extend(jQuery.event, {
  5057. trigger: function(event, data, elem, onlyHandlers) {
  5058. var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, eventPath = [elem || document], type = hasOwn.call(event, "type") ? event.type : event, namespaces = hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
  5059. cur = lastElement = tmp = elem = elem || document;
  5060. if (elem.nodeType === 3 || elem.nodeType === 8) {
  5061. return;
  5062. }
  5063. if (rfocusMorph.test(type + jQuery.event.triggered)) {
  5064. return;
  5065. }
  5066. if (type.indexOf(".") > -1) {
  5067. namespaces = type.split(".");
  5068. type = namespaces.shift();
  5069. namespaces.sort();
  5070. }
  5071. ontype = type.indexOf(":") < 0 && "on" + type;
  5072. event = event[jQuery.expando] ? event : new jQuery.Event(type, typeof event === "object" && event);
  5073. event.isTrigger = onlyHandlers ? 2 : 3;
  5074. event.namespace = namespaces.join(".");
  5075. event.rnamespace = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
  5076. event.result = void 0;
  5077. if (!event.target) {
  5078. event.target = elem;
  5079. }
  5080. data = data == null ? [event] : jQuery.makeArray(data, [event]);
  5081. special = jQuery.event.special[type] || {};
  5082. if (!onlyHandlers && special.trigger && special.trigger.apply(elem, data) === false) {
  5083. return;
  5084. }
  5085. if (!onlyHandlers && !special.noBubble && !isWindow(elem)) {
  5086. bubbleType = special.delegateType || type;
  5087. if (!rfocusMorph.test(bubbleType + type)) {
  5088. cur = cur.parentNode;
  5089. }
  5090. for (; cur; cur = cur.parentNode) {
  5091. eventPath.push(cur);
  5092. tmp = cur;
  5093. }
  5094. if (tmp === (elem.ownerDocument || document)) {
  5095. eventPath.push(tmp.defaultView || tmp.parentWindow || window2);
  5096. }
  5097. }
  5098. i = 0;
  5099. while ((cur = eventPath[i++]) && !event.isPropagationStopped()) {
  5100. lastElement = cur;
  5101. event.type = i > 1 ? bubbleType : special.bindType || type;
  5102. handle = (dataPriv.get(cur, "events") || /* @__PURE__ */ Object.create(null))[event.type] && dataPriv.get(cur, "handle");
  5103. if (handle) {
  5104. handle.apply(cur, data);
  5105. }
  5106. handle = ontype && cur[ontype];
  5107. if (handle && handle.apply && acceptData(cur)) {
  5108. event.result = handle.apply(cur, data);
  5109. if (event.result === false) {
  5110. event.preventDefault();
  5111. }
  5112. }
  5113. }
  5114. event.type = type;
  5115. if (!onlyHandlers && !event.isDefaultPrevented()) {
  5116. if ((!special._default || special._default.apply(eventPath.pop(), data) === false) && acceptData(elem)) {
  5117. if (ontype && isFunction(elem[type]) && !isWindow(elem)) {
  5118. tmp = elem[ontype];
  5119. if (tmp) {
  5120. elem[ontype] = null;
  5121. }
  5122. jQuery.event.triggered = type;
  5123. if (event.isPropagationStopped()) {
  5124. lastElement.addEventListener(type, stopPropagationCallback);
  5125. }
  5126. elem[type]();
  5127. if (event.isPropagationStopped()) {
  5128. lastElement.removeEventListener(type, stopPropagationCallback);
  5129. }
  5130. jQuery.event.triggered = void 0;
  5131. if (tmp) {
  5132. elem[ontype] = tmp;
  5133. }
  5134. }
  5135. }
  5136. }
  5137. return event.result;
  5138. },
  5139. // Piggyback on a donor event to simulate a different one
  5140. // Used only for `focus(in | out)` events
  5141. simulate: function(type, elem, event) {
  5142. var e = jQuery.extend(
  5143. new jQuery.Event(),
  5144. event,
  5145. {
  5146. type,
  5147. isSimulated: true
  5148. }
  5149. );
  5150. jQuery.event.trigger(e, null, elem);
  5151. }
  5152. });
  5153. jQuery.fn.extend({
  5154. trigger: function(type, data) {
  5155. return this.each(function() {
  5156. jQuery.event.trigger(type, data, this);
  5157. });
  5158. },
  5159. triggerHandler: function(type, data) {
  5160. var elem = this[0];
  5161. if (elem) {
  5162. return jQuery.event.trigger(type, data, elem, true);
  5163. }
  5164. }
  5165. });
  5166. var rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i;
  5167. function buildParams(prefix, obj, traditional, add) {
  5168. var name;
  5169. if (Array.isArray(obj)) {
  5170. jQuery.each(obj, function(i, v) {
  5171. if (traditional || rbracket.test(prefix)) {
  5172. add(prefix, v);
  5173. } else {
  5174. buildParams(
  5175. prefix + "[" + (typeof v === "object" && v != null ? i : "") + "]",
  5176. v,
  5177. traditional,
  5178. add
  5179. );
  5180. }
  5181. });
  5182. } else if (!traditional && toType(obj) === "object") {
  5183. for (name in obj) {
  5184. buildParams(prefix + "[" + name + "]", obj[name], traditional, add);
  5185. }
  5186. } else {
  5187. add(prefix, obj);
  5188. }
  5189. }
  5190. jQuery.param = function(a, traditional) {
  5191. var prefix, s = [], add = function(key, valueOrFunction) {
  5192. var value = isFunction(valueOrFunction) ? valueOrFunction() : valueOrFunction;
  5193. s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value == null ? "" : value);
  5194. };
  5195. if (a == null) {
  5196. return "";
  5197. }
  5198. if (Array.isArray(a) || a.jquery && !jQuery.isPlainObject(a)) {
  5199. jQuery.each(a, function() {
  5200. add(this.name, this.value);
  5201. });
  5202. } else {
  5203. for (prefix in a) {
  5204. buildParams(prefix, a[prefix], traditional, add);
  5205. }
  5206. }
  5207. return s.join("&");
  5208. };
  5209. jQuery.fn.extend({
  5210. serialize: function() {
  5211. return jQuery.param(this.serializeArray());
  5212. },
  5213. serializeArray: function() {
  5214. return this.map(function() {
  5215. var elements = jQuery.prop(this, "elements");
  5216. return elements ? jQuery.makeArray(elements) : this;
  5217. }).filter(function() {
  5218. var type = this.type;
  5219. return this.name && !jQuery(this).is(":disabled") && rsubmittable.test(this.nodeName) && !rsubmitterTypes.test(type) && (this.checked || !rcheckableType.test(type));
  5220. }).map(function(_i, elem) {
  5221. var val = jQuery(this).val();
  5222. if (val == null) {
  5223. return null;
  5224. }
  5225. if (Array.isArray(val)) {
  5226. return jQuery.map(val, function(val2) {
  5227. return { name: elem.name, value: val2.replace(rCRLF, "\r\n") };
  5228. });
  5229. }
  5230. return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
  5231. }).get();
  5232. }
  5233. });
  5234. var r20 = /%20/g, rhash = /#.*$/, rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, prefilters = {}, transports = {}, allTypes = "*/".concat("*"), originAnchor = document.createElement("a");
  5235. originAnchor.href = location.href;
  5236. function addToPrefiltersOrTransports(structure) {
  5237. return function(dataTypeExpression, func) {
  5238. if (typeof dataTypeExpression !== "string") {
  5239. func = dataTypeExpression;
  5240. dataTypeExpression = "*";
  5241. }
  5242. var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match(rnothtmlwhite) || [];
  5243. if (isFunction(func)) {
  5244. while (dataType = dataTypes[i++]) {
  5245. if (dataType[0] === "+") {
  5246. dataType = dataType.slice(1) || "*";
  5247. (structure[dataType] = structure[dataType] || []).unshift(func);
  5248. } else {
  5249. (structure[dataType] = structure[dataType] || []).push(func);
  5250. }
  5251. }
  5252. }
  5253. };
  5254. }
  5255. function inspectPrefiltersOrTransports(structure, options, originalOptions, jqXHR) {
  5256. var inspected = {}, seekingTransport = structure === transports;
  5257. function inspect(dataType) {
  5258. var selected;
  5259. inspected[dataType] = true;
  5260. jQuery.each(structure[dataType] || [], function(_, prefilterOrFactory) {
  5261. var dataTypeOrTransport = prefilterOrFactory(options, originalOptions, jqXHR);
  5262. if (typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[dataTypeOrTransport]) {
  5263. options.dataTypes.unshift(dataTypeOrTransport);
  5264. inspect(dataTypeOrTransport);
  5265. return false;
  5266. } else if (seekingTransport) {
  5267. return !(selected = dataTypeOrTransport);
  5268. }
  5269. });
  5270. return selected;
  5271. }
  5272. return inspect(options.dataTypes[0]) || !inspected["*"] && inspect("*");
  5273. }
  5274. function ajaxExtend(target, src) {
  5275. var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {};
  5276. for (key in src) {
  5277. if (src[key] !== void 0) {
  5278. (flatOptions[key] ? target : deep || (deep = {}))[key] = src[key];
  5279. }
  5280. }
  5281. if (deep) {
  5282. jQuery.extend(true, target, deep);
  5283. }
  5284. return target;
  5285. }
  5286. function ajaxHandleResponses(s, jqXHR, responses) {
  5287. var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes;
  5288. while (dataTypes[0] === "*") {
  5289. dataTypes.shift();
  5290. if (ct === void 0) {
  5291. ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
  5292. }
  5293. }
  5294. if (ct) {
  5295. for (type in contents) {
  5296. if (contents[type] && contents[type].test(ct)) {
  5297. dataTypes.unshift(type);
  5298. break;
  5299. }
  5300. }
  5301. }
  5302. if (dataTypes[0] in responses) {
  5303. finalDataType = dataTypes[0];
  5304. } else {
  5305. for (type in responses) {
  5306. if (!dataTypes[0] || s.converters[type + " " + dataTypes[0]]) {
  5307. finalDataType = type;
  5308. break;
  5309. }
  5310. if (!firstDataType) {
  5311. firstDataType = type;
  5312. }
  5313. }
  5314. finalDataType = finalDataType || firstDataType;
  5315. }
  5316. if (finalDataType) {
  5317. if (finalDataType !== dataTypes[0]) {
  5318. dataTypes.unshift(finalDataType);
  5319. }
  5320. return responses[finalDataType];
  5321. }
  5322. }
  5323. function ajaxConvert(s, response, jqXHR, isSuccess) {
  5324. var conv2, current, conv, tmp, prev, converters = {}, dataTypes = s.dataTypes.slice();
  5325. if (dataTypes[1]) {
  5326. for (conv in s.converters) {
  5327. converters[conv.toLowerCase()] = s.converters[conv];
  5328. }
  5329. }
  5330. current = dataTypes.shift();
  5331. while (current) {
  5332. if (s.responseFields[current]) {
  5333. jqXHR[s.responseFields[current]] = response;
  5334. }
  5335. if (!prev && isSuccess && s.dataFilter) {
  5336. response = s.dataFilter(response, s.dataType);
  5337. }
  5338. prev = current;
  5339. current = dataTypes.shift();
  5340. if (current) {
  5341. if (current === "*") {
  5342. current = prev;
  5343. } else if (prev !== "*" && prev !== current) {
  5344. conv = converters[prev + " " + current] || converters["* " + current];
  5345. if (!conv) {
  5346. for (conv2 in converters) {
  5347. tmp = conv2.split(" ");
  5348. if (tmp[1] === current) {
  5349. conv = converters[prev + " " + tmp[0]] || converters["* " + tmp[0]];
  5350. if (conv) {
  5351. if (conv === true) {
  5352. conv = converters[conv2];
  5353. } else if (converters[conv2] !== true) {
  5354. current = tmp[0];
  5355. dataTypes.unshift(tmp[1]);
  5356. }
  5357. break;
  5358. }
  5359. }
  5360. }
  5361. }
  5362. if (conv !== true) {
  5363. if (conv && s.throws) {
  5364. response = conv(response);
  5365. } else {
  5366. try {
  5367. response = conv(response);
  5368. } catch (e) {
  5369. return {
  5370. state: "parsererror",
  5371. error: conv ? e : "No conversion from " + prev + " to " + current
  5372. };
  5373. }
  5374. }
  5375. }
  5376. }
  5377. }
  5378. }
  5379. return { state: "success", data: response };
  5380. }
  5381. jQuery.extend({
  5382. // Counter for holding the number of active queries
  5383. active: 0,
  5384. // Last-Modified header cache for next request
  5385. lastModified: {},
  5386. etag: {},
  5387. ajaxSettings: {
  5388. url: location.href,
  5389. type: "GET",
  5390. isLocal: rlocalProtocol.test(location.protocol),
  5391. global: true,
  5392. processData: true,
  5393. async: true,
  5394. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  5395. /*
  5396. timeout: 0,
  5397. data: null,
  5398. dataType: null,
  5399. username: null,
  5400. password: null,
  5401. cache: null,
  5402. throws: false,
  5403. traditional: false,
  5404. headers: {},
  5405. */
  5406. accepts: {
  5407. "*": allTypes,
  5408. text: "text/plain",
  5409. html: "text/html",
  5410. xml: "application/xml, text/xml",
  5411. json: "application/json, text/javascript"
  5412. },
  5413. contents: {
  5414. xml: /\bxml\b/,
  5415. html: /\bhtml/,
  5416. json: /\bjson\b/
  5417. },
  5418. responseFields: {
  5419. xml: "responseXML",
  5420. text: "responseText",
  5421. json: "responseJSON"
  5422. },
  5423. // Data converters
  5424. // Keys separate source (or catchall "*") and destination types with a single space
  5425. converters: {
  5426. // Convert anything to text
  5427. "* text": String,
  5428. // Text to html (true = no transformation)
  5429. "text html": true,
  5430. // Evaluate text as a json expression
  5431. "text json": JSON.parse,
  5432. // Parse text as xml
  5433. "text xml": jQuery.parseXML
  5434. },
  5435. // For options that shouldn't be deep extended:
  5436. // you can add your own custom options here if
  5437. // and when you create one that shouldn't be
  5438. // deep extended (see ajaxExtend)
  5439. flatOptions: {
  5440. url: true,
  5441. context: true
  5442. }
  5443. },
  5444. // Creates a full fledged settings object into target
  5445. // with both ajaxSettings and settings fields.
  5446. // If target is omitted, writes into ajaxSettings.
  5447. ajaxSetup: function(target, settings) {
  5448. return settings ? (
  5449. // Building a settings object
  5450. ajaxExtend(ajaxExtend(target, jQuery.ajaxSettings), settings)
  5451. ) : (
  5452. // Extending ajaxSettings
  5453. ajaxExtend(jQuery.ajaxSettings, target)
  5454. );
  5455. },
  5456. ajaxPrefilter: addToPrefiltersOrTransports(prefilters),
  5457. ajaxTransport: addToPrefiltersOrTransports(transports),
  5458. // Main method
  5459. ajax: function(url, options) {
  5460. if (typeof url === "object") {
  5461. options = url;
  5462. url = void 0;
  5463. }
  5464. options = options || {};
  5465. var transport, cacheURL, responseHeadersString, responseHeaders, timeoutTimer, urlAnchor, completed2, fireGlobals, i, uncached, s = jQuery.ajaxSetup({}, options), callbackContext = s.context || s, globalEventContext = s.context && (callbackContext.nodeType || callbackContext.jquery) ? jQuery(callbackContext) : jQuery.event, deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks("once memory"), statusCode = s.statusCode || {}, requestHeaders = {}, requestHeadersNames = {}, strAbort = "canceled", jqXHR = {
  5466. readyState: 0,
  5467. // Builds headers hashtable if needed
  5468. getResponseHeader: function(key) {
  5469. var match;
  5470. if (completed2) {
  5471. if (!responseHeaders) {
  5472. responseHeaders = {};
  5473. while (match = rheaders.exec(responseHeadersString)) {
  5474. responseHeaders[match[1].toLowerCase() + " "] = (responseHeaders[match[1].toLowerCase() + " "] || []).concat(match[2]);
  5475. }
  5476. }
  5477. match = responseHeaders[key.toLowerCase() + " "];
  5478. }
  5479. return match == null ? null : match.join(", ");
  5480. },
  5481. // Raw string
  5482. getAllResponseHeaders: function() {
  5483. return completed2 ? responseHeadersString : null;
  5484. },
  5485. // Caches the header
  5486. setRequestHeader: function(name, value) {
  5487. if (completed2 == null) {
  5488. name = requestHeadersNames[name.toLowerCase()] = requestHeadersNames[name.toLowerCase()] || name;
  5489. requestHeaders[name] = value;
  5490. }
  5491. return this;
  5492. },
  5493. // Overrides response content-type header
  5494. overrideMimeType: function(type) {
  5495. if (completed2 == null) {
  5496. s.mimeType = type;
  5497. }
  5498. return this;
  5499. },
  5500. // Status-dependent callbacks
  5501. statusCode: function(map) {
  5502. var code;
  5503. if (map) {
  5504. if (completed2) {
  5505. jqXHR.always(map[jqXHR.status]);
  5506. } else {
  5507. for (code in map) {
  5508. statusCode[code] = [statusCode[code], map[code]];
  5509. }
  5510. }
  5511. }
  5512. return this;
  5513. },
  5514. // Cancel the request
  5515. abort: function(statusText) {
  5516. var finalText = statusText || strAbort;
  5517. if (transport) {
  5518. transport.abort(finalText);
  5519. }
  5520. done(0, finalText);
  5521. return this;
  5522. }
  5523. };
  5524. deferred.promise(jqXHR);
  5525. s.url = ((url || s.url || location.href) + "").replace(rprotocol, location.protocol + "//");
  5526. s.type = options.method || options.type || s.method || s.type;
  5527. s.dataTypes = (s.dataType || "*").toLowerCase().match(rnothtmlwhite) || [""];
  5528. if (s.crossDomain == null) {
  5529. urlAnchor = document.createElement("a");
  5530. try {
  5531. urlAnchor.href = s.url;
  5532. urlAnchor.href = urlAnchor.href;
  5533. s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host;
  5534. } catch (e) {
  5535. s.crossDomain = true;
  5536. }
  5537. }
  5538. if (s.data && s.processData && typeof s.data !== "string") {
  5539. s.data = jQuery.param(s.data, s.traditional);
  5540. }
  5541. inspectPrefiltersOrTransports(prefilters, s, options, jqXHR);
  5542. if (completed2) {
  5543. return jqXHR;
  5544. }
  5545. fireGlobals = jQuery.event && s.global;
  5546. if (fireGlobals && jQuery.active++ === 0) {
  5547. jQuery.event.trigger("ajaxStart");
  5548. }
  5549. s.type = s.type.toUpperCase();
  5550. s.hasContent = !rnoContent.test(s.type);
  5551. cacheURL = s.url.replace(rhash, "");
  5552. if (!s.hasContent) {
  5553. uncached = s.url.slice(cacheURL.length);
  5554. if (s.data && (s.processData || typeof s.data === "string")) {
  5555. cacheURL += (rquery.test(cacheURL) ? "&" : "?") + s.data;
  5556. delete s.data;
  5557. }
  5558. if (s.cache === false) {
  5559. cacheURL = cacheURL.replace(rantiCache, "$1");
  5560. uncached = (rquery.test(cacheURL) ? "&" : "?") + "_=" + nonce.guid++ + uncached;
  5561. }
  5562. s.url = cacheURL + uncached;
  5563. } else if (s.data && s.processData && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0) {
  5564. s.data = s.data.replace(r20, "+");
  5565. }
  5566. if (s.ifModified) {
  5567. if (jQuery.lastModified[cacheURL]) {
  5568. jqXHR.setRequestHeader("If-Modified-Since", jQuery.lastModified[cacheURL]);
  5569. }
  5570. if (jQuery.etag[cacheURL]) {
  5571. jqXHR.setRequestHeader("If-None-Match", jQuery.etag[cacheURL]);
  5572. }
  5573. }
  5574. if (s.data && s.hasContent && s.contentType !== false || options.contentType) {
  5575. jqXHR.setRequestHeader("Content-Type", s.contentType);
  5576. }
  5577. jqXHR.setRequestHeader(
  5578. "Accept",
  5579. s.dataTypes[0] && s.accepts[s.dataTypes[0]] ? s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") : s.accepts["*"]
  5580. );
  5581. for (i in s.headers) {
  5582. jqXHR.setRequestHeader(i, s.headers[i]);
  5583. }
  5584. if (s.beforeSend && (s.beforeSend.call(callbackContext, jqXHR, s) === false || completed2)) {
  5585. return jqXHR.abort();
  5586. }
  5587. strAbort = "abort";
  5588. completeDeferred.add(s.complete);
  5589. jqXHR.done(s.success);
  5590. jqXHR.fail(s.error);
  5591. transport = inspectPrefiltersOrTransports(transports, s, options, jqXHR);
  5592. if (!transport) {
  5593. done(-1, "No Transport");
  5594. } else {
  5595. jqXHR.readyState = 1;
  5596. if (fireGlobals) {
  5597. globalEventContext.trigger("ajaxSend", [jqXHR, s]);
  5598. }
  5599. if (completed2) {
  5600. return jqXHR;
  5601. }
  5602. if (s.async && s.timeout > 0) {
  5603. timeoutTimer = window2.setTimeout(function() {
  5604. jqXHR.abort("timeout");
  5605. }, s.timeout);
  5606. }
  5607. try {
  5608. completed2 = false;
  5609. transport.send(requestHeaders, done);
  5610. } catch (e) {
  5611. if (completed2) {
  5612. throw e;
  5613. }
  5614. done(-1, e);
  5615. }
  5616. }
  5617. function done(status, nativeStatusText, responses, headers) {
  5618. var isSuccess, success, error, response, modified, statusText = nativeStatusText;
  5619. if (completed2) {
  5620. return;
  5621. }
  5622. completed2 = true;
  5623. if (timeoutTimer) {
  5624. window2.clearTimeout(timeoutTimer);
  5625. }
  5626. transport = void 0;
  5627. responseHeadersString = headers || "";
  5628. jqXHR.readyState = status > 0 ? 4 : 0;
  5629. isSuccess = status >= 200 && status < 300 || status === 304;
  5630. if (responses) {
  5631. response = ajaxHandleResponses(s, jqXHR, responses);
  5632. }
  5633. if (!isSuccess && jQuery.inArray("script", s.dataTypes) > -1 && jQuery.inArray("json", s.dataTypes) < 0) {
  5634. s.converters["text script"] = function() {
  5635. };
  5636. }
  5637. response = ajaxConvert(s, response, jqXHR, isSuccess);
  5638. if (isSuccess) {
  5639. if (s.ifModified) {
  5640. modified = jqXHR.getResponseHeader("Last-Modified");
  5641. if (modified) {
  5642. jQuery.lastModified[cacheURL] = modified;
  5643. }
  5644. modified = jqXHR.getResponseHeader("etag");
  5645. if (modified) {
  5646. jQuery.etag[cacheURL] = modified;
  5647. }
  5648. }
  5649. if (status === 204 || s.type === "HEAD") {
  5650. statusText = "nocontent";
  5651. } else if (status === 304) {
  5652. statusText = "notmodified";
  5653. } else {
  5654. statusText = response.state;
  5655. success = response.data;
  5656. error = response.error;
  5657. isSuccess = !error;
  5658. }
  5659. } else {
  5660. error = statusText;
  5661. if (status || !statusText) {
  5662. statusText = "error";
  5663. if (status < 0) {
  5664. status = 0;
  5665. }
  5666. }
  5667. }
  5668. jqXHR.status = status;
  5669. jqXHR.statusText = (nativeStatusText || statusText) + "";
  5670. if (isSuccess) {
  5671. deferred.resolveWith(callbackContext, [success, statusText, jqXHR]);
  5672. } else {
  5673. deferred.rejectWith(callbackContext, [jqXHR, statusText, error]);
  5674. }
  5675. jqXHR.statusCode(statusCode);
  5676. statusCode = void 0;
  5677. if (fireGlobals) {
  5678. globalEventContext.trigger(
  5679. isSuccess ? "ajaxSuccess" : "ajaxError",
  5680. [jqXHR, s, isSuccess ? success : error]
  5681. );
  5682. }
  5683. completeDeferred.fireWith(callbackContext, [jqXHR, statusText]);
  5684. if (fireGlobals) {
  5685. globalEventContext.trigger("ajaxComplete", [jqXHR, s]);
  5686. if (!--jQuery.active) {
  5687. jQuery.event.trigger("ajaxStop");
  5688. }
  5689. }
  5690. }
  5691. return jqXHR;
  5692. },
  5693. getJSON: function(url, data, callback) {
  5694. return jQuery.get(url, data, callback, "json");
  5695. },
  5696. getScript: function(url, callback) {
  5697. return jQuery.get(url, void 0, callback, "script");
  5698. }
  5699. });
  5700. jQuery.each(["get", "post"], function(_i, method) {
  5701. jQuery[method] = function(url, data, callback, type) {
  5702. if (isFunction(data)) {
  5703. type = type || callback;
  5704. callback = data;
  5705. data = void 0;
  5706. }
  5707. return jQuery.ajax(jQuery.extend({
  5708. url,
  5709. type: method,
  5710. dataType: type,
  5711. data,
  5712. success: callback
  5713. }, jQuery.isPlainObject(url) && url));
  5714. };
  5715. });
  5716. jQuery.ajaxPrefilter(function(s) {
  5717. var i;
  5718. for (i in s.headers) {
  5719. if (i.toLowerCase() === "content-type") {
  5720. s.contentType = s.headers[i] || "";
  5721. }
  5722. }
  5723. });
  5724. jQuery._evalUrl = function(url, options, doc) {
  5725. return jQuery.ajax({
  5726. url,
  5727. // Make this explicit, since user can override this through ajaxSetup (trac-11264)
  5728. type: "GET",
  5729. dataType: "script",
  5730. cache: true,
  5731. async: false,
  5732. global: false,
  5733. // Only evaluate the response if it is successful (gh-4126)
  5734. // dataFilter is not invoked for failure responses, so using it instead
  5735. // of the default converter is kludgy but it works.
  5736. converters: {
  5737. "text script": function() {
  5738. }
  5739. },
  5740. dataFilter: function(response) {
  5741. jQuery.globalEval(response, options, doc);
  5742. }
  5743. });
  5744. };
  5745. jQuery.fn.extend({
  5746. wrapAll: function(html) {
  5747. var wrap;
  5748. if (this[0]) {
  5749. if (isFunction(html)) {
  5750. html = html.call(this[0]);
  5751. }
  5752. wrap = jQuery(html, this[0].ownerDocument).eq(0).clone(true);
  5753. if (this[0].parentNode) {
  5754. wrap.insertBefore(this[0]);
  5755. }
  5756. wrap.map(function() {
  5757. var elem = this;
  5758. while (elem.firstElementChild) {
  5759. elem = elem.firstElementChild;
  5760. }
  5761. return elem;
  5762. }).append(this);
  5763. }
  5764. return this;
  5765. },
  5766. wrapInner: function(html) {
  5767. if (isFunction(html)) {
  5768. return this.each(function(i) {
  5769. jQuery(this).wrapInner(html.call(this, i));
  5770. });
  5771. }
  5772. return this.each(function() {
  5773. var self = jQuery(this), contents = self.contents();
  5774. if (contents.length) {
  5775. contents.wrapAll(html);
  5776. } else {
  5777. self.append(html);
  5778. }
  5779. });
  5780. },
  5781. wrap: function(html) {
  5782. var htmlIsFunction = isFunction(html);
  5783. return this.each(function(i) {
  5784. jQuery(this).wrapAll(htmlIsFunction ? html.call(this, i) : html);
  5785. });
  5786. },
  5787. unwrap: function(selector) {
  5788. this.parent(selector).not("body").each(function() {
  5789. jQuery(this).replaceWith(this.childNodes);
  5790. });
  5791. return this;
  5792. }
  5793. });
  5794. jQuery.expr.pseudos.hidden = function(elem) {
  5795. return !jQuery.expr.pseudos.visible(elem);
  5796. };
  5797. jQuery.expr.pseudos.visible = function(elem) {
  5798. return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
  5799. };
  5800. jQuery.ajaxSettings.xhr = function() {
  5801. try {
  5802. return new window2.XMLHttpRequest();
  5803. } catch (e) {
  5804. }
  5805. };
  5806. var xhrSuccessStatus = {
  5807. // File protocol always yields status code 0, assume 200
  5808. 0: 200,
  5809. // Support: IE <=9 only
  5810. // trac-1450: sometimes IE returns 1223 when it should be 204
  5811. 1223: 204
  5812. }, xhrSupported = jQuery.ajaxSettings.xhr();
  5813. support.cors = !!xhrSupported && "withCredentials" in xhrSupported;
  5814. support.ajax = xhrSupported = !!xhrSupported;
  5815. jQuery.ajaxTransport(function(options) {
  5816. var callback, errorCallback;
  5817. if (support.cors || xhrSupported && !options.crossDomain) {
  5818. return {
  5819. send: function(headers, complete) {
  5820. var i, xhr = options.xhr();
  5821. xhr.open(
  5822. options.type,
  5823. options.url,
  5824. options.async,
  5825. options.username,
  5826. options.password
  5827. );
  5828. if (options.xhrFields) {
  5829. for (i in options.xhrFields) {
  5830. xhr[i] = options.xhrFields[i];
  5831. }
  5832. }
  5833. if (options.mimeType && xhr.overrideMimeType) {
  5834. xhr.overrideMimeType(options.mimeType);
  5835. }
  5836. if (!options.crossDomain && !headers["X-Requested-With"]) {
  5837. headers["X-Requested-With"] = "XMLHttpRequest";
  5838. }
  5839. for (i in headers) {
  5840. xhr.setRequestHeader(i, headers[i]);
  5841. }
  5842. callback = function(type) {
  5843. return function() {
  5844. if (callback) {
  5845. callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null;
  5846. if (type === "abort") {
  5847. xhr.abort();
  5848. } else if (type === "error") {
  5849. if (typeof xhr.status !== "number") {
  5850. complete(0, "error");
  5851. } else {
  5852. complete(
  5853. // File: protocol always yields status 0; see trac-8605, trac-14207
  5854. xhr.status,
  5855. xhr.statusText
  5856. );
  5857. }
  5858. } else {
  5859. complete(
  5860. xhrSuccessStatus[xhr.status] || xhr.status,
  5861. xhr.statusText,
  5862. // Support: IE <=9 only
  5863. // IE9 has no XHR2 but throws on binary (trac-11426)
  5864. // For XHR2 non-text, let the caller handle it (gh-2498)
  5865. (xhr.responseType || "text") !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText },
  5866. xhr.getAllResponseHeaders()
  5867. );
  5868. }
  5869. }
  5870. };
  5871. };
  5872. xhr.onload = callback();
  5873. errorCallback = xhr.onerror = xhr.ontimeout = callback("error");
  5874. if (xhr.onabort !== void 0) {
  5875. xhr.onabort = errorCallback;
  5876. } else {
  5877. xhr.onreadystatechange = function() {
  5878. if (xhr.readyState === 4) {
  5879. window2.setTimeout(function() {
  5880. if (callback) {
  5881. errorCallback();
  5882. }
  5883. });
  5884. }
  5885. };
  5886. }
  5887. callback = callback("abort");
  5888. try {
  5889. xhr.send(options.hasContent && options.data || null);
  5890. } catch (e) {
  5891. if (callback) {
  5892. throw e;
  5893. }
  5894. }
  5895. },
  5896. abort: function() {
  5897. if (callback) {
  5898. callback();
  5899. }
  5900. }
  5901. };
  5902. }
  5903. });
  5904. jQuery.ajaxPrefilter(function(s) {
  5905. if (s.crossDomain) {
  5906. s.contents.script = false;
  5907. }
  5908. });
  5909. jQuery.ajaxSetup({
  5910. accepts: {
  5911. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  5912. },
  5913. contents: {
  5914. script: /\b(?:java|ecma)script\b/
  5915. },
  5916. converters: {
  5917. "text script": function(text) {
  5918. jQuery.globalEval(text);
  5919. return text;
  5920. }
  5921. }
  5922. });
  5923. jQuery.ajaxPrefilter("script", function(s) {
  5924. if (s.cache === void 0) {
  5925. s.cache = false;
  5926. }
  5927. if (s.crossDomain) {
  5928. s.type = "GET";
  5929. }
  5930. });
  5931. jQuery.ajaxTransport("script", function(s) {
  5932. if (s.crossDomain || s.scriptAttrs) {
  5933. var script, callback;
  5934. return {
  5935. send: function(_, complete) {
  5936. script = jQuery("<script>").attr(s.scriptAttrs || {}).prop({ charset: s.scriptCharset, src: s.url }).on("load error", callback = function(evt) {
  5937. script.remove();
  5938. callback = null;
  5939. if (evt) {
  5940. complete(evt.type === "error" ? 404 : 200, evt.type);
  5941. }
  5942. });
  5943. document.head.appendChild(script[0]);
  5944. },
  5945. abort: function() {
  5946. if (callback) {
  5947. callback();
  5948. }
  5949. }
  5950. };
  5951. }
  5952. });
  5953. var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/;
  5954. jQuery.ajaxSetup({
  5955. jsonp: "callback",
  5956. jsonpCallback: function() {
  5957. var callback = oldCallbacks.pop() || jQuery.expando + "_" + nonce.guid++;
  5958. this[callback] = true;
  5959. return callback;
  5960. }
  5961. });
  5962. jQuery.ajaxPrefilter("json jsonp", function(s, originalSettings, jqXHR) {
  5963. var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && (rjsonp.test(s.url) ? "url" : typeof s.data === "string" && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && rjsonp.test(s.data) && "data");
  5964. if (jsonProp || s.dataTypes[0] === "jsonp") {
  5965. callbackName = s.jsonpCallback = isFunction(s.jsonpCallback) ? s.jsonpCallback() : s.jsonpCallback;
  5966. if (jsonProp) {
  5967. s[jsonProp] = s[jsonProp].replace(rjsonp, "$1" + callbackName);
  5968. } else if (s.jsonp !== false) {
  5969. s.url += (rquery.test(s.url) ? "&" : "?") + s.jsonp + "=" + callbackName;
  5970. }
  5971. s.converters["script json"] = function() {
  5972. if (!responseContainer) {
  5973. jQuery.error(callbackName + " was not called");
  5974. }
  5975. return responseContainer[0];
  5976. };
  5977. s.dataTypes[0] = "json";
  5978. overwritten = window2[callbackName];
  5979. window2[callbackName] = function() {
  5980. responseContainer = arguments;
  5981. };
  5982. jqXHR.always(function() {
  5983. if (overwritten === void 0) {
  5984. jQuery(window2).removeProp(callbackName);
  5985. } else {
  5986. window2[callbackName] = overwritten;
  5987. }
  5988. if (s[callbackName]) {
  5989. s.jsonpCallback = originalSettings.jsonpCallback;
  5990. oldCallbacks.push(callbackName);
  5991. }
  5992. if (responseContainer && isFunction(overwritten)) {
  5993. overwritten(responseContainer[0]);
  5994. }
  5995. responseContainer = overwritten = void 0;
  5996. });
  5997. return "script";
  5998. }
  5999. });
  6000. support.createHTMLDocument = function() {
  6001. var body = document.implementation.createHTMLDocument("").body;
  6002. body.innerHTML = "<form></form><form></form>";
  6003. return body.childNodes.length === 2;
  6004. }();
  6005. jQuery.parseHTML = function(data, context, keepScripts) {
  6006. if (typeof data !== "string") {
  6007. return [];
  6008. }
  6009. if (typeof context === "boolean") {
  6010. keepScripts = context;
  6011. context = false;
  6012. }
  6013. var base, parsed, scripts;
  6014. if (!context) {
  6015. if (support.createHTMLDocument) {
  6016. context = document.implementation.createHTMLDocument("");
  6017. base = context.createElement("base");
  6018. base.href = document.location.href;
  6019. context.head.appendChild(base);
  6020. } else {
  6021. context = document;
  6022. }
  6023. }
  6024. parsed = rsingleTag.exec(data);
  6025. scripts = !keepScripts && [];
  6026. if (parsed) {
  6027. return [context.createElement(parsed[1])];
  6028. }
  6029. parsed = buildFragment([data], context, scripts);
  6030. if (scripts && scripts.length) {
  6031. jQuery(scripts).remove();
  6032. }
  6033. return jQuery.merge([], parsed.childNodes);
  6034. };
  6035. jQuery.fn.load = function(url, params, callback) {
  6036. var selector, type, response, self = this, off = url.indexOf(" ");
  6037. if (off > -1) {
  6038. selector = stripAndCollapse(url.slice(off));
  6039. url = url.slice(0, off);
  6040. }
  6041. if (isFunction(params)) {
  6042. callback = params;
  6043. params = void 0;
  6044. } else if (params && typeof params === "object") {
  6045. type = "POST";
  6046. }
  6047. if (self.length > 0) {
  6048. jQuery.ajax({
  6049. url,
  6050. // If "type" variable is undefined, then "GET" method will be used.
  6051. // Make value of this field explicit since
  6052. // user can override it through ajaxSetup method
  6053. type: type || "GET",
  6054. dataType: "html",
  6055. data: params
  6056. }).done(function(responseText) {
  6057. response = arguments;
  6058. self.html(selector ? (
  6059. // If a selector was specified, locate the right elements in a dummy div
  6060. // Exclude scripts to avoid IE 'Permission Denied' errors
  6061. jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector)
  6062. ) : (
  6063. // Otherwise use the full result
  6064. responseText
  6065. ));
  6066. }).always(callback && function(jqXHR, status) {
  6067. self.each(function() {
  6068. callback.apply(this, response || [jqXHR.responseText, status, jqXHR]);
  6069. });
  6070. });
  6071. }
  6072. return this;
  6073. };
  6074. jQuery.expr.pseudos.animated = function(elem) {
  6075. return jQuery.grep(jQuery.timers, function(fn) {
  6076. return elem === fn.elem;
  6077. }).length;
  6078. };
  6079. jQuery.offset = {
  6080. setOffset: function(elem, options, i) {
  6081. var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, position = jQuery.css(elem, "position"), curElem = jQuery(elem), props = {};
  6082. if (position === "static") {
  6083. elem.style.position = "relative";
  6084. }
  6085. curOffset = curElem.offset();
  6086. curCSSTop = jQuery.css(elem, "top");
  6087. curCSSLeft = jQuery.css(elem, "left");
  6088. calculatePosition = (position === "absolute" || position === "fixed") && (curCSSTop + curCSSLeft).indexOf("auto") > -1;
  6089. if (calculatePosition) {
  6090. curPosition = curElem.position();
  6091. curTop = curPosition.top;
  6092. curLeft = curPosition.left;
  6093. } else {
  6094. curTop = parseFloat(curCSSTop) || 0;
  6095. curLeft = parseFloat(curCSSLeft) || 0;
  6096. }
  6097. if (isFunction(options)) {
  6098. options = options.call(elem, i, jQuery.extend({}, curOffset));
  6099. }
  6100. if (options.top != null) {
  6101. props.top = options.top - curOffset.top + curTop;
  6102. }
  6103. if (options.left != null) {
  6104. props.left = options.left - curOffset.left + curLeft;
  6105. }
  6106. if ("using" in options) {
  6107. options.using.call(elem, props);
  6108. } else {
  6109. curElem.css(props);
  6110. }
  6111. }
  6112. };
  6113. jQuery.fn.extend({
  6114. // offset() relates an element's border box to the document origin
  6115. offset: function(options) {
  6116. if (arguments.length) {
  6117. return options === void 0 ? this : this.each(function(i) {
  6118. jQuery.offset.setOffset(this, options, i);
  6119. });
  6120. }
  6121. var rect, win, elem = this[0];
  6122. if (!elem) {
  6123. return;
  6124. }
  6125. if (!elem.getClientRects().length) {
  6126. return { top: 0, left: 0 };
  6127. }
  6128. rect = elem.getBoundingClientRect();
  6129. win = elem.ownerDocument.defaultView;
  6130. return {
  6131. top: rect.top + win.pageYOffset,
  6132. left: rect.left + win.pageXOffset
  6133. };
  6134. },
  6135. // position() relates an element's margin box to its offset parent's padding box
  6136. // This corresponds to the behavior of CSS absolute positioning
  6137. position: function() {
  6138. if (!this[0]) {
  6139. return;
  6140. }
  6141. var offsetParent, offset, doc, elem = this[0], parentOffset = { top: 0, left: 0 };
  6142. if (jQuery.css(elem, "position") === "fixed") {
  6143. offset = elem.getBoundingClientRect();
  6144. } else {
  6145. offset = this.offset();
  6146. doc = elem.ownerDocument;
  6147. offsetParent = elem.offsetParent || doc.documentElement;
  6148. while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && jQuery.css(offsetParent, "position") === "static") {
  6149. offsetParent = offsetParent.parentNode;
  6150. }
  6151. if (offsetParent && offsetParent !== elem && offsetParent.nodeType === 1) {
  6152. parentOffset = jQuery(offsetParent).offset();
  6153. parentOffset.top += jQuery.css(offsetParent, "borderTopWidth", true);
  6154. parentOffset.left += jQuery.css(offsetParent, "borderLeftWidth", true);
  6155. }
  6156. }
  6157. return {
  6158. top: offset.top - parentOffset.top - jQuery.css(elem, "marginTop", true),
  6159. left: offset.left - parentOffset.left - jQuery.css(elem, "marginLeft", true)
  6160. };
  6161. },
  6162. // This method will return documentElement in the following cases:
  6163. // 1) For the element inside the iframe without offsetParent, this method will return
  6164. // documentElement of the parent window
  6165. // 2) For the hidden or detached element
  6166. // 3) For body or html element, i.e. in case of the html node - it will return itself
  6167. //
  6168. // but those exceptions were never presented as a real life use-cases
  6169. // and might be considered as more preferable results.
  6170. //
  6171. // This logic, however, is not guaranteed and can change at any point in the future
  6172. offsetParent: function() {
  6173. return this.map(function() {
  6174. var offsetParent = this.offsetParent;
  6175. while (offsetParent && jQuery.css(offsetParent, "position") === "static") {
  6176. offsetParent = offsetParent.offsetParent;
  6177. }
  6178. return offsetParent || documentElement;
  6179. });
  6180. }
  6181. });
  6182. jQuery.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(method, prop) {
  6183. var top = "pageYOffset" === prop;
  6184. jQuery.fn[method] = function(val) {
  6185. return access(this, function(elem, method2, val2) {
  6186. var win;
  6187. if (isWindow(elem)) {
  6188. win = elem;
  6189. } else if (elem.nodeType === 9) {
  6190. win = elem.defaultView;
  6191. }
  6192. if (val2 === void 0) {
  6193. return win ? win[prop] : elem[method2];
  6194. }
  6195. if (win) {
  6196. win.scrollTo(
  6197. !top ? val2 : win.pageXOffset,
  6198. top ? val2 : win.pageYOffset
  6199. );
  6200. } else {
  6201. elem[method2] = val2;
  6202. }
  6203. }, method, val, arguments.length);
  6204. };
  6205. });
  6206. jQuery.each(["top", "left"], function(_i, prop) {
  6207. jQuery.cssHooks[prop] = addGetHookIf(
  6208. support.pixelPosition,
  6209. function(elem, computed) {
  6210. if (computed) {
  6211. computed = curCSS(elem, prop);
  6212. return rnumnonpx.test(computed) ? jQuery(elem).position()[prop] + "px" : computed;
  6213. }
  6214. }
  6215. );
  6216. });
  6217. jQuery.each({ Height: "height", Width: "width" }, function(name, type) {
  6218. jQuery.each({
  6219. padding: "inner" + name,
  6220. content: type,
  6221. "": "outer" + name
  6222. }, function(defaultExtra, funcName) {
  6223. jQuery.fn[funcName] = function(margin, value) {
  6224. var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"), extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  6225. return access(this, function(elem, type2, value2) {
  6226. var doc;
  6227. if (isWindow(elem)) {
  6228. return funcName.indexOf("outer") === 0 ? elem["inner" + name] : elem.document.documentElement["client" + name];
  6229. }
  6230. if (elem.nodeType === 9) {
  6231. doc = elem.documentElement;
  6232. return Math.max(
  6233. elem.body["scroll" + name],
  6234. doc["scroll" + name],
  6235. elem.body["offset" + name],
  6236. doc["offset" + name],
  6237. doc["client" + name]
  6238. );
  6239. }
  6240. return value2 === void 0 ? (
  6241. // Get width or height on the element, requesting but not forcing parseFloat
  6242. jQuery.css(elem, type2, extra)
  6243. ) : (
  6244. // Set width or height on the element
  6245. jQuery.style(elem, type2, value2, extra)
  6246. );
  6247. }, type, chainable ? margin : void 0, chainable);
  6248. };
  6249. });
  6250. });
  6251. jQuery.each([
  6252. "ajaxStart",
  6253. "ajaxStop",
  6254. "ajaxComplete",
  6255. "ajaxError",
  6256. "ajaxSuccess",
  6257. "ajaxSend"
  6258. ], function(_i, type) {
  6259. jQuery.fn[type] = function(fn) {
  6260. return this.on(type, fn);
  6261. };
  6262. });
  6263. jQuery.fn.extend({
  6264. bind: function(types, data, fn) {
  6265. return this.on(types, null, data, fn);
  6266. },
  6267. unbind: function(types, fn) {
  6268. return this.off(types, null, fn);
  6269. },
  6270. delegate: function(selector, types, data, fn) {
  6271. return this.on(types, selector, data, fn);
  6272. },
  6273. undelegate: function(selector, types, fn) {
  6274. return arguments.length === 1 ? this.off(selector, "**") : this.off(types, selector || "**", fn);
  6275. },
  6276. hover: function(fnOver, fnOut) {
  6277. return this.on("mouseenter", fnOver).on("mouseleave", fnOut || fnOver);
  6278. }
  6279. });
  6280. jQuery.each(
  6281. "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
  6282. function(_i, name) {
  6283. jQuery.fn[name] = function(data, fn) {
  6284. return arguments.length > 0 ? this.on(name, null, data, fn) : this.trigger(name);
  6285. };
  6286. }
  6287. );
  6288. var rtrim = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
  6289. jQuery.proxy = function(fn, context) {
  6290. var tmp, args, proxy;
  6291. if (typeof context === "string") {
  6292. tmp = fn[context];
  6293. context = fn;
  6294. fn = tmp;
  6295. }
  6296. if (!isFunction(fn)) {
  6297. return void 0;
  6298. }
  6299. args = slice.call(arguments, 2);
  6300. proxy = function() {
  6301. return fn.apply(context || this, args.concat(slice.call(arguments)));
  6302. };
  6303. proxy.guid = fn.guid = fn.guid || jQuery.guid++;
  6304. return proxy;
  6305. };
  6306. jQuery.holdReady = function(hold) {
  6307. if (hold) {
  6308. jQuery.readyWait++;
  6309. } else {
  6310. jQuery.ready(true);
  6311. }
  6312. };
  6313. jQuery.isArray = Array.isArray;
  6314. jQuery.parseJSON = JSON.parse;
  6315. jQuery.nodeName = nodeName;
  6316. jQuery.isFunction = isFunction;
  6317. jQuery.isWindow = isWindow;
  6318. jQuery.camelCase = camelCase;
  6319. jQuery.type = toType;
  6320. jQuery.now = Date.now;
  6321. jQuery.isNumeric = function(obj) {
  6322. var type = jQuery.type(obj);
  6323. return (type === "number" || type === "string") && // parseFloat NaNs numeric-cast false positives ("")
  6324. // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
  6325. // subtraction forces infinities to NaN
  6326. !isNaN(obj - parseFloat(obj));
  6327. };
  6328. jQuery.trim = function(text) {
  6329. return text == null ? "" : (text + "").replace(rtrim, "$1");
  6330. };
  6331. if (typeof define === "function" && define.amd) {
  6332. define("jquery", [], function() {
  6333. return jQuery;
  6334. });
  6335. }
  6336. var _jQuery = window2.jQuery, _$ = window2.$;
  6337. jQuery.noConflict = function(deep) {
  6338. if (window2.$ === jQuery) {
  6339. window2.$ = _$;
  6340. }
  6341. if (deep && window2.jQuery === jQuery) {
  6342. window2.jQuery = _jQuery;
  6343. }
  6344. return jQuery;
  6345. };
  6346. if (typeof noGlobal === "undefined") {
  6347. window2.jQuery = window2.$ = jQuery;
  6348. }
  6349. return jQuery;
  6350. });
  6351. }
  6352. });
  6353. export {
  6354. require_jquery
  6355. };
  6356. /*! Bundled license information:
  6357. jquery/dist/jquery.js:
  6358. (*!
  6359. * jQuery JavaScript Library v3.7.1
  6360. * https://jquery.com/
  6361. *
  6362. * Copyright OpenJS Foundation and other contributors
  6363. * Released under the MIT license
  6364. * https://jquery.org/license
  6365. *
  6366. * Date: 2023-08-28T13:37Z
  6367. *)
  6368. */
  6369. //# sourceMappingURL=chunk-KMTVWNW7.js.map