jquery.js 230 KB

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