layui.all.dev.js 387 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001
  1. "use strict";
  2. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  3. /** layui-v2.5.6 MIT License By https://www.layui.com */
  4. ;
  5. !function (e) {
  6. "use strict";
  7. var t = document,
  8. n = {
  9. modules: {},
  10. status: {},
  11. timeout: 10,
  12. event: {}
  13. },
  14. r = function r() {
  15. this.v = "2.5.6";
  16. },
  17. o = function () {
  18. var e = t.currentScript ? t.currentScript.src : function () {
  19. for (var e, n = t.scripts, r = n.length - 1, o = r; o > 0; o--) {
  20. if ("interactive" === n[o].readyState) {
  21. e = n[o].src;
  22. break;
  23. }
  24. }
  25. return e || n[r].src;
  26. }();
  27. return e.substring(0, e.lastIndexOf("/") + 1);
  28. }(),
  29. a = function a(t) {
  30. e.console && console.error && console.error("Layui hint: " + t);
  31. },
  32. i = "undefined" != typeof opera && "[object Opera]" === opera.toString(),
  33. u = {
  34. layer: "modules/layer",
  35. laydate: "modules/laydate",
  36. laypage: "modules/laypage",
  37. laytpl: "modules/laytpl",
  38. layim: "modules/layim",
  39. layedit: "modules/layedit",
  40. form: "modules/form",
  41. upload: "modules/upload",
  42. transfer: "modules/transfer",
  43. tree: "modules/tree",
  44. table: "modules/table",
  45. element: "modules/element",
  46. rate: "modules/rate",
  47. colorpicker: "modules/colorpicker",
  48. slider: "modules/slider",
  49. carousel: "modules/carousel",
  50. flow: "modules/flow",
  51. util: "modules/util",
  52. code: "modules/code",
  53. jquery: "modules/jquery",
  54. mobile: "modules/mobile",
  55. "layui.all": "../layui.all"
  56. };
  57. r.prototype.cache = n, r.prototype.define = function (e, t) {
  58. var r = this,
  59. o = "function" == typeof e,
  60. a = function a() {
  61. var e = function e(_e2, t) {
  62. layui[_e2] = t, n.status[_e2] = !0;
  63. };
  64. return "function" == typeof t && t(function (r, o) {
  65. e(r, o), n.callback[r] = function () {
  66. t(e);
  67. };
  68. }), this;
  69. };
  70. return o && (t = e, e = []), !layui["layui.all"] && layui["layui.mobile"] ? a.call(r) : (r.use(e, a), r);
  71. }, r.prototype.use = function (e, r, l) {
  72. function c(e, t) {
  73. var r = "PLaySTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/;
  74. ("load" === e.type || r.test((e.currentTarget || e.srcElement).readyState)) && (n.modules[d] = t, y.removeChild(h), function o() {
  75. return ++m > 1e3 * n.timeout / 4 ? a(d + " is not a valid module") : void (n.status[d] ? s() : setTimeout(o, 4));
  76. }());
  77. }
  78. function s() {
  79. l.push(layui[d]), e.length > 1 ? p.use(e.slice(1), r, l) : "function" == typeof r && r.apply(layui, l);
  80. }
  81. var p = this,
  82. f = n.dir = n.dir ? n.dir : o,
  83. y = t.getElementsByTagName("head")[0];
  84. e = "string" == typeof e ? [e] : e, window.jQuery && jQuery.fn.on && (p.each(e, function (t, n) {
  85. "jquery" === n && e.splice(t, 1);
  86. }), layui.jquery = layui.$ = jQuery);
  87. var d = e[0],
  88. m = 0;
  89. if (l = l || [], n.host = n.host || (f.match(/\/\/([\s\S]+?)\//) || ["//" + location.host + "/"])[0], 0 === e.length || layui["layui.all"] && u[d] || !layui["layui.all"] && layui["layui.mobile"] && u[d]) return s(), p;
  90. var v = (u[d] ? f + "lay/" : /^\{\/\}/.test(p.modules[d]) ? "" : n.base || "") + (p.modules[d] || d) + ".js";
  91. if (v = v.replace(/^\{\/\}/, ""), !n.modules[d] && layui[d] && (n.modules[d] = v), n.modules[d]) !function g() {
  92. return ++m > 1e3 * n.timeout / 4 ? a(d + " is not a valid module") : void ("string" == typeof n.modules[d] && n.status[d] ? s() : setTimeout(g, 4));
  93. }();else {
  94. var h = t.createElement("script");
  95. h.async = !0, h.charset = "utf-8", h.src = v + function () {
  96. var e = n.version === !0 ? n.v || new Date().getTime() : n.version || "";
  97. return e ? "?v=" + e : "";
  98. }(), y.appendChild(h), !h.attachEvent || h.attachEvent.toString && h.attachEvent.toString().indexOf("[native code") < 0 || i ? h.addEventListener("load", function (e) {
  99. c(e, v);
  100. }, !1) : h.attachEvent("onreadystatechange", function (e) {
  101. c(e, v);
  102. }), n.modules[d] = v;
  103. }
  104. return p;
  105. }, r.prototype.getStyle = function (t, n) {
  106. var r = t.currentStyle ? t.currentStyle : e.getComputedStyle(t, null);
  107. return r[r.getPropertyValue ? "getPropertyValue" : "getAttribute"](n);
  108. }, r.prototype.link = function (e, r, o) {
  109. var i = this,
  110. u = t.createElement("link"),
  111. l = t.getElementsByTagName("head")[0];
  112. "string" == typeof r && (o = r);
  113. var c = (o || e).replace(/\.|\//g, ""),
  114. s = u.id = "layuicss-" + c,
  115. p = 0;
  116. return u.rel = "stylesheet", u.href = e + (n.debug ? "?v=" + new Date().getTime() : ""), u.media = "all", t.getElementById(s) || l.appendChild(u), "function" != typeof r ? i : (function f() {
  117. return ++p > 1e3 * n.timeout / 100 ? a(e + " timeout") : void (1989 === parseInt(i.getStyle(t.getElementById(s), "width")) ? function () {
  118. r();
  119. }() : setTimeout(f, 100));
  120. }(), i);
  121. }, n.callback = {}, r.prototype.factory = function (e) {
  122. if (layui[e]) return "function" == typeof n.callback[e] ? n.callback[e] : null;
  123. }, r.prototype.addcss = function (e, t, r) {
  124. return layui.link(n.dir + "css/" + e, t, r);
  125. }, r.prototype.img = function (e, t, n) {
  126. var r = new Image();
  127. return r.src = e, r.complete ? t(r) : (r.onload = function () {
  128. r.onload = null, "function" == typeof t && t(r);
  129. }, void (r.onerror = function (e) {
  130. r.onerror = null, "function" == typeof n && n(e);
  131. }));
  132. }, r.prototype.config = function (e) {
  133. e = e || {};
  134. for (var t in e) {
  135. n[t] = e[t];
  136. }
  137. return this;
  138. }, r.prototype.modules = function () {
  139. var e = {};
  140. for (var t in u) {
  141. e[t] = u[t];
  142. }
  143. return e;
  144. }(), r.prototype.extend = function (e) {
  145. var t = this;
  146. e = e || {};
  147. for (var n in e) {
  148. t[n] || t.modules[n] ? a("模块名 " + n + " 已被占用") : t.modules[n] = e[n];
  149. }
  150. return t;
  151. }, r.prototype.router = function (e) {
  152. var t = this,
  153. e = e || location.hash,
  154. n = {
  155. path: [],
  156. search: {},
  157. hash: (e.match(/[^#](#.*$)/) || [])[1] || ""
  158. };
  159. return /^#\//.test(e) ? (e = e.replace(/^#\//, ""), n.href = "/" + e, e = e.replace(/([^#])(#.*$)/, "$1").split("/") || [], t.each(e, function (e, t) {
  160. /^\w+=/.test(t) ? function () {
  161. t = t.split("="), n.search[t[0]] = t[1];
  162. }() : n.path.push(t);
  163. }), n) : n;
  164. }, r.prototype.url = function (e) {
  165. var t = this,
  166. n = {
  167. pathname: function () {
  168. var t = e ? function () {
  169. var t = (e.match(/\.[^.]+?\/.+/) || [])[0] || "";
  170. return t.replace(/^[^\/]+/, "").replace(/\?.+/, "");
  171. }() : location.pathname;
  172. return t.replace(/^\//, "").split("/");
  173. }(),
  174. search: function () {
  175. var n = {},
  176. r = (e ? function () {
  177. var t = (e.match(/\?.+/) || [])[0] || "";
  178. return t.replace(/\#.+/, "");
  179. }() : location.search).replace(/^\?+/, "").split("&");
  180. return t.each(r, function (e, t) {
  181. var r = t.indexOf("="),
  182. o = function () {
  183. return r < 0 ? t.substr(0, t.length) : 0 !== r && t.substr(0, r);
  184. }();
  185. o && (n[o] = r > 0 ? t.substr(r + 1) : null);
  186. }), n;
  187. }(),
  188. hash: t.router(function () {
  189. return e ? (e.match(/#.+/) || [])[0] || "" : location.hash;
  190. }())
  191. };
  192. return n;
  193. }, r.prototype.data = function (t, n, r) {
  194. if (t = t || "layui", r = r || localStorage, e.JSON && e.JSON.parse) {
  195. if (null === n) return delete r[t];
  196. n = "object" == _typeof(n) ? n : {
  197. key: n
  198. };
  199. try {
  200. var o = JSON.parse(r[t]);
  201. } catch (a) {
  202. var o = {};
  203. }
  204. return "value" in n && (o[n.key] = n.value), n.remove && delete o[n.key], r[t] = JSON.stringify(o), n.key ? o[n.key] : o;
  205. }
  206. }, r.prototype.sessionData = function (e, t) {
  207. return this.data(e, t, sessionStorage);
  208. }, r.prototype.device = function (t) {
  209. var n = navigator.userAgent.toLowerCase(),
  210. r = function r(e) {
  211. var t = new RegExp(e + "/([^\\s\\_\\-]+)");
  212. return e = (n.match(t) || [])[1], e || !1;
  213. },
  214. o = {
  215. os: function () {
  216. return /windows/.test(n) ? "windows" : /linux/.test(n) ? "linux" : /iphone|ipod|ipad|ios/.test(n) ? "ios" : /mac/.test(n) ? "mac" : void 0;
  217. }(),
  218. ie: function () {
  219. return !!(e.ActiveXObject || "ActiveXObject" in e) && ((n.match(/msie\s(\d+)/) || [])[1] || "11");
  220. }(),
  221. weixin: r("micromessenger")
  222. };
  223. return t && !o[t] && (o[t] = r(t)), o.android = /android/.test(n), o.ios = "ios" === o.os, o.mobile = !(!o.android && !o.ios), o;
  224. }, r.prototype.hint = function () {
  225. return {
  226. error: a
  227. };
  228. }, r.prototype.each = function (e, t) {
  229. var n,
  230. r = this;
  231. if ("function" != typeof t) return r;
  232. if (e = e || [], e.constructor === Object) {
  233. for (n in e) {
  234. if (t.call(e[n], n, e[n])) break;
  235. }
  236. } else for (n = 0; n < e.length && !t.call(e[n], n, e[n]); n++) {
  237. ;
  238. }
  239. return r;
  240. }, r.prototype.sort = function (e, t, n) {
  241. var r = JSON.parse(JSON.stringify(e || []));
  242. return t ? (r.sort(function (e, n) {
  243. var r = /^-?\d+$/,
  244. o = e[t],
  245. a = n[t];
  246. return r.test(o) && (o = parseFloat(o)), r.test(a) && (a = parseFloat(a)), o && !a ? 1 : !o && a ? -1 : o > a ? 1 : o < a ? -1 : 0;
  247. }), n && r.reverse(), r) : r;
  248. }, r.prototype.stope = function (t) {
  249. t = t || e.event;
  250. try {
  251. t.stopPropagation();
  252. } catch (n) {
  253. t.cancelBubble = !0;
  254. }
  255. }, r.prototype.onevent = function (e, t, n) {
  256. return "string" != typeof e || "function" != typeof n ? this : r.event(e, t, null, n);
  257. }, r.prototype.event = r.event = function (e, t, r, o) {
  258. var a = this,
  259. i = null,
  260. u = t.match(/\((.*)\)$/) || [],
  261. l = (e + "." + t).replace(u[0], ""),
  262. c = u[1] || "",
  263. s = function s(e, t) {
  264. var n = t && t.call(a, r);
  265. n === !1 && null === i && (i = !1);
  266. };
  267. return o ? (n.event[l] = n.event[l] || {}, n.event[l][c] = [o], this) : (layui.each(n.event[l], function (e, t) {
  268. return "{*}" === c ? void layui.each(t, s) : ("" === e && layui.each(t, s), void (c && e === c && layui.each(t, s)));
  269. }), i);
  270. }, e.layui = new r();
  271. }(window);
  272. layui.define(function (a) {
  273. var i = layui.cache;
  274. layui.config({
  275. dir: i.dir.replace(/lay\/dest\/$/, "")
  276. }), a("layui.all", layui.v);
  277. });
  278. layui.define(function (e) {
  279. "use strict";
  280. var r = {
  281. open: "{{",
  282. close: "}}"
  283. },
  284. c = {
  285. exp: function exp(e) {
  286. return new RegExp(e, "g");
  287. },
  288. query: function query(e, c, t) {
  289. var o = ["#([\\s\\S])+?", "([^{#}])*?"][e || 0];
  290. return n((c || "") + r.open + o + r.close + (t || ""));
  291. },
  292. escape: function escape(e) {
  293. return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#39;").replace(/"/g, "&quot;");
  294. },
  295. error: function error(e, r) {
  296. var c = "Laytpl Error:";
  297. return "object" == (typeof console === "undefined" ? "undefined" : _typeof(console)) && console.error(c + e + "\n" + (r || "")), c + e;
  298. }
  299. },
  300. n = c.exp,
  301. t = function t(e) {
  302. this.tpl = e;
  303. };
  304. t.pt = t.prototype, window.errors = 0, t.pt.parse = function (e, t) {
  305. var o = this,
  306. p = e,
  307. a = n("^" + r.open + "#", ""),
  308. l = n(r.close + "$", "");
  309. e = e.replace(/\s+|\r|\t|\n/g, " ").replace(n(r.open + "#"), r.open + "# ").replace(n(r.close + "}"), "} " + r.close).replace(/\\/g, "\\\\").replace(n(r.open + "!(.+?)!" + r.close), function (e) {
  310. return e = e.replace(n("^" + r.open + "!"), "").replace(n("!" + r.close), "").replace(n(r.open + "|" + r.close), function (e) {
  311. return e.replace(/(.)/g, "\\$1");
  312. });
  313. }).replace(/(?="|')/g, "\\").replace(c.query(), function (e) {
  314. return e = e.replace(a, "").replace(l, ""), '";' + e.replace(/\\/g, "") + ';view+="';
  315. }).replace(c.query(1), function (e) {
  316. var c = '"+(';
  317. return e.replace(/\s/g, "") === r.open + r.close ? "" : (e = e.replace(n(r.open + "|" + r.close), ""), /^=/.test(e) && (e = e.replace(/^=/, ""), c = '"+_escape_('), c + e.replace(/\\/g, "") + ')+"');
  318. }), e = '"use strict";var view = "' + e + '";return view;';
  319. try {
  320. return o.cache = e = new Function("d, _escape_", e), e(t, c.escape);
  321. } catch (u) {
  322. return delete o.cache, c.error(u, p);
  323. }
  324. }, t.pt.render = function (e, r) {
  325. var n,
  326. t = this;
  327. return e ? (n = t.cache ? t.cache(e, c.escape) : t.parse(t.tpl, e), r ? void r(n) : n) : c.error("no data");
  328. };
  329. var o = function o(e) {
  330. return "string" != typeof e ? c.error("Template not found") : new t(e);
  331. };
  332. o.config = function (e) {
  333. e = e || {};
  334. for (var c in e) {
  335. r[c] = e[c];
  336. }
  337. }, o.v = "1.2.0", e("laytpl", o);
  338. });
  339. layui.define(function (e) {
  340. "use strict";
  341. var a = document,
  342. t = "getElementById",
  343. n = "getElementsByTagName",
  344. i = "laypage",
  345. r = "layui-disabled",
  346. u = function u(e) {
  347. var a = this;
  348. a.config = e || {}, a.config.index = ++s.index, a.render(!0);
  349. };
  350. u.prototype.type = function () {
  351. var e = this.config;
  352. if ("object" == _typeof(e.elem)) return void 0 === e.elem.length ? 2 : 3;
  353. }, u.prototype.view = function () {
  354. var e = this,
  355. a = e.config,
  356. t = a.groups = "groups" in a ? 0 | a.groups : 5;
  357. a.layout = "object" == _typeof(a.layout) ? a.layout : ["prev", "page", "next"], a.count = 0 | a.count, a.curr = 0 | a.curr || 1, a.limits = "object" == _typeof(a.limits) ? a.limits : [10, 20, 30, 40, 50], a.limit = 0 | a.limit || 10, a.pages = Math.ceil(a.count / a.limit) || 1, a.curr > a.pages && (a.curr = a.pages), t < 0 ? t = 1 : t > a.pages && (t = a.pages), a.prev = "prev" in a ? a.prev : "&#x4E0A;&#x4E00;&#x9875;", a.next = "next" in a ? a.next : "&#x4E0B;&#x4E00;&#x9875;";
  358. var n = a.pages > t ? Math.ceil((a.curr + (t > 1 ? 1 : 0)) / (t > 0 ? t : 1)) : 1,
  359. i = {
  360. prev: function () {
  361. return a.prev ? '<a href="javascript:;" class="layui-laypage-prev' + (1 == a.curr ? " " + r : "") + '" data-page="' + (a.curr - 1) + '">' + a.prev + "</a>" : "";
  362. }(),
  363. page: function () {
  364. var e = [];
  365. if (a.count < 1) return "";
  366. n > 1 && a.first !== !1 && 0 !== t && e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="&#x9996;&#x9875;">' + (a.first || 1) + "</a>");
  367. var i = Math.floor((t - 1) / 2),
  368. r = n > 1 ? a.curr - i : 1,
  369. u = n > 1 ? function () {
  370. var e = a.curr + (t - i - 1);
  371. return e > a.pages ? a.pages : e;
  372. }() : t;
  373. for (u - r < t - 1 && (r = u - t + 1), a.first !== !1 && r > 2 && e.push('<span class="layui-laypage-spr">&#x2026;</span>'); r <= u; r++) {
  374. r === a.curr ? e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" ' + (/^#/.test(a.theme) ? 'style="background-color:' + a.theme + ';"' : "") + "></em><em>" + r + "</em></span>") : e.push('<a href="javascript:;" data-page="' + r + '">' + r + "</a>");
  375. }
  376. return a.pages > t && a.pages > u && a.last !== !1 && (u + 1 < a.pages && e.push('<span class="layui-laypage-spr">&#x2026;</span>'), 0 !== t && e.push('<a href="javascript:;" class="layui-laypage-last" title="&#x5C3E;&#x9875;" data-page="' + a.pages + '">' + (a.last || a.pages) + "</a>")), e.join("");
  377. }(),
  378. next: function () {
  379. return a.next ? '<a href="javascript:;" class="layui-laypage-next' + (a.curr == a.pages ? " " + r : "") + '" data-page="' + (a.curr + 1) + '">' + a.next + "</a>" : "";
  380. }(),
  381. count: '<span class="layui-laypage-count">共 ' + a.count + " 条</span>",
  382. limit: function () {
  383. var e = ['<span class="layui-laypage-limits"><select lay-ignore>'];
  384. return layui.each(a.limits, function (t, n) {
  385. e.push('<option value="' + n + '"' + (n === a.limit ? "selected" : "") + ">" + n + " 条/页</option>");
  386. }), e.join("") + "</select></span>";
  387. }(),
  388. refresh: ['<a href="javascript:;" data-page="' + a.curr + '" class="layui-laypage-refresh">', '<i class="layui-icon layui-icon-refresh"></i>', "</a>"].join(""),
  389. skip: function () {
  390. return ['<span class="layui-laypage-skip">&#x5230;&#x7B2C;', '<input type="text" min="1" value="' + a.curr + '" class="layui-input">', '&#x9875;<button type="button" class="layui-laypage-btn">&#x786e;&#x5b9a;</button>', "</span>"].join("");
  391. }()
  392. };
  393. return ['<div class="layui-box layui-laypage layui-laypage-' + (a.theme ? /^#/.test(a.theme) ? "molv" : a.theme : "default") + '" id="layui-laypage-' + a.index + '">', function () {
  394. var e = [];
  395. return layui.each(a.layout, function (a, t) {
  396. i[t] && e.push(i[t]);
  397. }), e.join("");
  398. }(), "</div>"].join("");
  399. }, u.prototype.jump = function (e, a) {
  400. if (e) {
  401. var t = this,
  402. i = t.config,
  403. r = e.children,
  404. u = e[n]("button")[0],
  405. l = e[n]("input")[0],
  406. p = e[n]("select")[0],
  407. c = function c() {
  408. var e = 0 | l.value.replace(/\s|\D/g, "");
  409. e && (i.curr = e, t.render());
  410. };
  411. if (a) return c();
  412. for (var o = 0, y = r.length; o < y; o++) {
  413. "a" === r[o].nodeName.toLowerCase() && s.on(r[o], "click", function () {
  414. var e = 0 | this.getAttribute("data-page");
  415. e < 1 || e > i.pages || (i.curr = e, t.render());
  416. });
  417. }
  418. p && s.on(p, "change", function () {
  419. var e = this.value;
  420. i.curr * e > i.count && (i.curr = Math.ceil(i.count / e)), i.limit = e, t.render();
  421. }), u && s.on(u, "click", function () {
  422. c();
  423. });
  424. }
  425. }, u.prototype.skip = function (e) {
  426. if (e) {
  427. var a = this,
  428. t = e[n]("input")[0];
  429. t && s.on(t, "keyup", function (t) {
  430. var n = this.value,
  431. i = t.keyCode;
  432. /^(37|38|39|40)$/.test(i) || (/\D/.test(n) && (this.value = n.replace(/\D/, "")), 13 === i && a.jump(e, !0));
  433. });
  434. }
  435. }, u.prototype.render = function (e) {
  436. var n = this,
  437. i = n.config,
  438. r = n.type(),
  439. u = n.view();
  440. 2 === r ? i.elem && (i.elem.innerHTML = u) : 3 === r ? i.elem.html(u) : a[t](i.elem) && (a[t](i.elem).innerHTML = u), i.jump && i.jump(i, e);
  441. var s = a[t]("layui-laypage-" + i.index);
  442. n.jump(s), i.hash && !e && (location.hash = "!" + i.hash + "=" + i.curr), n.skip(s);
  443. };
  444. var s = {
  445. render: function render(e) {
  446. var a = new u(e);
  447. return a.index;
  448. },
  449. index: layui.laypage ? layui.laypage.index + 1e4 : 0,
  450. on: function on(e, a, t) {
  451. return e.attachEvent ? e.attachEvent("on" + a, function (a) {
  452. a.target = a.srcElement, t.call(e, a);
  453. }) : e.addEventListener(a, t, !1), this;
  454. }
  455. };
  456. e(i, s);
  457. });
  458. !function () {
  459. "use strict";
  460. var e = window.layui && layui.define,
  461. t = {
  462. getPath: function () {
  463. var e = document.currentScript ? document.currentScript.src : function () {
  464. for (var e, t = document.scripts, n = t.length - 1, a = n; a > 0; a--) {
  465. if ("interactive" === t[a].readyState) {
  466. e = t[a].src;
  467. break;
  468. }
  469. }
  470. return e || t[n].src;
  471. }();
  472. return e.substring(0, e.lastIndexOf("/") + 1);
  473. }(),
  474. getStyle: function getStyle(e, t) {
  475. var n = e.currentStyle ? e.currentStyle : window.getComputedStyle(e, null);
  476. return n[n.getPropertyValue ? "getPropertyValue" : "getAttribute"](t);
  477. },
  478. link: function link(e, a, i) {
  479. if (n.path) {
  480. var r = document.getElementsByTagName("head")[0],
  481. o = document.createElement("link");
  482. "string" == typeof a && (i = a);
  483. var s = (i || e).replace(/\.|\//g, ""),
  484. l = "layuicss-" + s,
  485. d = 0;
  486. o.rel = "stylesheet", o.href = n.path + e, o.id = l, document.getElementById(l) || r.appendChild(o), "function" == typeof a && !function c() {
  487. return ++d > 80 ? window.console && console.error("laydate.css: Invalid") : void (1989 === parseInt(t.getStyle(document.getElementById(l), "width")) ? a() : setTimeout(c, 100));
  488. }();
  489. }
  490. }
  491. },
  492. n = {
  493. v: "5.0.9",
  494. config: {},
  495. index: window.laydate && window.laydate.v ? 1e5 : 0,
  496. path: t.getPath,
  497. set: function set(e) {
  498. var t = this;
  499. return t.config = w.extend({}, t.config, e), t;
  500. },
  501. ready: function ready(a) {
  502. var i = "laydate",
  503. r = "",
  504. o = (e ? "modules/laydate/" : "theme/") + "default/laydate.css?v=" + n.v + r;
  505. return e ? layui.addcss(o, a, i) : t.link(o, a, i), this;
  506. }
  507. },
  508. a = function a() {
  509. var e = this;
  510. return {
  511. hint: function hint(t) {
  512. e.hint.call(e, t);
  513. },
  514. config: e.config
  515. };
  516. },
  517. i = "laydate",
  518. r = ".layui-laydate",
  519. o = "layui-this",
  520. s = "laydate-disabled",
  521. l = "开始日期超出了结束日期<br>建议重新选择",
  522. d = [100, 2e5],
  523. c = "layui-laydate-static",
  524. m = "layui-laydate-list",
  525. u = "laydate-selected",
  526. h = "layui-laydate-hint",
  527. y = "laydate-day-prev",
  528. f = "laydate-day-next",
  529. p = "layui-laydate-footer",
  530. g = ".laydate-btns-confirm",
  531. v = "laydate-time-text",
  532. D = ".laydate-btns-time",
  533. T = function T(e) {
  534. var t = this;
  535. t.index = ++n.index, t.config = w.extend({}, t.config, n.config, e), n.ready(function () {
  536. t.init();
  537. });
  538. },
  539. w = function w(e) {
  540. return new C(e);
  541. },
  542. C = function C(e) {
  543. for (var t = 0, n = "object" == _typeof(e) ? [e] : (this.selector = e, document.querySelectorAll(e || null)); t < n.length; t++) {
  544. this.push(n[t]);
  545. }
  546. };
  547. C.prototype = [], C.prototype.constructor = C, w.extend = function () {
  548. var e = 1,
  549. t = arguments,
  550. n = function n(e, t) {
  551. e = e || (t.constructor === Array ? [] : {});
  552. for (var a in t) {
  553. e[a] = t[a] && t[a].constructor === Object ? n(e[a], t[a]) : t[a];
  554. }
  555. return e;
  556. };
  557. for (t[0] = "object" == _typeof(t[0]) ? t[0] : {}; e < t.length; e++) {
  558. "object" == _typeof(t[e]) && n(t[0], t[e]);
  559. }
  560. return t[0];
  561. }, w.ie = function () {
  562. var e = navigator.userAgent.toLowerCase();
  563. return !!(window.ActiveXObject || "ActiveXObject" in window) && ((e.match(/msie\s(\d+)/) || [])[1] || "11");
  564. }(), w.stope = function (e) {
  565. e = e || window.event, e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0;
  566. }, w.each = function (e, t) {
  567. var n,
  568. a = this;
  569. if ("function" != typeof t) return a;
  570. if (e = e || [], e.constructor === Object) {
  571. for (n in e) {
  572. if (t.call(e[n], n, e[n])) break;
  573. }
  574. } else for (n = 0; n < e.length && !t.call(e[n], n, e[n]); n++) {
  575. ;
  576. }
  577. return a;
  578. }, w.digit = function (e, t, n) {
  579. var a = "";
  580. e = String(e), t = t || 2;
  581. for (var i = e.length; i < t; i++) {
  582. a += "0";
  583. }
  584. return e < Math.pow(10, t) ? a + (0 | e) : e;
  585. }, w.elem = function (e, t) {
  586. var n = document.createElement(e);
  587. return w.each(t || {}, function (e, t) {
  588. n.setAttribute(e, t);
  589. }), n;
  590. }, C.addStr = function (e, t) {
  591. return e = e.replace(/\s+/, " "), t = t.replace(/\s+/, " ").split(" "), w.each(t, function (t, n) {
  592. new RegExp("\\b" + n + "\\b").test(e) || (e = e + " " + n);
  593. }), e.replace(/^\s|\s$/, "");
  594. }, C.removeStr = function (e, t) {
  595. return e = e.replace(/\s+/, " "), t = t.replace(/\s+/, " ").split(" "), w.each(t, function (t, n) {
  596. var a = new RegExp("\\b" + n + "\\b");
  597. a.test(e) && (e = e.replace(a, ""));
  598. }), e.replace(/\s+/, " ").replace(/^\s|\s$/, "");
  599. }, C.prototype.find = function (e) {
  600. var t = this,
  601. n = 0,
  602. a = [],
  603. i = "object" == _typeof(e);
  604. return this.each(function (r, o) {
  605. for (var s = i ? [e] : o.querySelectorAll(e || null); n < s.length; n++) {
  606. a.push(s[n]);
  607. }
  608. t.shift();
  609. }), i || (t.selector = (t.selector ? t.selector + " " : "") + e), w.each(a, function (e, n) {
  610. t.push(n);
  611. }), t;
  612. }, C.prototype.each = function (e) {
  613. return w.each.call(this, this, e);
  614. }, C.prototype.addClass = function (e, t) {
  615. return this.each(function (n, a) {
  616. a.className = C[t ? "removeStr" : "addStr"](a.className, e);
  617. });
  618. }, C.prototype.removeClass = function (e) {
  619. return this.addClass(e, !0);
  620. }, C.prototype.hasClass = function (e) {
  621. var t = !1;
  622. return this.each(function (n, a) {
  623. new RegExp("\\b" + e + "\\b").test(a.className) && (t = !0);
  624. }), t;
  625. }, C.prototype.attr = function (e, t) {
  626. var n = this;
  627. return void 0 === t ? function () {
  628. if (n.length > 0) return n[0].getAttribute(e);
  629. }() : n.each(function (n, a) {
  630. a.setAttribute(e, t);
  631. });
  632. }, C.prototype.removeAttr = function (e) {
  633. return this.each(function (t, n) {
  634. n.removeAttribute(e);
  635. });
  636. }, C.prototype.html = function (e) {
  637. return this.each(function (t, n) {
  638. n.innerHTML = e;
  639. });
  640. }, C.prototype.val = function (e) {
  641. return this.each(function (t, n) {
  642. n.value = e;
  643. });
  644. }, C.prototype.append = function (e) {
  645. return this.each(function (t, n) {
  646. "object" == _typeof(e) ? n.appendChild(e) : n.innerHTML = n.innerHTML + e;
  647. });
  648. }, C.prototype.remove = function (e) {
  649. return this.each(function (t, n) {
  650. e ? n.removeChild(e) : n.parentNode.removeChild(n);
  651. });
  652. }, C.prototype.on = function (e, t) {
  653. return this.each(function (n, a) {
  654. a.attachEvent ? a.attachEvent("on" + e, function (e) {
  655. e.target = e.srcElement, t.call(a, e);
  656. }) : a.addEventListener(e, t, !1);
  657. });
  658. }, C.prototype.off = function (e, t) {
  659. return this.each(function (n, a) {
  660. a.detachEvent ? a.detachEvent("on" + e, t) : a.removeEventListener(e, t, !1);
  661. });
  662. }, T.isLeapYear = function (e) {
  663. return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
  664. }, T.prototype.config = {
  665. type: "date",
  666. range: !1,
  667. format: "yyyy-MM-dd",
  668. value: null,
  669. isInitValue: !0,
  670. min: "1900-1-1",
  671. max: "2099-12-31",
  672. trigger: "focus",
  673. show: !1,
  674. showBottom: !0,
  675. btns: ["clear", "now", "confirm"],
  676. lang: "cn",
  677. theme: "default",
  678. position: null,
  679. calendar: !1,
  680. mark: {},
  681. zIndex: null,
  682. done: null,
  683. change: null
  684. }, T.prototype.lang = function () {
  685. var e = this,
  686. t = e.config,
  687. n = {
  688. cn: {
  689. weeks: ["日", "一", "二", "三", "四", "五", "六"],
  690. time: ["时", "分", "秒"],
  691. timeTips: "选择时间",
  692. startTime: "开始时间",
  693. endTime: "结束时间",
  694. dateTips: "返回日期",
  695. month: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
  696. tools: {
  697. confirm: "确定",
  698. clear: "清空",
  699. now: "现在"
  700. }
  701. },
  702. en: {
  703. weeks: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  704. time: ["Hours", "Minutes", "Seconds"],
  705. timeTips: "Select Time",
  706. startTime: "Start Time",
  707. endTime: "End Time",
  708. dateTips: "Select Date",
  709. month: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  710. tools: {
  711. confirm: "Confirm",
  712. clear: "Clear",
  713. now: "Now"
  714. }
  715. }
  716. };
  717. return n[t.lang] || n.cn;
  718. }, T.prototype.init = function () {
  719. var e = this,
  720. t = e.config,
  721. n = "yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",
  722. a = "static" === t.position,
  723. i = {
  724. year: "yyyy",
  725. month: "yyyy-MM",
  726. date: "yyyy-MM-dd",
  727. time: "HH:mm:ss",
  728. datetime: "yyyy-MM-dd HH:mm:ss"
  729. };
  730. t.elem = w(t.elem), t.eventElem = w(t.eventElem), t.elem[0] && (t.range === !0 && (t.range = "-"), t.format === i.date && (t.format = i[t.type]), e.format = t.format.match(new RegExp(n + "|.", "g")) || [], e.EXP_IF = "", e.EXP_SPLIT = "", w.each(e.format, function (t, a) {
  731. var i = new RegExp(n).test(a) ? "\\d{" + function () {
  732. return new RegExp(n).test(e.format[0 === t ? t + 1 : t - 1] || "") ? /^yyyy|y$/.test(a) ? 4 : a.length : /^yyyy$/.test(a) ? "1,4" : /^y$/.test(a) ? "1,308" : "1,2";
  733. }() + "}" : "\\" + a;
  734. e.EXP_IF = e.EXP_IF + i, e.EXP_SPLIT = e.EXP_SPLIT + "(" + i + ")";
  735. }), e.EXP_IF = new RegExp("^" + (t.range ? e.EXP_IF + "\\s\\" + t.range + "\\s" + e.EXP_IF : e.EXP_IF) + "$"), e.EXP_SPLIT = new RegExp("^" + e.EXP_SPLIT + "$", ""), e.isInput(t.elem[0]) || "focus" === t.trigger && (t.trigger = "click"), t.elem.attr("lay-key") || (t.elem.attr("lay-key", e.index), t.eventElem.attr("lay-key", e.index)), t.mark = w.extend({}, t.calendar && "cn" === t.lang ? {
  736. "0-1-1": "元旦",
  737. "0-2-14": "情人",
  738. "0-3-8": "妇女",
  739. "0-3-12": "植树",
  740. "0-4-1": "愚人",
  741. "0-5-1": "劳动",
  742. "0-5-4": "青年",
  743. "0-6-1": "儿童",
  744. "0-9-10": "教师",
  745. "0-9-18": "国耻",
  746. "0-10-1": "国庆",
  747. "0-12-25": "圣诞"
  748. } : {}, t.mark), w.each(["min", "max"], function (e, n) {
  749. var a = [],
  750. i = [];
  751. if ("number" == typeof t[n]) {
  752. var r = t[n],
  753. o = new Date().getTime(),
  754. s = 864e5,
  755. l = new Date(r ? r < s ? o + r * s : r : o);
  756. a = [l.getFullYear(), l.getMonth() + 1, l.getDate()], r < s || (i = [l.getHours(), l.getMinutes(), l.getSeconds()]);
  757. } else a = (t[n].match(/\d+-\d+-\d+/) || [""])[0].split("-"), i = (t[n].match(/\d+:\d+:\d+/) || [""])[0].split(":");
  758. t[n] = {
  759. year: 0 | a[0] || new Date().getFullYear(),
  760. month: a[1] ? (0 | a[1]) - 1 : new Date().getMonth(),
  761. date: 0 | a[2] || new Date().getDate(),
  762. hours: 0 | i[0],
  763. minutes: 0 | i[1],
  764. seconds: 0 | i[2]
  765. };
  766. }), e.elemID = "layui-laydate" + t.elem.attr("lay-key"), (t.show || a) && e.render(), a || e.events(), t.value && t.isInitValue && (t.value.constructor === Date ? e.setValue(e.parse(0, e.systemDate(t.value))) : e.setValue(t.value)));
  767. }, T.prototype.render = function () {
  768. var e = this,
  769. t = e.config,
  770. n = e.lang(),
  771. a = "static" === t.position,
  772. i = e.elem = w.elem("div", {
  773. id: e.elemID,
  774. "class": ["layui-laydate", t.range ? " layui-laydate-range" : "", a ? " " + c : "", t.theme && "default" !== t.theme && !/^#/.test(t.theme) ? " laydate-theme-" + t.theme : ""].join("")
  775. }),
  776. r = e.elemMain = [],
  777. o = e.elemHeader = [],
  778. s = e.elemCont = [],
  779. l = e.table = [],
  780. d = e.footer = w.elem("div", {
  781. "class": p
  782. });
  783. if (t.zIndex && (i.style.zIndex = t.zIndex), w.each(new Array(2), function (e) {
  784. if (!t.range && e > 0) return !0;
  785. var a = w.elem("div", {
  786. "class": "layui-laydate-header"
  787. }),
  788. i = [function () {
  789. var e = w.elem("i", {
  790. "class": "layui-icon laydate-icon laydate-prev-y"
  791. });
  792. return e.innerHTML = "&#xe65a;", e;
  793. }(), function () {
  794. var e = w.elem("i", {
  795. "class": "layui-icon laydate-icon laydate-prev-m"
  796. });
  797. return e.innerHTML = "&#xe603;", e;
  798. }(), function () {
  799. var e = w.elem("div", {
  800. "class": "laydate-set-ym"
  801. }),
  802. t = w.elem("span"),
  803. n = w.elem("span");
  804. return e.appendChild(t), e.appendChild(n), e;
  805. }(), function () {
  806. var e = w.elem("i", {
  807. "class": "layui-icon laydate-icon laydate-next-m"
  808. });
  809. return e.innerHTML = "&#xe602;", e;
  810. }(), function () {
  811. var e = w.elem("i", {
  812. "class": "layui-icon laydate-icon laydate-next-y"
  813. });
  814. return e.innerHTML = "&#xe65b;", e;
  815. }()],
  816. d = w.elem("div", {
  817. "class": "layui-laydate-content"
  818. }),
  819. c = w.elem("table"),
  820. m = w.elem("thead"),
  821. u = w.elem("tr");
  822. w.each(i, function (e, t) {
  823. a.appendChild(t);
  824. }), m.appendChild(u), w.each(new Array(6), function (e) {
  825. var t = c.insertRow(0);
  826. w.each(new Array(7), function (a) {
  827. if (0 === e) {
  828. var i = w.elem("th");
  829. i.innerHTML = n.weeks[a], u.appendChild(i);
  830. }
  831. t.insertCell(a);
  832. });
  833. }), c.insertBefore(m, c.children[0]), d.appendChild(c), r[e] = w.elem("div", {
  834. "class": "layui-laydate-main laydate-main-list-" + e
  835. }), r[e].appendChild(a), r[e].appendChild(d), o.push(i), s.push(d), l.push(c);
  836. }), w(d).html(function () {
  837. var e = [],
  838. i = [];
  839. return "datetime" === t.type && e.push('<span lay-type="datetime" class="laydate-btns-time">' + n.timeTips + "</span>"), w.each(t.btns, function (e, r) {
  840. var o = n.tools[r] || "btn";
  841. t.range && "now" === r || (a && "clear" === r && (o = "cn" === t.lang ? "重置" : "Reset"), i.push('<span lay-type="' + r + '" class="laydate-btns-' + r + '">' + o + "</span>"));
  842. }), e.push('<div class="laydate-footer-btns">' + i.join("") + "</div>"), e.join("");
  843. }()), w.each(r, function (e, t) {
  844. i.appendChild(t);
  845. }), t.showBottom && i.appendChild(d), /^#/.test(t.theme)) {
  846. var m = w.elem("style"),
  847. u = ["#{{id}} .layui-laydate-header{background-color:{{theme}};}", "#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g, e.elemID).replace(/{{theme}}/g, t.theme);
  848. "styleSheet" in m ? (m.setAttribute("type", "text/css"), m.styleSheet.cssText = u) : m.innerHTML = u, w(i).addClass("laydate-theme-molv"), i.appendChild(m);
  849. }
  850. e.remove(T.thisElemDate), a ? t.elem.append(i) : (document.body.appendChild(i), e.position()), e.checkDate().calendar(), e.changeEvent(), T.thisElemDate = e.elemID, "function" == typeof t.ready && t.ready(w.extend({}, t.dateTime, {
  851. month: t.dateTime.month + 1
  852. }));
  853. }, T.prototype.remove = function (e) {
  854. var t = this,
  855. n = (t.config, w("#" + (e || t.elemID)));
  856. return n.hasClass(c) || t.checkDate(function () {
  857. n.remove();
  858. }), t;
  859. }, T.prototype.position = function () {
  860. var e = this,
  861. t = e.config,
  862. n = e.bindElem || t.elem[0],
  863. a = n.getBoundingClientRect(),
  864. i = e.elem.offsetWidth,
  865. r = e.elem.offsetHeight,
  866. o = function o(e) {
  867. return e = e ? "scrollLeft" : "scrollTop", document.body[e] | document.documentElement[e];
  868. },
  869. s = function s(e) {
  870. return document.documentElement[e ? "clientWidth" : "clientHeight"];
  871. },
  872. l = 5,
  873. d = a.left,
  874. c = a.bottom;
  875. d + i + l > s("width") && (d = s("width") - i - l), c + r + l > s() && (c = a.top > r ? a.top - r : s() - r, c -= 2 * l), t.position && (e.elem.style.position = t.position), e.elem.style.left = d + ("fixed" === t.position ? 0 : o(1)) + "px", e.elem.style.top = c + ("fixed" === t.position ? 0 : o()) + "px";
  876. }, T.prototype.hint = function (e) {
  877. var t = this,
  878. n = (t.config, w.elem("div", {
  879. "class": h
  880. }));
  881. t.elem && (n.innerHTML = e || "", w(t.elem).find("." + h).remove(), t.elem.appendChild(n), clearTimeout(t.hinTimer), t.hinTimer = setTimeout(function () {
  882. w(t.elem).find("." + h).remove();
  883. }, 3e3));
  884. }, T.prototype.getAsYM = function (e, t, n) {
  885. return n ? t-- : t++, t < 0 && (t = 11, e--), t > 11 && (t = 0, e++), [e, t];
  886. }, T.prototype.systemDate = function (e) {
  887. var t = e || new Date();
  888. return {
  889. year: t.getFullYear(),
  890. month: t.getMonth(),
  891. date: t.getDate(),
  892. hours: e ? e.getHours() : 0,
  893. minutes: e ? e.getMinutes() : 0,
  894. seconds: e ? e.getSeconds() : 0
  895. };
  896. }, T.prototype.checkDate = function (e) {
  897. var t,
  898. a,
  899. i = this,
  900. r = (new Date(), i.config),
  901. o = r.dateTime = r.dateTime || i.systemDate(),
  902. s = i.bindElem || r.elem[0],
  903. l = (i.isInput(s) ? "val" : "html", i.isInput(s) ? s.value : "static" === r.position ? "" : s.innerHTML),
  904. c = function c(e) {
  905. e.year > d[1] && (e.year = d[1], a = !0), e.month > 11 && (e.month = 11, a = !0), e.hours > 23 && (e.hours = 0, a = !0), e.minutes > 59 && (e.minutes = 0, e.hours++, a = !0), e.seconds > 59 && (e.seconds = 0, e.minutes++, a = !0), t = n.getEndDate(e.month + 1, e.year), e.date > t && (e.date = t, a = !0);
  906. },
  907. m = function m(e, t, n) {
  908. var o = ["startTime", "endTime"];
  909. t = (t.match(i.EXP_SPLIT) || []).slice(1), n = n || 0, r.range && (i[o[n]] = i[o[n]] || {}), w.each(i.format, function (s, l) {
  910. var c = parseFloat(t[s]);
  911. t[s].length < l.length && (a = !0), /yyyy|y/.test(l) ? (c < d[0] && (c = d[0], a = !0), e.year = c) : /MM|M/.test(l) ? (c < 1 && (c = 1, a = !0), e.month = c - 1) : /dd|d/.test(l) ? (c < 1 && (c = 1, a = !0), e.date = c) : /HH|H/.test(l) ? (c < 1 && (c = 0, a = !0), e.hours = c, r.range && (i[o[n]].hours = c)) : /mm|m/.test(l) ? (c < 1 && (c = 0, a = !0), e.minutes = c, r.range && (i[o[n]].minutes = c)) : /ss|s/.test(l) && (c < 1 && (c = 0, a = !0), e.seconds = c, r.range && (i[o[n]].seconds = c));
  912. }), c(e);
  913. };
  914. return "limit" === e ? (c(o), i) : (l = l || r.value, "string" == typeof l && (l = l.replace(/\s+/g, " ").replace(/^\s|\s$/g, "")), i.startState && !i.endState && (delete i.startState, i.endState = !0), "string" == typeof l && l ? i.EXP_IF.test(l) ? r.range ? (l = l.split(" " + r.range + " "), i.startDate = i.startDate || i.systemDate(), i.endDate = i.endDate || i.systemDate(), r.dateTime = w.extend({}, i.startDate), w.each([i.startDate, i.endDate], function (e, t) {
  915. m(t, l[e], e);
  916. })) : m(o, l) : (i.hint("日期格式不合法<br>必须遵循下述格式:<br>" + (r.range ? r.format + " " + r.range + " " + r.format : r.format) + "<br>已为你重置"), a = !0) : l && l.constructor === Date ? r.dateTime = i.systemDate(l) : (r.dateTime = i.systemDate(), delete i.startState, delete i.endState, delete i.startDate, delete i.endDate, delete i.startTime, delete i.endTime), c(o), a && l && i.setValue(r.range ? i.endDate ? i.parse() : "" : i.parse()), e && e(), i);
  917. }, T.prototype.mark = function (e, t) {
  918. var n,
  919. a = this,
  920. i = a.config;
  921. return w.each(i.mark, function (e, a) {
  922. var i = e.split("-");
  923. i[0] != t[0] && 0 != i[0] || i[1] != t[1] && 0 != i[1] || i[2] != t[2] || (n = a || t[2]);
  924. }), n && e.html('<span class="laydate-day-mark">' + n + "</span>"), a;
  925. }, T.prototype.limit = function (e, t, n, a) {
  926. var i,
  927. r = this,
  928. o = r.config,
  929. l = {},
  930. d = o[n > 41 ? "endDate" : "dateTime"],
  931. c = w.extend({}, d, t || {});
  932. return w.each({
  933. now: c,
  934. min: o.min,
  935. max: o.max
  936. }, function (e, t) {
  937. l[e] = r.newDate(w.extend({
  938. year: t.year,
  939. month: t.month,
  940. date: t.date
  941. }, function () {
  942. var e = {};
  943. return w.each(a, function (n, a) {
  944. e[a] = t[a];
  945. }), e;
  946. }())).getTime();
  947. }), i = l.now < l.min || l.now > l.max, e && e[i ? "addClass" : "removeClass"](s), i;
  948. }, T.prototype.calendar = function (e) {
  949. var t,
  950. a,
  951. i,
  952. r = this,
  953. s = r.config,
  954. l = e || s.dateTime,
  955. c = new Date(),
  956. m = r.lang(),
  957. u = "date" !== s.type && "datetime" !== s.type,
  958. h = e ? 1 : 0,
  959. y = w(r.table[h]).find("td"),
  960. f = w(r.elemHeader[h][2]).find("span");
  961. if (l.year < d[0] && (l.year = d[0], r.hint("最低只能支持到公元" + d[0] + "年")), l.year > d[1] && (l.year = d[1], r.hint("最高只能支持到公元" + d[1] + "年")), r.firstDate || (r.firstDate = w.extend({}, l)), c.setFullYear(l.year, l.month, 1), t = c.getDay(), a = n.getEndDate(l.month || 12, l.year), i = n.getEndDate(l.month + 1, l.year), w.each(y, function (e, n) {
  962. var d = [l.year, l.month],
  963. c = 0;
  964. n = w(n), n.removeAttr("class"), e < t ? (c = a - t + e, n.addClass("laydate-day-prev"), d = r.getAsYM(l.year, l.month, "sub")) : e >= t && e < i + t ? (c = e - t, s.range || c + 1 === l.date && n.addClass(o)) : (c = e - i - t, n.addClass("laydate-day-next"), d = r.getAsYM(l.year, l.month)), d[1]++, d[2] = c + 1, n.attr("lay-ymd", d.join("-")).html(d[2]), r.mark(n, d).limit(n, {
  965. year: d[0],
  966. month: d[1] - 1,
  967. date: d[2]
  968. }, e);
  969. }), w(f[0]).attr("lay-ym", l.year + "-" + (l.month + 1)), w(f[1]).attr("lay-ym", l.year + "-" + (l.month + 1)), "cn" === s.lang ? (w(f[0]).attr("lay-type", "year").html(l.year + "年"), w(f[1]).attr("lay-type", "month").html(l.month + 1 + "月")) : (w(f[0]).attr("lay-type", "month").html(m.month[l.month]), w(f[1]).attr("lay-type", "year").html(l.year)), u && (s.range && (e ? r.endDate = r.endDate || {
  970. year: l.year + ("year" === s.type ? 1 : 0),
  971. month: l.month + ("month" === s.type ? 0 : -1)
  972. } : r.startDate = r.startDate || {
  973. year: l.year,
  974. month: l.month
  975. }, e && (r.listYM = [[r.startDate.year, r.startDate.month + 1], [r.endDate.year, r.endDate.month + 1]], r.list(s.type, 0).list(s.type, 1), "time" === s.type ? r.setBtnStatus("时间", w.extend({}, r.systemDate(), r.startTime), w.extend({}, r.systemDate(), r.endTime)) : r.setBtnStatus(!0))), s.range || (r.listYM = [[l.year, l.month + 1]], r.list(s.type, 0))), s.range && !e) {
  976. var p = r.getAsYM(l.year, l.month);
  977. r.calendar(w.extend({}, l, {
  978. year: p[0],
  979. month: p[1]
  980. }));
  981. }
  982. return s.range || r.limit(w(r.footer).find(g), null, 0, ["hours", "minutes", "seconds"]), s.range && e && !u && r.stampRange(), r;
  983. }, T.prototype.list = function (e, t) {
  984. var n = this,
  985. a = n.config,
  986. i = a.dateTime,
  987. r = n.lang(),
  988. l = a.range && "date" !== a.type && "datetime" !== a.type,
  989. d = w.elem("ul", {
  990. "class": m + " " + {
  991. year: "laydate-year-list",
  992. month: "laydate-month-list",
  993. time: "laydate-time-list"
  994. }[e]
  995. }),
  996. c = n.elemHeader[t],
  997. u = w(c[2]).find("span"),
  998. h = n.elemCont[t || 0],
  999. y = w(h).find("." + m)[0],
  1000. f = "cn" === a.lang,
  1001. p = f ? "年" : "",
  1002. T = n.listYM[t] || {},
  1003. C = ["hours", "minutes", "seconds"],
  1004. x = ["startTime", "endTime"][t];
  1005. if (T[0] < 1 && (T[0] = 1), "year" === e) {
  1006. var M,
  1007. b = M = T[0] - 7;
  1008. b < 1 && (b = M = 1), w.each(new Array(15), function (e) {
  1009. var i = w.elem("li", {
  1010. "lay-ym": M
  1011. }),
  1012. r = {
  1013. year: M
  1014. };
  1015. M == T[0] && w(i).addClass(o), i.innerHTML = M + p, d.appendChild(i), M < n.firstDate.year ? (r.month = a.min.month, r.date = a.min.date) : M >= n.firstDate.year && (r.month = a.max.month, r.date = a.max.date), n.limit(w(i), r, t), M++;
  1016. }), w(u[f ? 0 : 1]).attr("lay-ym", M - 8 + "-" + T[1]).html(b + p + " - " + (M - 1 + p));
  1017. } else if ("month" === e) w.each(new Array(12), function (e) {
  1018. var i = w.elem("li", {
  1019. "lay-ym": e
  1020. }),
  1021. s = {
  1022. year: T[0],
  1023. month: e
  1024. };
  1025. e + 1 == T[1] && w(i).addClass(o), i.innerHTML = r.month[e] + (f ? "月" : ""), d.appendChild(i), T[0] < n.firstDate.year ? s.date = a.min.date : T[0] >= n.firstDate.year && (s.date = a.max.date), n.limit(w(i), s, t);
  1026. }), w(u[f ? 0 : 1]).attr("lay-ym", T[0] + "-" + T[1]).html(T[0] + p);else if ("time" === e) {
  1027. var E = function E() {
  1028. w(d).find("ol").each(function (e, a) {
  1029. w(a).find("li").each(function (a, i) {
  1030. n.limit(w(i), [{
  1031. hours: a
  1032. }, {
  1033. hours: n[x].hours,
  1034. minutes: a
  1035. }, {
  1036. hours: n[x].hours,
  1037. minutes: n[x].minutes,
  1038. seconds: a
  1039. }][e], t, [["hours"], ["hours", "minutes"], ["hours", "minutes", "seconds"]][e]);
  1040. });
  1041. }), a.range || n.limit(w(n.footer).find(g), n[x], 0, ["hours", "minutes", "seconds"]);
  1042. };
  1043. a.range ? n[x] || (n[x] = {
  1044. hours: 0,
  1045. minutes: 0,
  1046. seconds: 0
  1047. }) : n[x] = i, w.each([24, 60, 60], function (e, t) {
  1048. var a = w.elem("li"),
  1049. i = ["<p>" + r.time[e] + "</p><ol>"];
  1050. w.each(new Array(t), function (t) {
  1051. i.push("<li" + (n[x][C[e]] === t ? ' class="' + o + '"' : "") + ">" + w.digit(t, 2) + "</li>");
  1052. }), a.innerHTML = i.join("") + "</ol>", d.appendChild(a);
  1053. }), E();
  1054. }
  1055. if (y && h.removeChild(y), h.appendChild(d), "year" === e || "month" === e) w(n.elemMain[t]).addClass("laydate-ym-show"), w(d).find("li").on("click", function () {
  1056. var r = 0 | w(this).attr("lay-ym");
  1057. if (!w(this).hasClass(s)) {
  1058. if (0 === t) i[e] = r, l && (n.startDate[e] = r), n.limit(w(n.footer).find(g), null, 0);else if (l) n.endDate[e] = r;else {
  1059. var c = "year" === e ? n.getAsYM(r, T[1] - 1, "sub") : n.getAsYM(T[0], r, "sub");
  1060. w.extend(i, {
  1061. year: c[0],
  1062. month: c[1]
  1063. });
  1064. }
  1065. "year" === a.type || "month" === a.type ? (w(d).find("." + o).removeClass(o), w(this).addClass(o), "month" === a.type && "year" === e && (n.listYM[t][0] = r, l && (n[["startDate", "endDate"][t]].year = r), n.list("month", t))) : (n.checkDate("limit").calendar(), n.closeList()), n.setBtnStatus(), a.range || n.done(null, "change"), w(n.footer).find(D).removeClass(s);
  1066. }
  1067. });else {
  1068. var S = w.elem("span", {
  1069. "class": v
  1070. }),
  1071. k = function k() {
  1072. w(d).find("ol").each(function (e) {
  1073. var t = this,
  1074. a = w(t).find("li");
  1075. t.scrollTop = 30 * (n[x][C[e]] - 2), t.scrollTop <= 0 && a.each(function (e, n) {
  1076. if (!w(this).hasClass(s)) return t.scrollTop = 30 * (e - 2), !0;
  1077. });
  1078. });
  1079. },
  1080. H = w(c[2]).find("." + v);
  1081. k(), S.innerHTML = a.range ? [r.startTime, r.endTime][t] : r.timeTips, w(n.elemMain[t]).addClass("laydate-time-show"), H[0] && H.remove(), c[2].appendChild(S), w(d).find("ol").each(function (e) {
  1082. var t = this;
  1083. w(t).find("li").on("click", function () {
  1084. var r = 0 | this.innerHTML;
  1085. w(this).hasClass(s) || (a.range ? n[x][C[e]] = r : i[C[e]] = r, w(t).find("." + o).removeClass(o), w(this).addClass(o), E(), k(), (n.endDate || "time" === a.type) && n.done(null, "change"), n.setBtnStatus());
  1086. });
  1087. });
  1088. }
  1089. return n;
  1090. }, T.prototype.listYM = [], T.prototype.closeList = function () {
  1091. var e = this;
  1092. e.config;
  1093. w.each(e.elemCont, function (t, n) {
  1094. w(this).find("." + m).remove(), w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show");
  1095. }), w(e.elem).find("." + v).remove();
  1096. }, T.prototype.setBtnStatus = function (e, t, n) {
  1097. var a,
  1098. i = this,
  1099. r = i.config,
  1100. o = w(i.footer).find(g),
  1101. d = r.range && "date" !== r.type && "time" !== r.type;
  1102. d && (t = t || i.startDate, n = n || i.endDate, a = i.newDate(t).getTime() > i.newDate(n).getTime(), i.limit(null, t) || i.limit(null, n) ? o.addClass(s) : o[a ? "addClass" : "removeClass"](s), e && a && i.hint("string" == typeof e ? l.replace(/日期/g, e) : l));
  1103. }, T.prototype.parse = function (e, t) {
  1104. var n = this,
  1105. a = n.config,
  1106. i = t || (e ? w.extend({}, n.endDate, n.endTime) : a.range ? w.extend({}, n.startDate, n.startTime) : a.dateTime),
  1107. r = n.format.concat();
  1108. return w.each(r, function (e, t) {
  1109. /yyyy|y/.test(t) ? r[e] = w.digit(i.year, t.length) : /MM|M/.test(t) ? r[e] = w.digit(i.month + 1, t.length) : /dd|d/.test(t) ? r[e] = w.digit(i.date, t.length) : /HH|H/.test(t) ? r[e] = w.digit(i.hours, t.length) : /mm|m/.test(t) ? r[e] = w.digit(i.minutes, t.length) : /ss|s/.test(t) && (r[e] = w.digit(i.seconds, t.length));
  1110. }), a.range && !e ? r.join("") + " " + a.range + " " + n.parse(1) : r.join("");
  1111. }, T.prototype.newDate = function (e) {
  1112. return e = e || {}, new Date(e.year || 1, e.month || 0, e.date || 1, e.hours || 0, e.minutes || 0, e.seconds || 0);
  1113. }, T.prototype.setValue = function (e) {
  1114. var t = this,
  1115. n = t.config,
  1116. a = t.bindElem || n.elem[0],
  1117. i = t.isInput(a) ? "val" : "html";
  1118. return "static" === n.position || w(a)[i](e || ""), this;
  1119. }, T.prototype.stampRange = function () {
  1120. var e,
  1121. t,
  1122. n = this,
  1123. a = n.config,
  1124. i = w(n.elem).find("td");
  1125. if (a.range && !n.endDate && w(n.footer).find(g).addClass(s), n.endDate) return e = n.newDate({
  1126. year: n.startDate.year,
  1127. month: n.startDate.month,
  1128. date: n.startDate.date
  1129. }).getTime(), t = n.newDate({
  1130. year: n.endDate.year,
  1131. month: n.endDate.month,
  1132. date: n.endDate.date
  1133. }).getTime(), e > t ? n.hint(l) : void w.each(i, function (a, i) {
  1134. var r = w(i).attr("lay-ymd").split("-"),
  1135. s = n.newDate({
  1136. year: r[0],
  1137. month: r[1] - 1,
  1138. date: r[2]
  1139. }).getTime();
  1140. w(i).removeClass(u + " " + o), s !== e && s !== t || w(i).addClass(w(i).hasClass(y) || w(i).hasClass(f) ? u : o), s > e && s < t && w(i).addClass(u);
  1141. });
  1142. }, T.prototype.done = function (e, t) {
  1143. var n = this,
  1144. a = n.config,
  1145. i = w.extend({}, n.startDate ? w.extend(n.startDate, n.startTime) : a.dateTime),
  1146. r = w.extend({}, w.extend(n.endDate, n.endTime));
  1147. return w.each([i, r], function (e, t) {
  1148. "month" in t && w.extend(t, {
  1149. month: t.month + 1
  1150. });
  1151. }), e = e || [n.parse(), i, r], "function" == typeof a[t || "done"] && a[t || "done"].apply(a, e), n;
  1152. }, T.prototype.choose = function (e) {
  1153. var t = this,
  1154. n = t.config,
  1155. a = n.dateTime,
  1156. i = w(t.elem).find("td"),
  1157. r = e.attr("lay-ymd").split("-"),
  1158. l = function l(e) {
  1159. new Date();
  1160. e && w.extend(a, r), n.range && (t.startDate ? w.extend(t.startDate, r) : t.startDate = w.extend({}, r, t.startTime), t.startYMD = r);
  1161. };
  1162. if (r = {
  1163. year: 0 | r[0],
  1164. month: (0 | r[1]) - 1,
  1165. date: 0 | r[2]
  1166. }, !e.hasClass(s)) if (n.range) {
  1167. if (w.each(["startTime", "endTime"], function (e, n) {
  1168. t[n] = t[n] || {
  1169. hours: 0,
  1170. minutes: 0,
  1171. seconds: 0
  1172. };
  1173. }), t.endState) l(), delete t.endState, delete t.endDate, t.startState = !0, i.removeClass(o + " " + u), e.addClass(o);else if (t.startState) {
  1174. if (e.addClass(o), t.endDate ? w.extend(t.endDate, r) : t.endDate = w.extend({}, r, t.endTime), t.newDate(r).getTime() < t.newDate(t.startYMD).getTime()) {
  1175. var d = w.extend({}, t.endDate, {
  1176. hours: t.startDate.hours,
  1177. minutes: t.startDate.minutes,
  1178. seconds: t.startDate.seconds
  1179. });
  1180. w.extend(t.endDate, t.startDate, {
  1181. hours: t.endDate.hours,
  1182. minutes: t.endDate.minutes,
  1183. seconds: t.endDate.seconds
  1184. }), t.startDate = d;
  1185. }
  1186. n.showBottom || t.done(), t.stampRange(), t.endState = !0, t.done(null, "change");
  1187. } else e.addClass(o), l(), t.startState = !0;
  1188. w(t.footer).find(g)[t.endDate ? "removeClass" : "addClass"](s);
  1189. } else "static" === n.position ? (l(!0), t.calendar().done().done(null, "change")) : "date" === n.type ? (l(!0), t.setValue(t.parse()).remove().done()) : "datetime" === n.type && (l(!0), t.calendar().done(null, "change"));
  1190. }, T.prototype.tool = function (e, t) {
  1191. var n = this,
  1192. a = n.config,
  1193. i = a.dateTime,
  1194. r = "static" === a.position,
  1195. o = {
  1196. datetime: function datetime() {
  1197. w(e).hasClass(s) || (n.list("time", 0), a.range && n.list("time", 1), w(e).attr("lay-type", "date").html(n.lang().dateTips));
  1198. },
  1199. date: function date() {
  1200. n.closeList(), w(e).attr("lay-type", "datetime").html(n.lang().timeTips);
  1201. },
  1202. clear: function clear() {
  1203. n.setValue("").remove(), r && (w.extend(i, n.firstDate), n.calendar()), a.range && (delete n.startState, delete n.endState, delete n.endDate, delete n.startTime, delete n.endTime), n.done(["", {}, {}]);
  1204. },
  1205. now: function now() {
  1206. var e = new Date();
  1207. w.extend(i, n.systemDate(), {
  1208. hours: e.getHours(),
  1209. minutes: e.getMinutes(),
  1210. seconds: e.getSeconds()
  1211. }), n.setValue(n.parse()).remove(), r && n.calendar(), n.done();
  1212. },
  1213. confirm: function confirm() {
  1214. if (a.range) {
  1215. if (!n.endDate) return n.hint("请先选择日期范围");
  1216. if (w(e).hasClass(s)) return n.hint("time" === a.type ? l.replace(/日期/g, "时间") : l);
  1217. } else if (w(e).hasClass(s)) return n.hint("不在有效日期或时间范围内");
  1218. n.done(), n.setValue(n.parse()).remove();
  1219. }
  1220. };
  1221. o[t] && o[t]();
  1222. }, T.prototype.change = function (e) {
  1223. var t = this,
  1224. n = t.config,
  1225. a = n.dateTime,
  1226. i = n.range && ("year" === n.type || "month" === n.type),
  1227. r = t.elemCont[e || 0],
  1228. o = t.listYM[e],
  1229. s = function s(_s) {
  1230. var l = ["startDate", "endDate"][e],
  1231. d = w(r).find(".laydate-year-list")[0],
  1232. c = w(r).find(".laydate-month-list")[0];
  1233. return d && (o[0] = _s ? o[0] - 15 : o[0] + 15, t.list("year", e)), c && (_s ? o[0]-- : o[0]++, t.list("month", e)), (d || c) && (w.extend(a, {
  1234. year: o[0]
  1235. }), i && (t[l].year = o[0]), n.range || t.done(null, "change"), t.setBtnStatus(), n.range || t.limit(w(t.footer).find(g), {
  1236. year: o[0]
  1237. })), d || c;
  1238. };
  1239. return {
  1240. prevYear: function prevYear() {
  1241. s("sub") || (a.year--, t.checkDate("limit").calendar(), n.range || t.done(null, "change"));
  1242. },
  1243. prevMonth: function prevMonth() {
  1244. var e = t.getAsYM(a.year, a.month, "sub");
  1245. w.extend(a, {
  1246. year: e[0],
  1247. month: e[1]
  1248. }), t.checkDate("limit").calendar(), n.range || t.done(null, "change");
  1249. },
  1250. nextMonth: function nextMonth() {
  1251. var e = t.getAsYM(a.year, a.month);
  1252. w.extend(a, {
  1253. year: e[0],
  1254. month: e[1]
  1255. }), t.checkDate("limit").calendar(), n.range || t.done(null, "change");
  1256. },
  1257. nextYear: function nextYear() {
  1258. s() || (a.year++, t.checkDate("limit").calendar(), n.range || t.done(null, "change"));
  1259. }
  1260. };
  1261. }, T.prototype.changeEvent = function () {
  1262. var e = this;
  1263. e.config;
  1264. w(e.elem).on("click", function (e) {
  1265. w.stope(e);
  1266. }), w.each(e.elemHeader, function (t, n) {
  1267. w(n[0]).on("click", function (n) {
  1268. e.change(t).prevYear();
  1269. }), w(n[1]).on("click", function (n) {
  1270. e.change(t).prevMonth();
  1271. }), w(n[2]).find("span").on("click", function (n) {
  1272. var a = w(this),
  1273. i = a.attr("lay-ym"),
  1274. r = a.attr("lay-type");
  1275. i && (i = i.split("-"), e.listYM[t] = [0 | i[0], 0 | i[1]], e.list(r, t), w(e.footer).find(D).addClass(s));
  1276. }), w(n[3]).on("click", function (n) {
  1277. e.change(t).nextMonth();
  1278. }), w(n[4]).on("click", function (n) {
  1279. e.change(t).nextYear();
  1280. });
  1281. }), w.each(e.table, function (t, n) {
  1282. var a = w(n).find("td");
  1283. a.on("click", function () {
  1284. e.choose(w(this));
  1285. });
  1286. }), w(e.footer).find("span").on("click", function () {
  1287. var t = w(this).attr("lay-type");
  1288. e.tool(this, t);
  1289. });
  1290. }, T.prototype.isInput = function (e) {
  1291. return /input|textarea/.test(e.tagName.toLocaleLowerCase());
  1292. }, T.prototype.events = function () {
  1293. var e = this,
  1294. t = e.config,
  1295. n = function n(_n, a) {
  1296. _n.on(t.trigger, function () {
  1297. a && (e.bindElem = this), e.render();
  1298. });
  1299. };
  1300. t.elem[0] && !t.elem[0].eventHandler && (n(t.elem, "bind"), n(t.eventElem), w(document).on("click", function (n) {
  1301. n.target !== t.elem[0] && n.target !== t.eventElem[0] && n.target !== w(t.closeStop)[0] && e.remove();
  1302. }).on("keydown", function (t) {
  1303. 13 === t.keyCode && w("#" + e.elemID)[0] && e.elemID === T.thisElem && (t.preventDefault(), w(e.footer).find(g)[0].click());
  1304. }), w(window).on("resize", function () {
  1305. return !(!e.elem || !w(r)[0]) && void e.position();
  1306. }), t.elem[0].eventHandler = !0);
  1307. }, n.render = function (e) {
  1308. var t = new T(e);
  1309. return a.call(t);
  1310. }, n.getEndDate = function (e, t) {
  1311. var n = new Date();
  1312. return n.setFullYear(t || n.getFullYear(), e || n.getMonth() + 1, 1), new Date(n.getTime() - 864e5).getDate();
  1313. }, window.lay = window.lay || w, e ? (n.ready(), layui.define(function (e) {
  1314. n.path = layui.cache.dir, e(i, n);
  1315. })) : "function" == typeof define && define.amd ? define(function () {
  1316. return n;
  1317. }) : function () {
  1318. n.ready(), window.laydate = n;
  1319. }();
  1320. }();
  1321. !function (e, t) {
  1322. "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = e.document ? t(e, !0) : function (e) {
  1323. if (!e.document) throw new Error("jQuery requires a window with a document");
  1324. return t(e);
  1325. } : t(e);
  1326. }("undefined" != typeof window ? window : void 0, function (e, t) {
  1327. function n(e) {
  1328. var t = !!e && "length" in e && e.length,
  1329. n = pe.type(e);
  1330. return "function" !== n && !pe.isWindow(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e);
  1331. }
  1332. function r(e, t, n) {
  1333. if (pe.isFunction(t)) return pe.grep(e, function (e, r) {
  1334. return !!t.call(e, r, e) !== n;
  1335. });
  1336. if (t.nodeType) return pe.grep(e, function (e) {
  1337. return e === t !== n;
  1338. });
  1339. if ("string" == typeof t) {
  1340. if (Ce.test(t)) return pe.filter(t, e, n);
  1341. t = pe.filter(t, e);
  1342. }
  1343. return pe.grep(e, function (e) {
  1344. return pe.inArray(e, t) > -1 !== n;
  1345. });
  1346. }
  1347. function i(e, t) {
  1348. do {
  1349. e = e[t];
  1350. } while (e && 1 !== e.nodeType);
  1351. return e;
  1352. }
  1353. function o(e) {
  1354. var t = {};
  1355. return pe.each(e.match(De) || [], function (e, n) {
  1356. t[n] = !0;
  1357. }), t;
  1358. }
  1359. function a() {
  1360. re.addEventListener ? (re.removeEventListener("DOMContentLoaded", s), e.removeEventListener("load", s)) : (re.detachEvent("onreadystatechange", s), e.detachEvent("onload", s));
  1361. }
  1362. function s() {
  1363. (re.addEventListener || "load" === e.event.type || "complete" === re.readyState) && (a(), pe.ready());
  1364. }
  1365. function u(e, t, n) {
  1366. if (void 0 === n && 1 === e.nodeType) {
  1367. var r = "data-" + t.replace(_e, "-$1").toLowerCase();
  1368. if (n = e.getAttribute(r), "string" == typeof n) {
  1369. try {
  1370. n = "true" === n || "false" !== n && ("null" === n ? null : +n + "" === n ? +n : qe.test(n) ? pe.parseJSON(n) : n);
  1371. } catch (i) {}
  1372. pe.data(e, t, n);
  1373. } else n = void 0;
  1374. }
  1375. return n;
  1376. }
  1377. function l(e) {
  1378. var t;
  1379. for (t in e) {
  1380. if (("data" !== t || !pe.isEmptyObject(e[t])) && "toJSON" !== t) return !1;
  1381. }
  1382. return !0;
  1383. }
  1384. function c(e, t, n, r) {
  1385. if (He(e)) {
  1386. var i,
  1387. o,
  1388. a = pe.expando,
  1389. s = e.nodeType,
  1390. u = s ? pe.cache : e,
  1391. l = s ? e[a] : e[a] && a;
  1392. if (l && u[l] && (r || u[l].data) || void 0 !== n || "string" != typeof t) return l || (l = s ? e[a] = ne.pop() || pe.guid++ : a), u[l] || (u[l] = s ? {} : {
  1393. toJSON: pe.noop
  1394. }), "object" != _typeof(t) && "function" != typeof t || (r ? u[l] = pe.extend(u[l], t) : u[l].data = pe.extend(u[l].data, t)), o = u[l], r || (o.data || (o.data = {}), o = o.data), void 0 !== n && (o[pe.camelCase(t)] = n), "string" == typeof t ? (i = o[t], null == i && (i = o[pe.camelCase(t)])) : i = o, i;
  1395. }
  1396. }
  1397. function f(e, t, n) {
  1398. if (He(e)) {
  1399. var r,
  1400. i,
  1401. o = e.nodeType,
  1402. a = o ? pe.cache : e,
  1403. s = o ? e[pe.expando] : pe.expando;
  1404. if (a[s]) {
  1405. if (t && (r = n ? a[s] : a[s].data)) {
  1406. pe.isArray(t) ? t = t.concat(pe.map(t, pe.camelCase)) : t in r ? t = [t] : (t = pe.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
  1407. for (; i--;) {
  1408. delete r[t[i]];
  1409. }
  1410. if (n ? !l(r) : !pe.isEmptyObject(r)) return;
  1411. }
  1412. (n || (delete a[s].data, l(a[s]))) && (o ? pe.cleanData([e], !0) : fe.deleteExpando || a != a.window ? delete a[s] : a[s] = void 0);
  1413. }
  1414. }
  1415. }
  1416. function d(e, t, n, r) {
  1417. var i,
  1418. o = 1,
  1419. a = 20,
  1420. s = r ? function () {
  1421. return r.cur();
  1422. } : function () {
  1423. return pe.css(e, t, "");
  1424. },
  1425. u = s(),
  1426. l = n && n[3] || (pe.cssNumber[t] ? "" : "px"),
  1427. c = (pe.cssNumber[t] || "px" !== l && +u) && Me.exec(pe.css(e, t));
  1428. if (c && c[3] !== l) {
  1429. l = l || c[3], n = n || [], c = +u || 1;
  1430. do {
  1431. o = o || ".5", c /= o, pe.style(e, t, c + l);
  1432. } while (o !== (o = s() / u) && 1 !== o && --a);
  1433. }
  1434. return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i;
  1435. }
  1436. function p(e) {
  1437. var t = ze.split("|"),
  1438. n = e.createDocumentFragment();
  1439. if (n.createElement) for (; t.length;) {
  1440. n.createElement(t.pop());
  1441. }
  1442. return n;
  1443. }
  1444. function h(e, t) {
  1445. var n,
  1446. r,
  1447. i = 0,
  1448. o = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : void 0;
  1449. if (!o) for (o = [], n = e.childNodes || e; null != (r = n[i]); i++) {
  1450. !t || pe.nodeName(r, t) ? o.push(r) : pe.merge(o, h(r, t));
  1451. }
  1452. return void 0 === t || t && pe.nodeName(e, t) ? pe.merge([e], o) : o;
  1453. }
  1454. function g(e, t) {
  1455. for (var n, r = 0; null != (n = e[r]); r++) {
  1456. pe._data(n, "globalEval", !t || pe._data(t[r], "globalEval"));
  1457. }
  1458. }
  1459. function m(e) {
  1460. Be.test(e.type) && (e.defaultChecked = e.checked);
  1461. }
  1462. function y(e, t, n, r, i) {
  1463. for (var o, a, s, u, l, c, f, d = e.length, y = p(t), v = [], x = 0; x < d; x++) {
  1464. if (a = e[x], a || 0 === a) if ("object" === pe.type(a)) pe.merge(v, a.nodeType ? [a] : a);else if (Ue.test(a)) {
  1465. for (u = u || y.appendChild(t.createElement("div")), l = (We.exec(a) || ["", ""])[1].toLowerCase(), f = Xe[l] || Xe._default, u.innerHTML = f[1] + pe.htmlPrefilter(a) + f[2], o = f[0]; o--;) {
  1466. u = u.lastChild;
  1467. }
  1468. if (!fe.leadingWhitespace && $e.test(a) && v.push(t.createTextNode($e.exec(a)[0])), !fe.tbody) for (a = "table" !== l || Ve.test(a) ? "<table>" !== f[1] || Ve.test(a) ? 0 : u : u.firstChild, o = a && a.childNodes.length; o--;) {
  1469. pe.nodeName(c = a.childNodes[o], "tbody") && !c.childNodes.length && a.removeChild(c);
  1470. }
  1471. for (pe.merge(v, u.childNodes), u.textContent = ""; u.firstChild;) {
  1472. u.removeChild(u.firstChild);
  1473. }
  1474. u = y.lastChild;
  1475. } else v.push(t.createTextNode(a));
  1476. }
  1477. for (u && y.removeChild(u), fe.appendChecked || pe.grep(h(v, "input"), m), x = 0; a = v[x++];) {
  1478. if (r && pe.inArray(a, r) > -1) i && i.push(a);else if (s = pe.contains(a.ownerDocument, a), u = h(y.appendChild(a), "script"), s && g(u), n) for (o = 0; a = u[o++];) {
  1479. Ie.test(a.type || "") && n.push(a);
  1480. }
  1481. }
  1482. return u = null, y;
  1483. }
  1484. function v() {
  1485. return !0;
  1486. }
  1487. function x() {
  1488. return !1;
  1489. }
  1490. function b() {
  1491. try {
  1492. return re.activeElement;
  1493. } catch (e) {}
  1494. }
  1495. function w(e, t, n, r, i, o) {
  1496. var a, s;
  1497. if ("object" == _typeof(t)) {
  1498. "string" != typeof n && (r = r || n, n = void 0);
  1499. for (s in t) {
  1500. w(e, s, n, r, t[s], o);
  1501. }
  1502. return e;
  1503. }
  1504. if (null == r && null == i ? (i = n, r = n = void 0) : null == i && ("string" == typeof n ? (i = r, r = void 0) : (i = r, r = n, n = void 0)), i === !1) i = x;else if (!i) return e;
  1505. return 1 === o && (a = i, i = function i(e) {
  1506. return pe().off(e), a.apply(this, arguments);
  1507. }, i.guid = a.guid || (a.guid = pe.guid++)), e.each(function () {
  1508. pe.event.add(this, t, i, r, n);
  1509. });
  1510. }
  1511. function T(e, t) {
  1512. return pe.nodeName(e, "table") && pe.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e;
  1513. }
  1514. function C(e) {
  1515. return e.type = (null !== pe.find.attr(e, "type")) + "/" + e.type, e;
  1516. }
  1517. function E(e) {
  1518. var t = it.exec(e.type);
  1519. return t ? e.type = t[1] : e.removeAttribute("type"), e;
  1520. }
  1521. function N(e, t) {
  1522. if (1 === t.nodeType && pe.hasData(e)) {
  1523. var n,
  1524. r,
  1525. i,
  1526. o = pe._data(e),
  1527. a = pe._data(t, o),
  1528. s = o.events;
  1529. if (s) {
  1530. delete a.handle, a.events = {};
  1531. for (n in s) {
  1532. for (r = 0, i = s[n].length; r < i; r++) {
  1533. pe.event.add(t, n, s[n][r]);
  1534. }
  1535. }
  1536. }
  1537. a.data && (a.data = pe.extend({}, a.data));
  1538. }
  1539. }
  1540. function k(e, t) {
  1541. var n, r, i;
  1542. if (1 === t.nodeType) {
  1543. if (n = t.nodeName.toLowerCase(), !fe.noCloneEvent && t[pe.expando]) {
  1544. i = pe._data(t);
  1545. for (r in i.events) {
  1546. pe.removeEvent(t, r, i.handle);
  1547. }
  1548. t.removeAttribute(pe.expando);
  1549. }
  1550. "script" === n && t.text !== e.text ? (C(t).text = e.text, E(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), fe.html5Clone && e.innerHTML && !pe.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Be.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue);
  1551. }
  1552. }
  1553. function S(e, t, n, r) {
  1554. t = oe.apply([], t);
  1555. var i,
  1556. o,
  1557. a,
  1558. s,
  1559. u,
  1560. l,
  1561. c = 0,
  1562. f = e.length,
  1563. d = f - 1,
  1564. p = t[0],
  1565. g = pe.isFunction(p);
  1566. if (g || f > 1 && "string" == typeof p && !fe.checkClone && rt.test(p)) return e.each(function (i) {
  1567. var o = e.eq(i);
  1568. g && (t[0] = p.call(this, i, o.html())), S(o, t, n, r);
  1569. });
  1570. if (f && (l = y(t, e[0].ownerDocument, !1, e, r), i = l.firstChild, 1 === l.childNodes.length && (l = i), i || r)) {
  1571. for (s = pe.map(h(l, "script"), C), a = s.length; c < f; c++) {
  1572. o = l, c !== d && (o = pe.clone(o, !0, !0), a && pe.merge(s, h(o, "script"))), n.call(e[c], o, c);
  1573. }
  1574. if (a) for (u = s[s.length - 1].ownerDocument, pe.map(s, E), c = 0; c < a; c++) {
  1575. o = s[c], Ie.test(o.type || "") && !pe._data(o, "globalEval") && pe.contains(u, o) && (o.src ? pe._evalUrl && pe._evalUrl(o.src) : pe.globalEval((o.text || o.textContent || o.innerHTML || "").replace(ot, "")));
  1576. }
  1577. l = i = null;
  1578. }
  1579. return e;
  1580. }
  1581. function A(e, t, n) {
  1582. for (var r, i = t ? pe.filter(t, e) : e, o = 0; null != (r = i[o]); o++) {
  1583. n || 1 !== r.nodeType || pe.cleanData(h(r)), r.parentNode && (n && pe.contains(r.ownerDocument, r) && g(h(r, "script")), r.parentNode.removeChild(r));
  1584. }
  1585. return e;
  1586. }
  1587. function D(e, t) {
  1588. var n = pe(t.createElement(e)).appendTo(t.body),
  1589. r = pe.css(n[0], "display");
  1590. return n.detach(), r;
  1591. }
  1592. function j(e) {
  1593. var t = re,
  1594. n = lt[e];
  1595. return n || (n = D(e, t), "none" !== n && n || (ut = (ut || pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement), t = (ut[0].contentWindow || ut[0].contentDocument).document, t.write(), t.close(), n = D(e, t), ut.detach()), lt[e] = n), n;
  1596. }
  1597. function L(e, t) {
  1598. return {
  1599. get: function get() {
  1600. return e() ? void delete this.get : (this.get = t).apply(this, arguments);
  1601. }
  1602. };
  1603. }
  1604. function H(e) {
  1605. if (e in Et) return e;
  1606. for (var t = e.charAt(0).toUpperCase() + e.slice(1), n = Ct.length; n--;) {
  1607. if (e = Ct[n] + t, e in Et) return e;
  1608. }
  1609. }
  1610. function q(e, t) {
  1611. for (var n, r, i, o = [], a = 0, s = e.length; a < s; a++) {
  1612. r = e[a], r.style && (o[a] = pe._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && Re(r) && (o[a] = pe._data(r, "olddisplay", j(r.nodeName)))) : (i = Re(r), (n && "none" !== n || !i) && pe._data(r, "olddisplay", i ? n : pe.css(r, "display"))));
  1613. }
  1614. for (a = 0; a < s; a++) {
  1615. r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
  1616. }
  1617. return e;
  1618. }
  1619. function _(e, t, n) {
  1620. var r = bt.exec(t);
  1621. return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t;
  1622. }
  1623. function F(e, t, n, r, i) {
  1624. for (var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, a = 0; o < 4; o += 2) {
  1625. "margin" === n && (a += pe.css(e, n + Oe[o], !0, i)), r ? ("content" === n && (a -= pe.css(e, "padding" + Oe[o], !0, i)), "margin" !== n && (a -= pe.css(e, "border" + Oe[o] + "Width", !0, i))) : (a += pe.css(e, "padding" + Oe[o], !0, i), "padding" !== n && (a += pe.css(e, "border" + Oe[o] + "Width", !0, i)));
  1626. }
  1627. return a;
  1628. }
  1629. function M(t, n, r) {
  1630. var i = !0,
  1631. o = "width" === n ? t.offsetWidth : t.offsetHeight,
  1632. a = ht(t),
  1633. s = fe.boxSizing && "border-box" === pe.css(t, "boxSizing", !1, a);
  1634. if (re.msFullscreenElement && e.top !== e && t.getClientRects().length && (o = Math.round(100 * t.getBoundingClientRect()[n])), o <= 0 || null == o) {
  1635. if (o = gt(t, n, a), (o < 0 || null == o) && (o = t.style[n]), ft.test(o)) return o;
  1636. i = s && (fe.boxSizingReliable() || o === t.style[n]), o = parseFloat(o) || 0;
  1637. }
  1638. return o + F(t, n, r || (s ? "border" : "content"), i, a) + "px";
  1639. }
  1640. function O(e, t, n, r, i) {
  1641. return new O.prototype.init(e, t, n, r, i);
  1642. }
  1643. function R() {
  1644. return e.setTimeout(function () {
  1645. Nt = void 0;
  1646. }), Nt = pe.now();
  1647. }
  1648. function P(e, t) {
  1649. var n,
  1650. r = {
  1651. height: e
  1652. },
  1653. i = 0;
  1654. for (t = t ? 1 : 0; i < 4; i += 2 - t) {
  1655. n = Oe[i], r["margin" + n] = r["padding" + n] = e;
  1656. }
  1657. return t && (r.opacity = r.width = e), r;
  1658. }
  1659. function B(e, t, n) {
  1660. for (var r, i = ($.tweeners[t] || []).concat($.tweeners["*"]), o = 0, a = i.length; o < a; o++) {
  1661. if (r = i[o].call(n, t, e)) return r;
  1662. }
  1663. }
  1664. function W(e, t, n) {
  1665. var r,
  1666. i,
  1667. o,
  1668. a,
  1669. s,
  1670. u,
  1671. l,
  1672. c,
  1673. f = this,
  1674. d = {},
  1675. p = e.style,
  1676. h = e.nodeType && Re(e),
  1677. g = pe._data(e, "fxshow");
  1678. n.queue || (s = pe._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, u = s.empty.fire, s.empty.fire = function () {
  1679. s.unqueued || u();
  1680. }), s.unqueued++, f.always(function () {
  1681. f.always(function () {
  1682. s.unqueued--, pe.queue(e, "fx").length || s.empty.fire();
  1683. });
  1684. })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], l = pe.css(e, "display"), c = "none" === l ? pe._data(e, "olddisplay") || j(e.nodeName) : l, "inline" === c && "none" === pe.css(e, "float") && (fe.inlineBlockNeedsLayout && "inline" !== j(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")), n.overflow && (p.overflow = "hidden", fe.shrinkWrapBlocks() || f.always(function () {
  1685. p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2];
  1686. }));
  1687. for (r in t) {
  1688. if (i = t[r], St.exec(i)) {
  1689. if (delete t[r], o = o || "toggle" === i, i === (h ? "hide" : "show")) {
  1690. if ("show" !== i || !g || void 0 === g[r]) continue;
  1691. h = !0;
  1692. }
  1693. d[r] = g && g[r] || pe.style(e, r);
  1694. } else l = void 0;
  1695. }
  1696. if (pe.isEmptyObject(d)) "inline" === ("none" === l ? j(e.nodeName) : l) && (p.display = l);else {
  1697. g ? "hidden" in g && (h = g.hidden) : g = pe._data(e, "fxshow", {}), o && (g.hidden = !h), h ? pe(e).show() : f.done(function () {
  1698. pe(e).hide();
  1699. }), f.done(function () {
  1700. var t;
  1701. pe._removeData(e, "fxshow");
  1702. for (t in d) {
  1703. pe.style(e, t, d[t]);
  1704. }
  1705. });
  1706. for (r in d) {
  1707. a = B(h ? g[r] : 0, r, f), r in g || (g[r] = a.start, h && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0));
  1708. }
  1709. }
  1710. }
  1711. function I(e, t) {
  1712. var n, r, i, o, a;
  1713. for (n in e) {
  1714. if (r = pe.camelCase(n), i = t[r], o = e[n], pe.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = pe.cssHooks[r], a && "expand" in a) {
  1715. o = a.expand(o), delete e[r];
  1716. for (n in o) {
  1717. n in e || (e[n] = o[n], t[n] = i);
  1718. }
  1719. } else t[r] = i;
  1720. }
  1721. }
  1722. function $(e, t, n) {
  1723. var r,
  1724. i,
  1725. o = 0,
  1726. a = $.prefilters.length,
  1727. s = pe.Deferred().always(function () {
  1728. delete u.elem;
  1729. }),
  1730. u = function u() {
  1731. if (i) return !1;
  1732. for (var t = Nt || R(), n = Math.max(0, l.startTime + l.duration - t), r = n / l.duration || 0, o = 1 - r, a = 0, u = l.tweens.length; a < u; a++) {
  1733. l.tweens[a].run(o);
  1734. }
  1735. return s.notifyWith(e, [l, o, n]), o < 1 && u ? n : (s.resolveWith(e, [l]), !1);
  1736. },
  1737. l = s.promise({
  1738. elem: e,
  1739. props: pe.extend({}, t),
  1740. opts: pe.extend(!0, {
  1741. specialEasing: {},
  1742. easing: pe.easing._default
  1743. }, n),
  1744. originalProperties: t,
  1745. originalOptions: n,
  1746. startTime: Nt || R(),
  1747. duration: n.duration,
  1748. tweens: [],
  1749. createTween: function createTween(t, n) {
  1750. var r = pe.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing);
  1751. return l.tweens.push(r), r;
  1752. },
  1753. stop: function stop(t) {
  1754. var n = 0,
  1755. r = t ? l.tweens.length : 0;
  1756. if (i) return this;
  1757. for (i = !0; n < r; n++) {
  1758. l.tweens[n].run(1);
  1759. }
  1760. return t ? (s.notifyWith(e, [l, 1, 0]), s.resolveWith(e, [l, t])) : s.rejectWith(e, [l, t]), this;
  1761. }
  1762. }),
  1763. c = l.props;
  1764. for (I(c, l.opts.specialEasing); o < a; o++) {
  1765. if (r = $.prefilters[o].call(l, e, c, l.opts)) return pe.isFunction(r.stop) && (pe._queueHooks(l.elem, l.opts.queue).stop = pe.proxy(r.stop, r)), r;
  1766. }
  1767. return pe.map(c, B, l), pe.isFunction(l.opts.start) && l.opts.start.call(e, l), pe.fx.timer(pe.extend(u, {
  1768. elem: e,
  1769. anim: l,
  1770. queue: l.opts.queue
  1771. })), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always);
  1772. }
  1773. function z(e) {
  1774. return pe.attr(e, "class") || "";
  1775. }
  1776. function X(e) {
  1777. return function (t, n) {
  1778. "string" != typeof t && (n = t, t = "*");
  1779. var r,
  1780. i = 0,
  1781. o = t.toLowerCase().match(De) || [];
  1782. if (pe.isFunction(n)) for (; r = o[i++];) {
  1783. "+" === r.charAt(0) ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n);
  1784. }
  1785. };
  1786. }
  1787. function U(e, t, n, r) {
  1788. function i(s) {
  1789. var u;
  1790. return o[s] = !0, pe.each(e[s] || [], function (e, s) {
  1791. var l = s(t, n, r);
  1792. return "string" != typeof l || a || o[l] ? a ? !(u = l) : void 0 : (t.dataTypes.unshift(l), i(l), !1);
  1793. }), u;
  1794. }
  1795. var o = {},
  1796. a = e === Qt;
  1797. return i(t.dataTypes[0]) || !o["*"] && i("*");
  1798. }
  1799. function V(e, t) {
  1800. var n,
  1801. r,
  1802. i = pe.ajaxSettings.flatOptions || {};
  1803. for (r in t) {
  1804. void 0 !== t[r] && ((i[r] ? e : n || (n = {}))[r] = t[r]);
  1805. }
  1806. return n && pe.extend(!0, e, n), e;
  1807. }
  1808. function Y(e, t, n) {
  1809. for (var r, i, o, a, s = e.contents, u = e.dataTypes; "*" === u[0];) {
  1810. u.shift(), void 0 === i && (i = e.mimeType || t.getResponseHeader("Content-Type"));
  1811. }
  1812. if (i) for (a in s) {
  1813. if (s[a] && s[a].test(i)) {
  1814. u.unshift(a);
  1815. break;
  1816. }
  1817. }
  1818. if (u[0] in n) o = u[0];else {
  1819. for (a in n) {
  1820. if (!u[0] || e.converters[a + " " + u[0]]) {
  1821. o = a;
  1822. break;
  1823. }
  1824. r || (r = a);
  1825. }
  1826. o = o || r;
  1827. }
  1828. if (o) return o !== u[0] && u.unshift(o), n[o];
  1829. }
  1830. function J(e, t, n, r) {
  1831. var i,
  1832. o,
  1833. a,
  1834. s,
  1835. u,
  1836. l = {},
  1837. c = e.dataTypes.slice();
  1838. if (c[1]) for (a in e.converters) {
  1839. l[a.toLowerCase()] = e.converters[a];
  1840. }
  1841. for (o = c.shift(); o;) {
  1842. if (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), u = o, o = c.shift()) if ("*" === o) o = u;else if ("*" !== u && u !== o) {
  1843. if (a = l[u + " " + o] || l["* " + o], !a) for (i in l) {
  1844. if (s = i.split(" "), s[1] === o && (a = l[u + " " + s[0]] || l["* " + s[0]])) {
  1845. a === !0 ? a = l[i] : l[i] !== !0 && (o = s[0], c.unshift(s[1]));
  1846. break;
  1847. }
  1848. }
  1849. if (a !== !0) if (a && e["throws"]) t = a(t);else try {
  1850. t = a(t);
  1851. } catch (f) {
  1852. return {
  1853. state: "parsererror",
  1854. error: a ? f : "No conversion from " + u + " to " + o
  1855. };
  1856. }
  1857. }
  1858. }
  1859. return {
  1860. state: "success",
  1861. data: t
  1862. };
  1863. }
  1864. function G(e) {
  1865. return e.style && e.style.display || pe.css(e, "display");
  1866. }
  1867. function K(e) {
  1868. for (; e && 1 === e.nodeType;) {
  1869. if ("none" === G(e) || "hidden" === e.type) return !0;
  1870. e = e.parentNode;
  1871. }
  1872. return !1;
  1873. }
  1874. function Q(e, t, n, r) {
  1875. var i;
  1876. if (pe.isArray(t)) pe.each(t, function (t, i) {
  1877. n || rn.test(e) ? r(e, i) : Q(e + "[" + ("object" == _typeof(i) && null != i ? t : "") + "]", i, n, r);
  1878. });else if (n || "object" !== pe.type(t)) r(e, t);else for (i in t) {
  1879. Q(e + "[" + i + "]", t[i], n, r);
  1880. }
  1881. }
  1882. function Z() {
  1883. try {
  1884. return new e.XMLHttpRequest();
  1885. } catch (t) {}
  1886. }
  1887. function ee() {
  1888. try {
  1889. return new e.ActiveXObject("Microsoft.XMLHTTP");
  1890. } catch (t) {}
  1891. }
  1892. function te(e) {
  1893. return pe.isWindow(e) ? e : 9 === e.nodeType && (e.defaultView || e.parentWindow);
  1894. }
  1895. var ne = [],
  1896. re = e.document,
  1897. ie = ne.slice,
  1898. oe = ne.concat,
  1899. ae = ne.push,
  1900. se = ne.indexOf,
  1901. ue = {},
  1902. le = ue.toString,
  1903. ce = ue.hasOwnProperty,
  1904. fe = {},
  1905. de = "1.12.3",
  1906. pe = function pe(e, t) {
  1907. return new pe.fn.init(e, t);
  1908. },
  1909. he = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
  1910. ge = /^-ms-/,
  1911. me = /-([\da-z])/gi,
  1912. ye = function ye(e, t) {
  1913. return t.toUpperCase();
  1914. };
  1915. pe.fn = pe.prototype = {
  1916. jquery: de,
  1917. constructor: pe,
  1918. selector: "",
  1919. length: 0,
  1920. toArray: function toArray() {
  1921. return ie.call(this);
  1922. },
  1923. get: function get(e) {
  1924. return null != e ? e < 0 ? this[e + this.length] : this[e] : ie.call(this);
  1925. },
  1926. pushStack: function pushStack(e) {
  1927. var t = pe.merge(this.constructor(), e);
  1928. return t.prevObject = this, t.context = this.context, t;
  1929. },
  1930. each: function each(e) {
  1931. return pe.each(this, e);
  1932. },
  1933. map: function map(e) {
  1934. return this.pushStack(pe.map(this, function (t, n) {
  1935. return e.call(t, n, t);
  1936. }));
  1937. },
  1938. slice: function slice() {
  1939. return this.pushStack(ie.apply(this, arguments));
  1940. },
  1941. first: function first() {
  1942. return this.eq(0);
  1943. },
  1944. last: function last() {
  1945. return this.eq(-1);
  1946. },
  1947. eq: function eq(e) {
  1948. var t = this.length,
  1949. n = +e + (e < 0 ? t : 0);
  1950. return this.pushStack(n >= 0 && n < t ? [this[n]] : []);
  1951. },
  1952. end: function end() {
  1953. return this.prevObject || this.constructor();
  1954. },
  1955. push: ae,
  1956. sort: ne.sort,
  1957. splice: ne.splice
  1958. }, pe.extend = pe.fn.extend = function () {
  1959. var e,
  1960. t,
  1961. n,
  1962. r,
  1963. i,
  1964. o,
  1965. a = arguments[0] || {},
  1966. s = 1,
  1967. u = arguments.length,
  1968. l = !1;
  1969. for ("boolean" == typeof a && (l = a, a = arguments[s] || {}, s++), "object" == _typeof(a) || pe.isFunction(a) || (a = {}), s === u && (a = this, s--); s < u; s++) {
  1970. if (null != (i = arguments[s])) for (r in i) {
  1971. e = a[r], n = i[r], a !== n && (l && n && (pe.isPlainObject(n) || (t = pe.isArray(n))) ? (t ? (t = !1, o = e && pe.isArray(e) ? e : []) : o = e && pe.isPlainObject(e) ? e : {}, a[r] = pe.extend(l, o, n)) : void 0 !== n && (a[r] = n));
  1972. }
  1973. }
  1974. return a;
  1975. }, pe.extend({
  1976. expando: "jQuery" + (de + Math.random()).replace(/\D/g, ""),
  1977. isReady: !0,
  1978. error: function error(e) {
  1979. throw new Error(e);
  1980. },
  1981. noop: function noop() {},
  1982. isFunction: function isFunction(e) {
  1983. return "function" === pe.type(e);
  1984. },
  1985. isArray: Array.isArray || function (e) {
  1986. return "array" === pe.type(e);
  1987. },
  1988. isWindow: function isWindow(e) {
  1989. return null != e && e == e.window;
  1990. },
  1991. isNumeric: function isNumeric(e) {
  1992. var t = e && e.toString();
  1993. return !pe.isArray(e) && t - parseFloat(t) + 1 >= 0;
  1994. },
  1995. isEmptyObject: function isEmptyObject(e) {
  1996. var t;
  1997. for (t in e) {
  1998. return !1;
  1999. }
  2000. return !0;
  2001. },
  2002. isPlainObject: function isPlainObject(e) {
  2003. var t;
  2004. if (!e || "object" !== pe.type(e) || e.nodeType || pe.isWindow(e)) return !1;
  2005. try {
  2006. if (e.constructor && !ce.call(e, "constructor") && !ce.call(e.constructor.prototype, "isPrototypeOf")) return !1;
  2007. } catch (n) {
  2008. return !1;
  2009. }
  2010. if (!fe.ownFirst) for (t in e) {
  2011. return ce.call(e, t);
  2012. }
  2013. for (t in e) {
  2014. ;
  2015. }
  2016. return void 0 === t || ce.call(e, t);
  2017. },
  2018. type: function type(e) {
  2019. return null == e ? e + "" : "object" == _typeof(e) || "function" == typeof e ? ue[le.call(e)] || "object" : _typeof(e);
  2020. },
  2021. globalEval: function globalEval(t) {
  2022. t && pe.trim(t) && (e.execScript || function (t) {
  2023. e.eval.call(e, t);
  2024. })(t);
  2025. },
  2026. camelCase: function camelCase(e) {
  2027. return e.replace(ge, "ms-").replace(me, ye);
  2028. },
  2029. nodeName: function nodeName(e, t) {
  2030. return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
  2031. },
  2032. each: function each(e, t) {
  2033. var r,
  2034. i = 0;
  2035. if (n(e)) for (r = e.length; i < r && t.call(e[i], i, e[i]) !== !1; i++) {
  2036. ;
  2037. } else for (i in e) {
  2038. if (t.call(e[i], i, e[i]) === !1) break;
  2039. }
  2040. return e;
  2041. },
  2042. trim: function trim(e) {
  2043. return null == e ? "" : (e + "").replace(he, "");
  2044. },
  2045. makeArray: function makeArray(e, t) {
  2046. var r = t || [];
  2047. return null != e && (n(Object(e)) ? pe.merge(r, "string" == typeof e ? [e] : e) : ae.call(r, e)), r;
  2048. },
  2049. inArray: function inArray(e, t, n) {
  2050. var r;
  2051. if (t) {
  2052. if (se) return se.call(t, e, n);
  2053. for (r = t.length, n = n ? n < 0 ? Math.max(0, r + n) : n : 0; n < r; n++) {
  2054. if (n in t && t[n] === e) return n;
  2055. }
  2056. }
  2057. return -1;
  2058. },
  2059. merge: function merge(e, t) {
  2060. for (var n = +t.length, r = 0, i = e.length; r < n;) {
  2061. e[i++] = t[r++];
  2062. }
  2063. if (n !== n) for (; void 0 !== t[r];) {
  2064. e[i++] = t[r++];
  2065. }
  2066. return e.length = i, e;
  2067. },
  2068. grep: function grep(e, t, n) {
  2069. for (var r, i = [], o = 0, a = e.length, s = !n; o < a; o++) {
  2070. r = !t(e[o], o), r !== s && i.push(e[o]);
  2071. }
  2072. return i;
  2073. },
  2074. map: function map(e, t, r) {
  2075. var i,
  2076. o,
  2077. a = 0,
  2078. s = [];
  2079. if (n(e)) for (i = e.length; a < i; a++) {
  2080. o = t(e[a], a, r), null != o && s.push(o);
  2081. } else for (a in e) {
  2082. o = t(e[a], a, r), null != o && s.push(o);
  2083. }
  2084. return oe.apply([], s);
  2085. },
  2086. guid: 1,
  2087. proxy: function proxy(e, t) {
  2088. var n, r, i;
  2089. if ("string" == typeof t && (i = e[t], t = e, e = i), pe.isFunction(e)) return n = ie.call(arguments, 2), r = function r() {
  2090. return e.apply(t || this, n.concat(ie.call(arguments)));
  2091. }, r.guid = e.guid = e.guid || pe.guid++, r;
  2092. },
  2093. now: function now() {
  2094. return +new Date();
  2095. },
  2096. support: fe
  2097. }), "function" == typeof Symbol && (pe.fn[Symbol.iterator] = ne[Symbol.iterator]), pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) {
  2098. ue["[object " + t + "]"] = t.toLowerCase();
  2099. });
  2100. var ve = function (e) {
  2101. function t(e, t, n, r) {
  2102. var i,
  2103. o,
  2104. a,
  2105. s,
  2106. u,
  2107. l,
  2108. f,
  2109. p,
  2110. h = t && t.ownerDocument,
  2111. g = t ? t.nodeType : 9;
  2112. if (n = n || [], "string" != typeof e || !e || 1 !== g && 9 !== g && 11 !== g) return n;
  2113. if (!r && ((t ? t.ownerDocument || t : B) !== H && L(t), t = t || H, _)) {
  2114. if (11 !== g && (l = ye.exec(e))) if (i = l[1]) {
  2115. if (9 === g) {
  2116. if (!(a = t.getElementById(i))) return n;
  2117. if (a.id === i) return n.push(a), n;
  2118. } else if (h && (a = h.getElementById(i)) && R(t, a) && a.id === i) return n.push(a), n;
  2119. } else {
  2120. if (l[2]) return Q.apply(n, t.getElementsByTagName(e)), n;
  2121. if ((i = l[3]) && w.getElementsByClassName && t.getElementsByClassName) return Q.apply(n, t.getElementsByClassName(i)), n;
  2122. }
  2123. if (w.qsa && !X[e + " "] && (!F || !F.test(e))) {
  2124. if (1 !== g) h = t, p = e;else if ("object" !== t.nodeName.toLowerCase()) {
  2125. for ((s = t.getAttribute("id")) ? s = s.replace(xe, "\\$&") : t.setAttribute("id", s = P), f = N(e), o = f.length, u = de.test(s) ? "#" + s : "[id='" + s + "']"; o--;) {
  2126. f[o] = u + " " + d(f[o]);
  2127. }
  2128. p = f.join(","), h = ve.test(e) && c(t.parentNode) || t;
  2129. }
  2130. if (p) try {
  2131. return Q.apply(n, h.querySelectorAll(p)), n;
  2132. } catch (m) {} finally {
  2133. s === P && t.removeAttribute("id");
  2134. }
  2135. }
  2136. }
  2137. return S(e.replace(se, "$1"), t, n, r);
  2138. }
  2139. function n() {
  2140. function e(n, r) {
  2141. return t.push(n + " ") > T.cacheLength && delete e[t.shift()], e[n + " "] = r;
  2142. }
  2143. var t = [];
  2144. return e;
  2145. }
  2146. function r(e) {
  2147. return e[P] = !0, e;
  2148. }
  2149. function i(e) {
  2150. var t = H.createElement("div");
  2151. try {
  2152. return !!e(t);
  2153. } catch (n) {
  2154. return !1;
  2155. } finally {
  2156. t.parentNode && t.parentNode.removeChild(t), t = null;
  2157. }
  2158. }
  2159. function o(e, t) {
  2160. for (var n = e.split("|"), r = n.length; r--;) {
  2161. T.attrHandle[n[r]] = t;
  2162. }
  2163. }
  2164. function a(e, t) {
  2165. var n = t && e,
  2166. r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || V) - (~e.sourceIndex || V);
  2167. if (r) return r;
  2168. if (n) for (; n = n.nextSibling;) {
  2169. if (n === t) return -1;
  2170. }
  2171. return e ? 1 : -1;
  2172. }
  2173. function s(e) {
  2174. return function (t) {
  2175. var n = t.nodeName.toLowerCase();
  2176. return "input" === n && t.type === e;
  2177. };
  2178. }
  2179. function u(e) {
  2180. return function (t) {
  2181. var n = t.nodeName.toLowerCase();
  2182. return ("input" === n || "button" === n) && t.type === e;
  2183. };
  2184. }
  2185. function l(e) {
  2186. return r(function (t) {
  2187. return t = +t, r(function (n, r) {
  2188. for (var i, o = e([], n.length, t), a = o.length; a--;) {
  2189. n[i = o[a]] && (n[i] = !(r[i] = n[i]));
  2190. }
  2191. });
  2192. });
  2193. }
  2194. function c(e) {
  2195. return e && "undefined" != typeof e.getElementsByTagName && e;
  2196. }
  2197. function f() {}
  2198. function d(e) {
  2199. for (var t = 0, n = e.length, r = ""; t < n; t++) {
  2200. r += e[t].value;
  2201. }
  2202. return r;
  2203. }
  2204. function p(e, t, n) {
  2205. var r = t.dir,
  2206. i = n && "parentNode" === r,
  2207. o = I++;
  2208. return t.first ? function (t, n, o) {
  2209. for (; t = t[r];) {
  2210. if (1 === t.nodeType || i) return e(t, n, o);
  2211. }
  2212. } : function (t, n, a) {
  2213. var s,
  2214. u,
  2215. l,
  2216. c = [W, o];
  2217. if (a) {
  2218. for (; t = t[r];) {
  2219. if ((1 === t.nodeType || i) && e(t, n, a)) return !0;
  2220. }
  2221. } else for (; t = t[r];) {
  2222. if (1 === t.nodeType || i) {
  2223. if (l = t[P] || (t[P] = {}), u = l[t.uniqueID] || (l[t.uniqueID] = {}), (s = u[r]) && s[0] === W && s[1] === o) return c[2] = s[2];
  2224. if (u[r] = c, c[2] = e(t, n, a)) return !0;
  2225. }
  2226. }
  2227. };
  2228. }
  2229. function h(e) {
  2230. return e.length > 1 ? function (t, n, r) {
  2231. for (var i = e.length; i--;) {
  2232. if (!e[i](t, n, r)) return !1;
  2233. }
  2234. return !0;
  2235. } : e[0];
  2236. }
  2237. function g(e, n, r) {
  2238. for (var i = 0, o = n.length; i < o; i++) {
  2239. t(e, n[i], r);
  2240. }
  2241. return r;
  2242. }
  2243. function m(e, t, n, r, i) {
  2244. for (var o, a = [], s = 0, u = e.length, l = null != t; s < u; s++) {
  2245. (o = e[s]) && (n && !n(o, r, i) || (a.push(o), l && t.push(s)));
  2246. }
  2247. return a;
  2248. }
  2249. function y(e, t, n, i, o, a) {
  2250. return i && !i[P] && (i = y(i)), o && !o[P] && (o = y(o, a)), r(function (r, a, s, u) {
  2251. var l,
  2252. c,
  2253. f,
  2254. d = [],
  2255. p = [],
  2256. h = a.length,
  2257. y = r || g(t || "*", s.nodeType ? [s] : s, []),
  2258. v = !e || !r && t ? y : m(y, d, e, s, u),
  2259. x = n ? o || (r ? e : h || i) ? [] : a : v;
  2260. if (n && n(v, x, s, u), i) for (l = m(x, p), i(l, [], s, u), c = l.length; c--;) {
  2261. (f = l[c]) && (x[p[c]] = !(v[p[c]] = f));
  2262. }
  2263. if (r) {
  2264. if (o || e) {
  2265. if (o) {
  2266. for (l = [], c = x.length; c--;) {
  2267. (f = x[c]) && l.push(v[c] = f);
  2268. }
  2269. o(null, x = [], l, u);
  2270. }
  2271. for (c = x.length; c--;) {
  2272. (f = x[c]) && (l = o ? ee(r, f) : d[c]) > -1 && (r[l] = !(a[l] = f));
  2273. }
  2274. }
  2275. } else x = m(x === a ? x.splice(h, x.length) : x), o ? o(null, a, x, u) : Q.apply(a, x);
  2276. });
  2277. }
  2278. function v(e) {
  2279. for (var t, n, r, i = e.length, o = T.relative[e[0].type], a = o || T.relative[" "], s = o ? 1 : 0, u = p(function (e) {
  2280. return e === t;
  2281. }, a, !0), l = p(function (e) {
  2282. return ee(t, e) > -1;
  2283. }, a, !0), c = [function (e, n, r) {
  2284. var i = !o && (r || n !== A) || ((t = n).nodeType ? u(e, n, r) : l(e, n, r));
  2285. return t = null, i;
  2286. }]; s < i; s++) {
  2287. if (n = T.relative[e[s].type]) c = [p(h(c), n)];else {
  2288. if (n = T.filter[e[s].type].apply(null, e[s].matches), n[P]) {
  2289. for (r = ++s; r < i && !T.relative[e[r].type]; r++) {
  2290. ;
  2291. }
  2292. return y(s > 1 && h(c), s > 1 && d(e.slice(0, s - 1).concat({
  2293. value: " " === e[s - 2].type ? "*" : ""
  2294. })).replace(se, "$1"), n, s < r && v(e.slice(s, r)), r < i && v(e = e.slice(r)), r < i && d(e));
  2295. }
  2296. c.push(n);
  2297. }
  2298. }
  2299. return h(c);
  2300. }
  2301. function x(e, n) {
  2302. var i = n.length > 0,
  2303. o = e.length > 0,
  2304. a = function a(r, _a, s, u, l) {
  2305. var c,
  2306. f,
  2307. d,
  2308. p = 0,
  2309. h = "0",
  2310. g = r && [],
  2311. y = [],
  2312. v = A,
  2313. x = r || o && T.find.TAG("*", l),
  2314. b = W += null == v ? 1 : Math.random() || .1,
  2315. w = x.length;
  2316. for (l && (A = _a === H || _a || l); h !== w && null != (c = x[h]); h++) {
  2317. if (o && c) {
  2318. for (f = 0, _a || c.ownerDocument === H || (L(c), s = !_); d = e[f++];) {
  2319. if (d(c, _a || H, s)) {
  2320. u.push(c);
  2321. break;
  2322. }
  2323. }
  2324. l && (W = b);
  2325. }
  2326. i && ((c = !d && c) && p--, r && g.push(c));
  2327. }
  2328. if (p += h, i && h !== p) {
  2329. for (f = 0; d = n[f++];) {
  2330. d(g, y, _a, s);
  2331. }
  2332. if (r) {
  2333. if (p > 0) for (; h--;) {
  2334. g[h] || y[h] || (y[h] = G.call(u));
  2335. }
  2336. y = m(y);
  2337. }
  2338. Q.apply(u, y), l && !r && y.length > 0 && p + n.length > 1 && t.uniqueSort(u);
  2339. }
  2340. return l && (W = b, A = v), g;
  2341. };
  2342. return i ? r(a) : a;
  2343. }
  2344. var b,
  2345. w,
  2346. T,
  2347. C,
  2348. E,
  2349. N,
  2350. k,
  2351. S,
  2352. A,
  2353. D,
  2354. j,
  2355. L,
  2356. H,
  2357. q,
  2358. _,
  2359. F,
  2360. M,
  2361. O,
  2362. R,
  2363. P = "sizzle" + 1 * new Date(),
  2364. B = e.document,
  2365. W = 0,
  2366. I = 0,
  2367. $ = n(),
  2368. z = n(),
  2369. X = n(),
  2370. U = function U(e, t) {
  2371. return e === t && (j = !0), 0;
  2372. },
  2373. V = 1 << 31,
  2374. Y = {}.hasOwnProperty,
  2375. J = [],
  2376. G = J.pop,
  2377. K = J.push,
  2378. Q = J.push,
  2379. Z = J.slice,
  2380. ee = function ee(e, t) {
  2381. for (var n = 0, r = e.length; n < r; n++) {
  2382. if (e[n] === t) return n;
  2383. }
  2384. return -1;
  2385. },
  2386. te = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  2387. ne = "[\\x20\\t\\r\\n\\f]",
  2388. re = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
  2389. ie = "\\[" + ne + "*(" + re + ")(?:" + ne + "*([*^$|!~]?=)" + ne + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + re + "))|)" + ne + "*\\]",
  2390. oe = ":(" + re + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + ie + ")*)|.*)\\)|)",
  2391. ae = new RegExp(ne + "+", "g"),
  2392. se = new RegExp("^" + ne + "+|((?:^|[^\\\\])(?:\\\\.)*)" + ne + "+$", "g"),
  2393. ue = new RegExp("^" + ne + "*," + ne + "*"),
  2394. le = new RegExp("^" + ne + "*([>+~]|" + ne + ")" + ne + "*"),
  2395. ce = new RegExp("=" + ne + "*([^\\]'\"]*?)" + ne + "*\\]", "g"),
  2396. fe = new RegExp(oe),
  2397. de = new RegExp("^" + re + "$"),
  2398. pe = {
  2399. ID: new RegExp("^#(" + re + ")"),
  2400. CLASS: new RegExp("^\\.(" + re + ")"),
  2401. TAG: new RegExp("^(" + re + "|[*])"),
  2402. ATTR: new RegExp("^" + ie),
  2403. PSEUDO: new RegExp("^" + oe),
  2404. CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ne + "*(even|odd|(([+-]|)(\\d*)n|)" + ne + "*(?:([+-]|)" + ne + "*(\\d+)|))" + ne + "*\\)|)", "i"),
  2405. bool: new RegExp("^(?:" + te + ")$", "i"),
  2406. needsContext: new RegExp("^" + ne + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ne + "*((?:-\\d)?\\d*)" + ne + "*\\)|)(?=[^-]|$)", "i")
  2407. },
  2408. he = /^(?:input|select|textarea|button)$/i,
  2409. ge = /^h\d$/i,
  2410. me = /^[^{]+\{\s*\[native \w/,
  2411. ye = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  2412. ve = /[+~]/,
  2413. xe = /'|\\/g,
  2414. be = new RegExp("\\\\([\\da-f]{1,6}" + ne + "?|(" + ne + ")|.)", "ig"),
  2415. we = function we(e, t, n) {
  2416. var r = "0x" + t - 65536;
  2417. return r !== r || n ? t : r < 0 ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320);
  2418. },
  2419. Te = function Te() {
  2420. L();
  2421. };
  2422. try {
  2423. Q.apply(J = Z.call(B.childNodes), B.childNodes), J[B.childNodes.length].nodeType;
  2424. } catch (Ce) {
  2425. Q = {
  2426. apply: J.length ? function (e, t) {
  2427. K.apply(e, Z.call(t));
  2428. } : function (e, t) {
  2429. for (var n = e.length, r = 0; e[n++] = t[r++];) {
  2430. ;
  2431. }
  2432. e.length = n - 1;
  2433. }
  2434. };
  2435. }
  2436. w = t.support = {}, E = t.isXML = function (e) {
  2437. var t = e && (e.ownerDocument || e).documentElement;
  2438. return !!t && "HTML" !== t.nodeName;
  2439. }, L = t.setDocument = function (e) {
  2440. var t,
  2441. n,
  2442. r = e ? e.ownerDocument || e : B;
  2443. return r !== H && 9 === r.nodeType && r.documentElement ? (H = r, q = H.documentElement, _ = !E(H), (n = H.defaultView) && n.top !== n && (n.addEventListener ? n.addEventListener("unload", Te, !1) : n.attachEvent && n.attachEvent("onunload", Te)), w.attributes = i(function (e) {
  2444. return e.className = "i", !e.getAttribute("className");
  2445. }), w.getElementsByTagName = i(function (e) {
  2446. return e.appendChild(H.createComment("")), !e.getElementsByTagName("*").length;
  2447. }), w.getElementsByClassName = me.test(H.getElementsByClassName), w.getById = i(function (e) {
  2448. return q.appendChild(e).id = P, !H.getElementsByName || !H.getElementsByName(P).length;
  2449. }), w.getById ? (T.find.ID = function (e, t) {
  2450. if ("undefined" != typeof t.getElementById && _) {
  2451. var n = t.getElementById(e);
  2452. return n ? [n] : [];
  2453. }
  2454. }, T.filter.ID = function (e) {
  2455. var t = e.replace(be, we);
  2456. return function (e) {
  2457. return e.getAttribute("id") === t;
  2458. };
  2459. }) : (delete T.find.ID, T.filter.ID = function (e) {
  2460. var t = e.replace(be, we);
  2461. return function (e) {
  2462. var n = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id");
  2463. return n && n.value === t;
  2464. };
  2465. }), T.find.TAG = w.getElementsByTagName ? function (e, t) {
  2466. return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : w.qsa ? t.querySelectorAll(e) : void 0;
  2467. } : function (e, t) {
  2468. var n,
  2469. r = [],
  2470. i = 0,
  2471. o = t.getElementsByTagName(e);
  2472. if ("*" === e) {
  2473. for (; n = o[i++];) {
  2474. 1 === n.nodeType && r.push(n);
  2475. }
  2476. return r;
  2477. }
  2478. return o;
  2479. }, T.find.CLASS = w.getElementsByClassName && function (e, t) {
  2480. if ("undefined" != typeof t.getElementsByClassName && _) return t.getElementsByClassName(e);
  2481. }, M = [], F = [], (w.qsa = me.test(H.querySelectorAll)) && (i(function (e) {
  2482. q.appendChild(e).innerHTML = "<a id='" + P + "'></a><select id='" + P + "-\r\\' msallowcapture=''><option selected=''></option></select>", e.querySelectorAll("[msallowcapture^='']").length && F.push("[*^$]=" + ne + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || F.push("\\[" + ne + "*(?:value|" + te + ")"), e.querySelectorAll("[id~=" + P + "-]").length || F.push("~="), e.querySelectorAll(":checked").length || F.push(":checked"), e.querySelectorAll("a#" + P + "+*").length || F.push(".#.+[+~]");
  2483. }), i(function (e) {
  2484. var t = H.createElement("input");
  2485. t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && F.push("name" + ne + "*[*^$|!~]?="), e.querySelectorAll(":enabled").length || F.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), F.push(",.*:");
  2486. })), (w.matchesSelector = me.test(O = q.matches || q.webkitMatchesSelector || q.mozMatchesSelector || q.oMatchesSelector || q.msMatchesSelector)) && i(function (e) {
  2487. w.disconnectedMatch = O.call(e, "div"), O.call(e, "[s!='']:x"), M.push("!=", oe);
  2488. }), F = F.length && new RegExp(F.join("|")), M = M.length && new RegExp(M.join("|")), t = me.test(q.compareDocumentPosition), R = t || me.test(q.contains) ? function (e, t) {
  2489. var n = 9 === e.nodeType ? e.documentElement : e,
  2490. r = t && t.parentNode;
  2491. return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)));
  2492. } : function (e, t) {
  2493. if (t) for (; t = t.parentNode;) {
  2494. if (t === e) return !0;
  2495. }
  2496. return !1;
  2497. }, U = t ? function (e, t) {
  2498. if (e === t) return j = !0, 0;
  2499. var n = !e.compareDocumentPosition - !t.compareDocumentPosition;
  2500. return n ? n : (n = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1, 1 & n || !w.sortDetached && t.compareDocumentPosition(e) === n ? e === H || e.ownerDocument === B && R(B, e) ? -1 : t === H || t.ownerDocument === B && R(B, t) ? 1 : D ? ee(D, e) - ee(D, t) : 0 : 4 & n ? -1 : 1);
  2501. } : function (e, t) {
  2502. if (e === t) return j = !0, 0;
  2503. var n,
  2504. r = 0,
  2505. i = e.parentNode,
  2506. o = t.parentNode,
  2507. s = [e],
  2508. u = [t];
  2509. if (!i || !o) return e === H ? -1 : t === H ? 1 : i ? -1 : o ? 1 : D ? ee(D, e) - ee(D, t) : 0;
  2510. if (i === o) return a(e, t);
  2511. for (n = e; n = n.parentNode;) {
  2512. s.unshift(n);
  2513. }
  2514. for (n = t; n = n.parentNode;) {
  2515. u.unshift(n);
  2516. }
  2517. for (; s[r] === u[r];) {
  2518. r++;
  2519. }
  2520. return r ? a(s[r], u[r]) : s[r] === B ? -1 : u[r] === B ? 1 : 0;
  2521. }, H) : H;
  2522. }, t.matches = function (e, n) {
  2523. return t(e, null, null, n);
  2524. }, t.matchesSelector = function (e, n) {
  2525. if ((e.ownerDocument || e) !== H && L(e), n = n.replace(ce, "='$1']"), w.matchesSelector && _ && !X[n + " "] && (!M || !M.test(n)) && (!F || !F.test(n))) try {
  2526. var r = O.call(e, n);
  2527. if (r || w.disconnectedMatch || e.document && 11 !== e.document.nodeType) return r;
  2528. } catch (i) {}
  2529. return t(n, H, null, [e]).length > 0;
  2530. }, t.contains = function (e, t) {
  2531. return (e.ownerDocument || e) !== H && L(e), R(e, t);
  2532. }, t.attr = function (e, t) {
  2533. (e.ownerDocument || e) !== H && L(e);
  2534. var n = T.attrHandle[t.toLowerCase()],
  2535. r = n && Y.call(T.attrHandle, t.toLowerCase()) ? n(e, t, !_) : void 0;
  2536. return void 0 !== r ? r : w.attributes || !_ ? e.getAttribute(t) : (r = e.getAttributeNode(t)) && r.specified ? r.value : null;
  2537. }, t.error = function (e) {
  2538. throw new Error("Syntax error, unrecognized expression: " + e);
  2539. }, t.uniqueSort = function (e) {
  2540. var t,
  2541. n = [],
  2542. r = 0,
  2543. i = 0;
  2544. if (j = !w.detectDuplicates, D = !w.sortStable && e.slice(0), e.sort(U), j) {
  2545. for (; t = e[i++];) {
  2546. t === e[i] && (r = n.push(i));
  2547. }
  2548. for (; r--;) {
  2549. e.splice(n[r], 1);
  2550. }
  2551. }
  2552. return D = null, e;
  2553. }, C = t.getText = function (e) {
  2554. var t,
  2555. n = "",
  2556. r = 0,
  2557. i = e.nodeType;
  2558. if (i) {
  2559. if (1 === i || 9 === i || 11 === i) {
  2560. if ("string" == typeof e.textContent) return e.textContent;
  2561. for (e = e.firstChild; e; e = e.nextSibling) {
  2562. n += C(e);
  2563. }
  2564. } else if (3 === i || 4 === i) return e.nodeValue;
  2565. } else for (; t = e[r++];) {
  2566. n += C(t);
  2567. }
  2568. return n;
  2569. }, T = t.selectors = {
  2570. cacheLength: 50,
  2571. createPseudo: r,
  2572. match: pe,
  2573. attrHandle: {},
  2574. find: {},
  2575. relative: {
  2576. ">": {
  2577. dir: "parentNode",
  2578. first: !0
  2579. },
  2580. " ": {
  2581. dir: "parentNode"
  2582. },
  2583. "+": {
  2584. dir: "previousSibling",
  2585. first: !0
  2586. },
  2587. "~": {
  2588. dir: "previousSibling"
  2589. }
  2590. },
  2591. preFilter: {
  2592. ATTR: function ATTR(e) {
  2593. return e[1] = e[1].replace(be, we), e[3] = (e[3] || e[4] || e[5] || "").replace(be, we), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4);
  2594. },
  2595. CHILD: function CHILD(e) {
  2596. return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || t.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && t.error(e[0]), e;
  2597. },
  2598. PSEUDO: function PSEUDO(e) {
  2599. var t,
  2600. n = !e[6] && e[2];
  2601. return pe.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && fe.test(n) && (t = N(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3));
  2602. }
  2603. },
  2604. filter: {
  2605. TAG: function TAG(e) {
  2606. var t = e.replace(be, we).toLowerCase();
  2607. return "*" === e ? function () {
  2608. return !0;
  2609. } : function (e) {
  2610. return e.nodeName && e.nodeName.toLowerCase() === t;
  2611. };
  2612. },
  2613. CLASS: function CLASS(e) {
  2614. var t = $[e + " "];
  2615. return t || (t = new RegExp("(^|" + ne + ")" + e + "(" + ne + "|$)")) && $(e, function (e) {
  2616. return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "");
  2617. });
  2618. },
  2619. ATTR: function ATTR(e, n, r) {
  2620. return function (i) {
  2621. var o = t.attr(i, e);
  2622. return null == o ? "!=" === n : !n || (o += "", "=" === n ? o === r : "!=" === n ? o !== r : "^=" === n ? r && 0 === o.indexOf(r) : "*=" === n ? r && o.indexOf(r) > -1 : "$=" === n ? r && o.slice(-r.length) === r : "~=" === n ? (" " + o.replace(ae, " ") + " ").indexOf(r) > -1 : "|=" === n && (o === r || o.slice(0, r.length + 1) === r + "-"));
  2623. };
  2624. },
  2625. CHILD: function CHILD(e, t, n, r, i) {
  2626. var o = "nth" !== e.slice(0, 3),
  2627. a = "last" !== e.slice(-4),
  2628. s = "of-type" === t;
  2629. return 1 === r && 0 === i ? function (e) {
  2630. return !!e.parentNode;
  2631. } : function (t, n, u) {
  2632. var l,
  2633. c,
  2634. f,
  2635. d,
  2636. p,
  2637. h,
  2638. g = o !== a ? "nextSibling" : "previousSibling",
  2639. m = t.parentNode,
  2640. y = s && t.nodeName.toLowerCase(),
  2641. v = !u && !s,
  2642. x = !1;
  2643. if (m) {
  2644. if (o) {
  2645. for (; g;) {
  2646. for (d = t; d = d[g];) {
  2647. if (s ? d.nodeName.toLowerCase() === y : 1 === d.nodeType) return !1;
  2648. }
  2649. h = g = "only" === e && !h && "nextSibling";
  2650. }
  2651. return !0;
  2652. }
  2653. if (h = [a ? m.firstChild : m.lastChild], a && v) {
  2654. for (d = m, f = d[P] || (d[P] = {}), c = f[d.uniqueID] || (f[d.uniqueID] = {}), l = c[e] || [], p = l[0] === W && l[1], x = p && l[2], d = p && m.childNodes[p]; d = ++p && d && d[g] || (x = p = 0) || h.pop();) {
  2655. if (1 === d.nodeType && ++x && d === t) {
  2656. c[e] = [W, p, x];
  2657. break;
  2658. }
  2659. }
  2660. } else if (v && (d = t, f = d[P] || (d[P] = {}), c = f[d.uniqueID] || (f[d.uniqueID] = {}), l = c[e] || [], p = l[0] === W && l[1], x = p), x === !1) for (; (d = ++p && d && d[g] || (x = p = 0) || h.pop()) && ((s ? d.nodeName.toLowerCase() !== y : 1 !== d.nodeType) || !++x || (v && (f = d[P] || (d[P] = {}), c = f[d.uniqueID] || (f[d.uniqueID] = {}), c[e] = [W, x]), d !== t));) {
  2661. ;
  2662. }
  2663. return x -= i, x === r || x % r === 0 && x / r >= 0;
  2664. }
  2665. };
  2666. },
  2667. PSEUDO: function PSEUDO(e, n) {
  2668. var i,
  2669. o = T.pseudos[e] || T.setFilters[e.toLowerCase()] || t.error("unsupported pseudo: " + e);
  2670. return o[P] ? o(n) : o.length > 1 ? (i = [e, e, "", n], T.setFilters.hasOwnProperty(e.toLowerCase()) ? r(function (e, t) {
  2671. for (var r, i = o(e, n), a = i.length; a--;) {
  2672. r = ee(e, i[a]), e[r] = !(t[r] = i[a]);
  2673. }
  2674. }) : function (e) {
  2675. return o(e, 0, i);
  2676. }) : o;
  2677. }
  2678. },
  2679. pseudos: {
  2680. not: r(function (e) {
  2681. var t = [],
  2682. n = [],
  2683. i = k(e.replace(se, "$1"));
  2684. return i[P] ? r(function (e, t, n, r) {
  2685. for (var o, a = i(e, null, r, []), s = e.length; s--;) {
  2686. (o = a[s]) && (e[s] = !(t[s] = o));
  2687. }
  2688. }) : function (e, r, o) {
  2689. return t[0] = e, i(t, null, o, n), t[0] = null, !n.pop();
  2690. };
  2691. }),
  2692. has: r(function (e) {
  2693. return function (n) {
  2694. return t(e, n).length > 0;
  2695. };
  2696. }),
  2697. contains: r(function (e) {
  2698. return e = e.replace(be, we), function (t) {
  2699. return (t.textContent || t.innerText || C(t)).indexOf(e) > -1;
  2700. };
  2701. }),
  2702. lang: r(function (e) {
  2703. return de.test(e || "") || t.error("unsupported lang: " + e), e = e.replace(be, we).toLowerCase(), function (t) {
  2704. var n;
  2705. do {
  2706. if (n = _ ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
  2707. } while ((t = t.parentNode) && 1 === t.nodeType);
  2708. return !1;
  2709. };
  2710. }),
  2711. target: function target(t) {
  2712. var n = e.location && e.location.hash;
  2713. return n && n.slice(1) === t.id;
  2714. },
  2715. root: function root(e) {
  2716. return e === q;
  2717. },
  2718. focus: function focus(e) {
  2719. return e === H.activeElement && (!H.hasFocus || H.hasFocus()) && !!(e.type || e.href || ~e.tabIndex);
  2720. },
  2721. enabled: function enabled(e) {
  2722. return e.disabled === !1;
  2723. },
  2724. disabled: function disabled(e) {
  2725. return e.disabled === !0;
  2726. },
  2727. checked: function checked(e) {
  2728. var t = e.nodeName.toLowerCase();
  2729. return "input" === t && !!e.checked || "option" === t && !!e.selected;
  2730. },
  2731. selected: function selected(e) {
  2732. return e.parentNode && e.parentNode.selectedIndex, e.selected === !0;
  2733. },
  2734. empty: function empty(e) {
  2735. for (e = e.firstChild; e; e = e.nextSibling) {
  2736. if (e.nodeType < 6) return !1;
  2737. }
  2738. return !0;
  2739. },
  2740. parent: function parent(e) {
  2741. return !T.pseudos.empty(e);
  2742. },
  2743. header: function header(e) {
  2744. return ge.test(e.nodeName);
  2745. },
  2746. input: function input(e) {
  2747. return he.test(e.nodeName);
  2748. },
  2749. button: function button(e) {
  2750. var t = e.nodeName.toLowerCase();
  2751. return "input" === t && "button" === e.type || "button" === t;
  2752. },
  2753. text: function text(e) {
  2754. var t;
  2755. return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase());
  2756. },
  2757. first: l(function () {
  2758. return [0];
  2759. }),
  2760. last: l(function (e, t) {
  2761. return [t - 1];
  2762. }),
  2763. eq: l(function (e, t, n) {
  2764. return [n < 0 ? n + t : n];
  2765. }),
  2766. even: l(function (e, t) {
  2767. for (var n = 0; n < t; n += 2) {
  2768. e.push(n);
  2769. }
  2770. return e;
  2771. }),
  2772. odd: l(function (e, t) {
  2773. for (var n = 1; n < t; n += 2) {
  2774. e.push(n);
  2775. }
  2776. return e;
  2777. }),
  2778. lt: l(function (e, t, n) {
  2779. for (var r = n < 0 ? n + t : n; --r >= 0;) {
  2780. e.push(r);
  2781. }
  2782. return e;
  2783. }),
  2784. gt: l(function (e, t, n) {
  2785. for (var r = n < 0 ? n + t : n; ++r < t;) {
  2786. e.push(r);
  2787. }
  2788. return e;
  2789. })
  2790. }
  2791. }, T.pseudos.nth = T.pseudos.eq;
  2792. for (b in {
  2793. radio: !0,
  2794. checkbox: !0,
  2795. file: !0,
  2796. password: !0,
  2797. image: !0
  2798. }) {
  2799. T.pseudos[b] = s(b);
  2800. }
  2801. for (b in {
  2802. submit: !0,
  2803. reset: !0
  2804. }) {
  2805. T.pseudos[b] = u(b);
  2806. }
  2807. return f.prototype = T.filters = T.pseudos, T.setFilters = new f(), N = t.tokenize = function (e, n) {
  2808. var r,
  2809. i,
  2810. o,
  2811. a,
  2812. s,
  2813. u,
  2814. l,
  2815. c = z[e + " "];
  2816. if (c) return n ? 0 : c.slice(0);
  2817. for (s = e, u = [], l = T.preFilter; s;) {
  2818. r && !(i = ue.exec(s)) || (i && (s = s.slice(i[0].length) || s), u.push(o = [])), r = !1, (i = le.exec(s)) && (r = i.shift(), o.push({
  2819. value: r,
  2820. type: i[0].replace(se, " ")
  2821. }), s = s.slice(r.length));
  2822. for (a in T.filter) {
  2823. !(i = pe[a].exec(s)) || l[a] && !(i = l[a](i)) || (r = i.shift(), o.push({
  2824. value: r,
  2825. type: a,
  2826. matches: i
  2827. }), s = s.slice(r.length));
  2828. }
  2829. if (!r) break;
  2830. }
  2831. return n ? s.length : s ? t.error(e) : z(e, u).slice(0);
  2832. }, k = t.compile = function (e, t) {
  2833. var n,
  2834. r = [],
  2835. i = [],
  2836. o = X[e + " "];
  2837. if (!o) {
  2838. for (t || (t = N(e)), n = t.length; n--;) {
  2839. o = v(t[n]), o[P] ? r.push(o) : i.push(o);
  2840. }
  2841. o = X(e, x(i, r)), o.selector = e;
  2842. }
  2843. return o;
  2844. }, S = t.select = function (e, t, n, r) {
  2845. var i,
  2846. o,
  2847. a,
  2848. s,
  2849. u,
  2850. l = "function" == typeof e && e,
  2851. f = !r && N(e = l.selector || e);
  2852. if (n = n || [], 1 === f.length) {
  2853. if (o = f[0] = f[0].slice(0), o.length > 2 && "ID" === (a = o[0]).type && w.getById && 9 === t.nodeType && _ && T.relative[o[1].type]) {
  2854. if (t = (T.find.ID(a.matches[0].replace(be, we), t) || [])[0], !t) return n;
  2855. l && (t = t.parentNode), e = e.slice(o.shift().value.length);
  2856. }
  2857. for (i = pe.needsContext.test(e) ? 0 : o.length; i-- && (a = o[i], !T.relative[s = a.type]);) {
  2858. if ((u = T.find[s]) && (r = u(a.matches[0].replace(be, we), ve.test(o[0].type) && c(t.parentNode) || t))) {
  2859. if (o.splice(i, 1), e = r.length && d(o), !e) return Q.apply(n, r), n;
  2860. break;
  2861. }
  2862. }
  2863. }
  2864. return (l || k(e, f))(r, t, !_, n, !t || ve.test(e) && c(t.parentNode) || t), n;
  2865. }, w.sortStable = P.split("").sort(U).join("") === P, w.detectDuplicates = !!j, L(), w.sortDetached = i(function (e) {
  2866. return 1 & e.compareDocumentPosition(H.createElement("div"));
  2867. }), i(function (e) {
  2868. return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href");
  2869. }) || o("type|href|height|width", function (e, t, n) {
  2870. if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2);
  2871. }), w.attributes && i(function (e) {
  2872. return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value");
  2873. }) || o("value", function (e, t, n) {
  2874. if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue;
  2875. }), i(function (e) {
  2876. return null == e.getAttribute("disabled");
  2877. }) || o(te, function (e, t, n) {
  2878. var r;
  2879. if (!n) return e[t] === !0 ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null;
  2880. }), t;
  2881. }(e);
  2882. pe.find = ve, pe.expr = ve.selectors, pe.expr[":"] = pe.expr.pseudos, pe.uniqueSort = pe.unique = ve.uniqueSort, pe.text = ve.getText, pe.isXMLDoc = ve.isXML, pe.contains = ve.contains;
  2883. var xe = function xe(e, t, n) {
  2884. for (var r = [], i = void 0 !== n; (e = e[t]) && 9 !== e.nodeType;) {
  2885. if (1 === e.nodeType) {
  2886. if (i && pe(e).is(n)) break;
  2887. r.push(e);
  2888. }
  2889. }
  2890. return r;
  2891. },
  2892. be = function be(e, t) {
  2893. for (var n = []; e; e = e.nextSibling) {
  2894. 1 === e.nodeType && e !== t && n.push(e);
  2895. }
  2896. return n;
  2897. },
  2898. we = pe.expr.match.needsContext,
  2899. Te = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,
  2900. Ce = /^.[^:#\[\.,]*$/;
  2901. pe.filter = function (e, t, n) {
  2902. var r = t[0];
  2903. return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? pe.find.matchesSelector(r, e) ? [r] : [] : pe.find.matches(e, pe.grep(t, function (e) {
  2904. return 1 === e.nodeType;
  2905. }));
  2906. }, pe.fn.extend({
  2907. find: function find(e) {
  2908. var t,
  2909. n = [],
  2910. r = this,
  2911. i = r.length;
  2912. if ("string" != typeof e) return this.pushStack(pe(e).filter(function () {
  2913. for (t = 0; t < i; t++) {
  2914. if (pe.contains(r[t], this)) return !0;
  2915. }
  2916. }));
  2917. for (t = 0; t < i; t++) {
  2918. pe.find(e, r[t], n);
  2919. }
  2920. return n = this.pushStack(i > 1 ? pe.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n;
  2921. },
  2922. filter: function filter(e) {
  2923. return this.pushStack(r(this, e || [], !1));
  2924. },
  2925. not: function not(e) {
  2926. return this.pushStack(r(this, e || [], !0));
  2927. },
  2928. is: function is(e) {
  2929. return !!r(this, "string" == typeof e && we.test(e) ? pe(e) : e || [], !1).length;
  2930. }
  2931. });
  2932. var Ee,
  2933. Ne = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
  2934. ke = pe.fn.init = function (e, t, n) {
  2935. var r, i;
  2936. if (!e) return this;
  2937. if (n = n || Ee, "string" == typeof e) {
  2938. if (r = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : Ne.exec(e), !r || !r[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e);
  2939. if (r[1]) {
  2940. if (t = t instanceof pe ? t[0] : t, pe.merge(this, pe.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : re, !0)), Te.test(r[1]) && pe.isPlainObject(t)) for (r in t) {
  2941. pe.isFunction(this[r]) ? this[r](t[r]) : this.attr(r, t[r]);
  2942. }
  2943. return this;
  2944. }
  2945. if (i = re.getElementById(r[2]), i && i.parentNode) {
  2946. if (i.id !== r[2]) return Ee.find(e);
  2947. this.length = 1, this[0] = i;
  2948. }
  2949. return this.context = re, this.selector = e, this;
  2950. }
  2951. return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : pe.isFunction(e) ? "undefined" != typeof n.ready ? n.ready(e) : e(pe) : (void 0 !== e.selector && (this.selector = e.selector, this.context = e.context), pe.makeArray(e, this));
  2952. };
  2953. ke.prototype = pe.fn, Ee = pe(re);
  2954. var Se = /^(?:parents|prev(?:Until|All))/,
  2955. Ae = {
  2956. children: !0,
  2957. contents: !0,
  2958. next: !0,
  2959. prev: !0
  2960. };
  2961. pe.fn.extend({
  2962. has: function has(e) {
  2963. var t,
  2964. n = pe(e, this),
  2965. r = n.length;
  2966. return this.filter(function () {
  2967. for (t = 0; t < r; t++) {
  2968. if (pe.contains(this, n[t])) return !0;
  2969. }
  2970. });
  2971. },
  2972. closest: function closest(e, t) {
  2973. for (var n, r = 0, i = this.length, o = [], a = we.test(e) || "string" != typeof e ? pe(e, t || this.context) : 0; r < i; r++) {
  2974. for (n = this[r]; n && n !== t; n = n.parentNode) {
  2975. if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && pe.find.matchesSelector(n, e))) {
  2976. o.push(n);
  2977. break;
  2978. }
  2979. }
  2980. }
  2981. return this.pushStack(o.length > 1 ? pe.uniqueSort(o) : o);
  2982. },
  2983. index: function index(e) {
  2984. return e ? "string" == typeof e ? pe.inArray(this[0], pe(e)) : pe.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1;
  2985. },
  2986. add: function add(e, t) {
  2987. return this.pushStack(pe.uniqueSort(pe.merge(this.get(), pe(e, t))));
  2988. },
  2989. addBack: function addBack(e) {
  2990. return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
  2991. }
  2992. }), pe.each({
  2993. parent: function parent(e) {
  2994. var t = e.parentNode;
  2995. return t && 11 !== t.nodeType ? t : null;
  2996. },
  2997. parents: function parents(e) {
  2998. return xe(e, "parentNode");
  2999. },
  3000. parentsUntil: function parentsUntil(e, t, n) {
  3001. return xe(e, "parentNode", n);
  3002. },
  3003. next: function next(e) {
  3004. return i(e, "nextSibling");
  3005. },
  3006. prev: function prev(e) {
  3007. return i(e, "previousSibling");
  3008. },
  3009. nextAll: function nextAll(e) {
  3010. return xe(e, "nextSibling");
  3011. },
  3012. prevAll: function prevAll(e) {
  3013. return xe(e, "previousSibling");
  3014. },
  3015. nextUntil: function nextUntil(e, t, n) {
  3016. return xe(e, "nextSibling", n);
  3017. },
  3018. prevUntil: function prevUntil(e, t, n) {
  3019. return xe(e, "previousSibling", n);
  3020. },
  3021. siblings: function siblings(e) {
  3022. return be((e.parentNode || {}).firstChild, e);
  3023. },
  3024. children: function children(e) {
  3025. return be(e.firstChild);
  3026. },
  3027. contents: function contents(e) {
  3028. return pe.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : pe.merge([], e.childNodes);
  3029. }
  3030. }, function (e, t) {
  3031. pe.fn[e] = function (n, r) {
  3032. var i = pe.map(this, t, n);
  3033. return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = pe.filter(r, i)), this.length > 1 && (Ae[e] || (i = pe.uniqueSort(i)), Se.test(e) && (i = i.reverse())), this.pushStack(i);
  3034. };
  3035. });
  3036. var De = /\S+/g;
  3037. pe.Callbacks = function (e) {
  3038. e = "string" == typeof e ? o(e) : pe.extend({}, e);
  3039. var t,
  3040. n,
  3041. r,
  3042. i,
  3043. a = [],
  3044. s = [],
  3045. u = -1,
  3046. l = function l() {
  3047. for (i = e.once, r = t = !0; s.length; u = -1) {
  3048. for (n = s.shift(); ++u < a.length;) {
  3049. a[u].apply(n[0], n[1]) === !1 && e.stopOnFalse && (u = a.length, n = !1);
  3050. }
  3051. }
  3052. e.memory || (n = !1), t = !1, i && (a = n ? [] : "");
  3053. },
  3054. c = {
  3055. add: function add() {
  3056. return a && (n && !t && (u = a.length - 1, s.push(n)), function r(t) {
  3057. pe.each(t, function (t, n) {
  3058. pe.isFunction(n) ? e.unique && c.has(n) || a.push(n) : n && n.length && "string" !== pe.type(n) && r(n);
  3059. });
  3060. }(arguments), n && !t && l()), this;
  3061. },
  3062. remove: function remove() {
  3063. return pe.each(arguments, function (e, t) {
  3064. for (var n; (n = pe.inArray(t, a, n)) > -1;) {
  3065. a.splice(n, 1), n <= u && u--;
  3066. }
  3067. }), this;
  3068. },
  3069. has: function has(e) {
  3070. return e ? pe.inArray(e, a) > -1 : a.length > 0;
  3071. },
  3072. empty: function empty() {
  3073. return a && (a = []), this;
  3074. },
  3075. disable: function disable() {
  3076. return i = s = [], a = n = "", this;
  3077. },
  3078. disabled: function disabled() {
  3079. return !a;
  3080. },
  3081. lock: function lock() {
  3082. return i = !0, n || c.disable(), this;
  3083. },
  3084. locked: function locked() {
  3085. return !!i;
  3086. },
  3087. fireWith: function fireWith(e, n) {
  3088. return i || (n = n || [], n = [e, n.slice ? n.slice() : n], s.push(n), t || l()), this;
  3089. },
  3090. fire: function fire() {
  3091. return c.fireWith(this, arguments), this;
  3092. },
  3093. fired: function fired() {
  3094. return !!r;
  3095. }
  3096. };
  3097. return c;
  3098. }, pe.extend({
  3099. Deferred: function Deferred(e) {
  3100. var t = [["resolve", "done", pe.Callbacks("once memory"), "resolved"], ["reject", "fail", pe.Callbacks("once memory"), "rejected"], ["notify", "progress", pe.Callbacks("memory")]],
  3101. n = "pending",
  3102. r = {
  3103. state: function state() {
  3104. return n;
  3105. },
  3106. always: function always() {
  3107. return i.done(arguments).fail(arguments), this;
  3108. },
  3109. then: function then() {
  3110. var e = arguments;
  3111. return pe.Deferred(function (n) {
  3112. pe.each(t, function (t, o) {
  3113. var a = pe.isFunction(e[t]) && e[t];
  3114. i[o[1]](function () {
  3115. var e = a && a.apply(this, arguments);
  3116. e && pe.isFunction(e.promise) ? e.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[o[0] + "With"](this === r ? n.promise() : this, a ? [e] : arguments);
  3117. });
  3118. }), e = null;
  3119. }).promise();
  3120. },
  3121. promise: function promise(e) {
  3122. return null != e ? pe.extend(e, r) : r;
  3123. }
  3124. },
  3125. i = {};
  3126. return r.pipe = r.then, pe.each(t, function (e, o) {
  3127. var a = o[2],
  3128. s = o[3];
  3129. r[o[1]] = a.add, s && a.add(function () {
  3130. n = s;
  3131. }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function () {
  3132. return i[o[0] + "With"](this === i ? r : this, arguments), this;
  3133. }, i[o[0] + "With"] = a.fireWith;
  3134. }), r.promise(i), e && e.call(i, i), i;
  3135. },
  3136. when: function when(e) {
  3137. var t,
  3138. n,
  3139. r,
  3140. i = 0,
  3141. o = ie.call(arguments),
  3142. a = o.length,
  3143. s = 1 !== a || e && pe.isFunction(e.promise) ? a : 0,
  3144. u = 1 === s ? e : pe.Deferred(),
  3145. l = function l(e, n, r) {
  3146. return function (i) {
  3147. n[e] = this, r[e] = arguments.length > 1 ? ie.call(arguments) : i, r === t ? u.notifyWith(n, r) : --s || u.resolveWith(n, r);
  3148. };
  3149. };
  3150. if (a > 1) for (t = new Array(a), n = new Array(a), r = new Array(a); i < a; i++) {
  3151. o[i] && pe.isFunction(o[i].promise) ? o[i].promise().progress(l(i, n, t)).done(l(i, r, o)).fail(u.reject) : --s;
  3152. }
  3153. return s || u.resolveWith(r, o), u.promise();
  3154. }
  3155. });
  3156. var je;
  3157. pe.fn.ready = function (e) {
  3158. return pe.ready.promise().done(e), this;
  3159. }, pe.extend({
  3160. isReady: !1,
  3161. readyWait: 1,
  3162. holdReady: function holdReady(e) {
  3163. e ? pe.readyWait++ : pe.ready(!0);
  3164. },
  3165. ready: function ready(e) {
  3166. (e === !0 ? --pe.readyWait : pe.isReady) || (pe.isReady = !0, e !== !0 && --pe.readyWait > 0 || (je.resolveWith(re, [pe]), pe.fn.triggerHandler && (pe(re).triggerHandler("ready"), pe(re).off("ready"))));
  3167. }
  3168. }), pe.ready.promise = function (t) {
  3169. if (!je) if (je = pe.Deferred(), "complete" === re.readyState || "loading" !== re.readyState && !re.documentElement.doScroll) e.setTimeout(pe.ready);else if (re.addEventListener) re.addEventListener("DOMContentLoaded", s), e.addEventListener("load", s);else {
  3170. re.attachEvent("onreadystatechange", s), e.attachEvent("onload", s);
  3171. var n = !1;
  3172. try {
  3173. n = null == e.frameElement && re.documentElement;
  3174. } catch (r) {}
  3175. n && n.doScroll && !function i() {
  3176. if (!pe.isReady) {
  3177. try {
  3178. n.doScroll("left");
  3179. } catch (t) {
  3180. return e.setTimeout(i, 50);
  3181. }
  3182. a(), pe.ready();
  3183. }
  3184. }();
  3185. }
  3186. return je.promise(t);
  3187. }, pe.ready.promise();
  3188. var Le;
  3189. for (Le in pe(fe)) {
  3190. break;
  3191. }
  3192. fe.ownFirst = "0" === Le, fe.inlineBlockNeedsLayout = !1, pe(function () {
  3193. var e, t, n, r;
  3194. n = re.getElementsByTagName("body")[0], n && n.style && (t = re.createElement("div"), r = re.createElement("div"), r.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", n.appendChild(r).appendChild(t), "undefined" != typeof t.style.zoom && (t.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1", fe.inlineBlockNeedsLayout = e = 3 === t.offsetWidth, e && (n.style.zoom = 1)), n.removeChild(r));
  3195. }), function () {
  3196. var e = re.createElement("div");
  3197. fe.deleteExpando = !0;
  3198. try {
  3199. delete e.test;
  3200. } catch (t) {
  3201. fe.deleteExpando = !1;
  3202. }
  3203. e = null;
  3204. }();
  3205. var He = function He(e) {
  3206. var t = pe.noData[(e.nodeName + " ").toLowerCase()],
  3207. n = +e.nodeType || 1;
  3208. return (1 === n || 9 === n) && (!t || t !== !0 && e.getAttribute("classid") === t);
  3209. },
  3210. qe = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  3211. _e = /([A-Z])/g;
  3212. pe.extend({
  3213. cache: {},
  3214. noData: {
  3215. "applet ": !0,
  3216. "embed ": !0,
  3217. "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  3218. },
  3219. hasData: function hasData(e) {
  3220. return e = e.nodeType ? pe.cache[e[pe.expando]] : e[pe.expando], !!e && !l(e);
  3221. },
  3222. data: function data(e, t, n) {
  3223. return c(e, t, n);
  3224. },
  3225. removeData: function removeData(e, t) {
  3226. return f(e, t);
  3227. },
  3228. _data: function _data(e, t, n) {
  3229. return c(e, t, n, !0);
  3230. },
  3231. _removeData: function _removeData(e, t) {
  3232. return f(e, t, !0);
  3233. }
  3234. }), pe.fn.extend({
  3235. data: function data(e, t) {
  3236. var n,
  3237. r,
  3238. i,
  3239. o = this[0],
  3240. a = o && o.attributes;
  3241. if (void 0 === e) {
  3242. if (this.length && (i = pe.data(o), 1 === o.nodeType && !pe._data(o, "parsedAttrs"))) {
  3243. for (n = a.length; n--;) {
  3244. a[n] && (r = a[n].name, 0 === r.indexOf("data-") && (r = pe.camelCase(r.slice(5)), u(o, r, i[r])));
  3245. }
  3246. pe._data(o, "parsedAttrs", !0);
  3247. }
  3248. return i;
  3249. }
  3250. return "object" == _typeof(e) ? this.each(function () {
  3251. pe.data(this, e);
  3252. }) : arguments.length > 1 ? this.each(function () {
  3253. pe.data(this, e, t);
  3254. }) : o ? u(o, e, pe.data(o, e)) : void 0;
  3255. },
  3256. removeData: function removeData(e) {
  3257. return this.each(function () {
  3258. pe.removeData(this, e);
  3259. });
  3260. }
  3261. }), pe.extend({
  3262. queue: function queue(e, t, n) {
  3263. var r;
  3264. if (e) return t = (t || "fx") + "queue", r = pe._data(e, t), n && (!r || pe.isArray(n) ? r = pe._data(e, t, pe.makeArray(n)) : r.push(n)), r || [];
  3265. },
  3266. dequeue: function dequeue(e, t) {
  3267. t = t || "fx";
  3268. var n = pe.queue(e, t),
  3269. r = n.length,
  3270. i = n.shift(),
  3271. o = pe._queueHooks(e, t),
  3272. a = function a() {
  3273. pe.dequeue(e, t);
  3274. };
  3275. "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire();
  3276. },
  3277. _queueHooks: function _queueHooks(e, t) {
  3278. var n = t + "queueHooks";
  3279. return pe._data(e, n) || pe._data(e, n, {
  3280. empty: pe.Callbacks("once memory").add(function () {
  3281. pe._removeData(e, t + "queue"), pe._removeData(e, n);
  3282. })
  3283. });
  3284. }
  3285. }), pe.fn.extend({
  3286. queue: function queue(e, t) {
  3287. var n = 2;
  3288. return "string" != typeof e && (t = e, e = "fx", n--), arguments.length < n ? pe.queue(this[0], e) : void 0 === t ? this : this.each(function () {
  3289. var n = pe.queue(this, e, t);
  3290. pe._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && pe.dequeue(this, e);
  3291. });
  3292. },
  3293. dequeue: function dequeue(e) {
  3294. return this.each(function () {
  3295. pe.dequeue(this, e);
  3296. });
  3297. },
  3298. clearQueue: function clearQueue(e) {
  3299. return this.queue(e || "fx", []);
  3300. },
  3301. promise: function promise(e, t) {
  3302. var n,
  3303. r = 1,
  3304. i = pe.Deferred(),
  3305. o = this,
  3306. a = this.length,
  3307. s = function s() {
  3308. --r || i.resolveWith(o, [o]);
  3309. };
  3310. for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; a--;) {
  3311. n = pe._data(o[a], e + "queueHooks"), n && n.empty && (r++, n.empty.add(s));
  3312. }
  3313. return s(), i.promise(t);
  3314. }
  3315. }), function () {
  3316. var e;
  3317. fe.shrinkWrapBlocks = function () {
  3318. if (null != e) return e;
  3319. e = !1;
  3320. var t, n, r;
  3321. return n = re.getElementsByTagName("body")[0], n && n.style ? (t = re.createElement("div"), r = re.createElement("div"), r.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", n.appendChild(r).appendChild(t), "undefined" != typeof t.style.zoom && (t.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1", t.appendChild(re.createElement("div")).style.width = "5px", e = 3 !== t.offsetWidth), n.removeChild(r), e) : void 0;
  3322. };
  3323. }();
  3324. var Fe = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  3325. Me = new RegExp("^(?:([+-])=|)(" + Fe + ")([a-z%]*)$", "i"),
  3326. Oe = ["Top", "Right", "Bottom", "Left"],
  3327. Re = function Re(e, t) {
  3328. return e = t || e, "none" === pe.css(e, "display") || !pe.contains(e.ownerDocument, e);
  3329. },
  3330. Pe = function Pe(e, t, n, r, i, o, a) {
  3331. var s = 0,
  3332. u = e.length,
  3333. l = null == n;
  3334. if ("object" === pe.type(n)) {
  3335. i = !0;
  3336. for (s in n) {
  3337. Pe(e, t, s, n[s], !0, o, a);
  3338. }
  3339. } else if (void 0 !== r && (i = !0, pe.isFunction(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function t(e, _t2, n) {
  3340. return l.call(pe(e), n);
  3341. })), t)) for (; s < u; s++) {
  3342. t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n)));
  3343. }
  3344. return i ? e : l ? t.call(e) : u ? t(e[0], n) : o;
  3345. },
  3346. Be = /^(?:checkbox|radio)$/i,
  3347. We = /<([\w:-]+)/,
  3348. Ie = /^$|\/(?:java|ecma)script/i,
  3349. $e = /^\s+/,
  3350. ze = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";
  3351. !function () {
  3352. var e = re.createElement("div"),
  3353. t = re.createDocumentFragment(),
  3354. n = re.createElement("input");
  3355. e.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", fe.leadingWhitespace = 3 === e.firstChild.nodeType, fe.tbody = !e.getElementsByTagName("tbody").length, fe.htmlSerialize = !!e.getElementsByTagName("link").length, fe.html5Clone = "<:nav></:nav>" !== re.createElement("nav").cloneNode(!0).outerHTML, n.type = "checkbox", n.checked = !0, t.appendChild(n), fe.appendChecked = n.checked, e.innerHTML = "<textarea>x</textarea>", fe.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue, t.appendChild(e), n = re.createElement("input"), n.setAttribute("type", "radio"), n.setAttribute("checked", "checked"), n.setAttribute("name", "t"), e.appendChild(n), fe.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, fe.noCloneEvent = !!e.addEventListener, e[pe.expando] = 1, fe.attributes = !e.getAttribute(pe.expando);
  3356. }();
  3357. var Xe = {
  3358. option: [1, "<select multiple='multiple'>", "</select>"],
  3359. legend: [1, "<fieldset>", "</fieldset>"],
  3360. area: [1, "<map>", "</map>"],
  3361. param: [1, "<object>", "</object>"],
  3362. thead: [1, "<table>", "</table>"],
  3363. tr: [2, "<table><tbody>", "</tbody></table>"],
  3364. col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  3365. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  3366. _default: fe.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
  3367. };
  3368. Xe.optgroup = Xe.option, Xe.tbody = Xe.tfoot = Xe.colgroup = Xe.caption = Xe.thead, Xe.th = Xe.td;
  3369. var Ue = /<|&#?\w+;/,
  3370. Ve = /<tbody/i;
  3371. !function () {
  3372. var t,
  3373. n,
  3374. r = re.createElement("div");
  3375. for (t in {
  3376. submit: !0,
  3377. change: !0,
  3378. focusin: !0
  3379. }) {
  3380. n = "on" + t, (fe[t] = n in e) || (r.setAttribute(n, "t"), fe[t] = r.attributes[n].expando === !1);
  3381. }
  3382. r = null;
  3383. }();
  3384. var Ye = /^(?:input|select|textarea)$/i,
  3385. Je = /^key/,
  3386. Ge = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
  3387. Ke = /^(?:focusinfocus|focusoutblur)$/,
  3388. Qe = /^([^.]*)(?:\.(.+)|)/;
  3389. pe.event = {
  3390. global: {},
  3391. add: function add(e, t, n, r, i) {
  3392. var o,
  3393. a,
  3394. s,
  3395. u,
  3396. l,
  3397. c,
  3398. f,
  3399. d,
  3400. p,
  3401. h,
  3402. g,
  3403. m = pe._data(e);
  3404. if (m) {
  3405. for (n.handler && (u = n, n = u.handler, i = u.selector), n.guid || (n.guid = pe.guid++), (a = m.events) || (a = m.events = {}), (c = m.handle) || (c = m.handle = function (e) {
  3406. return "undefined" == typeof pe || e && pe.event.triggered === e.type ? void 0 : pe.event.dispatch.apply(c.elem, arguments);
  3407. }, c.elem = e), t = (t || "").match(De) || [""], s = t.length; s--;) {
  3408. o = Qe.exec(t[s]) || [], p = g = o[1], h = (o[2] || "").split(".").sort(), p && (l = pe.event.special[p] || {}, p = (i ? l.delegateType : l.bindType) || p, l = pe.event.special[p] || {}, f = pe.extend({
  3409. type: p,
  3410. origType: g,
  3411. data: r,
  3412. handler: n,
  3413. guid: n.guid,
  3414. selector: i,
  3415. needsContext: i && pe.expr.match.needsContext.test(i),
  3416. namespace: h.join(".")
  3417. }, u), (d = a[p]) || (d = a[p] = [], d.delegateCount = 0, l.setup && l.setup.call(e, r, h, c) !== !1 || (e.addEventListener ? e.addEventListener(p, c, !1) : e.attachEvent && e.attachEvent("on" + p, c))), l.add && (l.add.call(e, f), f.handler.guid || (f.handler.guid = n.guid)), i ? d.splice(d.delegateCount++, 0, f) : d.push(f), pe.event.global[p] = !0);
  3418. }
  3419. e = null;
  3420. }
  3421. },
  3422. remove: function remove(e, t, n, r, i) {
  3423. var o,
  3424. a,
  3425. s,
  3426. u,
  3427. l,
  3428. c,
  3429. f,
  3430. d,
  3431. p,
  3432. h,
  3433. g,
  3434. m = pe.hasData(e) && pe._data(e);
  3435. if (m && (c = m.events)) {
  3436. for (t = (t || "").match(De) || [""], l = t.length; l--;) {
  3437. if (s = Qe.exec(t[l]) || [], p = g = s[1], h = (s[2] || "").split(".").sort(), p) {
  3438. for (f = pe.event.special[p] || {}, p = (r ? f.delegateType : f.bindType) || p, d = c[p] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = o = d.length; o--;) {
  3439. a = d[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (d.splice(o, 1), a.selector && d.delegateCount--, f.remove && f.remove.call(e, a));
  3440. }
  3441. u && !d.length && (f.teardown && f.teardown.call(e, h, m.handle) !== !1 || pe.removeEvent(e, p, m.handle), delete c[p]);
  3442. } else for (p in c) {
  3443. pe.event.remove(e, p + t[l], n, r, !0);
  3444. }
  3445. }
  3446. pe.isEmptyObject(c) && (delete m.handle, pe._removeData(e, "events"));
  3447. }
  3448. },
  3449. trigger: function trigger(t, n, r, i) {
  3450. var o,
  3451. a,
  3452. s,
  3453. u,
  3454. l,
  3455. c,
  3456. f,
  3457. d = [r || re],
  3458. p = ce.call(t, "type") ? t.type : t,
  3459. h = ce.call(t, "namespace") ? t.namespace.split(".") : [];
  3460. if (s = c = r = r || re, 3 !== r.nodeType && 8 !== r.nodeType && !Ke.test(p + pe.event.triggered) && (p.indexOf(".") > -1 && (h = p.split("."), p = h.shift(), h.sort()), a = p.indexOf(":") < 0 && "on" + p, t = t[pe.expando] ? t : new pe.Event(p, "object" == _typeof(t) && t), t.isTrigger = i ? 2 : 3, t.namespace = h.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), n = null == n ? [t] : pe.makeArray(n, [t]), l = pe.event.special[p] || {}, i || !l.trigger || l.trigger.apply(r, n) !== !1)) {
  3461. if (!i && !l.noBubble && !pe.isWindow(r)) {
  3462. for (u = l.delegateType || p, Ke.test(u + p) || (s = s.parentNode); s; s = s.parentNode) {
  3463. d.push(s), c = s;
  3464. }
  3465. c === (r.ownerDocument || re) && d.push(c.defaultView || c.parentWindow || e);
  3466. }
  3467. for (f = 0; (s = d[f++]) && !t.isPropagationStopped();) {
  3468. t.type = f > 1 ? u : l.bindType || p, o = (pe._data(s, "events") || {})[t.type] && pe._data(s, "handle"), o && o.apply(s, n), o = a && s[a], o && o.apply && He(s) && (t.result = o.apply(s, n), t.result === !1 && t.preventDefault());
  3469. }
  3470. if (t.type = p, !i && !t.isDefaultPrevented() && (!l._default || l._default.apply(d.pop(), n) === !1) && He(r) && a && r[p] && !pe.isWindow(r)) {
  3471. c = r[a], c && (r[a] = null), pe.event.triggered = p;
  3472. try {
  3473. r[p]();
  3474. } catch (g) {}
  3475. pe.event.triggered = void 0, c && (r[a] = c);
  3476. }
  3477. return t.result;
  3478. }
  3479. },
  3480. dispatch: function dispatch(e) {
  3481. e = pe.event.fix(e);
  3482. var t,
  3483. n,
  3484. r,
  3485. i,
  3486. o,
  3487. a = [],
  3488. s = ie.call(arguments),
  3489. u = (pe._data(this, "events") || {})[e.type] || [],
  3490. l = pe.event.special[e.type] || {};
  3491. if (s[0] = e, e.delegateTarget = this, !l.preDispatch || l.preDispatch.call(this, e) !== !1) {
  3492. for (a = pe.event.handlers.call(this, e, u), t = 0; (i = a[t++]) && !e.isPropagationStopped();) {
  3493. for (e.currentTarget = i.elem, n = 0; (o = i.handlers[n++]) && !e.isImmediatePropagationStopped();) {
  3494. e.rnamespace && !e.rnamespace.test(o.namespace) || (e.handleObj = o, e.data = o.data, r = ((pe.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, s), void 0 !== r && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()));
  3495. }
  3496. }
  3497. return l.postDispatch && l.postDispatch.call(this, e), e.result;
  3498. }
  3499. },
  3500. handlers: function handlers(e, t) {
  3501. var n,
  3502. r,
  3503. i,
  3504. o,
  3505. a = [],
  3506. s = t.delegateCount,
  3507. u = e.target;
  3508. if (s && u.nodeType && ("click" !== e.type || isNaN(e.button) || e.button < 1)) for (; u != this; u = u.parentNode || this) {
  3509. if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
  3510. for (r = [], n = 0; n < s; n++) {
  3511. o = t[n], i = o.selector + " ", void 0 === r[i] && (r[i] = o.needsContext ? pe(i, this).index(u) > -1 : pe.find(i, this, null, [u]).length), r[i] && r.push(o);
  3512. }
  3513. r.length && a.push({
  3514. elem: u,
  3515. handlers: r
  3516. });
  3517. }
  3518. }
  3519. return s < t.length && a.push({
  3520. elem: this,
  3521. handlers: t.slice(s)
  3522. }), a;
  3523. },
  3524. fix: function fix(e) {
  3525. if (e[pe.expando]) return e;
  3526. var t,
  3527. n,
  3528. r,
  3529. i = e.type,
  3530. o = e,
  3531. a = this.fixHooks[i];
  3532. for (a || (this.fixHooks[i] = a = Ge.test(i) ? this.mouseHooks : Je.test(i) ? this.keyHooks : {}), r = a.props ? this.props.concat(a.props) : this.props, e = new pe.Event(o), t = r.length; t--;) {
  3533. n = r[t], e[n] = o[n];
  3534. }
  3535. return e.target || (e.target = o.srcElement || re), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, a.filter ? a.filter(e, o) : e;
  3536. },
  3537. props: "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
  3538. fixHooks: {},
  3539. keyHooks: {
  3540. props: "char charCode key keyCode".split(" "),
  3541. filter: function filter(e, t) {
  3542. return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e;
  3543. }
  3544. },
  3545. mouseHooks: {
  3546. props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
  3547. filter: function filter(e, t) {
  3548. var n,
  3549. r,
  3550. i,
  3551. o = t.button,
  3552. a = t.fromElement;
  3553. return null == e.pageX && null != t.clientX && (r = e.target.ownerDocument || re, i = r.documentElement, n = r.body, e.pageX = t.clientX + (i && i.scrollLeft || n && n.scrollLeft || 0) - (i && i.clientLeft || n && n.clientLeft || 0), e.pageY = t.clientY + (i && i.scrollTop || n && n.scrollTop || 0) - (i && i.clientTop || n && n.clientTop || 0)), !e.relatedTarget && a && (e.relatedTarget = a === e.target ? t.toElement : a), e.which || void 0 === o || (e.which = 1 & o ? 1 : 2 & o ? 3 : 4 & o ? 2 : 0), e;
  3554. }
  3555. },
  3556. special: {
  3557. load: {
  3558. noBubble: !0
  3559. },
  3560. focus: {
  3561. trigger: function trigger() {
  3562. if (this !== b() && this.focus) try {
  3563. return this.focus(), !1;
  3564. } catch (e) {}
  3565. },
  3566. delegateType: "focusin"
  3567. },
  3568. blur: {
  3569. trigger: function trigger() {
  3570. if (this === b() && this.blur) return this.blur(), !1;
  3571. },
  3572. delegateType: "focusout"
  3573. },
  3574. click: {
  3575. trigger: function trigger() {
  3576. if (pe.nodeName(this, "input") && "checkbox" === this.type && this.click) return this.click(), !1;
  3577. },
  3578. _default: function _default(e) {
  3579. return pe.nodeName(e.target, "a");
  3580. }
  3581. },
  3582. beforeunload: {
  3583. postDispatch: function postDispatch(e) {
  3584. void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result);
  3585. }
  3586. }
  3587. },
  3588. simulate: function simulate(e, t, n) {
  3589. var r = pe.extend(new pe.Event(), n, {
  3590. type: e,
  3591. isSimulated: !0
  3592. });
  3593. pe.event.trigger(r, null, t), r.isDefaultPrevented() && n.preventDefault();
  3594. }
  3595. }, pe.removeEvent = re.removeEventListener ? function (e, t, n) {
  3596. e.removeEventListener && e.removeEventListener(t, n);
  3597. } : function (e, t, n) {
  3598. var r = "on" + t;
  3599. e.detachEvent && ("undefined" == typeof e[r] && (e[r] = null), e.detachEvent(r, n));
  3600. }, pe.Event = function (e, t) {
  3601. return this instanceof pe.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && e.returnValue === !1 ? v : x) : this.type = e, t && pe.extend(this, t), this.timeStamp = e && e.timeStamp || pe.now(), void (this[pe.expando] = !0)) : new pe.Event(e, t);
  3602. }, pe.Event.prototype = {
  3603. constructor: pe.Event,
  3604. isDefaultPrevented: x,
  3605. isPropagationStopped: x,
  3606. isImmediatePropagationStopped: x,
  3607. preventDefault: function preventDefault() {
  3608. var e = this.originalEvent;
  3609. this.isDefaultPrevented = v, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1);
  3610. },
  3611. stopPropagation: function stopPropagation() {
  3612. var e = this.originalEvent;
  3613. this.isPropagationStopped = v, e && !this.isSimulated && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0);
  3614. },
  3615. stopImmediatePropagation: function stopImmediatePropagation() {
  3616. var e = this.originalEvent;
  3617. this.isImmediatePropagationStopped = v, e && e.stopImmediatePropagation && e.stopImmediatePropagation(), this.stopPropagation();
  3618. }
  3619. }, pe.each({
  3620. mouseenter: "mouseover",
  3621. mouseleave: "mouseout",
  3622. pointerenter: "pointerover",
  3623. pointerleave: "pointerout"
  3624. }, function (e, t) {
  3625. pe.event.special[e] = {
  3626. delegateType: t,
  3627. bindType: t,
  3628. handle: function handle(e) {
  3629. var n,
  3630. r = this,
  3631. i = e.relatedTarget,
  3632. o = e.handleObj;
  3633. return i && (i === r || pe.contains(r, i)) || (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n;
  3634. }
  3635. };
  3636. }), fe.submit || (pe.event.special.submit = {
  3637. setup: function setup() {
  3638. return !pe.nodeName(this, "form") && void pe.event.add(this, "click._submit keypress._submit", function (e) {
  3639. var t = e.target,
  3640. n = pe.nodeName(t, "input") || pe.nodeName(t, "button") ? pe.prop(t, "form") : void 0;
  3641. n && !pe._data(n, "submit") && (pe.event.add(n, "submit._submit", function (e) {
  3642. e._submitBubble = !0;
  3643. }), pe._data(n, "submit", !0));
  3644. });
  3645. },
  3646. postDispatch: function postDispatch(e) {
  3647. e._submitBubble && (delete e._submitBubble, this.parentNode && !e.isTrigger && pe.event.simulate("submit", this.parentNode, e));
  3648. },
  3649. teardown: function teardown() {
  3650. return !pe.nodeName(this, "form") && void pe.event.remove(this, "._submit");
  3651. }
  3652. }), fe.change || (pe.event.special.change = {
  3653. setup: function setup() {
  3654. return Ye.test(this.nodeName) ? ("checkbox" !== this.type && "radio" !== this.type || (pe.event.add(this, "propertychange._change", function (e) {
  3655. "checked" === e.originalEvent.propertyName && (this._justChanged = !0);
  3656. }), pe.event.add(this, "click._change", function (e) {
  3657. this._justChanged && !e.isTrigger && (this._justChanged = !1), pe.event.simulate("change", this, e);
  3658. })), !1) : void pe.event.add(this, "beforeactivate._change", function (e) {
  3659. var t = e.target;
  3660. Ye.test(t.nodeName) && !pe._data(t, "change") && (pe.event.add(t, "change._change", function (e) {
  3661. !this.parentNode || e.isSimulated || e.isTrigger || pe.event.simulate("change", this.parentNode, e);
  3662. }), pe._data(t, "change", !0));
  3663. });
  3664. },
  3665. handle: function handle(e) {
  3666. var t = e.target;
  3667. if (this !== t || e.isSimulated || e.isTrigger || "radio" !== t.type && "checkbox" !== t.type) return e.handleObj.handler.apply(this, arguments);
  3668. },
  3669. teardown: function teardown() {
  3670. return pe.event.remove(this, "._change"), !Ye.test(this.nodeName);
  3671. }
  3672. }), fe.focusin || pe.each({
  3673. focus: "focusin",
  3674. blur: "focusout"
  3675. }, function (e, t) {
  3676. var n = function n(e) {
  3677. pe.event.simulate(t, e.target, pe.event.fix(e));
  3678. };
  3679. pe.event.special[t] = {
  3680. setup: function setup() {
  3681. var r = this.ownerDocument || this,
  3682. i = pe._data(r, t);
  3683. i || r.addEventListener(e, n, !0), pe._data(r, t, (i || 0) + 1);
  3684. },
  3685. teardown: function teardown() {
  3686. var r = this.ownerDocument || this,
  3687. i = pe._data(r, t) - 1;
  3688. i ? pe._data(r, t, i) : (r.removeEventListener(e, n, !0), pe._removeData(r, t));
  3689. }
  3690. };
  3691. }), pe.fn.extend({
  3692. on: function on(e, t, n, r) {
  3693. return w(this, e, t, n, r);
  3694. },
  3695. one: function one(e, t, n, r) {
  3696. return w(this, e, t, n, r, 1);
  3697. },
  3698. off: function off(e, t, n) {
  3699. var r, i;
  3700. if (e && e.preventDefault && e.handleObj) return r = e.handleObj, pe(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this;
  3701. if ("object" == _typeof(e)) {
  3702. for (i in e) {
  3703. this.off(i, t, e[i]);
  3704. }
  3705. return this;
  3706. }
  3707. return t !== !1 && "function" != typeof t || (n = t, t = void 0), n === !1 && (n = x), this.each(function () {
  3708. pe.event.remove(this, e, n, t);
  3709. });
  3710. },
  3711. trigger: function trigger(e, t) {
  3712. return this.each(function () {
  3713. pe.event.trigger(e, t, this);
  3714. });
  3715. },
  3716. triggerHandler: function triggerHandler(e, t) {
  3717. var n = this[0];
  3718. if (n) return pe.event.trigger(e, t, n, !0);
  3719. }
  3720. });
  3721. var Ze = / jQuery\d+="(?:null|\d+)"/g,
  3722. et = new RegExp("<(?:" + ze + ")[\\s/>]", "i"),
  3723. tt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
  3724. nt = /<script|<style|<link/i,
  3725. rt = /checked\s*(?:[^=]|=\s*.checked.)/i,
  3726. it = /^true\/(.*)/,
  3727. ot = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
  3728. at = p(re),
  3729. st = at.appendChild(re.createElement("div"));
  3730. pe.extend({
  3731. htmlPrefilter: function htmlPrefilter(e) {
  3732. return e.replace(tt, "<$1></$2>");
  3733. },
  3734. clone: function clone(e, t, n) {
  3735. var r,
  3736. i,
  3737. o,
  3738. a,
  3739. s,
  3740. u = pe.contains(e.ownerDocument, e);
  3741. if (fe.html5Clone || pe.isXMLDoc(e) || !et.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (st.innerHTML = e.outerHTML, st.removeChild(o = st.firstChild)), !(fe.noCloneEvent && fe.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || pe.isXMLDoc(e))) for (r = h(o), s = h(e), a = 0; null != (i = s[a]); ++a) {
  3742. r[a] && k(i, r[a]);
  3743. }
  3744. if (t) if (n) for (s = s || h(e), r = r || h(o), a = 0; null != (i = s[a]); a++) {
  3745. N(i, r[a]);
  3746. } else N(e, o);
  3747. return r = h(o, "script"), r.length > 0 && g(r, !u && h(e, "script")), r = s = i = null, o;
  3748. },
  3749. cleanData: function cleanData(e, t) {
  3750. for (var n, r, i, o, a = 0, s = pe.expando, u = pe.cache, l = fe.attributes, c = pe.event.special; null != (n = e[a]); a++) {
  3751. if ((t || He(n)) && (i = n[s], o = i && u[i])) {
  3752. if (o.events) for (r in o.events) {
  3753. c[r] ? pe.event.remove(n, r) : pe.removeEvent(n, r, o.handle);
  3754. }
  3755. u[i] && (delete u[i], l || "undefined" == typeof n.removeAttribute ? n[s] = void 0 : n.removeAttribute(s), ne.push(i));
  3756. }
  3757. }
  3758. }
  3759. }), pe.fn.extend({
  3760. domManip: S,
  3761. detach: function detach(e) {
  3762. return A(this, e, !0);
  3763. },
  3764. remove: function remove(e) {
  3765. return A(this, e);
  3766. },
  3767. text: function text(e) {
  3768. return Pe(this, function (e) {
  3769. return void 0 === e ? pe.text(this) : this.empty().append((this[0] && this[0].ownerDocument || re).createTextNode(e));
  3770. }, null, e, arguments.length);
  3771. },
  3772. append: function append() {
  3773. return S(this, arguments, function (e) {
  3774. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  3775. var t = T(this, e);
  3776. t.appendChild(e);
  3777. }
  3778. });
  3779. },
  3780. prepend: function prepend() {
  3781. return S(this, arguments, function (e) {
  3782. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  3783. var t = T(this, e);
  3784. t.insertBefore(e, t.firstChild);
  3785. }
  3786. });
  3787. },
  3788. before: function before() {
  3789. return S(this, arguments, function (e) {
  3790. this.parentNode && this.parentNode.insertBefore(e, this);
  3791. });
  3792. },
  3793. after: function after() {
  3794. return S(this, arguments, function (e) {
  3795. this.parentNode && this.parentNode.insertBefore(e, this.nextSibling);
  3796. });
  3797. },
  3798. empty: function empty() {
  3799. for (var e, t = 0; null != (e = this[t]); t++) {
  3800. for (1 === e.nodeType && pe.cleanData(h(e, !1)); e.firstChild;) {
  3801. e.removeChild(e.firstChild);
  3802. }
  3803. e.options && pe.nodeName(e, "select") && (e.options.length = 0);
  3804. }
  3805. return this;
  3806. },
  3807. clone: function clone(e, t) {
  3808. return e = null != e && e, t = null == t ? e : t, this.map(function () {
  3809. return pe.clone(this, e, t);
  3810. });
  3811. },
  3812. html: function html(e) {
  3813. return Pe(this, function (e) {
  3814. var t = this[0] || {},
  3815. n = 0,
  3816. r = this.length;
  3817. if (void 0 === e) return 1 === t.nodeType ? t.innerHTML.replace(Ze, "") : void 0;
  3818. if ("string" == typeof e && !nt.test(e) && (fe.htmlSerialize || !et.test(e)) && (fe.leadingWhitespace || !$e.test(e)) && !Xe[(We.exec(e) || ["", ""])[1].toLowerCase()]) {
  3819. e = pe.htmlPrefilter(e);
  3820. try {
  3821. for (; n < r; n++) {
  3822. t = this[n] || {}, 1 === t.nodeType && (pe.cleanData(h(t, !1)), t.innerHTML = e);
  3823. }
  3824. t = 0;
  3825. } catch (i) {}
  3826. }
  3827. t && this.empty().append(e);
  3828. }, null, e, arguments.length);
  3829. },
  3830. replaceWith: function replaceWith() {
  3831. var e = [];
  3832. return S(this, arguments, function (t) {
  3833. var n = this.parentNode;
  3834. pe.inArray(this, e) < 0 && (pe.cleanData(h(this)), n && n.replaceChild(t, this));
  3835. }, e);
  3836. }
  3837. }), pe.each({
  3838. appendTo: "append",
  3839. prependTo: "prepend",
  3840. insertBefore: "before",
  3841. insertAfter: "after",
  3842. replaceAll: "replaceWith"
  3843. }, function (e, t) {
  3844. pe.fn[e] = function (e) {
  3845. for (var n, r = 0, i = [], o = pe(e), a = o.length - 1; r <= a; r++) {
  3846. n = r === a ? this : this.clone(!0), pe(o[r])[t](n), ae.apply(i, n.get());
  3847. }
  3848. return this.pushStack(i);
  3849. };
  3850. });
  3851. var ut,
  3852. lt = {
  3853. HTML: "block",
  3854. BODY: "block"
  3855. },
  3856. ct = /^margin/,
  3857. ft = new RegExp("^(" + Fe + ")(?!px)[a-z%]+$", "i"),
  3858. dt = function dt(e, t, n, r) {
  3859. var i,
  3860. o,
  3861. a = {};
  3862. for (o in t) {
  3863. a[o] = e.style[o], e.style[o] = t[o];
  3864. }
  3865. i = n.apply(e, r || []);
  3866. for (o in t) {
  3867. e.style[o] = a[o];
  3868. }
  3869. return i;
  3870. },
  3871. pt = re.documentElement;
  3872. !function () {
  3873. function t() {
  3874. var t,
  3875. c,
  3876. f = re.documentElement;
  3877. f.appendChild(u), l.style.cssText = "-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%", n = i = s = !1, r = a = !0, e.getComputedStyle && (c = e.getComputedStyle(l), n = "1%" !== (c || {}).top, s = "2px" === (c || {}).marginLeft, i = "4px" === (c || {
  3878. width: "4px"
  3879. }).width, l.style.marginRight = "50%", r = "4px" === (c || {
  3880. marginRight: "4px"
  3881. }).marginRight, t = l.appendChild(re.createElement("div")), t.style.cssText = l.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", t.style.marginRight = t.style.width = "0", l.style.width = "1px", a = !parseFloat((e.getComputedStyle(t) || {}).marginRight), l.removeChild(t)), l.style.display = "none", o = 0 === l.getClientRects().length, o && (l.style.display = "", l.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", t = l.getElementsByTagName("td"), t[0].style.cssText = "margin:0;border:0;padding:0;display:none", o = 0 === t[0].offsetHeight, o && (t[0].style.display = "", t[1].style.display = "none", o = 0 === t[0].offsetHeight)), f.removeChild(u);
  3882. }
  3883. var n,
  3884. r,
  3885. i,
  3886. o,
  3887. a,
  3888. s,
  3889. u = re.createElement("div"),
  3890. l = re.createElement("div");
  3891. l.style && (l.style.cssText = "float:left;opacity:.5", fe.opacity = "0.5" === l.style.opacity, fe.cssFloat = !!l.style.cssFloat, l.style.backgroundClip = "content-box", l.cloneNode(!0).style.backgroundClip = "", fe.clearCloneStyle = "content-box" === l.style.backgroundClip, u = re.createElement("div"), u.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", l.innerHTML = "", u.appendChild(l), fe.boxSizing = "" === l.style.boxSizing || "" === l.style.MozBoxSizing || "" === l.style.WebkitBoxSizing, pe.extend(fe, {
  3892. reliableHiddenOffsets: function reliableHiddenOffsets() {
  3893. return null == n && t(), o;
  3894. },
  3895. boxSizingReliable: function boxSizingReliable() {
  3896. return null == n && t(), i;
  3897. },
  3898. pixelMarginRight: function pixelMarginRight() {
  3899. return null == n && t(), r;
  3900. },
  3901. pixelPosition: function pixelPosition() {
  3902. return null == n && t(), n;
  3903. },
  3904. reliableMarginRight: function reliableMarginRight() {
  3905. return null == n && t(), a;
  3906. },
  3907. reliableMarginLeft: function reliableMarginLeft() {
  3908. return null == n && t(), s;
  3909. }
  3910. }));
  3911. }();
  3912. var ht,
  3913. gt,
  3914. mt = /^(top|right|bottom|left)$/;
  3915. e.getComputedStyle ? (ht = function ht(t) {
  3916. var n = t.ownerDocument.defaultView;
  3917. return n && n.opener || (n = e), n.getComputedStyle(t);
  3918. }, gt = function gt(e, t, n) {
  3919. var r,
  3920. i,
  3921. o,
  3922. a,
  3923. s = e.style;
  3924. return n = n || ht(e), a = n ? n.getPropertyValue(t) || n[t] : void 0, "" !== a && void 0 !== a || pe.contains(e.ownerDocument, e) || (a = pe.style(e, t)), n && !fe.pixelMarginRight() && ft.test(a) && ct.test(t) && (r = s.width, i = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = r, s.minWidth = i, s.maxWidth = o), void 0 === a ? a : a + "";
  3925. }) : pt.currentStyle && (ht = function ht(e) {
  3926. return e.currentStyle;
  3927. }, gt = function gt(e, t, n) {
  3928. var r,
  3929. i,
  3930. o,
  3931. a,
  3932. s = e.style;
  3933. return n = n || ht(e), a = n ? n[t] : void 0, null == a && s && s[t] && (a = s[t]), ft.test(a) && !mt.test(t) && (r = s.left, i = e.runtimeStyle, o = i && i.left, o && (i.left = e.currentStyle.left), s.left = "fontSize" === t ? "1em" : a, a = s.pixelLeft + "px", s.left = r, o && (i.left = o)), void 0 === a ? a : a + "" || "auto";
  3934. });
  3935. var yt = /alpha\([^)]*\)/i,
  3936. vt = /opacity\s*=\s*([^)]*)/i,
  3937. xt = /^(none|table(?!-c[ea]).+)/,
  3938. bt = new RegExp("^(" + Fe + ")(.*)$", "i"),
  3939. wt = {
  3940. position: "absolute",
  3941. visibility: "hidden",
  3942. display: "block"
  3943. },
  3944. Tt = {
  3945. letterSpacing: "0",
  3946. fontWeight: "400"
  3947. },
  3948. Ct = ["Webkit", "O", "Moz", "ms"],
  3949. Et = re.createElement("div").style;
  3950. pe.extend({
  3951. cssHooks: {
  3952. opacity: {
  3953. get: function get(e, t) {
  3954. if (t) {
  3955. var n = gt(e, "opacity");
  3956. return "" === n ? "1" : n;
  3957. }
  3958. }
  3959. }
  3960. },
  3961. cssNumber: {
  3962. animationIterationCount: !0,
  3963. columnCount: !0,
  3964. fillOpacity: !0,
  3965. flexGrow: !0,
  3966. flexShrink: !0,
  3967. fontWeight: !0,
  3968. lineHeight: !0,
  3969. opacity: !0,
  3970. order: !0,
  3971. orphans: !0,
  3972. widows: !0,
  3973. zIndex: !0,
  3974. zoom: !0
  3975. },
  3976. cssProps: {
  3977. "float": fe.cssFloat ? "cssFloat" : "styleFloat"
  3978. },
  3979. style: function style(e, t, n, r) {
  3980. if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
  3981. var i,
  3982. o,
  3983. a,
  3984. s = pe.camelCase(t),
  3985. u = e.style;
  3986. if (t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s), a = pe.cssHooks[t] || pe.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : u[t];
  3987. if (o = _typeof(n), "string" === o && (i = Me.exec(n)) && i[1] && (n = d(e, t, i), o = "number"), null != n && n === n && ("number" === o && (n += i && i[3] || (pe.cssNumber[s] ? "" : "px")), fe.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (u[t] = "inherit"), !(a && "set" in a && void 0 === (n = a.set(e, n, r))))) try {
  3988. u[t] = n;
  3989. } catch (l) {}
  3990. }
  3991. },
  3992. css: function css(e, t, n, r) {
  3993. var i,
  3994. o,
  3995. a,
  3996. s = pe.camelCase(t);
  3997. return t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s), a = pe.cssHooks[t] || pe.cssHooks[s], a && "get" in a && (o = a.get(e, !0, n)), void 0 === o && (o = gt(e, t, r)), "normal" === o && t in Tt && (o = Tt[t]), "" === n || n ? (i = parseFloat(o), n === !0 || isFinite(i) ? i || 0 : o) : o;
  3998. }
  3999. }), pe.each(["height", "width"], function (e, t) {
  4000. pe.cssHooks[t] = {
  4001. get: function get(e, n, r) {
  4002. if (n) return xt.test(pe.css(e, "display")) && 0 === e.offsetWidth ? dt(e, wt, function () {
  4003. return M(e, t, r);
  4004. }) : M(e, t, r);
  4005. },
  4006. set: function set(e, n, r) {
  4007. var i = r && ht(e);
  4008. return _(e, n, r ? F(e, t, r, fe.boxSizing && "border-box" === pe.css(e, "boxSizing", !1, i), i) : 0);
  4009. }
  4010. };
  4011. }), fe.opacity || (pe.cssHooks.opacity = {
  4012. get: function get(e, t) {
  4013. return vt.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : "";
  4014. },
  4015. set: function set(e, t) {
  4016. var n = e.style,
  4017. r = e.currentStyle,
  4018. i = pe.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "",
  4019. o = r && r.filter || n.filter || "";
  4020. n.zoom = 1, (t >= 1 || "" === t) && "" === pe.trim(o.replace(yt, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = yt.test(o) ? o.replace(yt, i) : o + " " + i);
  4021. }
  4022. }), pe.cssHooks.marginRight = L(fe.reliableMarginRight, function (e, t) {
  4023. if (t) return dt(e, {
  4024. display: "inline-block"
  4025. }, gt, [e, "marginRight"]);
  4026. }), pe.cssHooks.marginLeft = L(fe.reliableMarginLeft, function (e, t) {
  4027. if (t) return (parseFloat(gt(e, "marginLeft")) || (pe.contains(e.ownerDocument, e) ? e.getBoundingClientRect().left - dt(e, {
  4028. marginLeft: 0
  4029. }, function () {
  4030. return e.getBoundingClientRect().left;
  4031. }) : 0)) + "px";
  4032. }), pe.each({
  4033. margin: "",
  4034. padding: "",
  4035. border: "Width"
  4036. }, function (e, t) {
  4037. pe.cssHooks[e + t] = {
  4038. expand: function expand(n) {
  4039. for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++) {
  4040. i[e + Oe[r] + t] = o[r] || o[r - 2] || o[0];
  4041. }
  4042. return i;
  4043. }
  4044. }, ct.test(e) || (pe.cssHooks[e + t].set = _);
  4045. }), pe.fn.extend({
  4046. css: function css(e, t) {
  4047. return Pe(this, function (e, t, n) {
  4048. var r,
  4049. i,
  4050. o = {},
  4051. a = 0;
  4052. if (pe.isArray(t)) {
  4053. for (r = ht(e), i = t.length; a < i; a++) {
  4054. o[t[a]] = pe.css(e, t[a], !1, r);
  4055. }
  4056. return o;
  4057. }
  4058. return void 0 !== n ? pe.style(e, t, n) : pe.css(e, t);
  4059. }, e, t, arguments.length > 1);
  4060. },
  4061. show: function show() {
  4062. return q(this, !0);
  4063. },
  4064. hide: function hide() {
  4065. return q(this);
  4066. },
  4067. toggle: function toggle(e) {
  4068. return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () {
  4069. Re(this) ? pe(this).show() : pe(this).hide();
  4070. });
  4071. }
  4072. }), pe.Tween = O, O.prototype = {
  4073. constructor: O,
  4074. init: function init(e, t, n, r, i, o) {
  4075. this.elem = e, this.prop = n, this.easing = i || pe.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (pe.cssNumber[n] ? "" : "px");
  4076. },
  4077. cur: function cur() {
  4078. var e = O.propHooks[this.prop];
  4079. return e && e.get ? e.get(this) : O.propHooks._default.get(this);
  4080. },
  4081. run: function run(e) {
  4082. var t,
  4083. n = O.propHooks[this.prop];
  4084. return this.options.duration ? this.pos = t = pe.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : O.propHooks._default.set(this), this;
  4085. }
  4086. }, O.prototype.init.prototype = O.prototype, O.propHooks = {
  4087. _default: {
  4088. get: function get(e) {
  4089. var t;
  4090. return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = pe.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0);
  4091. },
  4092. set: function set(e) {
  4093. pe.fx.step[e.prop] ? pe.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[pe.cssProps[e.prop]] && !pe.cssHooks[e.prop] ? e.elem[e.prop] = e.now : pe.style(e.elem, e.prop, e.now + e.unit);
  4094. }
  4095. }
  4096. }, O.propHooks.scrollTop = O.propHooks.scrollLeft = {
  4097. set: function set(e) {
  4098. e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
  4099. }
  4100. }, pe.easing = {
  4101. linear: function linear(e) {
  4102. return e;
  4103. },
  4104. swing: function swing(e) {
  4105. return .5 - Math.cos(e * Math.PI) / 2;
  4106. },
  4107. _default: "swing"
  4108. }, pe.fx = O.prototype.init, pe.fx.step = {};
  4109. var Nt,
  4110. kt,
  4111. St = /^(?:toggle|show|hide)$/,
  4112. At = /queueHooks$/;
  4113. pe.Animation = pe.extend($, {
  4114. tweeners: {
  4115. "*": [function (e, t) {
  4116. var n = this.createTween(e, t);
  4117. return d(n.elem, e, Me.exec(t), n), n;
  4118. }]
  4119. },
  4120. tweener: function tweener(e, t) {
  4121. pe.isFunction(e) ? (t = e, e = ["*"]) : e = e.match(De);
  4122. for (var n, r = 0, i = e.length; r < i; r++) {
  4123. n = e[r], $.tweeners[n] = $.tweeners[n] || [], $.tweeners[n].unshift(t);
  4124. }
  4125. },
  4126. prefilters: [W],
  4127. prefilter: function prefilter(e, t) {
  4128. t ? $.prefilters.unshift(e) : $.prefilters.push(e);
  4129. }
  4130. }), pe.speed = function (e, t, n) {
  4131. var r = e && "object" == _typeof(e) ? pe.extend({}, e) : {
  4132. complete: n || !n && t || pe.isFunction(e) && e,
  4133. duration: e,
  4134. easing: n && t || t && !pe.isFunction(t) && t
  4135. };
  4136. return r.duration = pe.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in pe.fx.speeds ? pe.fx.speeds[r.duration] : pe.fx.speeds._default, null != r.queue && r.queue !== !0 || (r.queue = "fx"), r.old = r.complete, r.complete = function () {
  4137. pe.isFunction(r.old) && r.old.call(this), r.queue && pe.dequeue(this, r.queue);
  4138. }, r;
  4139. }, pe.fn.extend({
  4140. fadeTo: function fadeTo(e, t, n, r) {
  4141. return this.filter(Re).css("opacity", 0).show().end().animate({
  4142. opacity: t
  4143. }, e, n, r);
  4144. },
  4145. animate: function animate(e, t, n, r) {
  4146. var i = pe.isEmptyObject(e),
  4147. o = pe.speed(t, n, r),
  4148. a = function a() {
  4149. var t = $(this, pe.extend({}, e), o);
  4150. (i || pe._data(this, "finish")) && t.stop(!0);
  4151. };
  4152. return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a);
  4153. },
  4154. stop: function stop(e, t, n) {
  4155. var r = function r(e) {
  4156. var t = e.stop;
  4157. delete e.stop, t(n);
  4158. };
  4159. return "string" != typeof e && (n = t, t = e, e = void 0), t && e !== !1 && this.queue(e || "fx", []), this.each(function () {
  4160. var t = !0,
  4161. i = null != e && e + "queueHooks",
  4162. o = pe.timers,
  4163. a = pe._data(this);
  4164. if (i) a[i] && a[i].stop && r(a[i]);else for (i in a) {
  4165. a[i] && a[i].stop && At.test(i) && r(a[i]);
  4166. }
  4167. for (i = o.length; i--;) {
  4168. o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), t = !1, o.splice(i, 1));
  4169. }
  4170. !t && n || pe.dequeue(this, e);
  4171. });
  4172. },
  4173. finish: function finish(e) {
  4174. return e !== !1 && (e = e || "fx"), this.each(function () {
  4175. var t,
  4176. n = pe._data(this),
  4177. r = n[e + "queue"],
  4178. i = n[e + "queueHooks"],
  4179. o = pe.timers,
  4180. a = r ? r.length : 0;
  4181. for (n.finish = !0, pe.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) {
  4182. o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
  4183. }
  4184. for (t = 0; t < a; t++) {
  4185. r[t] && r[t].finish && r[t].finish.call(this);
  4186. }
  4187. delete n.finish;
  4188. });
  4189. }
  4190. }), pe.each(["toggle", "show", "hide"], function (e, t) {
  4191. var n = pe.fn[t];
  4192. pe.fn[t] = function (e, r, i) {
  4193. return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(P(t, !0), e, r, i);
  4194. };
  4195. }), pe.each({
  4196. slideDown: P("show"),
  4197. slideUp: P("hide"),
  4198. slideToggle: P("toggle"),
  4199. fadeIn: {
  4200. opacity: "show"
  4201. },
  4202. fadeOut: {
  4203. opacity: "hide"
  4204. },
  4205. fadeToggle: {
  4206. opacity: "toggle"
  4207. }
  4208. }, function (e, t) {
  4209. pe.fn[e] = function (e, n, r) {
  4210. return this.animate(t, e, n, r);
  4211. };
  4212. }), pe.timers = [], pe.fx.tick = function () {
  4213. var e,
  4214. t = pe.timers,
  4215. n = 0;
  4216. for (Nt = pe.now(); n < t.length; n++) {
  4217. e = t[n], e() || t[n] !== e || t.splice(n--, 1);
  4218. }
  4219. t.length || pe.fx.stop(), Nt = void 0;
  4220. }, pe.fx.timer = function (e) {
  4221. pe.timers.push(e), e() ? pe.fx.start() : pe.timers.pop();
  4222. }, pe.fx.interval = 13, pe.fx.start = function () {
  4223. kt || (kt = e.setInterval(pe.fx.tick, pe.fx.interval));
  4224. }, pe.fx.stop = function () {
  4225. e.clearInterval(kt), kt = null;
  4226. }, pe.fx.speeds = {
  4227. slow: 600,
  4228. fast: 200,
  4229. _default: 400
  4230. }, pe.fn.delay = function (t, n) {
  4231. return t = pe.fx ? pe.fx.speeds[t] || t : t, n = n || "fx", this.queue(n, function (n, r) {
  4232. var i = e.setTimeout(n, t);
  4233. r.stop = function () {
  4234. e.clearTimeout(i);
  4235. };
  4236. });
  4237. }, function () {
  4238. var e,
  4239. t = re.createElement("input"),
  4240. n = re.createElement("div"),
  4241. r = re.createElement("select"),
  4242. i = r.appendChild(re.createElement("option"));
  4243. n = re.createElement("div"), n.setAttribute("className", "t"), n.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", e = n.getElementsByTagName("a")[0], t.setAttribute("type", "checkbox"), n.appendChild(t), e = n.getElementsByTagName("a")[0], e.style.cssText = "top:1px", fe.getSetAttribute = "t" !== n.className, fe.style = /top/.test(e.getAttribute("style")), fe.hrefNormalized = "/a" === e.getAttribute("href"), fe.checkOn = !!t.value, fe.optSelected = i.selected, fe.enctype = !!re.createElement("form").enctype, r.disabled = !0, fe.optDisabled = !i.disabled, t = re.createElement("input"), t.setAttribute("value", ""), fe.input = "" === t.getAttribute("value"), t.value = "t", t.setAttribute("type", "radio"), fe.radioValue = "t" === t.value;
  4244. }();
  4245. var Dt = /\r/g,
  4246. jt = /[\x20\t\r\n\f]+/g;
  4247. pe.fn.extend({
  4248. val: function val(e) {
  4249. var t,
  4250. n,
  4251. r,
  4252. i = this[0];
  4253. {
  4254. if (arguments.length) return r = pe.isFunction(e), this.each(function (n) {
  4255. var i;
  4256. 1 === this.nodeType && (i = r ? e.call(this, n, pe(this).val()) : e, null == i ? i = "" : "number" == typeof i ? i += "" : pe.isArray(i) && (i = pe.map(i, function (e) {
  4257. return null == e ? "" : e + "";
  4258. })), t = pe.valHooks[this.type] || pe.valHooks[this.nodeName.toLowerCase()], t && "set" in t && void 0 !== t.set(this, i, "value") || (this.value = i));
  4259. });
  4260. if (i) return t = pe.valHooks[i.type] || pe.valHooks[i.nodeName.toLowerCase()], t && "get" in t && void 0 !== (n = t.get(i, "value")) ? n : (n = i.value, "string" == typeof n ? n.replace(Dt, "") : null == n ? "" : n);
  4261. }
  4262. }
  4263. }), pe.extend({
  4264. valHooks: {
  4265. option: {
  4266. get: function get(e) {
  4267. var t = pe.find.attr(e, "value");
  4268. return null != t ? t : pe.trim(pe.text(e)).replace(jt, " ");
  4269. }
  4270. },
  4271. select: {
  4272. get: function get(e) {
  4273. for (var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || i < 0, a = o ? null : [], s = o ? i + 1 : r.length, u = i < 0 ? s : o ? i : 0; u < s; u++) {
  4274. if (n = r[u], (n.selected || u === i) && (fe.optDisabled ? !n.disabled : null === n.getAttribute("disabled")) && (!n.parentNode.disabled || !pe.nodeName(n.parentNode, "optgroup"))) {
  4275. if (t = pe(n).val(), o) return t;
  4276. a.push(t);
  4277. }
  4278. }
  4279. return a;
  4280. },
  4281. set: function set(e, t) {
  4282. for (var n, r, i = e.options, o = pe.makeArray(t), a = i.length; a--;) {
  4283. if (r = i[a], pe.inArray(pe.valHooks.option.get(r), o) > -1) try {
  4284. r.selected = n = !0;
  4285. } catch (s) {
  4286. r.scrollHeight;
  4287. } else r.selected = !1;
  4288. }
  4289. return n || (e.selectedIndex = -1), i;
  4290. }
  4291. }
  4292. }
  4293. }), pe.each(["radio", "checkbox"], function () {
  4294. pe.valHooks[this] = {
  4295. set: function set(e, t) {
  4296. if (pe.isArray(t)) return e.checked = pe.inArray(pe(e).val(), t) > -1;
  4297. }
  4298. }, fe.checkOn || (pe.valHooks[this].get = function (e) {
  4299. return null === e.getAttribute("value") ? "on" : e.value;
  4300. });
  4301. });
  4302. var Lt,
  4303. Ht,
  4304. qt = pe.expr.attrHandle,
  4305. _t = /^(?:checked|selected)$/i,
  4306. Ft = fe.getSetAttribute,
  4307. Mt = fe.input;
  4308. pe.fn.extend({
  4309. attr: function attr(e, t) {
  4310. return Pe(this, pe.attr, e, t, arguments.length > 1);
  4311. },
  4312. removeAttr: function removeAttr(e) {
  4313. return this.each(function () {
  4314. pe.removeAttr(this, e);
  4315. });
  4316. }
  4317. }), pe.extend({
  4318. attr: function attr(e, t, n) {
  4319. var r,
  4320. i,
  4321. o = e.nodeType;
  4322. if (3 !== o && 8 !== o && 2 !== o) return "undefined" == typeof e.getAttribute ? pe.prop(e, t, n) : (1 === o && pe.isXMLDoc(e) || (t = t.toLowerCase(), i = pe.attrHooks[t] || (pe.expr.match.bool.test(t) ? Ht : Lt)), void 0 !== n ? null === n ? void pe.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : (r = pe.find.attr(e, t), null == r ? void 0 : r));
  4323. },
  4324. attrHooks: {
  4325. type: {
  4326. set: function set(e, t) {
  4327. if (!fe.radioValue && "radio" === t && pe.nodeName(e, "input")) {
  4328. var n = e.value;
  4329. return e.setAttribute("type", t), n && (e.value = n), t;
  4330. }
  4331. }
  4332. }
  4333. },
  4334. removeAttr: function removeAttr(e, t) {
  4335. var n,
  4336. r,
  4337. i = 0,
  4338. o = t && t.match(De);
  4339. if (o && 1 === e.nodeType) for (; n = o[i++];) {
  4340. r = pe.propFix[n] || n, pe.expr.match.bool.test(n) ? Mt && Ft || !_t.test(n) ? e[r] = !1 : e[pe.camelCase("default-" + n)] = e[r] = !1 : pe.attr(e, n, ""), e.removeAttribute(Ft ? n : r);
  4341. }
  4342. }
  4343. }), Ht = {
  4344. set: function set(e, t, n) {
  4345. return t === !1 ? pe.removeAttr(e, n) : Mt && Ft || !_t.test(n) ? e.setAttribute(!Ft && pe.propFix[n] || n, n) : e[pe.camelCase("default-" + n)] = e[n] = !0, n;
  4346. }
  4347. }, pe.each(pe.expr.match.bool.source.match(/\w+/g), function (e, t) {
  4348. var n = qt[t] || pe.find.attr;
  4349. Mt && Ft || !_t.test(t) ? qt[t] = function (e, t, r) {
  4350. var i, o;
  4351. return r || (o = qt[t], qt[t] = i, i = null != n(e, t, r) ? t.toLowerCase() : null, qt[t] = o), i;
  4352. } : qt[t] = function (e, t, n) {
  4353. if (!n) return e[pe.camelCase("default-" + t)] ? t.toLowerCase() : null;
  4354. };
  4355. }), Mt && Ft || (pe.attrHooks.value = {
  4356. set: function set(e, t, n) {
  4357. return pe.nodeName(e, "input") ? void (e.defaultValue = t) : Lt && Lt.set(e, t, n);
  4358. }
  4359. }), Ft || (Lt = {
  4360. set: function set(e, t, n) {
  4361. var r = e.getAttributeNode(n);
  4362. if (r || e.setAttributeNode(r = e.ownerDocument.createAttribute(n)), r.value = t += "", "value" === n || t === e.getAttribute(n)) return t;
  4363. }
  4364. }, qt.id = qt.name = qt.coords = function (e, t, n) {
  4365. var r;
  4366. if (!n) return (r = e.getAttributeNode(t)) && "" !== r.value ? r.value : null;
  4367. }, pe.valHooks.button = {
  4368. get: function get(e, t) {
  4369. var n = e.getAttributeNode(t);
  4370. if (n && n.specified) return n.value;
  4371. },
  4372. set: Lt.set
  4373. }, pe.attrHooks.contenteditable = {
  4374. set: function set(e, t, n) {
  4375. Lt.set(e, "" !== t && t, n);
  4376. }
  4377. }, pe.each(["width", "height"], function (e, t) {
  4378. pe.attrHooks[t] = {
  4379. set: function set(e, n) {
  4380. if ("" === n) return e.setAttribute(t, "auto"), n;
  4381. }
  4382. };
  4383. })), fe.style || (pe.attrHooks.style = {
  4384. get: function get(e) {
  4385. return e.style.cssText || void 0;
  4386. },
  4387. set: function set(e, t) {
  4388. return e.style.cssText = t + "";
  4389. }
  4390. });
  4391. var Ot = /^(?:input|select|textarea|button|object)$/i,
  4392. Rt = /^(?:a|area)$/i;
  4393. pe.fn.extend({
  4394. prop: function prop(e, t) {
  4395. return Pe(this, pe.prop, e, t, arguments.length > 1);
  4396. },
  4397. removeProp: function removeProp(e) {
  4398. return e = pe.propFix[e] || e, this.each(function () {
  4399. try {
  4400. this[e] = void 0, delete this[e];
  4401. } catch (t) {}
  4402. });
  4403. }
  4404. }), pe.extend({
  4405. prop: function prop(e, t, n) {
  4406. var r,
  4407. i,
  4408. o = e.nodeType;
  4409. if (3 !== o && 8 !== o && 2 !== o) return 1 === o && pe.isXMLDoc(e) || (t = pe.propFix[t] || t, i = pe.propHooks[t]), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t];
  4410. },
  4411. propHooks: {
  4412. tabIndex: {
  4413. get: function get(e) {
  4414. var t = pe.find.attr(e, "tabindex");
  4415. return t ? parseInt(t, 10) : Ot.test(e.nodeName) || Rt.test(e.nodeName) && e.href ? 0 : -1;
  4416. }
  4417. }
  4418. },
  4419. propFix: {
  4420. "for": "htmlFor",
  4421. "class": "className"
  4422. }
  4423. }), fe.hrefNormalized || pe.each(["href", "src"], function (e, t) {
  4424. pe.propHooks[t] = {
  4425. get: function get(e) {
  4426. return e.getAttribute(t, 4);
  4427. }
  4428. };
  4429. }), fe.optSelected || (pe.propHooks.selected = {
  4430. get: function get(e) {
  4431. var t = e.parentNode;
  4432. return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null;
  4433. },
  4434. set: function set(e) {
  4435. var t = e.parentNode;
  4436. t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex);
  4437. }
  4438. }), pe.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
  4439. pe.propFix[this.toLowerCase()] = this;
  4440. }), fe.enctype || (pe.propFix.enctype = "encoding");
  4441. var Pt = /[\t\r\n\f]/g;
  4442. pe.fn.extend({
  4443. addClass: function addClass(e) {
  4444. var t,
  4445. n,
  4446. r,
  4447. i,
  4448. o,
  4449. a,
  4450. s,
  4451. u = 0;
  4452. if (pe.isFunction(e)) return this.each(function (t) {
  4453. pe(this).addClass(e.call(this, t, z(this)));
  4454. });
  4455. if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) {
  4456. if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {
  4457. for (a = 0; o = t[a++];) {
  4458. r.indexOf(" " + o + " ") < 0 && (r += o + " ");
  4459. }
  4460. s = pe.trim(r), i !== s && pe.attr(n, "class", s);
  4461. }
  4462. }
  4463. return this;
  4464. },
  4465. removeClass: function removeClass(e) {
  4466. var t,
  4467. n,
  4468. r,
  4469. i,
  4470. o,
  4471. a,
  4472. s,
  4473. u = 0;
  4474. if (pe.isFunction(e)) return this.each(function (t) {
  4475. pe(this).removeClass(e.call(this, t, z(this)));
  4476. });
  4477. if (!arguments.length) return this.attr("class", "");
  4478. if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) {
  4479. if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {
  4480. for (a = 0; o = t[a++];) {
  4481. for (; r.indexOf(" " + o + " ") > -1;) {
  4482. r = r.replace(" " + o + " ", " ");
  4483. }
  4484. }
  4485. s = pe.trim(r), i !== s && pe.attr(n, "class", s);
  4486. }
  4487. }
  4488. return this;
  4489. },
  4490. toggleClass: function toggleClass(e, t) {
  4491. var n = _typeof(e);
  4492. return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : pe.isFunction(e) ? this.each(function (n) {
  4493. pe(this).toggleClass(e.call(this, n, z(this), t), t);
  4494. }) : this.each(function () {
  4495. var t, r, i, o;
  4496. if ("string" === n) for (r = 0, i = pe(this), o = e.match(De) || []; t = o[r++];) {
  4497. i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
  4498. } else void 0 !== e && "boolean" !== n || (t = z(this), t && pe._data(this, "__className__", t), pe.attr(this, "class", t || e === !1 ? "" : pe._data(this, "__className__") || ""));
  4499. });
  4500. },
  4501. hasClass: function hasClass(e) {
  4502. var t,
  4503. n,
  4504. r = 0;
  4505. for (t = " " + e + " "; n = this[r++];) {
  4506. if (1 === n.nodeType && (" " + z(n) + " ").replace(Pt, " ").indexOf(t) > -1) return !0;
  4507. }
  4508. return !1;
  4509. }
  4510. }), pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (e, t) {
  4511. pe.fn[t] = function (e, n) {
  4512. return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t);
  4513. };
  4514. }), pe.fn.extend({
  4515. hover: function hover(e, t) {
  4516. return this.mouseenter(e).mouseleave(t || e);
  4517. }
  4518. });
  4519. var Bt = e.location,
  4520. Wt = pe.now(),
  4521. It = /\?/,
  4522. $t = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
  4523. pe.parseJSON = function (t) {
  4524. if (e.JSON && e.JSON.parse) return e.JSON.parse(t + "");
  4525. var n,
  4526. r = null,
  4527. i = pe.trim(t + "");
  4528. return i && !pe.trim(i.replace($t, function (e, t, i, o) {
  4529. return n && t && (r = 0), 0 === r ? e : (n = i || t, r += !o - !i, "");
  4530. })) ? Function("return " + i)() : pe.error("Invalid JSON: " + t);
  4531. }, pe.parseXML = function (t) {
  4532. var n, r;
  4533. if (!t || "string" != typeof t) return null;
  4534. try {
  4535. e.DOMParser ? (r = new e.DOMParser(), n = r.parseFromString(t, "text/xml")) : (n = new e.ActiveXObject("Microsoft.XMLDOM"), n.async = "false", n.loadXML(t));
  4536. } catch (i) {
  4537. n = void 0;
  4538. }
  4539. return n && n.documentElement && !n.getElementsByTagName("parsererror").length || pe.error("Invalid XML: " + t), n;
  4540. };
  4541. var zt = /#.*$/,
  4542. Xt = /([?&])_=[^&]*/,
  4543. Ut = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
  4544. Vt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
  4545. Yt = /^(?:GET|HEAD)$/,
  4546. Jt = /^\/\//,
  4547. Gt = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
  4548. Kt = {},
  4549. Qt = {},
  4550. Zt = "*/".concat("*"),
  4551. en = Bt.href,
  4552. tn = Gt.exec(en.toLowerCase()) || [];
  4553. pe.extend({
  4554. active: 0,
  4555. lastModified: {},
  4556. etag: {},
  4557. ajaxSettings: {
  4558. url: en,
  4559. type: "GET",
  4560. isLocal: Vt.test(tn[1]),
  4561. global: !0,
  4562. processData: !0,
  4563. async: !0,
  4564. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  4565. accepts: {
  4566. "*": Zt,
  4567. text: "text/plain",
  4568. html: "text/html",
  4569. xml: "application/xml, text/xml",
  4570. json: "application/json, text/javascript"
  4571. },
  4572. contents: {
  4573. xml: /\bxml\b/,
  4574. html: /\bhtml/,
  4575. json: /\bjson\b/
  4576. },
  4577. responseFields: {
  4578. xml: "responseXML",
  4579. text: "responseText",
  4580. json: "responseJSON"
  4581. },
  4582. converters: {
  4583. "* text": String,
  4584. "text html": !0,
  4585. "text json": pe.parseJSON,
  4586. "text xml": pe.parseXML
  4587. },
  4588. flatOptions: {
  4589. url: !0,
  4590. context: !0
  4591. }
  4592. },
  4593. ajaxSetup: function ajaxSetup(e, t) {
  4594. return t ? V(V(e, pe.ajaxSettings), t) : V(pe.ajaxSettings, e);
  4595. },
  4596. ajaxPrefilter: X(Kt),
  4597. ajaxTransport: X(Qt),
  4598. ajax: function ajax(t, n) {
  4599. function r(t, n, r, i) {
  4600. var o,
  4601. f,
  4602. v,
  4603. x,
  4604. w,
  4605. C = n;
  4606. 2 !== b && (b = 2, u && e.clearTimeout(u), c = void 0, s = i || "", T.readyState = t > 0 ? 4 : 0, o = t >= 200 && t < 300 || 304 === t, r && (x = Y(d, T, r)), x = J(d, x, T, o), o ? (d.ifModified && (w = T.getResponseHeader("Last-Modified"), w && (pe.lastModified[a] = w), w = T.getResponseHeader("etag"), w && (pe.etag[a] = w)), 204 === t || "HEAD" === d.type ? C = "nocontent" : 304 === t ? C = "notmodified" : (C = x.state, f = x.data, v = x.error, o = !v)) : (v = C, !t && C || (C = "error", t < 0 && (t = 0))), T.status = t, T.statusText = (n || C) + "", o ? g.resolveWith(p, [f, C, T]) : g.rejectWith(p, [T, C, v]), T.statusCode(y), y = void 0, l && h.trigger(o ? "ajaxSuccess" : "ajaxError", [T, d, o ? f : v]), m.fireWith(p, [T, C]), l && (h.trigger("ajaxComplete", [T, d]), --pe.active || pe.event.trigger("ajaxStop")));
  4607. }
  4608. "object" == _typeof(t) && (n = t, t = void 0), n = n || {};
  4609. var i,
  4610. o,
  4611. a,
  4612. s,
  4613. u,
  4614. l,
  4615. c,
  4616. f,
  4617. d = pe.ajaxSetup({}, n),
  4618. p = d.context || d,
  4619. h = d.context && (p.nodeType || p.jquery) ? pe(p) : pe.event,
  4620. g = pe.Deferred(),
  4621. m = pe.Callbacks("once memory"),
  4622. y = d.statusCode || {},
  4623. v = {},
  4624. x = {},
  4625. b = 0,
  4626. w = "canceled",
  4627. T = {
  4628. readyState: 0,
  4629. getResponseHeader: function getResponseHeader(e) {
  4630. var t;
  4631. if (2 === b) {
  4632. if (!f) for (f = {}; t = Ut.exec(s);) {
  4633. f[t[1].toLowerCase()] = t[2];
  4634. }
  4635. t = f[e.toLowerCase()];
  4636. }
  4637. return null == t ? null : t;
  4638. },
  4639. getAllResponseHeaders: function getAllResponseHeaders() {
  4640. return 2 === b ? s : null;
  4641. },
  4642. setRequestHeader: function setRequestHeader(e, t) {
  4643. var n = e.toLowerCase();
  4644. return b || (e = x[n] = x[n] || e, v[e] = t), this;
  4645. },
  4646. overrideMimeType: function overrideMimeType(e) {
  4647. return b || (d.mimeType = e), this;
  4648. },
  4649. statusCode: function statusCode(e) {
  4650. var t;
  4651. if (e) if (b < 2) for (t in e) {
  4652. y[t] = [y[t], e[t]];
  4653. } else T.always(e[T.status]);
  4654. return this;
  4655. },
  4656. abort: function abort(e) {
  4657. var t = e || w;
  4658. return c && c.abort(t), r(0, t), this;
  4659. }
  4660. };
  4661. if (g.promise(T).complete = m.add, T.success = T.done, T.error = T.fail, d.url = ((t || d.url || en) + "").replace(zt, "").replace(Jt, tn[1] + "//"), d.type = n.method || n.type || d.method || d.type, d.dataTypes = pe.trim(d.dataType || "*").toLowerCase().match(De) || [""], null == d.crossDomain && (i = Gt.exec(d.url.toLowerCase()), d.crossDomain = !(!i || i[1] === tn[1] && i[2] === tn[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (tn[3] || ("http:" === tn[1] ? "80" : "443")))), d.data && d.processData && "string" != typeof d.data && (d.data = pe.param(d.data, d.traditional)), U(Kt, d, n, T), 2 === b) return T;
  4662. l = pe.event && d.global, l && 0 === pe.active++ && pe.event.trigger("ajaxStart"), d.type = d.type.toUpperCase(), d.hasContent = !Yt.test(d.type), a = d.url, d.hasContent || (d.data && (a = d.url += (It.test(a) ? "&" : "?") + d.data, delete d.data), d.cache === !1 && (d.url = Xt.test(a) ? a.replace(Xt, "$1_=" + Wt++) : a + (It.test(a) ? "&" : "?") + "_=" + Wt++)), d.ifModified && (pe.lastModified[a] && T.setRequestHeader("If-Modified-Since", pe.lastModified[a]), pe.etag[a] && T.setRequestHeader("If-None-Match", pe.etag[a])), (d.data && d.hasContent && d.contentType !== !1 || n.contentType) && T.setRequestHeader("Content-Type", d.contentType), T.setRequestHeader("Accept", d.dataTypes[0] && d.accepts[d.dataTypes[0]] ? d.accepts[d.dataTypes[0]] + ("*" !== d.dataTypes[0] ? ", " + Zt + "; q=0.01" : "") : d.accepts["*"]);
  4663. for (o in d.headers) {
  4664. T.setRequestHeader(o, d.headers[o]);
  4665. }
  4666. if (d.beforeSend && (d.beforeSend.call(p, T, d) === !1 || 2 === b)) return T.abort();
  4667. w = "abort";
  4668. for (o in {
  4669. success: 1,
  4670. error: 1,
  4671. complete: 1
  4672. }) {
  4673. T[o](d[o]);
  4674. }
  4675. if (c = U(Qt, d, n, T)) {
  4676. if (T.readyState = 1, l && h.trigger("ajaxSend", [T, d]), 2 === b) return T;
  4677. d.async && d.timeout > 0 && (u = e.setTimeout(function () {
  4678. T.abort("timeout");
  4679. }, d.timeout));
  4680. try {
  4681. b = 1, c.send(v, r);
  4682. } catch (C) {
  4683. if (!(b < 2)) throw C;
  4684. r(-1, C);
  4685. }
  4686. } else r(-1, "No Transport");
  4687. return T;
  4688. },
  4689. getJSON: function getJSON(e, t, n) {
  4690. return pe.get(e, t, n, "json");
  4691. },
  4692. getScript: function getScript(e, t) {
  4693. return pe.get(e, void 0, t, "script");
  4694. }
  4695. }), pe.each(["get", "post"], function (e, t) {
  4696. pe[t] = function (e, n, r, i) {
  4697. return pe.isFunction(n) && (i = i || r, r = n, n = void 0), pe.ajax(pe.extend({
  4698. url: e,
  4699. type: t,
  4700. dataType: i,
  4701. data: n,
  4702. success: r
  4703. }, pe.isPlainObject(e) && e));
  4704. };
  4705. }), pe._evalUrl = function (e) {
  4706. return pe.ajax({
  4707. url: e,
  4708. type: "GET",
  4709. dataType: "script",
  4710. cache: !0,
  4711. async: !1,
  4712. global: !1,
  4713. "throws": !0
  4714. });
  4715. }, pe.fn.extend({
  4716. wrapAll: function wrapAll(e) {
  4717. if (pe.isFunction(e)) return this.each(function (t) {
  4718. pe(this).wrapAll(e.call(this, t));
  4719. });
  4720. if (this[0]) {
  4721. var t = pe(e, this[0].ownerDocument).eq(0).clone(!0);
  4722. this[0].parentNode && t.insertBefore(this[0]), t.map(function () {
  4723. for (var e = this; e.firstChild && 1 === e.firstChild.nodeType;) {
  4724. e = e.firstChild;
  4725. }
  4726. return e;
  4727. }).append(this);
  4728. }
  4729. return this;
  4730. },
  4731. wrapInner: function wrapInner(e) {
  4732. return pe.isFunction(e) ? this.each(function (t) {
  4733. pe(this).wrapInner(e.call(this, t));
  4734. }) : this.each(function () {
  4735. var t = pe(this),
  4736. n = t.contents();
  4737. n.length ? n.wrapAll(e) : t.append(e);
  4738. });
  4739. },
  4740. wrap: function wrap(e) {
  4741. var t = pe.isFunction(e);
  4742. return this.each(function (n) {
  4743. pe(this).wrapAll(t ? e.call(this, n) : e);
  4744. });
  4745. },
  4746. unwrap: function unwrap() {
  4747. return this.parent().each(function () {
  4748. pe.nodeName(this, "body") || pe(this).replaceWith(this.childNodes);
  4749. }).end();
  4750. }
  4751. }), pe.expr.filters.hidden = function (e) {
  4752. return fe.reliableHiddenOffsets() ? e.offsetWidth <= 0 && e.offsetHeight <= 0 && !e.getClientRects().length : K(e);
  4753. }, pe.expr.filters.visible = function (e) {
  4754. return !pe.expr.filters.hidden(e);
  4755. };
  4756. var nn = /%20/g,
  4757. rn = /\[\]$/,
  4758. on = /\r?\n/g,
  4759. an = /^(?:submit|button|image|reset|file)$/i,
  4760. sn = /^(?:input|select|textarea|keygen)/i;
  4761. pe.param = function (e, t) {
  4762. var n,
  4763. r = [],
  4764. i = function i(e, t) {
  4765. t = pe.isFunction(t) ? t() : null == t ? "" : t, r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t);
  4766. };
  4767. if (void 0 === t && (t = pe.ajaxSettings && pe.ajaxSettings.traditional), pe.isArray(e) || e.jquery && !pe.isPlainObject(e)) pe.each(e, function () {
  4768. i(this.name, this.value);
  4769. });else for (n in e) {
  4770. Q(n, e[n], t, i);
  4771. }
  4772. return r.join("&").replace(nn, "+");
  4773. }, pe.fn.extend({
  4774. serialize: function serialize() {
  4775. return pe.param(this.serializeArray());
  4776. },
  4777. serializeArray: function serializeArray() {
  4778. return this.map(function () {
  4779. var e = pe.prop(this, "elements");
  4780. return e ? pe.makeArray(e) : this;
  4781. }).filter(function () {
  4782. var e = this.type;
  4783. return this.name && !pe(this).is(":disabled") && sn.test(this.nodeName) && !an.test(e) && (this.checked || !Be.test(e));
  4784. }).map(function (e, t) {
  4785. var n = pe(this).val();
  4786. return null == n ? null : pe.isArray(n) ? pe.map(n, function (e) {
  4787. return {
  4788. name: t.name,
  4789. value: e.replace(on, "\r\n")
  4790. };
  4791. }) : {
  4792. name: t.name,
  4793. value: n.replace(on, "\r\n")
  4794. };
  4795. }).get();
  4796. }
  4797. }), pe.ajaxSettings.xhr = void 0 !== e.ActiveXObject ? function () {
  4798. return this.isLocal ? ee() : re.documentMode > 8 ? Z() : /^(get|post|head|put|delete|options)$/i.test(this.type) && Z() || ee();
  4799. } : Z;
  4800. var un = 0,
  4801. ln = {},
  4802. cn = pe.ajaxSettings.xhr();
  4803. e.attachEvent && e.attachEvent("onunload", function () {
  4804. for (var e in ln) {
  4805. ln[e](void 0, !0);
  4806. }
  4807. }), fe.cors = !!cn && "withCredentials" in cn, cn = fe.ajax = !!cn, cn && pe.ajaxTransport(function (t) {
  4808. if (!t.crossDomain || fe.cors) {
  4809. var _n2;
  4810. return {
  4811. send: function send(r, i) {
  4812. var o,
  4813. a = t.xhr(),
  4814. s = ++un;
  4815. if (a.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) for (o in t.xhrFields) {
  4816. a[o] = t.xhrFields[o];
  4817. }
  4818. t.mimeType && a.overrideMimeType && a.overrideMimeType(t.mimeType), t.crossDomain || r["X-Requested-With"] || (r["X-Requested-With"] = "XMLHttpRequest");
  4819. for (o in r) {
  4820. void 0 !== r[o] && a.setRequestHeader(o, r[o] + "");
  4821. }
  4822. a.send(t.hasContent && t.data || null), _n2 = function n(e, r) {
  4823. var o, u, l;
  4824. if (_n2 && (r || 4 === a.readyState)) if (delete ln[s], _n2 = void 0, a.onreadystatechange = pe.noop, r) 4 !== a.readyState && a.abort();else {
  4825. l = {}, o = a.status, "string" == typeof a.responseText && (l.text = a.responseText);
  4826. try {
  4827. u = a.statusText;
  4828. } catch (c) {
  4829. u = "";
  4830. }
  4831. o || !t.isLocal || t.crossDomain ? 1223 === o && (o = 204) : o = l.text ? 200 : 404;
  4832. }
  4833. l && i(o, u, l, a.getAllResponseHeaders());
  4834. }, t.async ? 4 === a.readyState ? e.setTimeout(_n2) : a.onreadystatechange = ln[s] = _n2 : _n2();
  4835. },
  4836. abort: function abort() {
  4837. _n2 && _n2(void 0, !0);
  4838. }
  4839. };
  4840. }
  4841. }), pe.ajaxSetup({
  4842. accepts: {
  4843. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  4844. },
  4845. contents: {
  4846. script: /\b(?:java|ecma)script\b/
  4847. },
  4848. converters: {
  4849. "text script": function textScript(e) {
  4850. return pe.globalEval(e), e;
  4851. }
  4852. }
  4853. }), pe.ajaxPrefilter("script", function (e) {
  4854. void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1);
  4855. }), pe.ajaxTransport("script", function (e) {
  4856. if (e.crossDomain) {
  4857. var t,
  4858. n = re.head || pe("head")[0] || re.documentElement;
  4859. return {
  4860. send: function send(r, i) {
  4861. t = re.createElement("script"), t.async = !0, e.scriptCharset && (t.charset = e.scriptCharset), t.src = e.url, t.onload = t.onreadystatechange = function (e, n) {
  4862. (n || !t.readyState || /loaded|complete/.test(t.readyState)) && (t.onload = t.onreadystatechange = null, t.parentNode && t.parentNode.removeChild(t), t = null, n || i(200, "success"));
  4863. }, n.insertBefore(t, n.firstChild);
  4864. },
  4865. abort: function abort() {
  4866. t && t.onload(void 0, !0);
  4867. }
  4868. };
  4869. }
  4870. });
  4871. var fn = [],
  4872. dn = /(=)\?(?=&|$)|\?\?/;
  4873. pe.ajaxSetup({
  4874. jsonp: "callback",
  4875. jsonpCallback: function jsonpCallback() {
  4876. var e = fn.pop() || pe.expando + "_" + Wt++;
  4877. return this[e] = !0, e;
  4878. }
  4879. }), pe.ajaxPrefilter("json jsonp", function (t, n, r) {
  4880. var i,
  4881. o,
  4882. a,
  4883. s = t.jsonp !== !1 && (dn.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && dn.test(t.data) && "data");
  4884. if (s || "jsonp" === t.dataTypes[0]) return i = t.jsonpCallback = pe.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, s ? t[s] = t[s].replace(dn, "$1" + i) : t.jsonp !== !1 && (t.url += (It.test(t.url) ? "&" : "?") + t.jsonp + "=" + i), t.converters["script json"] = function () {
  4885. return a || pe.error(i + " was not called"), a[0];
  4886. }, t.dataTypes[0] = "json", o = e[i], e[i] = function () {
  4887. a = arguments;
  4888. }, r.always(function () {
  4889. void 0 === o ? pe(e).removeProp(i) : e[i] = o, t[i] && (t.jsonpCallback = n.jsonpCallback, fn.push(i)), a && pe.isFunction(o) && o(a[0]), a = o = void 0;
  4890. }), "script";
  4891. }), pe.parseHTML = function (e, t, n) {
  4892. if (!e || "string" != typeof e) return null;
  4893. "boolean" == typeof t && (n = t, t = !1), t = t || re;
  4894. var r = Te.exec(e),
  4895. i = !n && [];
  4896. return r ? [t.createElement(r[1])] : (r = y([e], t, i), i && i.length && pe(i).remove(), pe.merge([], r.childNodes));
  4897. };
  4898. var pn = pe.fn.load;
  4899. return pe.fn.load = function (e, t, n) {
  4900. if ("string" != typeof e && pn) return pn.apply(this, arguments);
  4901. var r,
  4902. i,
  4903. o,
  4904. a = this,
  4905. s = e.indexOf(" ");
  4906. return s > -1 && (r = pe.trim(e.slice(s, e.length)), e = e.slice(0, s)), pe.isFunction(t) ? (n = t, t = void 0) : t && "object" == _typeof(t) && (i = "POST"), a.length > 0 && pe.ajax({
  4907. url: e,
  4908. type: i || "GET",
  4909. dataType: "html",
  4910. data: t
  4911. }).done(function (e) {
  4912. o = arguments, a.html(r ? pe("<div>").append(pe.parseHTML(e)).find(r) : e);
  4913. }).always(n && function (e, t) {
  4914. a.each(function () {
  4915. n.apply(this, o || [e.responseText, t, e]);
  4916. });
  4917. }), this;
  4918. }, pe.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) {
  4919. pe.fn[t] = function (e) {
  4920. return this.on(t, e);
  4921. };
  4922. }), pe.expr.filters.animated = function (e) {
  4923. return pe.grep(pe.timers, function (t) {
  4924. return e === t.elem;
  4925. }).length;
  4926. }, pe.offset = {
  4927. setOffset: function setOffset(e, t, n) {
  4928. var r,
  4929. i,
  4930. o,
  4931. a,
  4932. s,
  4933. u,
  4934. l,
  4935. c = pe.css(e, "position"),
  4936. f = pe(e),
  4937. d = {};
  4938. "static" === c && (e.style.position = "relative"), s = f.offset(), o = pe.css(e, "top"), u = pe.css(e, "left"), l = ("absolute" === c || "fixed" === c) && pe.inArray("auto", [o, u]) > -1, l ? (r = f.position(), a = r.top, i = r.left) : (a = parseFloat(o) || 0, i = parseFloat(u) || 0), pe.isFunction(t) && (t = t.call(e, n, pe.extend({}, s))), null != t.top && (d.top = t.top - s.top + a), null != t.left && (d.left = t.left - s.left + i), "using" in t ? t.using.call(e, d) : f.css(d);
  4939. }
  4940. }, pe.fn.extend({
  4941. offset: function offset(e) {
  4942. if (arguments.length) return void 0 === e ? this : this.each(function (t) {
  4943. pe.offset.setOffset(this, e, t);
  4944. });
  4945. var t,
  4946. n,
  4947. r = {
  4948. top: 0,
  4949. left: 0
  4950. },
  4951. i = this[0],
  4952. o = i && i.ownerDocument;
  4953. if (o) return t = o.documentElement, pe.contains(t, i) ? ("undefined" != typeof i.getBoundingClientRect && (r = i.getBoundingClientRect()), n = te(o), {
  4954. top: r.top + (n.pageYOffset || t.scrollTop) - (t.clientTop || 0),
  4955. left: r.left + (n.pageXOffset || t.scrollLeft) - (t.clientLeft || 0)
  4956. }) : r;
  4957. },
  4958. position: function position() {
  4959. if (this[0]) {
  4960. var e,
  4961. t,
  4962. n = {
  4963. top: 0,
  4964. left: 0
  4965. },
  4966. r = this[0];
  4967. return "fixed" === pe.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), pe.nodeName(e[0], "html") || (n = e.offset()), n.top += pe.css(e[0], "borderTopWidth", !0), n.left += pe.css(e[0], "borderLeftWidth", !0)), {
  4968. top: t.top - n.top - pe.css(r, "marginTop", !0),
  4969. left: t.left - n.left - pe.css(r, "marginLeft", !0)
  4970. };
  4971. }
  4972. },
  4973. offsetParent: function offsetParent() {
  4974. return this.map(function () {
  4975. for (var e = this.offsetParent; e && !pe.nodeName(e, "html") && "static" === pe.css(e, "position");) {
  4976. e = e.offsetParent;
  4977. }
  4978. return e || pt;
  4979. });
  4980. }
  4981. }), pe.each({
  4982. scrollLeft: "pageXOffset",
  4983. scrollTop: "pageYOffset"
  4984. }, function (e, t) {
  4985. var n = /Y/.test(t);
  4986. pe.fn[e] = function (r) {
  4987. return Pe(this, function (e, r, i) {
  4988. var o = te(e);
  4989. return void 0 === i ? o ? t in o ? o[t] : o.document.documentElement[r] : e[r] : void (o ? o.scrollTo(n ? pe(o).scrollLeft() : i, n ? i : pe(o).scrollTop()) : e[r] = i);
  4990. }, e, r, arguments.length, null);
  4991. };
  4992. }), pe.each(["top", "left"], function (e, t) {
  4993. pe.cssHooks[t] = L(fe.pixelPosition, function (e, n) {
  4994. if (n) return n = gt(e, t), ft.test(n) ? pe(e).position()[t] + "px" : n;
  4995. });
  4996. }), pe.each({
  4997. Height: "height",
  4998. Width: "width"
  4999. }, function (e, t) {
  5000. pe.each({
  5001. padding: "inner" + e,
  5002. content: t,
  5003. "": "outer" + e
  5004. }, function (n, r) {
  5005. pe.fn[r] = function (r, i) {
  5006. var o = arguments.length && (n || "boolean" != typeof r),
  5007. a = n || (r === !0 || i === !0 ? "margin" : "border");
  5008. return Pe(this, function (t, n, r) {
  5009. var i;
  5010. return pe.isWindow(t) ? t.document.documentElement["client" + e] : 9 === t.nodeType ? (i = t.documentElement, Math.max(t.body["scroll" + e], i["scroll" + e], t.body["offset" + e], i["offset" + e], i["client" + e])) : void 0 === r ? pe.css(t, n, a) : pe.style(t, n, r, a);
  5011. }, t, o ? r : void 0, o, null);
  5012. };
  5013. });
  5014. }), pe.fn.extend({
  5015. bind: function bind(e, t, n) {
  5016. return this.on(e, null, t, n);
  5017. },
  5018. unbind: function unbind(e, t) {
  5019. return this.off(e, null, t);
  5020. },
  5021. delegate: function delegate(e, t, n, r) {
  5022. return this.on(t, e, n, r);
  5023. },
  5024. undelegate: function undelegate(e, t, n) {
  5025. return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n);
  5026. }
  5027. }), pe.fn.size = function () {
  5028. return this.length;
  5029. }, pe.fn.andSelf = pe.fn.addBack, layui.define(function (e) {
  5030. layui.$ = pe, e("jquery", pe);
  5031. }), pe;
  5032. });
  5033. !function (e, t) {
  5034. "use strict";
  5035. var i,
  5036. n,
  5037. a = e.layui && layui.define,
  5038. o = {
  5039. getPath: function () {
  5040. var e = document.currentScript ? document.currentScript.src : function () {
  5041. for (var e, t = document.scripts, i = t.length - 1, n = i; n > 0; n--) {
  5042. if ("interactive" === t[n].readyState) {
  5043. e = t[n].src;
  5044. break;
  5045. }
  5046. }
  5047. return e || t[i].src;
  5048. }();
  5049. return e.substring(0, e.lastIndexOf("/") + 1);
  5050. }(),
  5051. config: {},
  5052. end: {},
  5053. minIndex: 0,
  5054. minLeft: [],
  5055. btn: ["&#x786E;&#x5B9A;", "&#x53D6;&#x6D88;"],
  5056. type: ["dialog", "page", "iframe", "loading", "tips"],
  5057. getStyle: function getStyle(t, i) {
  5058. var n = t.currentStyle ? t.currentStyle : e.getComputedStyle(t, null);
  5059. return n[n.getPropertyValue ? "getPropertyValue" : "getAttribute"](i);
  5060. },
  5061. link: function link(t, i, n) {
  5062. if (r.path) {
  5063. var a = document.getElementsByTagName("head")[0],
  5064. s = document.createElement("link");
  5065. "string" == typeof i && (n = i);
  5066. var l = (n || t).replace(/\.|\//g, ""),
  5067. f = "layuicss-" + l,
  5068. c = 0;
  5069. s.rel = "stylesheet", s.href = r.path + t, s.id = f, document.getElementById(f) || a.appendChild(s), "function" == typeof i && !function u() {
  5070. return ++c > 80 ? e.console && console.error("layer.css: Invalid") : void (1989 === parseInt(o.getStyle(document.getElementById(f), "width")) ? i() : setTimeout(u, 100));
  5071. }();
  5072. }
  5073. }
  5074. },
  5075. r = {
  5076. v: "3.1.1",
  5077. ie: function () {
  5078. var t = navigator.userAgent.toLowerCase();
  5079. return !!(e.ActiveXObject || "ActiveXObject" in e) && ((t.match(/msie\s(\d+)/) || [])[1] || "11");
  5080. }(),
  5081. index: e.layer && e.layer.v ? 1e5 : 0,
  5082. path: o.getPath,
  5083. config: function config(e, t) {
  5084. return e = e || {}, r.cache = o.config = i.extend({}, o.config, e), r.path = o.config.path || r.path, "string" == typeof e.extend && (e.extend = [e.extend]), o.config.path && r.ready(), e.extend ? (a ? layui.addcss("modules/layer/" + e.extend) : o.link("theme/" + e.extend), this) : this;
  5085. },
  5086. ready: function ready(e) {
  5087. var t = "layer",
  5088. i = "",
  5089. n = (a ? "modules/layer/" : "theme/") + "default/layer.css?v=" + r.v + i;
  5090. return a ? layui.addcss(n, e, t) : o.link(n, e, t), this;
  5091. },
  5092. alert: function alert(e, t, n) {
  5093. var a = "function" == typeof t;
  5094. return a && (n = t), r.open(i.extend({
  5095. content: e,
  5096. yes: n
  5097. }, a ? {} : t));
  5098. },
  5099. confirm: function confirm(e, t, n, a) {
  5100. var s = "function" == typeof t;
  5101. return s && (a = n, n = t), r.open(i.extend({
  5102. content: e,
  5103. btn: o.btn,
  5104. yes: n,
  5105. btn2: a
  5106. }, s ? {} : t));
  5107. },
  5108. msg: function msg(e, n, a) {
  5109. var s = "function" == typeof n,
  5110. f = o.config.skin,
  5111. c = (f ? f + " " + f + "-msg" : "") || "layui-layer-msg",
  5112. u = l.anim.length - 1;
  5113. return s && (a = n), r.open(i.extend({
  5114. content: e,
  5115. time: 3e3,
  5116. shade: !1,
  5117. skin: c,
  5118. title: !1,
  5119. closeBtn: !1,
  5120. btn: !1,
  5121. resize: !1,
  5122. end: a
  5123. }, s && !o.config.skin ? {
  5124. skin: c + " layui-layer-hui",
  5125. anim: u
  5126. } : function () {
  5127. return n = n || {}, (n.icon === -1 || n.icon === t && !o.config.skin) && (n.skin = c + " " + (n.skin || "layui-layer-hui")), n;
  5128. }()));
  5129. },
  5130. load: function load(e, t) {
  5131. return r.open(i.extend({
  5132. type: 3,
  5133. icon: e || 0,
  5134. resize: !1,
  5135. shade: .01
  5136. }, t));
  5137. },
  5138. tips: function tips(e, t, n) {
  5139. return r.open(i.extend({
  5140. type: 4,
  5141. content: [e, t],
  5142. closeBtn: !1,
  5143. time: 3e3,
  5144. shade: !1,
  5145. resize: !1,
  5146. fixed: !1,
  5147. maxWidth: 210
  5148. }, n));
  5149. }
  5150. },
  5151. s = function s(e) {
  5152. var t = this;
  5153. t.index = ++r.index, t.config = i.extend({}, t.config, o.config, e), document.body ? t.creat() : setTimeout(function () {
  5154. t.creat();
  5155. }, 30);
  5156. };
  5157. s.pt = s.prototype;
  5158. var l = ["layui-layer", ".layui-layer-title", ".layui-layer-main", ".layui-layer-dialog", "layui-layer-iframe", "layui-layer-content", "layui-layer-btn", "layui-layer-close"];
  5159. l.anim = ["layer-anim-00", "layer-anim-01", "layer-anim-02", "layer-anim-03", "layer-anim-04", "layer-anim-05", "layer-anim-06"], s.pt.config = {
  5160. type: 0,
  5161. shade: .3,
  5162. fixed: !0,
  5163. move: l[1],
  5164. title: "&#x4FE1;&#x606F;",
  5165. offset: "auto",
  5166. area: "auto",
  5167. closeBtn: 1,
  5168. time: 0,
  5169. zIndex: 19891014,
  5170. maxWidth: 360,
  5171. anim: 0,
  5172. isOutAnim: !0,
  5173. icon: -1,
  5174. moveType: 1,
  5175. resize: !0,
  5176. scrollbar: !0,
  5177. tips: 2
  5178. }, s.pt.vessel = function (e, t) {
  5179. var n = this,
  5180. a = n.index,
  5181. r = n.config,
  5182. s = r.zIndex + a,
  5183. f = "object" == _typeof(r.title),
  5184. c = r.maxmin && (1 === r.type || 2 === r.type),
  5185. u = r.title ? '<div class="layui-layer-title" style="' + (f ? r.title[1] : "") + '">' + (f ? r.title[0] : r.title) + "</div>" : "";
  5186. return r.zIndex = s, t([r.shade ? '<div class="layui-layer-shade" id="layui-layer-shade' + a + '" times="' + a + '" style="' + ("z-index:" + (s - 1) + "; ") + '"></div>' : "", '<div class="' + l[0] + (" layui-layer-" + o.type[r.type]) + (0 != r.type && 2 != r.type || r.shade ? "" : " layui-layer-border") + " " + (r.skin || "") + '" id="' + l[0] + a + '" type="' + o.type[r.type] + '" times="' + a + '" showtime="' + r.time + '" conType="' + (e ? "object" : "string") + '" style="z-index: ' + s + "; width:" + r.area[0] + ";height:" + r.area[1] + (r.fixed ? "" : ";position:absolute;") + '">' + (e && 2 != r.type ? "" : u) + '<div id="' + (r.id || "") + '" class="layui-layer-content' + (0 == r.type && r.icon !== -1 ? " layui-layer-padding" : "") + (3 == r.type ? " layui-layer-loading" + r.icon : "") + '">' + (0 == r.type && r.icon !== -1 ? '<i class="layui-layer-ico layui-layer-ico' + r.icon + '"></i>' : "") + (1 == r.type && e ? "" : r.content || "") + '</div><span class="layui-layer-setwin">' + function () {
  5187. var e = c ? '<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>' : "";
  5188. return r.closeBtn && (e += '<a class="layui-layer-ico ' + l[7] + " " + l[7] + (r.title ? r.closeBtn : 4 == r.type ? "1" : "2") + '" href="javascript:;"></a>'), e;
  5189. }() + "</span>" + (r.btn ? function () {
  5190. var e = "";
  5191. "string" == typeof r.btn && (r.btn = [r.btn]);
  5192. for (var t = 0, i = r.btn.length; t < i; t++) {
  5193. e += '<a class="' + l[6] + t + '">' + r.btn[t] + "</a>";
  5194. }
  5195. return '<div class="' + l[6] + " layui-layer-btn-" + (r.btnAlign || "") + '">' + e + "</div>";
  5196. }() : "") + (r.resize ? '<span class="layui-layer-resize"></span>' : "") + "</div>"], u, i('<div class="layui-layer-move"></div>')), n;
  5197. }, s.pt.creat = function () {
  5198. var e = this,
  5199. t = e.config,
  5200. a = e.index,
  5201. s = t.content,
  5202. f = "object" == _typeof(s),
  5203. c = i("body");
  5204. if (!t.id || !i("#" + t.id)[0]) {
  5205. switch ("string" == typeof t.area && (t.area = "auto" === t.area ? ["", ""] : [t.area, ""]), t.shift && (t.anim = t.shift), 6 == r.ie && (t.fixed = !1), t.type) {
  5206. case 0:
  5207. t.btn = "btn" in t ? t.btn : o.btn[0], r.closeAll("dialog");
  5208. break;
  5209. case 2:
  5210. var s = t.content = f ? t.content : [t.content || "", "auto"];
  5211. t.content = '<iframe scrolling="' + (t.content[1] || "auto") + '" allowtransparency="true" id="' + l[4] + a + '" name="' + l[4] + a + '" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="' + t.content[0] + '"></iframe>';
  5212. break;
  5213. case 3:
  5214. delete t.title, delete t.closeBtn, t.icon === -1 && 0 === t.icon, r.closeAll("loading");
  5215. break;
  5216. case 4:
  5217. f || (t.content = [t.content, "body"]), t.follow = t.content[1], t.content = t.content[0] + '<i class="layui-layer-TipsG"></i>', delete t.title, t.tips = "object" == _typeof(t.tips) ? t.tips : [t.tips, !0], t.tipsMore || r.closeAll("tips");
  5218. }
  5219. if (e.vessel(f, function (n, r, u) {
  5220. c.append(n[0]), f ? function () {
  5221. 2 == t.type || 4 == t.type ? function () {
  5222. i("body").append(n[1]);
  5223. }() : function () {
  5224. s.parents("." + l[0])[0] || (s.data("display", s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]), i("#" + l[0] + a).find("." + l[5]).before(r));
  5225. }();
  5226. }() : c.append(n[1]), i(".layui-layer-move")[0] || c.append(o.moveElem = u), e.layero = i("#" + l[0] + a), t.scrollbar || l.html.css("overflow", "hidden").attr("layer-full", a);
  5227. }).auto(a), i("#layui-layer-shade" + e.index).css({
  5228. "background-color": t.shade[1] || "#000",
  5229. opacity: t.shade[0] || t.shade
  5230. }), 2 == t.type && 6 == r.ie && e.layero.find("iframe").attr("src", s[0]), 4 == t.type ? e.tips() : e.offset(), t.fixed && n.on("resize", function () {
  5231. e.offset(), (/^\d+%$/.test(t.area[0]) || /^\d+%$/.test(t.area[1])) && e.auto(a), 4 == t.type && e.tips();
  5232. }), t.time <= 0 || setTimeout(function () {
  5233. r.close(e.index);
  5234. }, t.time), e.move().callback(), l.anim[t.anim]) {
  5235. var u = "layer-anim " + l.anim[t.anim];
  5236. e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function () {
  5237. i(this).removeClass(u);
  5238. });
  5239. }
  5240. t.isOutAnim && e.layero.data("isOutAnim", !0);
  5241. }
  5242. }, s.pt.auto = function (e) {
  5243. var t = this,
  5244. a = t.config,
  5245. o = i("#" + l[0] + e);
  5246. "" === a.area[0] && a.maxWidth > 0 && (r.ie && r.ie < 8 && a.btn && o.width(o.innerWidth()), o.outerWidth() > a.maxWidth && o.width(a.maxWidth));
  5247. var s = [o.innerWidth(), o.innerHeight()],
  5248. f = o.find(l[1]).outerHeight() || 0,
  5249. c = o.find("." + l[6]).outerHeight() || 0,
  5250. u = function u(e) {
  5251. e = o.find(e), e.height(s[1] - f - c - 2 * (0 | parseFloat(e.css("padding-top"))));
  5252. };
  5253. switch (a.type) {
  5254. case 2:
  5255. u("iframe");
  5256. break;
  5257. default:
  5258. "" === a.area[1] ? a.maxHeight > 0 && o.outerHeight() > a.maxHeight ? (s[1] = a.maxHeight, u("." + l[5])) : a.fixed && s[1] >= n.height() && (s[1] = n.height(), u("." + l[5])) : u("." + l[5]);
  5259. }
  5260. return t;
  5261. }, s.pt.offset = function () {
  5262. var e = this,
  5263. t = e.config,
  5264. i = e.layero,
  5265. a = [i.outerWidth(), i.outerHeight()],
  5266. o = "object" == _typeof(t.offset);
  5267. e.offsetTop = (n.height() - a[1]) / 2, e.offsetLeft = (n.width() - a[0]) / 2, o ? (e.offsetTop = t.offset[0], e.offsetLeft = t.offset[1] || e.offsetLeft) : "auto" !== t.offset && ("t" === t.offset ? e.offsetTop = 0 : "r" === t.offset ? e.offsetLeft = n.width() - a[0] : "b" === t.offset ? e.offsetTop = n.height() - a[1] : "l" === t.offset ? e.offsetLeft = 0 : "lt" === t.offset ? (e.offsetTop = 0, e.offsetLeft = 0) : "lb" === t.offset ? (e.offsetTop = n.height() - a[1], e.offsetLeft = 0) : "rt" === t.offset ? (e.offsetTop = 0, e.offsetLeft = n.width() - a[0]) : "rb" === t.offset ? (e.offsetTop = n.height() - a[1], e.offsetLeft = n.width() - a[0]) : e.offsetTop = t.offset), t.fixed || (e.offsetTop = /%$/.test(e.offsetTop) ? n.height() * parseFloat(e.offsetTop) / 100 : parseFloat(e.offsetTop), e.offsetLeft = /%$/.test(e.offsetLeft) ? n.width() * parseFloat(e.offsetLeft) / 100 : parseFloat(e.offsetLeft), e.offsetTop += n.scrollTop(), e.offsetLeft += n.scrollLeft()), i.attr("minLeft") && (e.offsetTop = n.height() - (i.find(l[1]).outerHeight() || 0), e.offsetLeft = i.css("left")), i.css({
  5268. top: e.offsetTop,
  5269. left: e.offsetLeft
  5270. });
  5271. }, s.pt.tips = function () {
  5272. var e = this,
  5273. t = e.config,
  5274. a = e.layero,
  5275. o = [a.outerWidth(), a.outerHeight()],
  5276. r = i(t.follow);
  5277. r[0] || (r = i("body"));
  5278. var s = {
  5279. width: r.outerWidth(),
  5280. height: r.outerHeight(),
  5281. top: r.offset().top,
  5282. left: r.offset().left
  5283. },
  5284. f = a.find(".layui-layer-TipsG"),
  5285. c = t.tips[0];
  5286. t.tips[1] || f.remove(), s.autoLeft = function () {
  5287. s.left + o[0] - n.width() > 0 ? (s.tipLeft = s.left + s.width - o[0], f.css({
  5288. right: 12,
  5289. left: "auto"
  5290. })) : s.tipLeft = s.left;
  5291. }, s.where = [function () {
  5292. s.autoLeft(), s.tipTop = s.top - o[1] - 10, f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color", t.tips[1]);
  5293. }, function () {
  5294. s.tipLeft = s.left + s.width + 10, s.tipTop = s.top, f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color", t.tips[1]);
  5295. }, function () {
  5296. s.autoLeft(), s.tipTop = s.top + s.height + 10, f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color", t.tips[1]);
  5297. }, function () {
  5298. s.tipLeft = s.left - o[0] - 10, s.tipTop = s.top, f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color", t.tips[1]);
  5299. }], s.where[c - 1](), 1 === c ? s.top - (n.scrollTop() + o[1] + 16) < 0 && s.where[2]() : 2 === c ? n.width() - (s.left + s.width + o[0] + 16) > 0 || s.where[3]() : 3 === c ? s.top - n.scrollTop() + s.height + o[1] + 16 - n.height() > 0 && s.where[0]() : 4 === c && o[0] + 16 - s.left > 0 && s.where[1](), a.find("." + l[5]).css({
  5300. "background-color": t.tips[1],
  5301. "padding-right": t.closeBtn ? "30px" : ""
  5302. }), a.css({
  5303. left: s.tipLeft - (t.fixed ? n.scrollLeft() : 0),
  5304. top: s.tipTop - (t.fixed ? n.scrollTop() : 0)
  5305. });
  5306. }, s.pt.move = function () {
  5307. var e = this,
  5308. t = e.config,
  5309. a = i(document),
  5310. s = e.layero,
  5311. l = s.find(t.move),
  5312. f = s.find(".layui-layer-resize"),
  5313. c = {};
  5314. return t.move && l.css("cursor", "move"), l.on("mousedown", function (e) {
  5315. e.preventDefault(), t.move && (c.moveStart = !0, c.offset = [e.clientX - parseFloat(s.css("left")), e.clientY - parseFloat(s.css("top"))], o.moveElem.css("cursor", "move").show());
  5316. }), f.on("mousedown", function (e) {
  5317. e.preventDefault(), c.resizeStart = !0, c.offset = [e.clientX, e.clientY], c.area = [s.outerWidth(), s.outerHeight()], o.moveElem.css("cursor", "se-resize").show();
  5318. }), a.on("mousemove", function (i) {
  5319. if (c.moveStart) {
  5320. var a = i.clientX - c.offset[0],
  5321. o = i.clientY - c.offset[1],
  5322. l = "fixed" === s.css("position");
  5323. if (i.preventDefault(), c.stX = l ? 0 : n.scrollLeft(), c.stY = l ? 0 : n.scrollTop(), !t.moveOut) {
  5324. var f = n.width() - s.outerWidth() + c.stX,
  5325. u = n.height() - s.outerHeight() + c.stY;
  5326. a < c.stX && (a = c.stX), a > f && (a = f), o < c.stY && (o = c.stY), o > u && (o = u);
  5327. }
  5328. s.css({
  5329. left: a,
  5330. top: o
  5331. });
  5332. }
  5333. if (t.resize && c.resizeStart) {
  5334. var a = i.clientX - c.offset[0],
  5335. o = i.clientY - c.offset[1];
  5336. i.preventDefault(), r.style(e.index, {
  5337. width: c.area[0] + a,
  5338. height: c.area[1] + o
  5339. }), c.isResize = !0, t.resizing && t.resizing(s);
  5340. }
  5341. }).on("mouseup", function (e) {
  5342. c.moveStart && (delete c.moveStart, o.moveElem.hide(), t.moveEnd && t.moveEnd(s)), c.resizeStart && (delete c.resizeStart, o.moveElem.hide());
  5343. }), e;
  5344. }, s.pt.callback = function () {
  5345. function e() {
  5346. var e = a.cancel && a.cancel(t.index, n);
  5347. e === !1 || r.close(t.index);
  5348. }
  5349. var t = this,
  5350. n = t.layero,
  5351. a = t.config;
  5352. t.openLayer(), a.success && (2 == a.type ? n.find("iframe").on("load", function () {
  5353. a.success(n, t.index);
  5354. }) : a.success(n, t.index)), 6 == r.ie && t.IE6(n), n.find("." + l[6]).children("a").on("click", function () {
  5355. var e = i(this).index();
  5356. if (0 === e) a.yes ? a.yes(t.index, n) : a.btn1 ? a.btn1(t.index, n) : r.close(t.index);else {
  5357. var o = a["btn" + (e + 1)] && a["btn" + (e + 1)](t.index, n);
  5358. o === !1 || r.close(t.index);
  5359. }
  5360. }), n.find("." + l[7]).on("click", e), a.shadeClose && i("#layui-layer-shade" + t.index).on("click", function () {
  5361. r.close(t.index);
  5362. }), n.find(".layui-layer-min").on("click", function () {
  5363. var e = a.min && a.min(n);
  5364. e === !1 || r.min(t.index, a);
  5365. }), n.find(".layui-layer-max").on("click", function () {
  5366. i(this).hasClass("layui-layer-maxmin") ? (r.restore(t.index), a.restore && a.restore(n)) : (r.full(t.index, a), setTimeout(function () {
  5367. a.full && a.full(n);
  5368. }, 100));
  5369. }), a.end && (o.end[t.index] = a.end);
  5370. }, o.reselect = function () {
  5371. i.each(i("select"), function (e, t) {
  5372. var n = i(this);
  5373. n.parents("." + l[0])[0] || 1 == n.attr("layer") && i("." + l[0]).length < 1 && n.removeAttr("layer").show(), n = null;
  5374. });
  5375. }, s.pt.IE6 = function (e) {
  5376. i("select").each(function (e, t) {
  5377. var n = i(this);
  5378. n.parents("." + l[0])[0] || "none" === n.css("display") || n.attr({
  5379. layer: "1"
  5380. }).hide(), n = null;
  5381. });
  5382. }, s.pt.openLayer = function () {
  5383. var e = this;
  5384. r.zIndex = e.config.zIndex, r.setTop = function (e) {
  5385. var t = function t() {
  5386. r.zIndex++, e.css("z-index", r.zIndex + 1);
  5387. };
  5388. return r.zIndex = parseInt(e[0].style.zIndex), e.on("mousedown", t), r.zIndex;
  5389. };
  5390. }, o.record = function (e) {
  5391. var t = [e.width(), e.height(), e.position().top, e.position().left + parseFloat(e.css("margin-left"))];
  5392. e.find(".layui-layer-max").addClass("layui-layer-maxmin"), e.attr({
  5393. area: t
  5394. });
  5395. }, o.rescollbar = function (e) {
  5396. l.html.attr("layer-full") == e && (l.html[0].style.removeProperty ? l.html[0].style.removeProperty("overflow") : l.html[0].style.removeAttribute("overflow"), l.html.removeAttr("layer-full"));
  5397. }, e.layer = r, r.getChildFrame = function (e, t) {
  5398. return t = t || i("." + l[4]).attr("times"), i("#" + l[0] + t).find("iframe").contents().find(e);
  5399. }, r.getFrameIndex = function (e) {
  5400. return i("#" + e).parents("." + l[4]).attr("times");
  5401. }, r.iframeAuto = function (e) {
  5402. if (e) {
  5403. var t = r.getChildFrame("html", e).outerHeight(),
  5404. n = i("#" + l[0] + e),
  5405. a = n.find(l[1]).outerHeight() || 0,
  5406. o = n.find("." + l[6]).outerHeight() || 0;
  5407. n.css({
  5408. height: t + a + o
  5409. }), n.find("iframe").css({
  5410. height: t
  5411. });
  5412. }
  5413. }, r.iframeSrc = function (e, t) {
  5414. i("#" + l[0] + e).find("iframe").attr("src", t);
  5415. }, r.style = function (e, t, n) {
  5416. var a = i("#" + l[0] + e),
  5417. r = a.find(".layui-layer-content"),
  5418. s = a.attr("type"),
  5419. f = a.find(l[1]).outerHeight() || 0,
  5420. c = a.find("." + l[6]).outerHeight() || 0;
  5421. a.attr("minLeft");
  5422. s !== o.type[3] && s !== o.type[4] && (n || (parseFloat(t.width) <= 260 && (t.width = 260), parseFloat(t.height) - f - c <= 64 && (t.height = 64 + f + c)), a.css(t), c = a.find("." + l[6]).outerHeight(), s === o.type[2] ? a.find("iframe").css({
  5423. height: parseFloat(t.height) - f - c
  5424. }) : r.css({
  5425. height: parseFloat(t.height) - f - c - parseFloat(r.css("padding-top")) - parseFloat(r.css("padding-bottom"))
  5426. }));
  5427. }, r.min = function (e, t) {
  5428. var a = i("#" + l[0] + e),
  5429. s = a.find(l[1]).outerHeight() || 0,
  5430. f = a.attr("minLeft") || 181 * o.minIndex + "px",
  5431. c = a.css("position");
  5432. o.record(a), o.minLeft[0] && (f = o.minLeft[0], o.minLeft.shift()), a.attr("position", c), r.style(e, {
  5433. width: 180,
  5434. height: s,
  5435. left: f,
  5436. top: n.height() - s,
  5437. position: "fixed",
  5438. overflow: "hidden"
  5439. }, !0), a.find(".layui-layer-min").hide(), "page" === a.attr("type") && a.find(l[4]).hide(), o.rescollbar(e), a.attr("minLeft") || o.minIndex++, a.attr("minLeft", f);
  5440. }, r.restore = function (e) {
  5441. var t = i("#" + l[0] + e),
  5442. n = t.attr("area").split(",");
  5443. t.attr("type");
  5444. r.style(e, {
  5445. width: parseFloat(n[0]),
  5446. height: parseFloat(n[1]),
  5447. top: parseFloat(n[2]),
  5448. left: parseFloat(n[3]),
  5449. position: t.attr("position"),
  5450. overflow: "visible"
  5451. }, !0), t.find(".layui-layer-max").removeClass("layui-layer-maxmin"), t.find(".layui-layer-min").show(), "page" === t.attr("type") && t.find(l[4]).show(), o.rescollbar(e);
  5452. }, r.full = function (e) {
  5453. var t,
  5454. a = i("#" + l[0] + e);
  5455. o.record(a), l.html.attr("layer-full") || l.html.css("overflow", "hidden").attr("layer-full", e), clearTimeout(t), t = setTimeout(function () {
  5456. var t = "fixed" === a.css("position");
  5457. r.style(e, {
  5458. top: t ? 0 : n.scrollTop(),
  5459. left: t ? 0 : n.scrollLeft(),
  5460. width: n.width(),
  5461. height: n.height()
  5462. }, !0), a.find(".layui-layer-min").hide();
  5463. }, 100);
  5464. }, r.title = function (e, t) {
  5465. var n = i("#" + l[0] + (t || r.index)).find(l[1]);
  5466. n.html(e);
  5467. }, r.close = function (e) {
  5468. var t = i("#" + l[0] + e),
  5469. n = t.attr("type"),
  5470. a = "layer-anim-close";
  5471. if (t[0]) {
  5472. var s = "layui-layer-wrap",
  5473. f = function f() {
  5474. if (n === o.type[1] && "object" === t.attr("conType")) {
  5475. t.children(":not(." + l[5] + ")").remove();
  5476. for (var a = t.find("." + s), r = 0; r < 2; r++) {
  5477. a.unwrap();
  5478. }
  5479. a.css("display", a.data("display")).removeClass(s);
  5480. } else {
  5481. if (n === o.type[2]) try {
  5482. var f = i("#" + l[4] + e)[0];
  5483. f.contentWindow.document.write(""), f.contentWindow.close(), t.find("." + l[5])[0].removeChild(f);
  5484. } catch (c) {}
  5485. t[0].innerHTML = "", t.remove();
  5486. }
  5487. "function" == typeof o.end[e] && o.end[e](), delete o.end[e];
  5488. };
  5489. t.data("isOutAnim") && t.addClass("layer-anim " + a), i("#layui-layer-moves, #layui-layer-shade" + e).remove(), 6 == r.ie && o.reselect(), o.rescollbar(e), t.attr("minLeft") && (o.minIndex--, o.minLeft.push(t.attr("minLeft"))), r.ie && r.ie < 10 || !t.data("isOutAnim") ? f() : setTimeout(function () {
  5490. f();
  5491. }, 200);
  5492. }
  5493. }, r.closeAll = function (e) {
  5494. i.each(i("." + l[0]), function () {
  5495. var t = i(this),
  5496. n = e ? t.attr("type") === e : 1;
  5497. n && r.close(t.attr("times")), n = null;
  5498. });
  5499. };
  5500. var f = r.cache || {},
  5501. c = function c(e) {
  5502. return f.skin ? " " + f.skin + " " + f.skin + "-" + e : "";
  5503. };
  5504. r.prompt = function (e, t) {
  5505. var a = "";
  5506. if (e = e || {}, "function" == typeof e && (t = e), e.area) {
  5507. var o = e.area;
  5508. a = 'style="width: ' + o[0] + "; height: " + o[1] + ';"', delete e.area;
  5509. }
  5510. var s,
  5511. l = 2 == e.formType ? '<textarea class="layui-layer-input"' + a + "></textarea>" : function () {
  5512. return '<input type="' + (1 == e.formType ? "password" : "text") + '" class="layui-layer-input">';
  5513. }(),
  5514. f = e.success;
  5515. return delete e.success, r.open(i.extend({
  5516. type: 1,
  5517. btn: ["&#x786E;&#x5B9A;", "&#x53D6;&#x6D88;"],
  5518. content: l,
  5519. skin: "layui-layer-prompt" + c("prompt"),
  5520. maxWidth: n.width(),
  5521. success: function success(t) {
  5522. s = t.find(".layui-layer-input"), s.val(e.value || "").focus(), "function" == typeof f && f(t);
  5523. },
  5524. resize: !1,
  5525. yes: function yes(i) {
  5526. var n = s.val();
  5527. "" === n ? s.focus() : n.length > (e.maxlength || 500) ? r.tips("&#x6700;&#x591A;&#x8F93;&#x5165;" + (e.maxlength || 500) + "&#x4E2A;&#x5B57;&#x6570;", s, {
  5528. tips: 1
  5529. }) : t && t(n, i, s);
  5530. }
  5531. }, e));
  5532. }, r.tab = function (e) {
  5533. e = e || {};
  5534. var t = e.tab || {},
  5535. n = "layui-this",
  5536. a = e.success;
  5537. return delete e.success, r.open(i.extend({
  5538. type: 1,
  5539. skin: "layui-layer-tab" + c("tab"),
  5540. resize: !1,
  5541. title: function () {
  5542. var e = t.length,
  5543. i = 1,
  5544. a = "";
  5545. if (e > 0) for (a = '<span class="' + n + '">' + t[0].title + "</span>"; i < e; i++) {
  5546. a += "<span>" + t[i].title + "</span>";
  5547. }
  5548. return a;
  5549. }(),
  5550. content: '<ul class="layui-layer-tabmain">' + function () {
  5551. var e = t.length,
  5552. i = 1,
  5553. a = "";
  5554. if (e > 0) for (a = '<li class="layui-layer-tabli ' + n + '">' + (t[0].content || "no content") + "</li>"; i < e; i++) {
  5555. a += '<li class="layui-layer-tabli">' + (t[i].content || "no content") + "</li>";
  5556. }
  5557. return a;
  5558. }() + "</ul>",
  5559. success: function success(t) {
  5560. var o = t.find(".layui-layer-title").children(),
  5561. r = t.find(".layui-layer-tabmain").children();
  5562. o.on("mousedown", function (t) {
  5563. t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0;
  5564. var a = i(this),
  5565. o = a.index();
  5566. a.addClass(n).siblings().removeClass(n), r.eq(o).show().siblings().hide(), "function" == typeof e.change && e.change(o);
  5567. }), "function" == typeof a && a(t);
  5568. }
  5569. }, e));
  5570. }, r.photos = function (t, n, a) {
  5571. function o(e, t, i) {
  5572. var n = new Image();
  5573. return n.src = e, n.complete ? t(n) : (n.onload = function () {
  5574. n.onload = null, t(n);
  5575. }, void (n.onerror = function (e) {
  5576. n.onerror = null, i(e);
  5577. }));
  5578. }
  5579. var s = {};
  5580. if (t = t || {}, t.photos) {
  5581. var l = t.photos.constructor === Object,
  5582. f = l ? t.photos : {},
  5583. u = f.data || [],
  5584. d = f.start || 0;
  5585. s.imgIndex = (0 | d) + 1, t.img = t.img || "img";
  5586. var y = t.success;
  5587. if (delete t.success, l) {
  5588. if (0 === u.length) return r.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;");
  5589. } else {
  5590. var p = i(t.photos),
  5591. h = function h() {
  5592. u = [], p.find(t.img).each(function (e) {
  5593. var t = i(this);
  5594. t.attr("layer-index", e), u.push({
  5595. alt: t.attr("alt"),
  5596. pid: t.attr("layer-pid"),
  5597. src: t.attr("layer-src") || t.attr("src"),
  5598. thumb: t.attr("src")
  5599. });
  5600. });
  5601. };
  5602. if (h(), 0 === u.length) return;
  5603. if (n || p.on("click", t.img, function () {
  5604. var e = i(this),
  5605. n = e.attr("layer-index");
  5606. r.photos(i.extend(t, {
  5607. photos: {
  5608. start: n,
  5609. data: u,
  5610. tab: t.tab
  5611. },
  5612. full: t.full
  5613. }), !0), h();
  5614. }), !n) return;
  5615. }
  5616. s.imgprev = function (e) {
  5617. s.imgIndex--, s.imgIndex < 1 && (s.imgIndex = u.length), s.tabimg(e);
  5618. }, s.imgnext = function (e, t) {
  5619. s.imgIndex++, s.imgIndex > u.length && (s.imgIndex = 1, t) || s.tabimg(e);
  5620. }, s.keyup = function (e) {
  5621. if (!s.end) {
  5622. var t = e.keyCode;
  5623. e.preventDefault(), 37 === t ? s.imgprev(!0) : 39 === t ? s.imgnext(!0) : 27 === t && r.close(s.index);
  5624. }
  5625. }, s.tabimg = function (e) {
  5626. if (!(u.length <= 1)) return f.start = s.imgIndex - 1, r.close(s.index), r.photos(t, !0, e);
  5627. }, s.event = function () {
  5628. s.bigimg.hover(function () {
  5629. s.imgsee.show();
  5630. }, function () {
  5631. s.imgsee.hide();
  5632. }), s.bigimg.find(".layui-layer-imgprev").on("click", function (e) {
  5633. e.preventDefault(), s.imgprev();
  5634. }), s.bigimg.find(".layui-layer-imgnext").on("click", function (e) {
  5635. e.preventDefault(), s.imgnext();
  5636. }), i(document).on("keyup", s.keyup);
  5637. }, s.loadi = r.load(1, {
  5638. shade: !("shade" in t) && .9,
  5639. scrollbar: !1
  5640. }), o(u[d].src, function (n) {
  5641. r.close(s.loadi), s.index = r.open(i.extend({
  5642. type: 1,
  5643. id: "layui-layer-photos",
  5644. area: function () {
  5645. var a = [n.width, n.height],
  5646. o = [i(e).width() - 100, i(e).height() - 100];
  5647. if (!t.full && (a[0] > o[0] || a[1] > o[1])) {
  5648. var r = [a[0] / o[0], a[1] / o[1]];
  5649. r[0] > r[1] ? (a[0] = a[0] / r[0], a[1] = a[1] / r[0]) : r[0] < r[1] && (a[0] = a[0] / r[1], a[1] = a[1] / r[1]);
  5650. }
  5651. return [a[0] + "px", a[1] + "px"];
  5652. }(),
  5653. title: !1,
  5654. shade: .9,
  5655. shadeClose: !0,
  5656. closeBtn: !1,
  5657. move: ".layui-layer-phimg img",
  5658. moveType: 1,
  5659. scrollbar: !1,
  5660. moveOut: !0,
  5661. isOutAnim: !1,
  5662. skin: "layui-layer-photos" + c("photos"),
  5663. content: '<div class="layui-layer-phimg"><img src="' + u[d].src + '" alt="' + (u[d].alt || "") + '" layer-pid="' + u[d].pid + '"><div class="layui-layer-imgsee">' + (u.length > 1 ? '<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>' : "") + '<div class="layui-layer-imgbar" style="display:' + (a ? "block" : "") + '"><span class="layui-layer-imgtit"><a href="javascript:;">' + (u[d].alt || "") + "</a><em>" + s.imgIndex + "/" + u.length + "</em></span></div></div></div>",
  5664. success: function success(e, i) {
  5665. s.bigimg = e.find(".layui-layer-phimg"), s.imgsee = e.find(".layui-layer-imguide,.layui-layer-imgbar"), s.event(e), t.tab && t.tab(u[d], e), "function" == typeof y && y(e);
  5666. },
  5667. end: function end() {
  5668. s.end = !0, i(document).off("keyup", s.keyup);
  5669. }
  5670. }, t));
  5671. }, function () {
  5672. r.close(s.loadi), r.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;", {
  5673. time: 3e4,
  5674. btn: ["&#x4E0B;&#x4E00;&#x5F20;", "&#x4E0D;&#x770B;&#x4E86;"],
  5675. yes: function yes() {
  5676. u.length > 1 && s.imgnext(!0, !0);
  5677. }
  5678. });
  5679. });
  5680. }
  5681. }, o.run = function (t) {
  5682. i = t, n = i(e), l.html = i("html"), r.open = function (e) {
  5683. var t = new s(e);
  5684. return t.index;
  5685. };
  5686. }, e.layui && layui.define ? (r.ready(), layui.define("jquery", function (t) {
  5687. r.path = layui.cache.dir, o.run(layui.$), e.layer = r, t("layer", r);
  5688. })) : "function" == typeof define && define.amd ? define(["jquery"], function () {
  5689. return o.run(e.jQuery), r;
  5690. }) : function () {
  5691. o.run(e.jQuery), r.ready();
  5692. }();
  5693. }(window);
  5694. layui.define("jquery", function (t) {
  5695. "use strict";
  5696. var a = layui.$,
  5697. i = (layui.hint(), layui.device()),
  5698. e = "element",
  5699. l = "layui-this",
  5700. n = "layui-show",
  5701. s = function s() {
  5702. this.config = {};
  5703. };
  5704. s.prototype.set = function (t) {
  5705. var i = this;
  5706. return a.extend(!0, i.config, t), i;
  5707. }, s.prototype.on = function (t, a) {
  5708. return layui.onevent.call(this, e, t, a);
  5709. }, s.prototype.tabAdd = function (t, i) {
  5710. var e = ".layui-tab-title",
  5711. l = a(".layui-tab[lay-filter=" + t + "]"),
  5712. n = l.children(e),
  5713. s = n.children(".layui-tab-bar"),
  5714. o = l.children(".layui-tab-content"),
  5715. r = '<li lay-id="' + (i.id || "") + '"' + (i.attr ? ' lay-attr="' + i.attr + '"' : "") + ">" + (i.title || "unnaming") + "</li>";
  5716. return s[0] ? s.before(r) : n.append(r), o.append('<div class="layui-tab-item">' + (i.content || "") + "</div>"), f.hideTabMore(!0), f.tabAuto(), this;
  5717. }, s.prototype.tabDelete = function (t, i) {
  5718. var e = ".layui-tab-title",
  5719. l = a(".layui-tab[lay-filter=" + t + "]"),
  5720. n = l.children(e),
  5721. s = n.find('>li[lay-id="' + i + '"]');
  5722. return f.tabDelete(null, s), this;
  5723. }, s.prototype.tabChange = function (t, i) {
  5724. var e = ".layui-tab-title",
  5725. l = a(".layui-tab[lay-filter=" + t + "]"),
  5726. n = l.children(e),
  5727. s = n.find('>li[lay-id="' + i + '"]');
  5728. return f.tabClick.call(s[0], null, null, s), this;
  5729. }, s.prototype.tab = function (t) {
  5730. t = t || {}, b.on("click", t.headerElem, function (i) {
  5731. var e = a(this).index();
  5732. f.tabClick.call(this, i, e, null, t);
  5733. });
  5734. }, s.prototype.progress = function (t, i) {
  5735. var e = "layui-progress",
  5736. l = a("." + e + "[lay-filter=" + t + "]"),
  5737. n = l.find("." + e + "-bar"),
  5738. s = n.find("." + e + "-text");
  5739. return n.css("width", i), s.text(i), this;
  5740. };
  5741. var o = ".layui-nav",
  5742. r = "layui-nav-item",
  5743. c = "layui-nav-bar",
  5744. u = "layui-nav-tree",
  5745. d = "layui-nav-child",
  5746. y = "layui-nav-more",
  5747. h = "layui-anim layui-anim-upbit",
  5748. f = {
  5749. tabClick: function tabClick(t, i, s, o) {
  5750. o = o || {};
  5751. var r = s || a(this),
  5752. i = i || r.parent().children("li").index(r),
  5753. c = o.headerElem ? r.parent() : r.parents(".layui-tab").eq(0),
  5754. u = o.bodyElem ? a(o.bodyElem) : c.children(".layui-tab-content").children(".layui-tab-item"),
  5755. d = r.find("a"),
  5756. y = c.attr("lay-filter");
  5757. "javascript:;" !== d.attr("href") && "_blank" === d.attr("target") || (r.addClass(l).siblings().removeClass(l), u.eq(i).addClass(n).siblings().removeClass(n)), layui.event.call(this, e, "tab(" + y + ")", {
  5758. elem: c,
  5759. index: i
  5760. });
  5761. },
  5762. tabDelete: function tabDelete(t, i) {
  5763. var n = i || a(this).parent(),
  5764. s = n.index(),
  5765. o = n.parents(".layui-tab").eq(0),
  5766. r = o.children(".layui-tab-content").children(".layui-tab-item"),
  5767. c = o.attr("lay-filter");
  5768. n.hasClass(l) && (n.next()[0] ? f.tabClick.call(n.next()[0], null, s + 1) : n.prev()[0] && f.tabClick.call(n.prev()[0], null, s - 1)), n.remove(), r.eq(s).remove(), setTimeout(function () {
  5769. f.tabAuto();
  5770. }, 50), layui.event.call(this, e, "tabDelete(" + c + ")", {
  5771. elem: o,
  5772. index: s
  5773. });
  5774. },
  5775. tabAuto: function tabAuto() {
  5776. var t = "layui-tab-more",
  5777. e = "layui-tab-bar",
  5778. l = "layui-tab-close",
  5779. n = this;
  5780. a(".layui-tab").each(function () {
  5781. var s = a(this),
  5782. o = s.children(".layui-tab-title"),
  5783. r = (s.children(".layui-tab-content").children(".layui-tab-item"), 'lay-stope="tabmore"'),
  5784. c = a('<span class="layui-unselect layui-tab-bar" ' + r + "><i " + r + ' class="layui-icon">&#xe61a;</i></span>');
  5785. if (n === window && 8 != i.ie && f.hideTabMore(!0), s.attr("lay-allowClose") && o.find("li").each(function () {
  5786. var t = a(this);
  5787. if (!t.find("." + l)[0]) {
  5788. var i = a('<i class="layui-icon layui-unselect ' + l + '">&#x1006;</i>');
  5789. i.on("click", f.tabDelete), t.append(i);
  5790. }
  5791. }), "string" != typeof s.attr("lay-unauto")) if (o.prop("scrollWidth") > o.outerWidth() + 1) {
  5792. if (o.find("." + e)[0]) return;
  5793. o.append(c), s.attr("overflow", ""), c.on("click", function (a) {
  5794. o[this.title ? "removeClass" : "addClass"](t), this.title = this.title ? "" : "收缩";
  5795. });
  5796. } else o.find("." + e).remove(), s.removeAttr("overflow");
  5797. });
  5798. },
  5799. hideTabMore: function hideTabMore(t) {
  5800. var i = a(".layui-tab-title");
  5801. t !== !0 && "tabmore" === a(t.target).attr("lay-stope") || (i.removeClass("layui-tab-more"), i.find(".layui-tab-bar").attr("title", ""));
  5802. },
  5803. clickThis: function clickThis() {
  5804. var t = a(this),
  5805. i = t.parents(o),
  5806. n = i.attr("lay-filter"),
  5807. s = t.parent(),
  5808. c = t.siblings("." + d),
  5809. y = "string" == typeof s.attr("lay-unselect");
  5810. "javascript:;" !== t.attr("href") && "_blank" === t.attr("target") || y || c[0] || (i.find("." + l).removeClass(l), s.addClass(l)), i.hasClass(u) && (c.removeClass(h), c[0] && (s["none" === c.css("display") ? "addClass" : "removeClass"](r + "ed"), "all" === i.attr("lay-shrink") && s.siblings().removeClass(r + "ed"))), layui.event.call(this, e, "nav(" + n + ")", t);
  5811. },
  5812. collapse: function collapse() {
  5813. var t = a(this),
  5814. i = t.find(".layui-colla-icon"),
  5815. l = t.siblings(".layui-colla-content"),
  5816. s = t.parents(".layui-collapse").eq(0),
  5817. o = s.attr("lay-filter"),
  5818. r = "none" === l.css("display");
  5819. if ("string" == typeof s.attr("lay-accordion")) {
  5820. var c = s.children(".layui-colla-item").children("." + n);
  5821. c.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"), c.removeClass(n);
  5822. }
  5823. l[r ? "addClass" : "removeClass"](n), i.html(r ? "&#xe61a;" : "&#xe602;"), layui.event.call(this, e, "collapse(" + o + ")", {
  5824. title: t,
  5825. content: l,
  5826. show: r
  5827. });
  5828. }
  5829. };
  5830. s.prototype.init = function (t, e) {
  5831. var l = function () {
  5832. return e ? '[lay-filter="' + e + '"]' : "";
  5833. }(),
  5834. s = {
  5835. tab: function tab() {
  5836. f.tabAuto.call({});
  5837. },
  5838. nav: function nav() {
  5839. var t = 200,
  5840. e = {},
  5841. s = {},
  5842. p = {},
  5843. b = function b(l, o, r) {
  5844. var c = a(this),
  5845. f = c.find("." + d);
  5846. o.hasClass(u) ? l.css({
  5847. top: c.position().top,
  5848. height: c.children("a").outerHeight(),
  5849. opacity: 1
  5850. }) : (f.addClass(h), l.css({
  5851. left: c.position().left + parseFloat(c.css("marginLeft")),
  5852. top: c.position().top + c.height() - l.height()
  5853. }), e[r] = setTimeout(function () {
  5854. l.css({
  5855. width: c.width(),
  5856. opacity: 1
  5857. });
  5858. }, i.ie && i.ie < 10 ? 0 : t), clearTimeout(p[r]), "block" === f.css("display") && clearTimeout(s[r]), s[r] = setTimeout(function () {
  5859. f.addClass(n), c.find("." + y).addClass(y + "d");
  5860. }, 300));
  5861. };
  5862. a(o + l).each(function (i) {
  5863. var l = a(this),
  5864. o = a('<span class="' + c + '"></span>'),
  5865. h = l.find("." + r);
  5866. l.find("." + c)[0] || (l.append(o), h.on("mouseenter", function () {
  5867. b.call(this, o, l, i);
  5868. }).on("mouseleave", function () {
  5869. l.hasClass(u) || (clearTimeout(s[i]), s[i] = setTimeout(function () {
  5870. l.find("." + d).removeClass(n), l.find("." + y).removeClass(y + "d");
  5871. }, 300));
  5872. }), l.on("mouseleave", function () {
  5873. clearTimeout(e[i]), p[i] = setTimeout(function () {
  5874. l.hasClass(u) ? o.css({
  5875. height: 0,
  5876. top: o.position().top + o.height() / 2,
  5877. opacity: 0
  5878. }) : o.css({
  5879. width: 0,
  5880. left: o.position().left + o.width() / 2,
  5881. opacity: 0
  5882. });
  5883. }, t);
  5884. })), h.find("a").each(function () {
  5885. var t = a(this),
  5886. i = (t.parent(), t.siblings("." + d));
  5887. i[0] && !t.children("." + y)[0] && t.append('<span class="' + y + '"></span>'), t.off("click", f.clickThis).on("click", f.clickThis);
  5888. });
  5889. });
  5890. },
  5891. breadcrumb: function breadcrumb() {
  5892. var t = ".layui-breadcrumb";
  5893. a(t + l).each(function () {
  5894. var t = a(this),
  5895. i = "lay-separator",
  5896. e = t.attr(i) || "/",
  5897. l = t.find("a");
  5898. l.next("span[" + i + "]")[0] || (l.each(function (t) {
  5899. t !== l.length - 1 && a(this).after("<span " + i + ">" + e + "</span>");
  5900. }), t.css("visibility", "visible"));
  5901. });
  5902. },
  5903. progress: function progress() {
  5904. var t = "layui-progress";
  5905. a("." + t + l).each(function () {
  5906. var i = a(this),
  5907. e = i.find(".layui-progress-bar"),
  5908. l = e.attr("lay-percent");
  5909. e.css("width", function () {
  5910. return /^.+\/.+$/.test(l) ? 100 * new Function("return " + l)() + "%" : l;
  5911. }()), i.attr("lay-showPercent") && setTimeout(function () {
  5912. e.html('<span class="' + t + '-text">' + l + "</span>");
  5913. }, 350);
  5914. });
  5915. },
  5916. collapse: function collapse() {
  5917. var t = "layui-collapse";
  5918. a("." + t + l).each(function () {
  5919. var t = a(this).find(".layui-colla-item");
  5920. t.each(function () {
  5921. var t = a(this),
  5922. i = t.find(".layui-colla-title"),
  5923. e = t.find(".layui-colla-content"),
  5924. l = "none" === e.css("display");
  5925. i.find(".layui-colla-icon").remove(), i.append('<i class="layui-icon layui-colla-icon">' + (l ? "&#xe602;" : "&#xe61a;") + "</i>"), i.off("click", f.collapse).on("click", f.collapse);
  5926. });
  5927. });
  5928. }
  5929. };
  5930. return s[t] ? s[t]() : layui.each(s, function (t, a) {
  5931. a();
  5932. });
  5933. }, s.prototype.render = s.prototype.init;
  5934. var p = new s(),
  5935. b = a(document);
  5936. p.render();
  5937. var v = ".layui-tab-title li";
  5938. b.on("click", v, f.tabClick), b.on("click", f.hideTabMore), a(window).on("resize", f.tabAuto), t(e, p);
  5939. });
  5940. layui.define("layer", function (e) {
  5941. "use strict";
  5942. var t = layui.$,
  5943. i = layui.layer,
  5944. n = layui.hint(),
  5945. o = layui.device(),
  5946. a = {
  5947. config: {},
  5948. set: function set(e) {
  5949. var i = this;
  5950. return i.config = t.extend({}, i.config, e), i;
  5951. },
  5952. on: function on(e, t) {
  5953. return layui.onevent.call(this, r, e, t);
  5954. }
  5955. },
  5956. l = function l() {
  5957. var e = this;
  5958. return {
  5959. upload: function upload(t) {
  5960. e.upload.call(e, t);
  5961. },
  5962. reload: function reload(t) {
  5963. e.reload.call(e, t);
  5964. },
  5965. config: e.config
  5966. };
  5967. },
  5968. r = "upload",
  5969. u = "layui-upload-file",
  5970. c = "layui-upload-form",
  5971. f = "layui-upload-iframe",
  5972. s = "layui-upload-choose",
  5973. p = function p(e) {
  5974. var i = this;
  5975. i.config = t.extend({}, i.config, a.config, e), i.render();
  5976. };
  5977. p.prototype.config = {
  5978. accept: "images",
  5979. exts: "",
  5980. auto: !0,
  5981. bindAction: "",
  5982. url: "",
  5983. field: "file",
  5984. acceptMime: "",
  5985. method: "post",
  5986. data: {},
  5987. drag: !0,
  5988. size: 0,
  5989. number: 0,
  5990. multiple: !1
  5991. }, p.prototype.render = function (e) {
  5992. var i = this,
  5993. e = i.config;
  5994. e.elem = t(e.elem), e.bindAction = t(e.bindAction), i.file(), i.events();
  5995. }, p.prototype.file = function () {
  5996. var e = this,
  5997. i = e.config,
  5998. n = e.elemFile = t(['<input class="' + u + '" type="file" accept="' + i.acceptMime + '" name="' + i.field + '"', i.multiple ? " multiple" : "", ">"].join("")),
  5999. a = i.elem.next();
  6000. (a.hasClass(u) || a.hasClass(c)) && a.remove(), o.ie && o.ie < 10 && i.elem.wrap('<div class="layui-upload-wrap"></div>'), e.isFile() ? (e.elemFile = i.elem, i.field = i.elem[0].name) : i.elem.after(n), o.ie && o.ie < 10 && e.initIE();
  6001. }, p.prototype.initIE = function () {
  6002. var e = this,
  6003. i = e.config,
  6004. n = t('<iframe id="' + f + '" class="' + f + '" name="' + f + '" frameborder="0"></iframe>'),
  6005. o = t(['<form target="' + f + '" class="' + c + '" method="post" key="set-mine" enctype="multipart/form-data" action="' + i.url + '">', "</form>"].join(""));
  6006. t("#" + f)[0] || t("body").append(n), i.elem.next().hasClass(c) || (e.elemFile.wrap(o), i.elem.next("." + c).append(function () {
  6007. var e = [];
  6008. return layui.each(i.data, function (t, i) {
  6009. i = "function" == typeof i ? i() : i, e.push('<input type="hidden" name="' + t + '" value="' + i + '">');
  6010. }), e.join("");
  6011. }()));
  6012. }, p.prototype.msg = function (e) {
  6013. return i.msg(e, {
  6014. icon: 2,
  6015. shift: 6
  6016. });
  6017. }, p.prototype.isFile = function () {
  6018. var e = this.config.elem[0];
  6019. if (e) return "input" === e.tagName.toLocaleLowerCase() && "file" === e.type;
  6020. }, p.prototype.preview = function (e) {
  6021. var t = this;
  6022. window.FileReader && layui.each(t.chooseFiles, function (t, i) {
  6023. var n = new FileReader();
  6024. n.readAsDataURL(i), n.onload = function () {
  6025. e && e(t, i, this.result);
  6026. };
  6027. });
  6028. }, p.prototype.upload = function (e, i) {
  6029. var n,
  6030. a = this,
  6031. l = a.config,
  6032. r = a.elemFile[0],
  6033. u = function u() {
  6034. var i = 0,
  6035. n = 0,
  6036. o = e || a.files || a.chooseFiles || r.files,
  6037. u = function u() {
  6038. l.multiple && i + n === a.fileLength && "function" == typeof l.allDone && l.allDone({
  6039. total: a.fileLength,
  6040. successful: i,
  6041. aborted: n
  6042. });
  6043. };
  6044. layui.each(o, function (e, o) {
  6045. var r = new FormData();
  6046. r.append(l.field, o), layui.each(l.data, function (e, t) {
  6047. t = "function" == typeof t ? t() : t, r.append(e, t);
  6048. });
  6049. var c = {
  6050. url: l.url,
  6051. type: "post",
  6052. data: r,
  6053. contentType: !1,
  6054. processData: !1,
  6055. dataType: "json",
  6056. headers: l.headers || {},
  6057. success: function success(t) {
  6058. i++, d(e, t), u();
  6059. },
  6060. error: function error() {
  6061. n++, a.msg("请求上传接口出现异常"), m(e), u();
  6062. }
  6063. };
  6064. "function" == typeof l.progress && (c.xhr = function () {
  6065. var e = t.ajaxSettings.xhr();
  6066. return e.upload.addEventListener("progress", function (e) {
  6067. if (e.lengthComputable) {
  6068. var t = Math.floor(e.loaded / e.total * 100);
  6069. l.progress(t, l.item[0], e);
  6070. }
  6071. }), e;
  6072. }), t.ajax(c);
  6073. });
  6074. },
  6075. c = function c() {
  6076. var e = t("#" + f);
  6077. a.elemFile.parent().submit(), clearInterval(p.timer), p.timer = setInterval(function () {
  6078. var t,
  6079. i = e.contents().find("body");
  6080. try {
  6081. t = i.text();
  6082. } catch (n) {
  6083. a.msg("获取上传后的响应信息出现异常"), clearInterval(p.timer), m();
  6084. }
  6085. t && (clearInterval(p.timer), i.html(""), d(0, t));
  6086. }, 30);
  6087. },
  6088. d = function d(e, t) {
  6089. if (a.elemFile.next("." + s).remove(), r.value = "", "object" != _typeof(t)) try {
  6090. t = JSON.parse(t);
  6091. } catch (i) {
  6092. return t = {}, a.msg("请对上传接口返回有效JSON");
  6093. }
  6094. "function" == typeof l.done && l.done(t, e || 0, function (e) {
  6095. a.upload(e);
  6096. });
  6097. },
  6098. m = function m(e) {
  6099. l.auto && (r.value = ""), "function" == typeof l.error && l.error(e || 0, function (e) {
  6100. a.upload(e);
  6101. });
  6102. },
  6103. h = l.exts,
  6104. v = function () {
  6105. var t = [];
  6106. return layui.each(e || a.chooseFiles, function (e, i) {
  6107. t.push(i.name);
  6108. }), t;
  6109. }(),
  6110. g = {
  6111. preview: function preview(e) {
  6112. a.preview(e);
  6113. },
  6114. upload: function upload(e, t) {
  6115. var i = {};
  6116. i[e] = t, a.upload(i);
  6117. },
  6118. pushFile: function pushFile() {
  6119. return a.files = a.files || {}, layui.each(a.chooseFiles, function (e, t) {
  6120. a.files[e] = t;
  6121. }), a.files;
  6122. },
  6123. resetFile: function resetFile(e, t, i) {
  6124. var n = new File([t], i);
  6125. a.files = a.files || {}, a.files[e] = n;
  6126. }
  6127. },
  6128. y = function y() {
  6129. if ("choose" !== i && !l.auto || (l.choose && l.choose(g), "choose" !== i)) return l.before && l.before(g), o.ie ? o.ie > 9 ? u() : c() : void u();
  6130. };
  6131. if (v = 0 === v.length ? r.value.match(/[^\/\\]+\..+/g) || [] || "" : v, 0 !== v.length) {
  6132. switch (l.accept) {
  6133. case "file":
  6134. if (h && !RegExp("\\w\\.(" + h + ")$", "i").test(escape(v))) return a.msg("选择的文件中包含不支持的格式"), r.value = "";
  6135. break;
  6136. case "video":
  6137. if (!RegExp("\\w\\.(" + (h || "avi|mp4|wma|rmvb|rm|flash|3gp|flv") + ")$", "i").test(escape(v))) return a.msg("选择的视频中包含不支持的格式"), r.value = "";
  6138. break;
  6139. case "audio":
  6140. if (!RegExp("\\w\\.(" + (h || "mp3|wav|mid") + ")$", "i").test(escape(v))) return a.msg("选择的音频中包含不支持的格式"), r.value = "";
  6141. break;
  6142. default:
  6143. if (layui.each(v, function (e, t) {
  6144. RegExp("\\w\\.(" + (h || "jpg|png|gif|bmp|jpeg$") + ")", "i").test(escape(t)) || (n = !0);
  6145. }), n) return a.msg("选择的图片中包含不支持的格式"), r.value = "";
  6146. }
  6147. if (a.fileLength = function () {
  6148. var t = 0,
  6149. i = e || a.files || a.chooseFiles || r.files;
  6150. return layui.each(i, function () {
  6151. t++;
  6152. }), t;
  6153. }(), l.number && a.fileLength > l.number) return a.msg("同时最多只能上传的数量为:" + l.number);
  6154. if (l.size > 0 && !(o.ie && o.ie < 10)) {
  6155. var F;
  6156. if (layui.each(a.chooseFiles, function (e, t) {
  6157. if (t.size > 1024 * l.size) {
  6158. var i = l.size / 1024;
  6159. i = i >= 1 ? i.toFixed(2) + "MB" : l.size + "KB", r.value = "", F = i;
  6160. }
  6161. }), F) return a.msg("文件不能超过" + F);
  6162. }
  6163. y();
  6164. }
  6165. }, p.prototype.reload = function (e) {
  6166. e = e || {}, delete e.elem, delete e.bindAction;
  6167. var i = this,
  6168. e = i.config = t.extend({}, i.config, a.config, e),
  6169. n = e.elem.next();
  6170. n.attr({
  6171. name: e.name,
  6172. accept: e.acceptMime,
  6173. multiple: e.multiple
  6174. });
  6175. }, p.prototype.events = function () {
  6176. var e = this,
  6177. i = e.config,
  6178. a = function a(t) {
  6179. e.chooseFiles = {}, layui.each(t, function (t, i) {
  6180. var n = new Date().getTime();
  6181. e.chooseFiles[n + "-" + t] = i;
  6182. });
  6183. },
  6184. l = function l(t, n) {
  6185. var o = e.elemFile,
  6186. a = t.length > 1 ? t.length + "个文件" : (t[0] || {}).name || o[0].value.match(/[^\/\\]+\..+/g) || [] || "";
  6187. o.next().hasClass(s) && o.next().remove(), e.upload(null, "choose"), e.isFile() || i.choose || o.after('<span class="layui-inline ' + s + '">' + a + "</span>");
  6188. };
  6189. i.elem.off("upload.start").on("upload.start", function () {
  6190. var o = t(this),
  6191. a = o.attr("lay-data");
  6192. if (a) try {
  6193. a = new Function("return " + a)(), e.config = t.extend({}, i, a);
  6194. } catch (l) {
  6195. n.error("Upload element property lay-data configuration item has a syntax error: " + a);
  6196. }
  6197. e.config.item = o, e.elemFile[0].click();
  6198. }), o.ie && o.ie < 10 || i.elem.off("upload.over").on("upload.over", function () {
  6199. var e = t(this);
  6200. e.attr("lay-over", "");
  6201. }).off("upload.leave").on("upload.leave", function () {
  6202. var e = t(this);
  6203. e.removeAttr("lay-over");
  6204. }).off("upload.drop").on("upload.drop", function (n, o) {
  6205. var r = t(this),
  6206. u = o.originalEvent.dataTransfer.files || [];
  6207. r.removeAttr("lay-over"), a(u), i.auto ? e.upload(u) : l(u);
  6208. }), e.elemFile.off("upload.change").on("upload.change", function () {
  6209. var t = this.files || [];
  6210. a(t), i.auto ? e.upload() : l(t);
  6211. }), i.bindAction.off("upload.action").on("upload.action", function () {
  6212. e.upload();
  6213. }), i.elem.data("haveEvents") || (e.elemFile.on("change", function () {
  6214. t(this).trigger("upload.change");
  6215. }), i.elem.on("click", function () {
  6216. e.isFile() || t(this).trigger("upload.start");
  6217. }), i.drag && i.elem.on("dragover", function (e) {
  6218. e.preventDefault(), t(this).trigger("upload.over");
  6219. }).on("dragleave", function (e) {
  6220. t(this).trigger("upload.leave");
  6221. }).on("drop", function (e) {
  6222. e.preventDefault(), t(this).trigger("upload.drop", e);
  6223. }), i.bindAction.on("click", function () {
  6224. t(this).trigger("upload.action");
  6225. }), i.elem.data("haveEvents", !0));
  6226. }, a.render = function (e) {
  6227. var t = new p(e);
  6228. return l.call(t);
  6229. }, e(r, a);
  6230. });
  6231. layui.define("jquery", function (e) {
  6232. "use strict";
  6233. var i = layui.jquery,
  6234. t = {
  6235. config: {},
  6236. index: layui.slider ? layui.slider.index + 1e4 : 0,
  6237. set: function set(e) {
  6238. var t = this;
  6239. return t.config = i.extend({}, t.config, e), t;
  6240. },
  6241. on: function on(e, i) {
  6242. return layui.onevent.call(this, n, e, i);
  6243. }
  6244. },
  6245. a = function a() {
  6246. var e = this,
  6247. i = e.config;
  6248. return {
  6249. setValue: function setValue(i, t) {
  6250. return e.slide("set", i, t || 0);
  6251. },
  6252. config: i
  6253. };
  6254. },
  6255. n = "slider",
  6256. l = "layui-disabled",
  6257. s = "layui-slider",
  6258. r = "layui-slider-bar",
  6259. o = "layui-slider-wrap",
  6260. u = "layui-slider-wrap-btn",
  6261. d = "layui-slider-tips",
  6262. v = "layui-slider-input",
  6263. c = "layui-slider-input-txt",
  6264. m = "layui-slider-input-btn",
  6265. p = "layui-slider-hover",
  6266. f = function f(e) {
  6267. var a = this;
  6268. a.index = ++t.index, a.config = i.extend({}, a.config, t.config, e), a.render();
  6269. };
  6270. f.prototype.config = {
  6271. type: "default",
  6272. min: 0,
  6273. max: 100,
  6274. value: 0,
  6275. step: 1,
  6276. showstep: !1,
  6277. tips: !0,
  6278. input: !1,
  6279. range: !1,
  6280. height: 200,
  6281. disabled: !1,
  6282. theme: "#009688"
  6283. }, f.prototype.render = function () {
  6284. var e = this,
  6285. t = e.config;
  6286. if (t.step < 1 && (t.step = 1), t.max < t.min && (t.max = t.min + t.step), t.range) {
  6287. t.value = "object" == _typeof(t.value) ? t.value : [t.min, t.value];
  6288. var a = Math.min(t.value[0], t.value[1]),
  6289. n = Math.max(t.value[0], t.value[1]);
  6290. t.value[0] = a > t.min ? a : t.min, t.value[1] = n > t.min ? n : t.min, t.value[0] = t.value[0] > t.max ? t.max : t.value[0], t.value[1] = t.value[1] > t.max ? t.max : t.value[1];
  6291. var r = Math.floor((t.value[0] - t.min) / (t.max - t.min) * 100),
  6292. v = Math.floor((t.value[1] - t.min) / (t.max - t.min) * 100),
  6293. m = v - r + "%";
  6294. r += "%", v += "%";
  6295. } else {
  6296. "object" == _typeof(t.value) && (t.value = Math.min.apply(null, t.value)), t.value < t.min && (t.value = t.min), t.value > t.max && (t.value = t.max);
  6297. var m = Math.floor((t.value - t.min) / (t.max - t.min) * 100) + "%";
  6298. }
  6299. var p = t.disabled ? "#c2c2c2" : t.theme,
  6300. f = '<div class="layui-slider ' + ("vertical" === t.type ? "layui-slider-vertical" : "") + '">' + (t.tips ? '<div class="layui-slider-tips"></div>' : "") + '<div class="layui-slider-bar" style="background:' + p + "; " + ("vertical" === t.type ? "height" : "width") + ":" + m + ";" + ("vertical" === t.type ? "bottom" : "left") + ":" + (r || 0) + ';"></div><div class="layui-slider-wrap" style="' + ("vertical" === t.type ? "bottom" : "left") + ":" + (r || m) + ';"><div class="layui-slider-wrap-btn" style="border: 2px solid ' + p + ';"></div></div>' + (t.range ? '<div class="layui-slider-wrap" style="' + ("vertical" === t.type ? "bottom" : "left") + ":" + v + ';"><div class="layui-slider-wrap-btn" style="border: 2px solid ' + p + ';"></div></div>' : "") + "</div>",
  6301. h = i(t.elem),
  6302. y = h.next("." + s);
  6303. if (y[0] && y.remove(), e.elemTemp = i(f), t.range ? (e.elemTemp.find("." + o).eq(0).data("value", t.value[0]), e.elemTemp.find("." + o).eq(1).data("value", t.value[1])) : e.elemTemp.find("." + o).data("value", t.value), h.html(e.elemTemp), "vertical" === t.type && e.elemTemp.height(t.height + "px"), t.showstep) {
  6304. for (var g = (t.max - t.min) / t.step, b = "", x = 1; x < g + 1; x++) {
  6305. var T = 100 * x / g;
  6306. T < 100 && (b += '<div class="layui-slider-step" style="' + ("vertical" === t.type ? "bottom" : "left") + ":" + T + '%"></div>');
  6307. }
  6308. e.elemTemp.append(b);
  6309. }
  6310. if (t.input && !t.range) {
  6311. var w = i('<div class="layui-slider-input layui-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>');
  6312. h.css("position", "relative"), h.append(w), h.find("." + c).children("input").val(t.value), "vertical" === t.type ? w.css({
  6313. left: 0,
  6314. top: -48
  6315. }) : e.elemTemp.css("margin-right", w.outerWidth() + 15);
  6316. }
  6317. t.disabled ? (e.elemTemp.addClass(l), e.elemTemp.find("." + u).addClass(l)) : e.slide(), e.elemTemp.find("." + u).on("mouseover", function () {
  6318. var a = "vertical" === t.type ? t.height : e.elemTemp[0].offsetWidth,
  6319. n = e.elemTemp.find("." + o),
  6320. l = "vertical" === t.type ? a - i(this).parent()[0].offsetTop - n.height() : i(this).parent()[0].offsetLeft,
  6321. s = l / a * 100,
  6322. r = i(this).parent().data("value"),
  6323. u = t.setTips ? t.setTips(r) : r;
  6324. e.elemTemp.find("." + d).html(u), "vertical" === t.type ? e.elemTemp.find("." + d).css({
  6325. bottom: s + "%",
  6326. "margin-bottom": "20px",
  6327. display: "inline-block"
  6328. }) : e.elemTemp.find("." + d).css({
  6329. left: s + "%",
  6330. display: "inline-block"
  6331. });
  6332. }).on("mouseout", function () {
  6333. e.elemTemp.find("." + d).css("display", "none");
  6334. });
  6335. }, f.prototype.slide = function (e, t, a) {
  6336. var n = this,
  6337. l = n.config,
  6338. s = n.elemTemp,
  6339. f = function f() {
  6340. return "vertical" === l.type ? l.height : s[0].offsetWidth;
  6341. },
  6342. h = s.find("." + o),
  6343. y = s.next("." + v),
  6344. g = y.children("." + c).children("input").val(),
  6345. b = 100 / ((l.max - l.min) / Math.ceil(l.step)),
  6346. x = function x(e, i) {
  6347. e = Math.ceil(e) * b > 100 ? Math.ceil(e) * b : Math.round(e) * b, e = e > 100 ? 100 : e, h.eq(i).css("vertical" === l.type ? "bottom" : "left", e + "%");
  6348. var t = T(h[0].offsetLeft),
  6349. a = l.range ? T(h[1].offsetLeft) : 0;
  6350. "vertical" === l.type ? (s.find("." + d).css({
  6351. bottom: e + "%",
  6352. "margin-bottom": "20px"
  6353. }), t = T(f() - h[0].offsetTop - h.height()), a = l.range ? T(f() - h[1].offsetTop - h.height()) : 0) : s.find("." + d).css("left", e + "%"), t = t > 100 ? 100 : t, a = a > 100 ? 100 : a;
  6354. var n = Math.min(t, a),
  6355. o = Math.abs(t - a);
  6356. "vertical" === l.type ? s.find("." + r).css({
  6357. height: o + "%",
  6358. bottom: n + "%"
  6359. }) : s.find("." + r).css({
  6360. width: o + "%",
  6361. left: n + "%"
  6362. });
  6363. var u = l.min + Math.round((l.max - l.min) * e / 100);
  6364. if (g = u, y.children("." + c).children("input").val(g), h.eq(i).data("value", u), u = l.setTips ? l.setTips(u) : u, s.find("." + d).html(u), l.range) {
  6365. var v = [h.eq(0).data("value"), h.eq(1).data("value")];
  6366. v[0] > v[1] && v.reverse();
  6367. }
  6368. l.change && l.change(l.range ? v : u);
  6369. },
  6370. T = function T(e) {
  6371. var i = e / f() * 100 / b,
  6372. t = Math.round(i) * b;
  6373. return e == f() && (t = Math.ceil(i) * b), t;
  6374. },
  6375. w = i(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join("")),
  6376. M = function M(e, t) {
  6377. var a = function a() {
  6378. t && t(), w.remove();
  6379. };
  6380. i("#LAY-slider-moving")[0] || i("body").append(w), w.on("mousemove", e), w.on("mouseup", a).on("mouseleave", a);
  6381. };
  6382. if ("set" === e) return x(t, a);
  6383. s.find("." + u).each(function (e) {
  6384. var t = i(this);
  6385. t.on("mousedown", function (i) {
  6386. i = i || window.event;
  6387. var a = t.parent()[0].offsetLeft,
  6388. n = i.clientX;
  6389. "vertical" === l.type && (a = f() - t.parent()[0].offsetTop - h.height(), n = i.clientY);
  6390. var r = function r(i) {
  6391. i = i || window.event;
  6392. var r = a + ("vertical" === l.type ? n - i.clientY : i.clientX - n);
  6393. r < 0 && (r = 0), r > f() && (r = f());
  6394. var o = r / f() * 100 / b;
  6395. x(o, e), t.addClass(p), s.find("." + d).show(), i.preventDefault();
  6396. },
  6397. o = function o() {
  6398. t.removeClass(p), s.find("." + d).hide();
  6399. };
  6400. M(r, o);
  6401. });
  6402. }), s.on("click", function (e) {
  6403. var t = i("." + u);
  6404. if (!t.is(event.target) && 0 === t.has(event.target).length && t.length) {
  6405. var a,
  6406. n = "vertical" === l.type ? f() - e.clientY + i(this).offset().top : e.clientX - i(this).offset().left;
  6407. n < 0 && (n = 0), n > f() && (n = f());
  6408. var s = n / f() * 100 / b;
  6409. a = l.range ? "vertical" === l.type ? Math.abs(n - parseInt(i(h[0]).css("bottom"))) > Math.abs(n - parseInt(i(h[1]).css("bottom"))) ? 1 : 0 : Math.abs(n - h[0].offsetLeft) > Math.abs(n - h[1].offsetLeft) ? 1 : 0 : 0, x(s, a), e.preventDefault();
  6410. }
  6411. }), y.hover(function () {
  6412. var e = i(this);
  6413. e.children("." + m).fadeIn("fast");
  6414. }, function () {
  6415. var e = i(this);
  6416. e.children("." + m).fadeOut("fast");
  6417. }), y.children("." + m).children("i").each(function (e) {
  6418. i(this).on("click", function () {
  6419. g = 1 == e ? g - l.step < l.min ? l.min : Number(g) - l.step : Number(g) + l.step > l.max ? l.max : Number(g) + l.step;
  6420. var i = (g - l.min) / (l.max - l.min) * 100 / b;
  6421. x(i, 0);
  6422. });
  6423. });
  6424. var q = function q() {
  6425. var e = this.value;
  6426. e = isNaN(e) ? 0 : e, e = e < l.min ? l.min : e, e = e > l.max ? l.max : e, this.value = e;
  6427. var i = (e - l.min) / (l.max - l.min) * 100 / b;
  6428. x(i, 0);
  6429. };
  6430. y.children("." + c).children("input").on("keydown", function (e) {
  6431. 13 === e.keyCode && (e.preventDefault(), q.call(this));
  6432. }).on("change", q);
  6433. }, f.prototype.events = function () {
  6434. var e = this;
  6435. e.config;
  6436. }, t.render = function (e) {
  6437. var i = new f(e);
  6438. return a.call(i);
  6439. }, e(n, t);
  6440. });
  6441. layui.define("jquery", function (e) {
  6442. "use strict";
  6443. var i = layui.jquery,
  6444. o = {
  6445. config: {},
  6446. index: layui.colorpicker ? layui.colorpicker.index + 1e4 : 0,
  6447. set: function set(e) {
  6448. var o = this;
  6449. return o.config = i.extend({}, o.config, e), o;
  6450. },
  6451. on: function on(e, i) {
  6452. return layui.onevent.call(this, "colorpicker", e, i);
  6453. }
  6454. },
  6455. r = function r() {
  6456. var e = this,
  6457. i = e.config;
  6458. return {
  6459. config: i
  6460. };
  6461. },
  6462. t = "colorpicker",
  6463. n = "layui-show",
  6464. l = "layui-colorpicker",
  6465. c = ".layui-colorpicker-main",
  6466. a = "layui-icon-down",
  6467. s = "layui-icon-close",
  6468. f = "layui-colorpicker-trigger-span",
  6469. d = "layui-colorpicker-trigger-i",
  6470. u = "layui-colorpicker-side",
  6471. p = "layui-colorpicker-side-slider",
  6472. g = "layui-colorpicker-basis",
  6473. v = "layui-colorpicker-alpha-bgcolor",
  6474. h = "layui-colorpicker-alpha-slider",
  6475. m = "layui-colorpicker-basis-cursor",
  6476. b = "layui-colorpicker-main-input",
  6477. k = function k(e) {
  6478. var i = {
  6479. h: 0,
  6480. s: 0,
  6481. b: 0
  6482. },
  6483. o = Math.min(e.r, e.g, e.b),
  6484. r = Math.max(e.r, e.g, e.b),
  6485. t = r - o;
  6486. return i.b = r, i.s = 0 != r ? 255 * t / r : 0, 0 != i.s ? e.r == r ? i.h = (e.g - e.b) / t : e.g == r ? i.h = 2 + (e.b - e.r) / t : i.h = 4 + (e.r - e.g) / t : i.h = -1, r == o && (i.h = 0), i.h *= 60, i.h < 0 && (i.h += 360), i.s *= 100 / 255, i.b *= 100 / 255, i;
  6487. },
  6488. y = function y(e) {
  6489. var e = e.indexOf("#") > -1 ? e.substring(1) : e;
  6490. if (3 == e.length) {
  6491. var i = e.split("");
  6492. e = i[0] + i[0] + i[1] + i[1] + i[2] + i[2];
  6493. }
  6494. e = parseInt(e, 16);
  6495. var o = {
  6496. r: e >> 16,
  6497. g: (65280 & e) >> 8,
  6498. b: 255 & e
  6499. };
  6500. return k(o);
  6501. },
  6502. x = function x(e) {
  6503. var i = {},
  6504. o = e.h,
  6505. r = 255 * e.s / 100,
  6506. t = 255 * e.b / 100;
  6507. if (0 == r) i.r = i.g = i.b = t;else {
  6508. var n = t,
  6509. l = (255 - r) * t / 255,
  6510. c = (n - l) * (o % 60) / 60;
  6511. 360 == o && (o = 0), o < 60 ? (i.r = n, i.b = l, i.g = l + c) : o < 120 ? (i.g = n, i.b = l, i.r = n - c) : o < 180 ? (i.g = n, i.r = l, i.b = l + c) : o < 240 ? (i.b = n, i.r = l, i.g = n - c) : o < 300 ? (i.b = n, i.g = l, i.r = l + c) : o < 360 ? (i.r = n, i.g = l, i.b = n - c) : (i.r = 0, i.g = 0, i.b = 0);
  6512. }
  6513. return {
  6514. r: Math.round(i.r),
  6515. g: Math.round(i.g),
  6516. b: Math.round(i.b)
  6517. };
  6518. },
  6519. C = function C(e) {
  6520. var o = x(e),
  6521. r = [o.r.toString(16), o.g.toString(16), o.b.toString(16)];
  6522. return i.each(r, function (e, i) {
  6523. 1 == i.length && (r[e] = "0" + i);
  6524. }), r.join("");
  6525. },
  6526. P = function P(e) {
  6527. var i = /[0-9]{1,3}/g,
  6528. o = e.match(i) || [];
  6529. return {
  6530. r: o[0],
  6531. g: o[1],
  6532. b: o[2]
  6533. };
  6534. },
  6535. B = i(window),
  6536. w = i(document),
  6537. D = function D(e) {
  6538. var r = this;
  6539. r.index = ++o.index, r.config = i.extend({}, r.config, o.config, e), r.render();
  6540. };
  6541. D.prototype.config = {
  6542. color: "",
  6543. size: null,
  6544. alpha: !1,
  6545. format: "hex",
  6546. predefine: !1,
  6547. colors: ["#009688", "#5FB878", "#1E9FFF", "#FF5722", "#FFB800", "#01AAED", "#999", "#c00", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "rgb(0, 186, 189)", "rgb(255, 120, 0)", "rgb(250, 212, 0)", "#393D49", "rgba(0,0,0,.5)", "rgba(255, 69, 0, 0.68)", "rgba(144, 240, 144, 0.5)", "rgba(31, 147, 255, 0.73)"]
  6548. }, D.prototype.render = function () {
  6549. var e = this,
  6550. o = e.config,
  6551. r = i(['<div class="layui-unselect layui-colorpicker">', "<span " + ("rgb" == o.format && o.alpha ? 'class="layui-colorpicker-trigger-bgcolor"' : "") + ">", '<span class="layui-colorpicker-trigger-span" ', 'lay-type="' + ("rgb" == o.format ? o.alpha ? "rgba" : "torgb" : "") + '" ', 'style="' + function () {
  6552. var e = "";
  6553. return o.color ? (e = o.color, (o.color.match(/[0-9]{1,3}/g) || []).length > 3 && (o.alpha && "rgb" == o.format || (e = "#" + C(k(P(o.color))))), "background: " + e) : e;
  6554. }() + '">', '<i class="layui-icon layui-colorpicker-trigger-i ' + (o.color ? a : s) + '"></i>', "</span>", "</span>", "</div>"].join("")),
  6555. t = i(o.elem);
  6556. o.size && r.addClass("layui-colorpicker-" + o.size), t.addClass("layui-inline").html(e.elemColorBox = r), e.color = e.elemColorBox.find("." + f)[0].style.background, e.events();
  6557. }, D.prototype.renderPicker = function () {
  6558. var e = this,
  6559. o = e.config,
  6560. r = e.elemColorBox[0],
  6561. t = e.elemPicker = i(['<div id="layui-colorpicker' + e.index + '" data-index="' + e.index + '" class="layui-anim layui-anim-upbit layui-colorpicker-main">', '<div class="layui-colorpicker-main-wrapper">', '<div class="layui-colorpicker-basis">', '<div class="layui-colorpicker-basis-white"></div>', '<div class="layui-colorpicker-basis-black"></div>', '<div class="layui-colorpicker-basis-cursor"></div>', "</div>", '<div class="layui-colorpicker-side">', '<div class="layui-colorpicker-side-slider"></div>', "</div>", "</div>", '<div class="layui-colorpicker-main-alpha ' + (o.alpha ? n : "") + '">', '<div class="layui-colorpicker-alpha-bgcolor">', '<div class="layui-colorpicker-alpha-slider"></div>', "</div>", "</div>", function () {
  6562. if (o.predefine) {
  6563. var e = ['<div class="layui-colorpicker-main-pre">'];
  6564. return layui.each(o.colors, function (i, o) {
  6565. e.push(['<div class="layui-colorpicker-pre' + ((o.match(/[0-9]{1,3}/g) || []).length > 3 ? " layui-colorpicker-pre-isalpha" : "") + '">', '<div style="background:' + o + '"></div>', "</div>"].join(""));
  6566. }), e.push("</div>"), e.join("");
  6567. }
  6568. return "";
  6569. }(), '<div class="layui-colorpicker-main-input">', '<div class="layui-inline">', '<input type="text" class="layui-input">', "</div>", '<div class="layui-btn-container">', '<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>', '<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>', "</div", "</div>", "</div>"].join(""));
  6570. e.elemColorBox.find("." + f)[0];
  6571. i(c)[0] && i(c).data("index") == e.index ? e.removePicker(D.thisElemInd) : (e.removePicker(D.thisElemInd), i("body").append(t)), D.thisElemInd = e.index, D.thisColor = r.style.background, e.position(), e.pickerEvents();
  6572. }, D.prototype.removePicker = function (e) {
  6573. var o = this;
  6574. o.config;
  6575. return i("#layui-colorpicker" + (e || o.index)).remove(), o;
  6576. }, D.prototype.position = function () {
  6577. var e = this,
  6578. i = e.config,
  6579. o = e.bindElem || e.elemColorBox[0],
  6580. r = e.elemPicker[0],
  6581. t = o.getBoundingClientRect(),
  6582. n = r.offsetWidth,
  6583. l = r.offsetHeight,
  6584. c = function c(e) {
  6585. return e = e ? "scrollLeft" : "scrollTop", document.body[e] | document.documentElement[e];
  6586. },
  6587. a = function a(e) {
  6588. return document.documentElement[e ? "clientWidth" : "clientHeight"];
  6589. },
  6590. s = 5,
  6591. f = t.left,
  6592. d = t.bottom;
  6593. f -= (n - o.offsetWidth) / 2, d += s, f + n + s > a("width") ? f = a("width") - n - s : f < s && (f = s), d + l + s > a() && (d = t.top > l ? t.top - l : a() - l, d -= 2 * s), i.position && (r.style.position = i.position), r.style.left = f + ("fixed" === i.position ? 0 : c(1)) + "px", r.style.top = d + ("fixed" === i.position ? 0 : c()) + "px";
  6594. }, D.prototype.val = function () {
  6595. var e = this,
  6596. i = (e.config, e.elemColorBox.find("." + f)),
  6597. o = e.elemPicker.find("." + b),
  6598. r = i[0],
  6599. t = r.style.backgroundColor;
  6600. if (t) {
  6601. var n = k(P(t)),
  6602. l = i.attr("lay-type");
  6603. if (e.select(n.h, n.s, n.b), "torgb" === l && o.find("input").val(t), "rgba" === l) {
  6604. var c = P(t);
  6605. if (3 == (t.match(/[0-9]{1,3}/g) || []).length) o.find("input").val("rgba(" + c.r + ", " + c.g + ", " + c.b + ", 1)"), e.elemPicker.find("." + h).css("left", 280);else {
  6606. o.find("input").val(t);
  6607. var a = 280 * t.slice(t.lastIndexOf(",") + 1, t.length - 1);
  6608. e.elemPicker.find("." + h).css("left", a);
  6609. }
  6610. e.elemPicker.find("." + v)[0].style.background = "linear-gradient(to right, rgba(" + c.r + ", " + c.g + ", " + c.b + ", 0), rgb(" + c.r + ", " + c.g + ", " + c.b + "))";
  6611. }
  6612. } else e.select(0, 100, 100), o.find("input").val(""), e.elemPicker.find("." + v)[0].style.background = "", e.elemPicker.find("." + h).css("left", 280);
  6613. }, D.prototype.side = function () {
  6614. var e = this,
  6615. o = e.config,
  6616. r = e.elemColorBox.find("." + f),
  6617. t = r.attr("lay-type"),
  6618. n = e.elemPicker.find("." + u),
  6619. l = e.elemPicker.find("." + p),
  6620. c = e.elemPicker.find("." + g),
  6621. y = e.elemPicker.find("." + m),
  6622. C = e.elemPicker.find("." + v),
  6623. w = e.elemPicker.find("." + h),
  6624. D = l[0].offsetTop / 180 * 360,
  6625. E = 100 - (y[0].offsetTop + 3) / 180 * 100,
  6626. H = (y[0].offsetLeft + 3) / 260 * 100,
  6627. W = Math.round(w[0].offsetLeft / 280 * 100) / 100,
  6628. j = e.elemColorBox.find("." + d),
  6629. F = e.elemPicker.find(".layui-colorpicker-pre").children("div"),
  6630. L = function L(i, n, l, c) {
  6631. e.select(i, n, l);
  6632. var f = x({
  6633. h: i,
  6634. s: n,
  6635. b: l
  6636. });
  6637. if (j.addClass(a).removeClass(s), r[0].style.background = "rgb(" + f.r + ", " + f.g + ", " + f.b + ")", "torgb" === t && e.elemPicker.find("." + b).find("input").val("rgb(" + f.r + ", " + f.g + ", " + f.b + ")"), "rgba" === t) {
  6638. var d = 0;
  6639. d = 280 * c, w.css("left", d), e.elemPicker.find("." + b).find("input").val("rgba(" + f.r + ", " + f.g + ", " + f.b + ", " + c + ")"), r[0].style.background = "rgba(" + f.r + ", " + f.g + ", " + f.b + ", " + c + ")", C[0].style.background = "linear-gradient(to right, rgba(" + f.r + ", " + f.g + ", " + f.b + ", 0), rgb(" + f.r + ", " + f.g + ", " + f.b + "))";
  6640. }
  6641. o.change && o.change(e.elemPicker.find("." + b).find("input").val());
  6642. },
  6643. M = i(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div'].join("")),
  6644. Y = function Y(e) {
  6645. i("#LAY-colorpicker-moving")[0] || i("body").append(M), M.on("mousemove", e), M.on("mouseup", function () {
  6646. M.remove();
  6647. }).on("mouseleave", function () {
  6648. M.remove();
  6649. });
  6650. };
  6651. l.on("mousedown", function (e) {
  6652. var i = this.offsetTop,
  6653. o = e.clientY,
  6654. r = function r(e) {
  6655. var r = i + (e.clientY - o),
  6656. t = n[0].offsetHeight;
  6657. r < 0 && (r = 0), r > t && (r = t);
  6658. var l = r / 180 * 360;
  6659. D = l, L(l, H, E, W), e.preventDefault();
  6660. };
  6661. Y(r), e.preventDefault();
  6662. }), n.on("click", function (e) {
  6663. var o = e.clientY - i(this).offset().top;
  6664. o < 0 && (o = 0), o > this.offsetHeight && (o = this.offsetHeight);
  6665. var r = o / 180 * 360;
  6666. D = r, L(r, H, E, W), e.preventDefault();
  6667. }), y.on("mousedown", function (e) {
  6668. var i = this.offsetTop,
  6669. o = this.offsetLeft,
  6670. r = e.clientY,
  6671. t = e.clientX,
  6672. n = function n(e) {
  6673. var n = i + (e.clientY - r),
  6674. l = o + (e.clientX - t),
  6675. a = c[0].offsetHeight - 3,
  6676. s = c[0].offsetWidth - 3;
  6677. n < -3 && (n = -3), n > a && (n = a), l < -3 && (l = -3), l > s && (l = s);
  6678. var f = (l + 3) / 260 * 100,
  6679. d = 100 - (n + 3) / 180 * 100;
  6680. E = d, H = f, L(D, f, d, W), e.preventDefault();
  6681. };
  6682. layui.stope(e), Y(n), e.preventDefault();
  6683. }), c.on("mousedown", function (e) {
  6684. var o = e.clientY - i(this).offset().top - 3 + B.scrollTop(),
  6685. r = e.clientX - i(this).offset().left - 3 + B.scrollLeft();
  6686. o < -3 && (o = -3), o > this.offsetHeight - 3 && (o = this.offsetHeight - 3), r < -3 && (r = -3), r > this.offsetWidth - 3 && (r = this.offsetWidth - 3);
  6687. var t = (r + 3) / 260 * 100,
  6688. n = 100 - (o + 3) / 180 * 100;
  6689. E = n, H = t, L(D, t, n, W), e.preventDefault(), y.trigger(e, "mousedown");
  6690. }), w.on("mousedown", function (e) {
  6691. var i = this.offsetLeft,
  6692. o = e.clientX,
  6693. r = function r(e) {
  6694. var r = i + (e.clientX - o),
  6695. t = C[0].offsetWidth;
  6696. r < 0 && (r = 0), r > t && (r = t);
  6697. var n = Math.round(r / 280 * 100) / 100;
  6698. W = n, L(D, H, E, n), e.preventDefault();
  6699. };
  6700. Y(r), e.preventDefault();
  6701. }), C.on("click", function (e) {
  6702. var o = e.clientX - i(this).offset().left;
  6703. o < 0 && (o = 0), o > this.offsetWidth && (o = this.offsetWidth);
  6704. var r = Math.round(o / 280 * 100) / 100;
  6705. W = r, L(D, H, E, r), e.preventDefault();
  6706. }), F.each(function () {
  6707. i(this).on("click", function () {
  6708. i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");
  6709. var e,
  6710. o = this.style.backgroundColor,
  6711. r = k(P(o)),
  6712. t = o.slice(o.lastIndexOf(",") + 1, o.length - 1);
  6713. D = r.h, H = r.s, E = r.b, 3 == (o.match(/[0-9]{1,3}/g) || []).length && (t = 1), W = t, e = 280 * t, L(r.h, r.s, r.b, t);
  6714. });
  6715. });
  6716. }, D.prototype.select = function (e, i, o, r) {
  6717. var t = this,
  6718. n = (t.config, C({
  6719. h: e,
  6720. s: 100,
  6721. b: 100
  6722. })),
  6723. l = C({
  6724. h: e,
  6725. s: i,
  6726. b: o
  6727. }),
  6728. c = e / 360 * 180,
  6729. a = 180 - o / 100 * 180 - 3,
  6730. s = i / 100 * 260 - 3;
  6731. t.elemPicker.find("." + p).css("top", c), t.elemPicker.find("." + g)[0].style.background = "#" + n, t.elemPicker.find("." + m).css({
  6732. top: a,
  6733. left: s
  6734. }), "change" !== r && t.elemPicker.find("." + b).find("input").val("#" + l);
  6735. }, D.prototype.pickerEvents = function () {
  6736. var e = this,
  6737. o = e.config,
  6738. r = e.elemColorBox.find("." + f),
  6739. t = e.elemPicker.find("." + b + " input"),
  6740. n = {
  6741. clear: function clear(i) {
  6742. r[0].style.background = "", e.elemColorBox.find("." + d).removeClass(a).addClass(s), e.color = "", o.done && o.done(""), e.removePicker();
  6743. },
  6744. confirm: function confirm(i, n) {
  6745. var l = t.val(),
  6746. c = l,
  6747. f = {};
  6748. if (l.indexOf(",") > -1) {
  6749. if (f = k(P(l)), e.select(f.h, f.s, f.b), r[0].style.background = c = "#" + C(f), (l.match(/[0-9]{1,3}/g) || []).length > 3 && "rgba" === r.attr("lay-type")) {
  6750. var u = 280 * l.slice(l.lastIndexOf(",") + 1, l.length - 1);
  6751. e.elemPicker.find("." + h).css("left", u), r[0].style.background = l, c = l;
  6752. }
  6753. } else f = y(l), r[0].style.background = c = "#" + C(f), e.elemColorBox.find("." + d).removeClass(s).addClass(a);
  6754. return "change" === n ? (e.select(f.h, f.s, f.b, n), void (o.change && o.change(c))) : (e.color = l, o.done && o.done(l), void e.removePicker());
  6755. }
  6756. };
  6757. e.elemPicker.on("click", "*[colorpicker-events]", function () {
  6758. var e = i(this),
  6759. o = e.attr("colorpicker-events");
  6760. n[o] && n[o].call(this, e);
  6761. }), t.on("keyup", function (e) {
  6762. var o = i(this);
  6763. n.confirm.call(this, o, 13 === e.keyCode ? null : "change");
  6764. });
  6765. }, D.prototype.events = function () {
  6766. var e = this,
  6767. o = e.config,
  6768. r = e.elemColorBox.find("." + f);
  6769. e.elemColorBox.on("click", function () {
  6770. e.renderPicker(), i(c)[0] && (e.val(), e.side());
  6771. }), o.elem[0] && !e.elemColorBox[0].eventHandler && (w.on("click", function (o) {
  6772. if (!i(o.target).hasClass(l) && !i(o.target).parents("." + l)[0] && !i(o.target).hasClass(c.replace(/\./g, "")) && !i(o.target).parents(c)[0] && e.elemPicker) {
  6773. if (e.color) {
  6774. var t = k(P(e.color));
  6775. e.select(t.h, t.s, t.b);
  6776. } else e.elemColorBox.find("." + d).removeClass(a).addClass(s);
  6777. r[0].style.background = e.color || "", e.removePicker();
  6778. }
  6779. }), B.on("resize", function () {
  6780. return !(!e.elemPicker || !i(c)[0]) && void e.position();
  6781. }), e.elemColorBox[0].eventHandler = !0);
  6782. }, o.render = function (e) {
  6783. var i = new D(e);
  6784. return r.call(i);
  6785. }, e(t, o);
  6786. });
  6787. layui.define("layer", function (e) {
  6788. "use strict";
  6789. var t = layui.$,
  6790. i = layui.layer,
  6791. a = layui.hint(),
  6792. n = layui.device(),
  6793. l = "form",
  6794. r = ".layui-form",
  6795. s = "layui-this",
  6796. o = "layui-hide",
  6797. c = "layui-disabled",
  6798. u = function u() {
  6799. this.config = {
  6800. verify: {
  6801. required: [/[\S]+/, "必填项不能为空"],
  6802. phone: [/^1\d{10}$/, "请输入正确的手机号"],
  6803. email: [/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/, "邮箱格式不正确"],
  6804. url: [/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/, "链接格式不正确"],
  6805. number: function number(e) {
  6806. if (!e || isNaN(e)) return "只能填写数字";
  6807. },
  6808. date: [/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/, "日期格式不正确"],
  6809. identity: [/(^\d{15}$)|(^\d{17}(x|X|\d)$)/, "请输入正确的身份证号"]
  6810. }
  6811. };
  6812. };
  6813. u.prototype.set = function (e) {
  6814. var i = this;
  6815. return t.extend(!0, i.config, e), i;
  6816. }, u.prototype.verify = function (e) {
  6817. var i = this;
  6818. return t.extend(!0, i.config.verify, e), i;
  6819. }, u.prototype.on = function (e, t) {
  6820. return layui.onevent.call(this, l, e, t);
  6821. }, u.prototype.val = function (e, i) {
  6822. var a = this,
  6823. n = t(r + '[lay-filter="' + e + '"]');
  6824. return n.each(function (e, a) {
  6825. var n = t(this);
  6826. layui.each(i, function (e, t) {
  6827. var i,
  6828. a = n.find('[name="' + e + '"]');
  6829. a[0] && (i = a[0].type, "checkbox" === i ? a[0].checked = t : "radio" === i ? a.each(function () {
  6830. this.value == t && (this.checked = !0);
  6831. }) : a.val(t));
  6832. });
  6833. }), f.render(null, e), a.getValue(e);
  6834. }, u.prototype.getValue = function (e, i) {
  6835. i = i || t(r + '[lay-filter="' + e + '"]').eq(0);
  6836. var a = {},
  6837. n = {},
  6838. l = i.find("input,select,textarea");
  6839. return layui.each(l, function (e, t) {
  6840. if (t.name = (t.name || "").replace(/^\s*|\s*&/, ""), t.name) {
  6841. if (/^.*\[\]$/.test(t.name)) {
  6842. var i = t.name.match(/^(.*)\[\]$/g)[0];
  6843. a[i] = 0 | a[i], t.name = t.name.replace(/^(.*)\[\]$/, "$1[" + a[i]++ + "]");
  6844. }
  6845. /^checkbox|radio$/.test(t.type) && !t.checked || (n[t.name] = t.value);
  6846. }
  6847. }), n;
  6848. }, u.prototype.render = function (e, i) {
  6849. var n = this,
  6850. u = t(r + function () {
  6851. return i ? '[lay-filter="' + i + '"]' : "";
  6852. }()),
  6853. d = {
  6854. select: function select() {
  6855. var e,
  6856. i = "请选择",
  6857. a = "layui-form-select",
  6858. n = "layui-select-title",
  6859. r = "layui-select-none",
  6860. d = "",
  6861. f = u.find("select"),
  6862. v = function v(i, l) {
  6863. t(i.target).parent().hasClass(n) && !l || (t("." + a).removeClass(a + "ed " + a + "up"), e && d && e.val(d)), e = null;
  6864. },
  6865. y = function y(i, u, f) {
  6866. var y,
  6867. p = t(this),
  6868. m = i.find("." + n),
  6869. k = m.find("input"),
  6870. g = i.find("dl"),
  6871. x = g.children("dd"),
  6872. b = this.selectedIndex;
  6873. if (!u) {
  6874. var C = function C() {
  6875. var e = i.offset().top + i.outerHeight() + 5 - h.scrollTop(),
  6876. t = g.outerHeight();
  6877. b = p[0].selectedIndex, i.addClass(a + "ed"), x.removeClass(o), y = null, x.eq(b).addClass(s).siblings().removeClass(s), e + t > h.height() && e >= t && i.addClass(a + "up"), T();
  6878. },
  6879. w = function w(e) {
  6880. i.removeClass(a + "ed " + a + "up"), k.blur(), y = null, e || $(k.val(), function (e) {
  6881. var i = p[0].selectedIndex;
  6882. e && (d = t(p[0].options[i]).html(), 0 === i && d === k.attr("placeholder") && (d = ""), k.val(d || ""));
  6883. });
  6884. },
  6885. T = function T() {
  6886. var e = g.children("dd." + s);
  6887. if (e[0]) {
  6888. var t = e.position().top,
  6889. i = g.height(),
  6890. a = e.height();
  6891. t > i && g.scrollTop(t + g.scrollTop() - i + a - 5), t < 0 && g.scrollTop(t + g.scrollTop() - 5);
  6892. }
  6893. };
  6894. m.on("click", function (e) {
  6895. i.hasClass(a + "ed") ? w() : (v(e, !0), C()), g.find("." + r).remove();
  6896. }), m.find(".layui-edge").on("click", function () {
  6897. k.focus();
  6898. }), k.on("keyup", function (e) {
  6899. var t = e.keyCode;
  6900. 9 === t && C();
  6901. }).on("keydown", function (e) {
  6902. var t = e.keyCode;
  6903. 9 === t && w();
  6904. var i = function i(t, a) {
  6905. var n, l;
  6906. e.preventDefault();
  6907. var r = function () {
  6908. var e = g.children("dd." + s);
  6909. if (g.children("dd." + o)[0] && "next" === t) {
  6910. var i = g.children("dd:not(." + o + ",." + c + ")"),
  6911. n = i.eq(0).index();
  6912. if (n >= 0 && n < e.index() && !i.hasClass(s)) return i.eq(0).prev()[0] ? i.eq(0).prev() : g.children(":last");
  6913. }
  6914. return a && a[0] ? a : y && y[0] ? y : e;
  6915. }();
  6916. return l = r[t](), n = r[t]("dd:not(." + o + ")"), l[0] ? (y = r[t](), n[0] && !n.hasClass(c) || !y[0] ? (n.addClass(s).siblings().removeClass(s), void T()) : i(t, y)) : y = null;
  6917. };
  6918. 38 === t && i("prev"), 40 === t && i("next"), 13 === t && (e.preventDefault(), g.children("dd." + s).trigger("click"));
  6919. });
  6920. var $ = function $(e, i, a) {
  6921. var n = 0;
  6922. layui.each(x, function () {
  6923. var i = t(this),
  6924. l = i.text(),
  6925. r = l.indexOf(e) === -1;
  6926. ("" === e || "blur" === a ? e !== l : r) && n++, "keyup" === a && i[r ? "addClass" : "removeClass"](o);
  6927. });
  6928. var l = n === x.length;
  6929. return i(l), l;
  6930. },
  6931. q = function q(e) {
  6932. var t = this.value,
  6933. i = e.keyCode;
  6934. return 9 !== i && 13 !== i && 37 !== i && 38 !== i && 39 !== i && 40 !== i && ($(t, function (e) {
  6935. e ? g.find("." + r)[0] || g.append('<p class="' + r + '">无匹配项</p>') : g.find("." + r).remove();
  6936. }, "keyup"), "" === t && g.find("." + r).remove(), void T());
  6937. };
  6938. f && k.on("keyup", q).on("blur", function (i) {
  6939. var a = p[0].selectedIndex;
  6940. e = k, d = t(p[0].options[a]).html(), 0 === a && d === k.attr("placeholder") && (d = ""), setTimeout(function () {
  6941. $(k.val(), function (e) {
  6942. d || k.val("");
  6943. }, "blur");
  6944. }, 200);
  6945. }), x.on("click", function () {
  6946. var e = t(this),
  6947. a = e.attr("lay-value"),
  6948. n = p.attr("lay-filter");
  6949. return !e.hasClass(c) && (e.hasClass("layui-select-tips") ? k.val("") : (k.val(e.text()), e.addClass(s)), e.siblings().removeClass(s), p.val(a).removeClass("layui-form-danger"), layui.event.call(this, l, "select(" + n + ")", {
  6950. elem: p[0],
  6951. value: a,
  6952. othis: i
  6953. }), w(!0), !1);
  6954. }), i.find("dl>dt").on("click", function (e) {
  6955. return !1;
  6956. }), t(document).off("click", v).on("click", v);
  6957. }
  6958. };
  6959. f.each(function (e, l) {
  6960. var r = t(this),
  6961. o = r.next("." + a),
  6962. u = this.disabled,
  6963. d = l.value,
  6964. f = t(l.options[l.selectedIndex]),
  6965. v = l.options[0];
  6966. if ("string" == typeof r.attr("lay-ignore")) return r.show();
  6967. var h = "string" == typeof r.attr("lay-search"),
  6968. p = v ? v.value ? i : v.innerHTML || i : i,
  6969. m = t(['<div class="' + (h ? "" : "layui-unselect ") + a, (u ? " layui-select-disabled" : "") + '">', '<div class="' + n + '">', '<input type="text" placeholder="' + p + '" ' + ('value="' + (d ? f.html() : "") + '"') + (!u && h ? "" : " readonly") + ' class="layui-input' + (h ? "" : " layui-unselect") + (u ? " " + c : "") + '">', '<i class="layui-edge"></i></div>', '<dl class="layui-anim layui-anim-upbit' + (r.find("optgroup")[0] ? " layui-select-group" : "") + '">', function (e) {
  6970. var t = [];
  6971. return layui.each(e, function (e, a) {
  6972. 0 !== e || a.value ? "optgroup" === a.tagName.toLowerCase() ? t.push("<dt>" + a.label + "</dt>") : t.push('<dd lay-value="' + a.value + '" class="' + (d === a.value ? s : "") + (a.disabled ? " " + c : "") + '">' + a.innerHTML + "</dd>") : t.push('<dd lay-value="" class="layui-select-tips">' + (a.innerHTML || i) + "</dd>");
  6973. }), 0 === t.length && t.push('<dd lay-value="" class="' + c + '">没有选项</dd>'), t.join("");
  6974. }(r.find("*")) + "</dl>", "</div>"].join(""));
  6975. o[0] && o.remove(), r.after(m), y.call(this, m, u, h);
  6976. });
  6977. },
  6978. checkbox: function checkbox() {
  6979. var e = {
  6980. checkbox: ["layui-form-checkbox", "layui-form-checked", "checkbox"],
  6981. _switch: ["layui-form-switch", "layui-form-onswitch", "switch"]
  6982. },
  6983. i = u.find("input[type=checkbox]"),
  6984. a = function a(e, i) {
  6985. var a = t(this);
  6986. e.on("click", function () {
  6987. var t = a.attr("lay-filter"),
  6988. n = (a.attr("lay-text") || "").split("|");
  6989. a[0].disabled || (a[0].checked ? (a[0].checked = !1, e.removeClass(i[1]).find("em").text(n[1])) : (a[0].checked = !0, e.addClass(i[1]).find("em").text(n[0])), layui.event.call(a[0], l, i[2] + "(" + t + ")", {
  6990. elem: a[0],
  6991. value: a[0].value,
  6992. othis: e
  6993. }));
  6994. });
  6995. };
  6996. i.each(function (i, n) {
  6997. var l = t(this),
  6998. r = l.attr("lay-skin"),
  6999. s = (l.attr("lay-text") || "").split("|"),
  7000. o = this.disabled;
  7001. "switch" === r && (r = "_" + r);
  7002. var u = e[r] || e.checkbox;
  7003. if ("string" == typeof l.attr("lay-ignore")) return l.show();
  7004. var d = l.next("." + u[0]),
  7005. f = t(['<div class="layui-unselect ' + u[0], n.checked ? " " + u[1] : "", o ? " layui-checkbox-disbaled " + c : "", '"', r ? ' lay-skin="' + r + '"' : "", ">", function () {
  7006. var e = n.title.replace(/\s/g, ""),
  7007. t = {
  7008. checkbox: [e ? "<span>" + n.title + "</span>" : "", '<i class="layui-icon layui-icon-ok"></i>'].join(""),
  7009. _switch: "<em>" + ((n.checked ? s[0] : s[1]) || "") + "</em><i></i>"
  7010. };
  7011. return t[r] || t.checkbox;
  7012. }(), "</div>"].join(""));
  7013. d[0] && d.remove(), l.after(f), a.call(this, f, u);
  7014. });
  7015. },
  7016. radio: function radio() {
  7017. var e = "layui-form-radio",
  7018. i = ["&#xe643;", "&#xe63f;"],
  7019. a = u.find("input[type=radio]"),
  7020. n = function n(a) {
  7021. var n = t(this),
  7022. s = "layui-anim-scaleSpring";
  7023. a.on("click", function () {
  7024. var o = n[0].name,
  7025. c = n.parents(r),
  7026. u = n.attr("lay-filter"),
  7027. d = c.find("input[name=" + o.replace(/(\.|#|\[|\])/g, "\\$1") + "]");
  7028. n[0].disabled || (layui.each(d, function () {
  7029. var a = t(this).next("." + e);
  7030. this.checked = !1, a.removeClass(e + "ed"), a.find(".layui-icon").removeClass(s).html(i[1]);
  7031. }), n[0].checked = !0, a.addClass(e + "ed"), a.find(".layui-icon").addClass(s).html(i[0]), layui.event.call(n[0], l, "radio(" + u + ")", {
  7032. elem: n[0],
  7033. value: n[0].value,
  7034. othis: a
  7035. }));
  7036. });
  7037. };
  7038. a.each(function (a, l) {
  7039. var r = t(this),
  7040. s = r.next("." + e),
  7041. o = this.disabled;
  7042. if ("string" == typeof r.attr("lay-ignore")) return r.show();
  7043. s[0] && s.remove();
  7044. var u = t(['<div class="layui-unselect ' + e, l.checked ? " " + e + "ed" : "", (o ? " layui-radio-disbaled " + c : "") + '">', '<i class="layui-anim layui-icon">' + i[l.checked ? 0 : 1] + "</i>", "<div>" + function () {
  7045. var e = l.title || "";
  7046. return "string" == typeof r.next().attr("lay-radio") && (e = r.next().html(), r.next().remove()), e;
  7047. }() + "</div>", "</div>"].join(""));
  7048. r.after(u), n.call(this, u);
  7049. });
  7050. }
  7051. };
  7052. return e ? d[e] ? d[e]() : a.error("不支持的" + e + "表单渲染") : layui.each(d, function (e, t) {
  7053. t();
  7054. }), n;
  7055. };
  7056. var d = function d() {
  7057. var e = null,
  7058. a = f.config.verify,
  7059. s = "layui-form-danger",
  7060. o = {},
  7061. c = t(this),
  7062. u = c.parents(r),
  7063. d = u.find("*[lay-verify]"),
  7064. v = c.parents("form")[0],
  7065. h = c.attr("lay-filter");
  7066. return layui.each(d, function (l, r) {
  7067. var o = t(this),
  7068. c = o.attr("lay-verify").split("|"),
  7069. u = o.attr("lay-verType"),
  7070. d = o.val();
  7071. if (o.removeClass(s), layui.each(c, function (t, l) {
  7072. var c,
  7073. f = "",
  7074. v = "function" == typeof a[l];
  7075. if (a[l]) {
  7076. var c = v ? f = a[l](d, r) : !a[l][0].test(d);
  7077. if (f = f || a[l][1], "required" === l && (f = o.attr("lay-reqText") || f), c) return "tips" === u ? i.tips(f, function () {
  7078. return "string" == typeof o.attr("lay-ignore") || "select" !== r.tagName.toLowerCase() && !/^checkbox|radio$/.test(r.type) ? o : o.next();
  7079. }(), {
  7080. tips: 1
  7081. }) : "alert" === u ? i.alert(f, {
  7082. title: "提示",
  7083. shadeClose: !0
  7084. }) : i.msg(f, {
  7085. icon: 5,
  7086. shift: 6
  7087. }), n.android || n.ios || setTimeout(function () {
  7088. r.focus();
  7089. }, 7), o.addClass(s), e = !0;
  7090. }
  7091. }), e) return e;
  7092. }), !e && (o = f.getValue(null, u), layui.event.call(this, l, "submit(" + h + ")", {
  7093. elem: this,
  7094. form: v,
  7095. field: o
  7096. }));
  7097. },
  7098. f = new u(),
  7099. v = t(document),
  7100. h = t(window);
  7101. f.render(), v.on("reset", r, function () {
  7102. var e = t(this).attr("lay-filter");
  7103. setTimeout(function () {
  7104. f.render(null, e);
  7105. }, 50);
  7106. }), v.on("submit", r, d).on("click", "*[lay-submit]", d), e(l, f);
  7107. });
  7108. layui.define("form", function (e) {
  7109. "use strict";
  7110. var i = layui.$,
  7111. a = layui.form,
  7112. n = layui.layer,
  7113. t = "tree",
  7114. r = {
  7115. config: {},
  7116. index: layui[t] ? layui[t].index + 1e4 : 0,
  7117. set: function set(e) {
  7118. var a = this;
  7119. return a.config = i.extend({}, a.config, e), a;
  7120. },
  7121. on: function on(e, i) {
  7122. return layui.onevent.call(this, t, e, i);
  7123. }
  7124. },
  7125. l = function l() {
  7126. var e = this,
  7127. i = e.config,
  7128. a = i.id || e.index;
  7129. return l.that[a] = e, l.config[a] = i, {
  7130. config: i,
  7131. reload: function reload(i) {
  7132. e.reload.call(e, i);
  7133. },
  7134. getChecked: function getChecked() {
  7135. return e.getChecked.call(e);
  7136. },
  7137. setChecked: function setChecked(i) {
  7138. return e.setChecked.call(e, i);
  7139. }
  7140. };
  7141. },
  7142. c = "layui-hide",
  7143. d = "layui-disabled",
  7144. s = "layui-tree-set",
  7145. o = "layui-tree-iconClick",
  7146. h = "layui-icon-addition",
  7147. u = "layui-icon-subtraction",
  7148. p = "layui-tree-entry",
  7149. f = "layui-tree-main",
  7150. y = "layui-tree-txt",
  7151. v = "layui-tree-pack",
  7152. C = "layui-tree-spread",
  7153. k = "layui-tree-setLineShort",
  7154. m = "layui-tree-showLine",
  7155. x = "layui-tree-lineExtend",
  7156. b = function b(e) {
  7157. var a = this;
  7158. a.index = ++r.index, a.config = i.extend({}, a.config, r.config, e), a.render();
  7159. };
  7160. b.prototype.config = {
  7161. data: [],
  7162. showCheckbox: !1,
  7163. showLine: !0,
  7164. accordion: !1,
  7165. onlyIconControl: !1,
  7166. isJump: !1,
  7167. edit: !1,
  7168. text: {
  7169. defaultNodeName: "未命名",
  7170. none: "无数据"
  7171. }
  7172. }, b.prototype.reload = function (e) {
  7173. var a = this;
  7174. layui.each(e, function (e, i) {
  7175. i.constructor === Array && delete a.config[e];
  7176. }), a.config = i.extend(!0, {}, a.config, e), a.render();
  7177. }, b.prototype.render = function () {
  7178. var e = this,
  7179. a = e.config;
  7180. e.checkids = [];
  7181. var n = i('<div class="layui-tree' + (a.showCheckbox ? " layui-form" : "") + (a.showLine ? " layui-tree-line" : "") + '" lay-filter="LAY-tree-' + e.index + '"></div>');
  7182. e.tree(n);
  7183. var t = a.elem = i(a.elem);
  7184. if (t[0]) {
  7185. if (e.key = a.id || e.index, e.elem = n, e.elemNone = i('<div class="layui-tree-emptyText">' + a.text.none + "</div>"), t.html(e.elem), 0 == e.elem.find(".layui-tree-set").length) return e.elem.append(e.elemNone);
  7186. a.showCheckbox && e.renderForm("checkbox"), e.elem.find(".layui-tree-set").each(function () {
  7187. var e = i(this);
  7188. e.parent(".layui-tree-pack")[0] || e.addClass("layui-tree-setHide"), !e.next()[0] && e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend") && e.addClass(k), e.next()[0] || e.parents(".layui-tree-set").eq(0).next()[0] || e.addClass(k);
  7189. }), e.events();
  7190. }
  7191. }, b.prototype.renderForm = function (e) {
  7192. a.render(e, "LAY-tree-" + this.index);
  7193. }, b.prototype.tree = function (e, a) {
  7194. var n = this,
  7195. t = n.config,
  7196. r = a || t.data;
  7197. layui.each(r, function (a, r) {
  7198. var l = r.children && r.children.length > 0,
  7199. o = i('<div class="layui-tree-pack" ' + (r.spread ? 'style="display: block;"' : "") + '"></div>'),
  7200. h = i(['<div data-id="' + r.id + '" class="layui-tree-set' + (r.spread ? " layui-tree-spread" : "") + (r.checked ? " layui-tree-checkedFirst" : "") + '">', '<div class="layui-tree-entry">', '<div class="layui-tree-main">', function () {
  7201. return t.showLine ? l ? '<span class="layui-tree-iconClick layui-tree-icon"><i class="layui-icon ' + (r.spread ? "layui-icon-subtraction" : "layui-icon-addition") + '"></i></span>' : '<span class="layui-tree-iconClick"><i class="layui-icon layui-icon-file"></i></span>' : '<span class="layui-tree-iconClick"><i class="layui-tree-iconArrow ' + (l ? "" : c) + '"></i></span>';
  7202. }(), function () {
  7203. return t.showCheckbox ? '<input type="checkbox" name="' + (r.field || "layuiTreeCheck_" + r.id) + '" same="layuiTreeCheck" lay-skin="primary" ' + (r.disabled ? "disabled" : "") + ' value="' + r.id + '">' : "";
  7204. }(), function () {
  7205. return t.isJump && r.href ? '<a href="' + r.href + '" target="_blank" class="' + y + '">' + (r.title || r.label || t.text.defaultNodeName) + "</a>" : '<span class="' + y + (r.disabled ? " " + d : "") + '">' + (r.title || r.label || t.text.defaultNodeName) + "</span>";
  7206. }(), "</div>", function () {
  7207. if (!t.edit) return "";
  7208. var e = {
  7209. add: '<i class="layui-icon layui-icon-add-1" data-type="add"></i>',
  7210. update: '<i class="layui-icon layui-icon-edit" data-type="update"></i>',
  7211. del: '<i class="layui-icon layui-icon-delete" data-type="del"></i>'
  7212. },
  7213. i = ['<div class="layui-btn-group layui-tree-btnGroup">'];
  7214. return t.edit === !0 && (t.edit = ["update", "del"]), "object" == _typeof(t.edit) ? (layui.each(t.edit, function (a, n) {
  7215. i.push(e[n] || "");
  7216. }), i.join("") + "</div>") : void 0;
  7217. }(), "</div></div>"].join(""));
  7218. l && (h.append(o), n.tree(o, r.children)), e.append(h), h.prev("." + s)[0] && h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"), l || h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"), n.spread(h, r), t.showCheckbox && (r.checked && n.checkids.push(r.id), n.checkClick(h, r)), t.edit && n.operate(h, r);
  7219. });
  7220. }, b.prototype.spread = function (e, a) {
  7221. var n = this,
  7222. t = n.config,
  7223. r = e.children("." + p),
  7224. l = r.children("." + f),
  7225. c = r.find("." + o),
  7226. k = r.find("." + y),
  7227. m = t.onlyIconControl ? c : l,
  7228. x = "";
  7229. m.on("click", function (i) {
  7230. var a = e.children("." + v),
  7231. n = m.children(".layui-icon")[0] ? m.children(".layui-icon") : m.find(".layui-tree-icon").children(".layui-icon");
  7232. if (a[0]) {
  7233. if (e.hasClass(C)) e.removeClass(C), a.slideUp(200), n.removeClass(u).addClass(h);else if (e.addClass(C), a.slideDown(200), n.addClass(u).removeClass(h), t.accordion) {
  7234. var r = e.siblings("." + s);
  7235. r.removeClass(C), r.children("." + v).slideUp(200), r.find(".layui-tree-icon").children(".layui-icon").removeClass(u).addClass(h);
  7236. }
  7237. } else x = "normal";
  7238. }), k.on("click", function () {
  7239. var n = i(this);
  7240. n.hasClass(d) || (x = e.hasClass(C) ? t.onlyIconControl ? "open" : "close" : t.onlyIconControl ? "close" : "open", t.click && t.click({
  7241. elem: e,
  7242. state: x,
  7243. data: a
  7244. }));
  7245. });
  7246. }, b.prototype.setCheckbox = function (e, i, a) {
  7247. var n = this,
  7248. t = (n.config, a.prop("checked"));
  7249. if (!a.prop("disabled")) {
  7250. if ("object" == _typeof(i.children) || e.find("." + v)[0]) {
  7251. var r = e.find("." + v).find('input[same="layuiTreeCheck"]');
  7252. r.each(function () {
  7253. this.disabled || (this.checked = t);
  7254. });
  7255. }
  7256. var l = function l(e) {
  7257. if (e.parents("." + s)[0]) {
  7258. var i,
  7259. a = e.parent("." + v),
  7260. n = a.parent(),
  7261. r = a.prev().find('input[same="layuiTreeCheck"]');
  7262. t ? r.prop("checked", t) : (a.find('input[same="layuiTreeCheck"]').each(function () {
  7263. this.checked && (i = !0);
  7264. }), i || r.prop("checked", !1)), l(n);
  7265. }
  7266. };
  7267. l(e), n.renderForm("checkbox");
  7268. }
  7269. }, b.prototype.checkClick = function (e, a) {
  7270. var n = this,
  7271. t = n.config,
  7272. r = e.children("." + p),
  7273. l = r.children("." + f);
  7274. l.on("click", 'input[same="layuiTreeCheck"]+', function (r) {
  7275. layui.stope(r);
  7276. var l = i(this).prev(),
  7277. c = l.prop("checked");
  7278. l.prop("disabled") || (n.setCheckbox(e, a, l), t.oncheck && t.oncheck({
  7279. elem: e,
  7280. checked: c,
  7281. data: a
  7282. }));
  7283. });
  7284. }, b.prototype.operate = function (e, a) {
  7285. var t = this,
  7286. r = t.config,
  7287. l = e.children("." + p),
  7288. d = l.children("." + f);
  7289. l.children(".layui-tree-btnGroup").on("click", ".layui-icon", function (l) {
  7290. layui.stope(l);
  7291. var f = i(this).data("type"),
  7292. b = e.children("." + v),
  7293. g = {
  7294. data: a,
  7295. type: f,
  7296. elem: e
  7297. };
  7298. if ("add" == f) {
  7299. b[0] || (r.showLine ? (d.find("." + o).addClass("layui-tree-icon"), d.find("." + o).children(".layui-icon").addClass(h).removeClass("layui-icon-file")) : d.find(".layui-tree-iconArrow").removeClass(c), e.append('<div class="layui-tree-pack"></div>'));
  7300. var w = r.operate && r.operate(g),
  7301. N = {};
  7302. if (N.title = r.text.defaultNodeName, N.id = w, t.tree(e.children("." + v), [N]), r.showLine) if (b[0]) b.hasClass(x) || b.addClass(x), e.find("." + v).each(function () {
  7303. i(this).children("." + s).last().addClass(k);
  7304. }), b.children("." + s).last().prev().hasClass(k) ? b.children("." + s).last().prev().removeClass(k) : b.children("." + s).last().removeClass(k), !e.parent("." + v)[0] && e.next()[0] && b.children("." + s).last().removeClass(k);else {
  7305. var T = e.siblings("." + s),
  7306. L = 1,
  7307. A = e.parent("." + v);
  7308. layui.each(T, function (e, a) {
  7309. i(a).children("." + v)[0] || (L = 0);
  7310. }), 1 == L ? (T.children("." + v).addClass(m), T.children("." + v).children("." + s).removeClass(k), e.children("." + v).addClass(m), A.removeClass(x), A.children("." + s).last().children("." + v).children("." + s).last().addClass(k)) : e.children("." + v).children("." + s).addClass(k);
  7311. }
  7312. if (!r.showCheckbox) return;
  7313. if (d.find('input[same="layuiTreeCheck"]')[0].checked) {
  7314. var I = e.children("." + v).children("." + s).last();
  7315. I.find('input[same="layuiTreeCheck"]')[0].checked = !0;
  7316. }
  7317. t.renderForm("checkbox");
  7318. } else if ("update" == f) {
  7319. var F = d.children("." + y).html();
  7320. d.children("." + y).html(""), d.append('<input type="text" class="layui-tree-editInput">'), d.children(".layui-tree-editInput").val(F).focus();
  7321. var j = function j(e) {
  7322. var i = e.val().trim();
  7323. i = i ? i : r.text.defaultNodeName, e.remove(), d.children("." + y).html(i), g.data.title = i, r.operate && r.operate(g);
  7324. };
  7325. d.children(".layui-tree-editInput").blur(function () {
  7326. j(i(this));
  7327. }), d.children(".layui-tree-editInput").on("keydown", function (e) {
  7328. 13 === e.keyCode && (e.preventDefault(), j(i(this)));
  7329. });
  7330. } else n.confirm('确认删除该节点 "<span style="color: #999;">' + (a.title || "") + '</span>" 吗?', function (a) {
  7331. if (r.operate && r.operate(g), g.status = "remove", n.close(a), !e.prev("." + s)[0] && !e.next("." + s)[0] && !e.parent("." + v)[0]) return e.remove(), void t.elem.append(t.elemNone);
  7332. if (e.siblings("." + s).children("." + p)[0]) {
  7333. if (r.showCheckbox) {
  7334. var l = function l(e) {
  7335. if (e.parents("." + s)[0]) {
  7336. var a = e.siblings("." + s).children("." + p),
  7337. n = e.parent("." + v).prev(),
  7338. r = n.find('input[same="layuiTreeCheck"]')[0],
  7339. c = 1,
  7340. d = 0;
  7341. 0 == r.checked && (a.each(function (e, a) {
  7342. var n = i(a).find('input[same="layuiTreeCheck"]')[0];
  7343. 0 != n.checked || n.disabled || (c = 0), n.disabled || (d = 1);
  7344. }), 1 == c && 1 == d && (r.checked = !0, t.renderForm("checkbox"), l(n.parent("." + s))));
  7345. }
  7346. };
  7347. l(e);
  7348. }
  7349. if (r.showLine) {
  7350. var d = e.siblings("." + s),
  7351. h = 1,
  7352. f = e.parent("." + v);
  7353. layui.each(d, function (e, a) {
  7354. i(a).children("." + v)[0] || (h = 0);
  7355. }), 1 == h ? (b[0] || (f.removeClass(x), d.children("." + v).addClass(m), d.children("." + v).children("." + s).removeClass(k)), e.next()[0] ? f.children("." + s).last().children("." + v).children("." + s).last().addClass(k) : e.prev().children("." + v).children("." + s).last().addClass(k), e.next()[0] || e.parents("." + s)[1] || e.parents("." + s).eq(0).next()[0] || e.prev("." + s).addClass(k)) : !e.next()[0] && e.hasClass(k) && e.prev().addClass(k);
  7356. }
  7357. } else {
  7358. var y = e.parent("." + v).prev();
  7359. if (r.showLine) {
  7360. y.find("." + o).removeClass("layui-tree-icon"), y.find("." + o).children(".layui-icon").removeClass(u).addClass("layui-icon-file");
  7361. var w = y.parents("." + v).eq(0);
  7362. w.addClass(x), w.children("." + s).each(function () {
  7363. i(this).children("." + v).children("." + s).last().addClass(k);
  7364. });
  7365. } else y.find(".layui-tree-iconArrow").addClass(c);
  7366. e.parents("." + s).eq(0).removeClass(C), e.parent("." + v).remove();
  7367. }
  7368. e.remove();
  7369. });
  7370. });
  7371. }, b.prototype.events = function () {
  7372. var e = this,
  7373. a = e.config;
  7374. e.elem.find(".layui-tree-checkedFirst");
  7375. e.setChecked(e.checkids), e.elem.find(".layui-tree-search").on("keyup", function () {
  7376. var n = i(this),
  7377. t = n.val(),
  7378. r = n.nextAll(),
  7379. l = [];
  7380. r.find("." + y).each(function () {
  7381. var e = i(this).parents("." + p);
  7382. if (i(this).html().indexOf(t) != -1) {
  7383. l.push(i(this).parent());
  7384. var a = function a(e) {
  7385. e.addClass("layui-tree-searchShow"), e.parent("." + v)[0] && a(e.parent("." + v).parent("." + s));
  7386. };
  7387. a(e.parent("." + s));
  7388. }
  7389. }), r.find("." + p).each(function () {
  7390. var e = i(this).parent("." + s);
  7391. e.hasClass("layui-tree-searchShow") || e.addClass(c);
  7392. }), 0 == r.find(".layui-tree-searchShow").length && e.elem.append(e.elemNone), a.onsearch && a.onsearch({
  7393. elem: l
  7394. });
  7395. }), e.elem.find(".layui-tree-search").on("keydown", function () {
  7396. i(this).nextAll().find("." + p).each(function () {
  7397. var e = i(this).parent("." + s);
  7398. e.removeClass("layui-tree-searchShow " + c);
  7399. }), i(".layui-tree-emptyText")[0] && i(".layui-tree-emptyText").remove();
  7400. });
  7401. }, b.prototype.getChecked = function () {
  7402. var e = this,
  7403. a = e.config,
  7404. n = [],
  7405. t = [];
  7406. e.elem.find(".layui-form-checked").each(function () {
  7407. n.push(i(this).prev()[0].value);
  7408. });
  7409. var r = function r(e, a) {
  7410. layui.each(e, function (e, t) {
  7411. layui.each(n, function (e, n) {
  7412. if (t.id == n) {
  7413. var l = i.extend({}, t);
  7414. return delete l.children, a.push(l), t.children && (l.children = [], r(t.children, l.children)), !0;
  7415. }
  7416. });
  7417. });
  7418. };
  7419. return r(i.extend({}, a.data), t), t;
  7420. }, b.prototype.setChecked = function (e) {
  7421. var a = this;
  7422. a.config;
  7423. a.elem.find("." + s).each(function (a, n) {
  7424. var t = i(this).data("id"),
  7425. r = i(n).children("." + p).find('input[same="layuiTreeCheck"]'),
  7426. l = r.next();
  7427. if ("number" == typeof e) {
  7428. if (t == e) return r[0].checked || l.click(), !1;
  7429. } else "object" == _typeof(e) && layui.each(e, function (e, i) {
  7430. if (i == t && !r[0].checked) return l.click(), !0;
  7431. });
  7432. });
  7433. }, l.that = {}, l.config = {}, r.reload = function (e, i) {
  7434. var a = l.that[e];
  7435. return a.reload(i), l.call(a);
  7436. }, r.getChecked = function (e) {
  7437. var i = l.that[e];
  7438. return i.getChecked();
  7439. }, r.setChecked = function (e, i) {
  7440. var a = l.that[e];
  7441. return a.setChecked(i);
  7442. }, r.render = function (e) {
  7443. var i = new b(e);
  7444. return l.call(i);
  7445. }, e(t, r);
  7446. });
  7447. layui.define(["laytpl", "form"], function (e) {
  7448. "use strict";
  7449. var a = layui.$,
  7450. t = layui.laytpl,
  7451. n = layui.form,
  7452. i = "transfer",
  7453. l = {
  7454. config: {},
  7455. index: layui[i] ? layui[i].index + 1e4 : 0,
  7456. set: function set(e) {
  7457. var t = this;
  7458. return t.config = a.extend({}, t.config, e), t;
  7459. },
  7460. on: function on(e, a) {
  7461. return layui.onevent.call(this, i, e, a);
  7462. }
  7463. },
  7464. r = function r() {
  7465. var e = this,
  7466. a = e.config,
  7467. t = a.id || e.index;
  7468. return r.that[t] = e, r.config[t] = a, {
  7469. config: a,
  7470. reload: function reload(a) {
  7471. e.reload.call(e, a);
  7472. },
  7473. getData: function getData() {
  7474. return e.getData.call(e);
  7475. }
  7476. };
  7477. },
  7478. c = "layui-hide",
  7479. o = "layui-btn-disabled",
  7480. d = "layui-none",
  7481. s = "layui-transfer-box",
  7482. u = "layui-transfer-header",
  7483. h = "layui-transfer-search",
  7484. f = "layui-transfer-active",
  7485. y = "layui-transfer-data",
  7486. p = function p(e) {
  7487. return e = e || {}, ['<div class="layui-transfer-box" data-index="' + e.index + '">', '<div class="layui-transfer-header">', '<input type="checkbox" name="' + e.checkAllName + '" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{ d.data.title[' + e.index + "] || 'list" + (e.index + 1) + "' }}\">", "</div>", "{{# if(d.data.showSearch){ }}", '<div class="layui-transfer-search">', '<i class="layui-icon layui-icon-search"></i>', '<input type="input" class="layui-input" placeholder="关键词搜索">', "</div>", "{{# } }}", '<ul class="layui-transfer-data"></ul>', "</div>"].join("");
  7488. },
  7489. v = ['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{ d.index }}">', p({
  7490. index: 0,
  7491. checkAllName: "layTransferLeftCheckAll"
  7492. }), '<div class="layui-transfer-active">', '<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="0">', '<i class="layui-icon layui-icon-next"></i>', "</button>", '<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="1">', '<i class="layui-icon layui-icon-prev"></i>', "</button>", "</div>", p({
  7493. index: 1,
  7494. checkAllName: "layTransferRightCheckAll"
  7495. }), "</div>"].join(""),
  7496. x = function x(e) {
  7497. var t = this;
  7498. t.index = ++l.index, t.config = a.extend({}, t.config, l.config, e), t.render();
  7499. };
  7500. x.prototype.config = {
  7501. title: ["列表一", "列表二"],
  7502. width: 200,
  7503. height: 360,
  7504. data: [],
  7505. value: [],
  7506. showSearch: !1,
  7507. id: "",
  7508. text: {
  7509. none: "无数据",
  7510. searchNone: "无匹配数据"
  7511. }
  7512. }, x.prototype.reload = function (e) {
  7513. var t = this;
  7514. layui.each(e, function (e, a) {
  7515. a.constructor === Array && delete t.config[e];
  7516. }), t.config = a.extend(!0, {}, t.config, e), t.render();
  7517. }, x.prototype.render = function () {
  7518. var e = this,
  7519. n = e.config,
  7520. i = e.elem = a(t(v).render({
  7521. data: n,
  7522. index: e.index
  7523. })),
  7524. l = n.elem = a(n.elem);
  7525. l[0] && (n.data = n.data || [], n.value = n.value || [], e.key = n.id || e.index, l.html(e.elem), e.layBox = e.elem.find("." + s), e.layHeader = e.elem.find("." + u), e.laySearch = e.elem.find("." + h), e.layData = i.find("." + y), e.layBtn = i.find("." + f + " .layui-btn"), e.layBox.css({
  7526. width: n.width,
  7527. height: n.height
  7528. }), e.layData.css({
  7529. height: function () {
  7530. return n.height - e.layHeader.outerHeight() - e.laySearch.outerHeight() - 2;
  7531. }()
  7532. }), e.renderData(), e.events());
  7533. }, x.prototype.renderData = function () {
  7534. var e = this,
  7535. a = (e.config, [{
  7536. checkName: "layTransferLeftCheck",
  7537. views: []
  7538. }, {
  7539. checkName: "layTransferRightCheck",
  7540. views: []
  7541. }]);
  7542. e.parseData(function (e) {
  7543. var t = e.selected ? 1 : 0,
  7544. n = ["<li>", '<input type="checkbox" name="' + a[t].checkName + '" lay-skin="primary" lay-filter="layTransferCheckbox" title="' + e.title + '"' + (e.disabled ? " disabled" : "") + (e.checked ? " checked" : "") + ' value="' + e.value + '">', "</li>"].join("");
  7545. a[t].views.push(n), delete e.selected;
  7546. }), e.layData.eq(0).html(a[0].views.join("")), e.layData.eq(1).html(a[1].views.join("")), e.renderCheckBtn();
  7547. }, x.prototype.renderForm = function (e) {
  7548. n.render(e, "LAY-transfer-" + this.index);
  7549. }, x.prototype.renderCheckBtn = function (e) {
  7550. var t = this,
  7551. n = t.config;
  7552. e = e || {}, t.layBox.each(function (i) {
  7553. var l = a(this),
  7554. r = l.find("." + y),
  7555. d = l.find("." + u).find('input[type="checkbox"]'),
  7556. s = r.find('input[type="checkbox"]'),
  7557. h = 0,
  7558. f = !1;
  7559. if (s.each(function () {
  7560. var e = a(this).data("hide");
  7561. (this.checked || this.disabled || e) && h++, this.checked && !e && (f = !0);
  7562. }), d.prop("checked", f && h === s.length), t.layBtn.eq(i)[f ? "removeClass" : "addClass"](o), !e.stopNone) {
  7563. var p = r.children("li:not(." + c + ")").length;
  7564. t.noneView(r, p ? "" : n.text.none);
  7565. }
  7566. }), t.renderForm("checkbox");
  7567. }, x.prototype.noneView = function (e, t) {
  7568. var n = a('<p class="layui-none">' + (t || "") + "</p>");
  7569. e.find("." + d)[0] && e.find("." + d).remove(), t.replace(/\s/g, "") && e.append(n);
  7570. }, x.prototype.setValue = function () {
  7571. var e = this,
  7572. t = e.config,
  7573. n = [];
  7574. return e.layBox.eq(1).find("." + y + ' input[type="checkbox"]').each(function () {
  7575. var e = a(this).data("hide");
  7576. e || n.push(this.value);
  7577. }), t.value = n, e;
  7578. }, x.prototype.parseData = function (e) {
  7579. var t = this,
  7580. n = t.config,
  7581. i = [];
  7582. return layui.each(n.data, function (t, l) {
  7583. l = ("function" == typeof n.parseData ? n.parseData(l) : l) || l, i.push(l = a.extend({}, l)), layui.each(n.value, function (e, a) {
  7584. a == l.value && (l.selected = !0);
  7585. }), e && e(l);
  7586. }), n.data = i, t;
  7587. }, x.prototype.getData = function (e) {
  7588. var a = this,
  7589. t = a.config,
  7590. n = [];
  7591. return a.setValue(), layui.each(e || t.value, function (e, a) {
  7592. layui.each(t.data, function (e, t) {
  7593. delete t.selected, a == t.value && n.push(t);
  7594. });
  7595. }), n;
  7596. }, x.prototype.events = function () {
  7597. var e = this,
  7598. t = e.config;
  7599. e.elem.on("click", 'input[lay-filter="layTransferCheckbox"]+', function () {
  7600. var t = a(this).prev(),
  7601. n = t[0].checked,
  7602. i = t.parents("." + s).eq(0).find("." + y);
  7603. t[0].disabled || ("all" === t.attr("lay-type") && i.find('input[type="checkbox"]').each(function () {
  7604. this.disabled || (this.checked = n);
  7605. }), e.renderCheckBtn({
  7606. stopNone: !0
  7607. }));
  7608. }), e.layBtn.on("click", function () {
  7609. var n = a(this),
  7610. i = n.data("index"),
  7611. l = e.layBox.eq(i),
  7612. r = [];
  7613. if (!n.hasClass(o)) {
  7614. e.layBox.eq(i).each(function (t) {
  7615. var n = a(this),
  7616. i = n.find("." + y);
  7617. i.children("li").each(function () {
  7618. var t = a(this),
  7619. n = t.find('input[type="checkbox"]'),
  7620. i = n.data("hide");
  7621. n[0].checked && !i && (n[0].checked = !1, l.siblings("." + s).find("." + y).append(t.clone()), t.remove(), r.push(n[0].value)), e.setValue();
  7622. });
  7623. }), e.renderCheckBtn();
  7624. var c = l.siblings("." + s).find("." + h + " input");
  7625. "" === c.val() || c.trigger("keyup"), t.onchange && t.onchange(e.getData(r), i);
  7626. }
  7627. }), e.laySearch.find("input").on("keyup", function () {
  7628. var n = this.value,
  7629. i = a(this).parents("." + h).eq(0).siblings("." + y),
  7630. l = i.children("li");
  7631. l.each(function () {
  7632. var e = a(this),
  7633. t = e.find('input[type="checkbox"]'),
  7634. i = t[0].title.indexOf(n) !== -1;
  7635. e[i ? "removeClass" : "addClass"](c), t.data("hide", !i);
  7636. }), e.renderCheckBtn();
  7637. var r = l.length === i.children("li." + c).length;
  7638. e.noneView(i, r ? t.text.searchNone : "");
  7639. });
  7640. }, r.that = {}, r.config = {}, l.reload = function (e, a) {
  7641. var t = r.that[e];
  7642. return t.reload(a), r.call(t);
  7643. }, l.getData = function (e) {
  7644. var a = r.that[e];
  7645. return a.getData();
  7646. }, l.render = function (e) {
  7647. var a = new x(e);
  7648. return r.call(a);
  7649. }, e(i, l);
  7650. });
  7651. layui.define(["laytpl", "laypage", "layer", "form", "util"], function (e) {
  7652. "use strict";
  7653. var t = layui.$,
  7654. i = layui.laytpl,
  7655. a = layui.laypage,
  7656. l = layui.layer,
  7657. n = layui.form,
  7658. o = (layui.util, layui.hint()),
  7659. r = layui.device(),
  7660. d = {
  7661. config: {
  7662. checkName: "LAY_CHECKED",
  7663. indexName: "LAY_TABLE_INDEX"
  7664. },
  7665. cache: {},
  7666. index: layui.table ? layui.table.index + 1e4 : 0,
  7667. set: function set(e) {
  7668. var i = this;
  7669. return i.config = t.extend({}, i.config, e), i;
  7670. },
  7671. on: function on(e, t) {
  7672. return layui.onevent.call(this, y, e, t);
  7673. }
  7674. },
  7675. c = function c() {
  7676. var e = this,
  7677. t = e.config,
  7678. i = t.id || t.index;
  7679. return i && (c.that[i] = e, c.config[i] = t), {
  7680. config: t,
  7681. reload: function reload(t) {
  7682. e.reload.call(e, t);
  7683. },
  7684. setColsWidth: function setColsWidth() {
  7685. e.setColsWidth.call(e);
  7686. },
  7687. resize: function resize() {
  7688. e.resize.call(e);
  7689. }
  7690. };
  7691. },
  7692. s = function s(e) {
  7693. var t = c.config[e];
  7694. return t || o.error("The ID option was not found in the table instance"), t || null;
  7695. },
  7696. u = function u(e, a, l, n) {
  7697. var o = e.templet ? function () {
  7698. return "function" == typeof e.templet ? e.templet(l) : i(t(e.templet).html() || String(a)).render(l);
  7699. }() : a;
  7700. return n ? t("<div>" + o + "</div>").text() : o;
  7701. },
  7702. y = "table",
  7703. h = ".layui-table",
  7704. f = "layui-hide",
  7705. p = "layui-none",
  7706. v = "layui-table-view",
  7707. m = ".layui-table-tool",
  7708. g = ".layui-table-box",
  7709. b = ".layui-table-init",
  7710. x = ".layui-table-header",
  7711. k = ".layui-table-body",
  7712. C = ".layui-table-main",
  7713. w = ".layui-table-fixed",
  7714. T = ".layui-table-fixed-l",
  7715. A = ".layui-table-fixed-r",
  7716. L = ".layui-table-total",
  7717. N = ".layui-table-page",
  7718. S = ".layui-table-sort",
  7719. R = "layui-table-edit",
  7720. W = "layui-table-hover",
  7721. _ = function _(e) {
  7722. var t = '{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';
  7723. return e = e || {}, ['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ', '{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>', "<thead>", "{{# layui.each(d.data.cols, function(i1, item1){ }}", "<tr>", "{{# layui.each(item1, function(i2, item2){ }}", '{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}', '{{# if(item2.fixed === "right"){ right = true; } }}', function () {
  7724. return e.fixed && "right" !== e.fixed ? '{{# if(item2.fixed && item2.fixed !== "right"){ }}' : "right" === e.fixed ? '{{# if(item2.fixed === "right"){ }}' : "";
  7725. }(), "{{# var isSort = !(item2.colGroup) && item2.sort; }}", '<th data-field="{{ item2.field||i2 }}" data-key="{{d.index}}-{{i1}}-{{i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{ item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} ' + t + ' {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}">', '<div class="layui-table-cell laytable-cell-', "{{# if(item2.colGroup){ }}", "group", "{{# } else { }}", "{{d.index}}-{{i1}}-{{i2}}", '{{# if(item2.type !== "normal"){ }}', " laytable-cell-{{ item2.type }}", "{{# } }}", "{{# } }}", '" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>', '{{# if(item2.type === "checkbox"){ }}', '<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>', "{{# } else { }}", '<span>{{item2.title||""}}</span>', "{{# if(isSort){ }}", '<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>', "{{# } }}", "{{# } }}", "</div>", "</th>", e.fixed ? "{{# }; }}" : "", "{{# }); }}", "</tr>", "{{# }); }}", "</thead>", "</table>"].join("");
  7726. },
  7727. E = ['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ', '{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>', "<tbody></tbody>", "</table>"].join(""),
  7728. z = ['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" lay-id="{{ d.data.id }}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">', "{{# if(d.data.toolbar){ }}", '<div class="layui-table-tool">', '<div class="layui-table-tool-temp"></div>', '<div class="layui-table-tool-self"></div>', "</div>", "{{# } }}", '<div class="layui-table-box">', "{{# if(d.data.loading){ }}", '<div class="layui-table-init" style="background-color: #fff;">', '<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>', "</div>", "{{# } }}", "{{# var left, right; }}", '<div class="layui-table-header">', _(), "</div>", '<div class="layui-table-body layui-table-main">', E, "</div>", "{{# if(left){ }}", '<div class="layui-table-fixed layui-table-fixed-l">', '<div class="layui-table-header">', _({
  7729. fixed: !0
  7730. }), "</div>", '<div class="layui-table-body">', E, "</div>", "</div>", "{{# }; }}", "{{# if(right){ }}", '<div class="layui-table-fixed layui-table-fixed-r">', '<div class="layui-table-header">', _({
  7731. fixed: "right"
  7732. }), '<div class="layui-table-mend"></div>', "</div>", '<div class="layui-table-body">', E, "</div>", "</div>", "{{# }; }}", "</div>", "{{# if(d.data.totalRow){ }}", '<div class="layui-table-total">', '<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ', '{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>', '<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>', "</table>", "</div>", "{{# } }}", "{{# if(d.data.page){ }}", '<div class="layui-table-page">', '<div id="layui-table-page{{d.index}}"></div>', "</div>", "{{# } }}", "<style>", "{{# layui.each(d.data.cols, function(i1, item1){", "layui.each(item1, function(i2, item2){ }}", ".laytable-cell-{{d.index}}-{{i1}}-{{i2}}{ ", "{{# if(item2.width){ }}", "width: {{item2.width}}px;", "{{# } }}", " }", "{{# });", "}); }}", "</style>", "</div>"].join(""),
  7733. H = t(window),
  7734. j = t(document),
  7735. F = function F(e) {
  7736. var i = this;
  7737. i.index = ++d.index, i.config = t.extend({}, i.config, d.config, e), i.render();
  7738. };
  7739. F.prototype.config = {
  7740. limit: 10,
  7741. loading: !0,
  7742. cellMinWidth: 60,
  7743. defaultToolbar: ["filter", "exports", "print"],
  7744. autoSort: !0,
  7745. text: {
  7746. none: "无数据"
  7747. }
  7748. }, F.prototype.render = function () {
  7749. var e = this,
  7750. a = e.config;
  7751. if (a.elem = t(a.elem), a.where = a.where || {}, a.id = a.id || a.elem.attr("id") || e.index, a.request = t.extend({
  7752. pageName: "page",
  7753. limitName: "limit"
  7754. }, a.request), a.response = t.extend({
  7755. statusName: "code",
  7756. statusCode: 0,
  7757. msgName: "msg",
  7758. dataName: "data",
  7759. totalRowName: "totalRow",
  7760. countName: "count"
  7761. }, a.response), "object" == _typeof(a.page) && (a.limit = a.page.limit || a.limit, a.limits = a.page.limits || a.limits, e.page = a.page.curr = a.page.curr || 1, delete a.page.elem, delete a.page.jump), !a.elem[0]) return e;
  7762. a.height && /^full-\d+$/.test(a.height) && (e.fullHeightGap = a.height.split("-")[1], a.height = H.height() - e.fullHeightGap), e.setInit();
  7763. var l = a.elem,
  7764. n = l.next("." + v),
  7765. o = e.elem = t(i(z).render({
  7766. VIEW_CLASS: v,
  7767. data: a,
  7768. index: e.index
  7769. }));
  7770. if (a.index = e.index, e.key = a.id || a.index, n[0] && n.remove(), l.after(o), e.layTool = o.find(m), e.layBox = o.find(g), e.layHeader = o.find(x), e.layMain = o.find(C), e.layBody = o.find(k), e.layFixed = o.find(w), e.layFixLeft = o.find(T), e.layFixRight = o.find(A), e.layTotal = o.find(L), e.layPage = o.find(N), e.renderToolbar(), e.fullSize(), a.cols.length > 1) {
  7771. var r = e.layFixed.find(x).find("th");
  7772. r.height(e.layHeader.height() - 1 - parseFloat(r.css("padding-top")) - parseFloat(r.css("padding-bottom")));
  7773. }
  7774. e.pullData(e.page), e.events();
  7775. }, F.prototype.initOpts = function (e) {
  7776. var t = this,
  7777. i = (t.config, {
  7778. checkbox: 48,
  7779. radio: 48,
  7780. space: 15,
  7781. numbers: 40
  7782. });
  7783. e.checkbox && (e.type = "checkbox"), e.space && (e.type = "space"), e.type || (e.type = "normal"), "normal" !== e.type && (e.unresize = !0, e.width = e.width || i[e.type]);
  7784. }, F.prototype.setInit = function (e) {
  7785. var t = this,
  7786. i = t.config;
  7787. return i.clientWidth = i.width || function () {
  7788. var e = function e(t) {
  7789. var a, l;
  7790. t = t || i.elem.parent(), a = t.width();
  7791. try {
  7792. l = "none" === t.css("display");
  7793. } catch (n) {}
  7794. return !t[0] || a && !l ? a : e(t.parent());
  7795. };
  7796. return e();
  7797. }(), "width" === e ? i.clientWidth : void layui.each(i.cols, function (e, a) {
  7798. layui.each(a, function (l, n) {
  7799. if (!n) return void a.splice(l, 1);
  7800. if (n.key = e + "-" + l, n.hide = n.hide || !1, n.colGroup || n.colspan > 1) {
  7801. var o = 0;
  7802. layui.each(i.cols[e + 1], function (t, i) {
  7803. i.HAS_PARENT || o > 1 && o == n.colspan || (i.HAS_PARENT = !0, i.parentKey = e + "-" + l, o += parseInt(i.colspan > 1 ? i.colspan : 1));
  7804. }), n.colGroup = !0;
  7805. }
  7806. t.initOpts(n);
  7807. });
  7808. });
  7809. }, F.prototype.renderToolbar = function () {
  7810. var e = this,
  7811. a = e.config,
  7812. l = ['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>', '<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>', '<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),
  7813. n = e.layTool.find(".layui-table-tool-temp");
  7814. if ("default" === a.toolbar) n.html(l);else if ("string" == typeof a.toolbar) {
  7815. var o = t(a.toolbar).html() || "";
  7816. o && n.html(i(o).render(a));
  7817. }
  7818. var r = {
  7819. filter: {
  7820. title: "筛选列",
  7821. layEvent: "LAYTABLE_COLS",
  7822. icon: "layui-icon-cols"
  7823. },
  7824. exports: {
  7825. title: "导出",
  7826. layEvent: "LAYTABLE_EXPORT",
  7827. icon: "layui-icon-export"
  7828. },
  7829. print: {
  7830. title: "打印",
  7831. layEvent: "LAYTABLE_PRINT",
  7832. icon: "layui-icon-print"
  7833. }
  7834. },
  7835. d = [];
  7836. "object" == _typeof(a.defaultToolbar) && layui.each(a.defaultToolbar, function (e, t) {
  7837. var i = "string" == typeof t ? r[t] : t;
  7838. i && d.push('<div class="layui-inline" title="' + i.title + '" lay-event="' + i.layEvent + '"><i class="layui-icon ' + i.icon + '"></i></div>');
  7839. }), e.layTool.find(".layui-table-tool-self").html(d.join(""));
  7840. }, F.prototype.setParentCol = function (e, t) {
  7841. var i = this,
  7842. a = i.config,
  7843. l = i.layHeader.find('th[data-key="' + a.index + "-" + t + '"]'),
  7844. n = parseInt(l.attr("colspan")) || 0;
  7845. if (l[0]) {
  7846. var o = t.split("-"),
  7847. r = a.cols[o[0]][o[1]];
  7848. e ? n-- : n++, l.attr("colspan", n), l[n < 1 ? "addClass" : "removeClass"](f), r.colspan = n, r.hide = n < 1;
  7849. var d = l.data("parentkey");
  7850. d && i.setParentCol(e, d);
  7851. }
  7852. }, F.prototype.setColsPatch = function () {
  7853. var e = this,
  7854. t = e.config;
  7855. layui.each(t.cols, function (t, i) {
  7856. layui.each(i, function (t, i) {
  7857. i.hide && e.setParentCol(i.hide, i.parentKey);
  7858. });
  7859. });
  7860. }, F.prototype.setColsWidth = function () {
  7861. var e = this,
  7862. t = e.config,
  7863. i = 0,
  7864. a = 0,
  7865. l = 0,
  7866. n = 0,
  7867. o = e.setInit("width");
  7868. e.eachCols(function (e, t) {
  7869. t.hide || i++;
  7870. }), o = o - function () {
  7871. return "line" === t.skin || "nob" === t.skin ? 2 : i + 1;
  7872. }() - e.getScrollWidth(e.layMain[0]) - 1;
  7873. var r = function r(e) {
  7874. layui.each(t.cols, function (i, r) {
  7875. layui.each(r, function (i, d) {
  7876. var c = 0,
  7877. s = d.minWidth || t.cellMinWidth;
  7878. return d ? void (d.colGroup || d.hide || (e ? l && l < s && (a--, c = s) : (c = d.width || 0, /\d+%$/.test(c) ? (c = Math.floor(parseFloat(c) / 100 * o), c < s && (c = s)) : c || (d.width = c = 0, a++)), d.hide && (c = 0), n += c)) : void r.splice(i, 1);
  7879. });
  7880. }), o > n && a && (l = (o - n) / a);
  7881. };
  7882. r(), r(!0), e.autoColNums = a, e.eachCols(function (i, a) {
  7883. var n = a.minWidth || t.cellMinWidth;
  7884. a.colGroup || a.hide || (0 === a.width ? e.getCssRule(t.index + "-" + a.key, function (e) {
  7885. e.style.width = Math.floor(l >= n ? l : n) + "px";
  7886. }) : /\d+%$/.test(a.width) && e.getCssRule(t.index + "-" + a.key, function (e) {
  7887. e.style.width = Math.floor(parseFloat(a.width) / 100 * o) + "px";
  7888. }));
  7889. });
  7890. var d = e.layMain.width() - e.getScrollWidth(e.layMain[0]) - e.layMain.children("table").outerWidth();
  7891. if (e.autoColNums && d >= -i && d <= i) {
  7892. var c = function c(t) {
  7893. var i;
  7894. return t = t || e.layHeader.eq(0).find("thead th:last-child"), i = t.data("field"), !i && t.prev()[0] ? c(t.prev()) : t;
  7895. },
  7896. s = c(),
  7897. u = s.data("key");
  7898. e.getCssRule(u, function (t) {
  7899. var i = t.style.width || s.outerWidth();
  7900. t.style.width = parseFloat(i) + d + "px", e.layMain.height() - e.layMain.prop("clientHeight") > 0 && (t.style.width = parseFloat(t.style.width) - 1 + "px");
  7901. });
  7902. }
  7903. e.loading(!0);
  7904. }, F.prototype.resize = function () {
  7905. var e = this;
  7906. e.fullSize(), e.setColsWidth(), e.scrollPatch();
  7907. }, F.prototype.reload = function (e) {
  7908. var i = this;
  7909. e = e || {}, delete i.haveInit, e.data && e.data.constructor === Array && delete i.config.data, i.config = t.extend(!0, {}, i.config, e), i.render();
  7910. }, F.prototype.errorView = function (e) {
  7911. var i = this,
  7912. a = i.layMain.find("." + p),
  7913. l = t('<div class="' + p + '">' + (e || "Error") + "</div>");
  7914. a[0] && (i.layNone.remove(), a.remove()), i.layFixed.addClass(f), i.layMain.find("tbody").html(""), i.layMain.append(i.layNone = l), d.cache[i.key] = [];
  7915. }, F.prototype.page = 1, F.prototype.pullData = function (e) {
  7916. var i = this,
  7917. a = i.config,
  7918. l = a.request,
  7919. n = a.response,
  7920. o = function o() {
  7921. "object" == _typeof(a.initSort) && i.sort(a.initSort.field, a.initSort.type);
  7922. };
  7923. if (i.startTime = new Date().getTime(), a.url) {
  7924. var r = {};
  7925. r[l.pageName] = e, r[l.limitName] = a.limit;
  7926. var d = t.extend(r, a.where);
  7927. a.contentType && 0 == a.contentType.indexOf("application/json") && (d = JSON.stringify(d)), i.loading(), t.ajax({
  7928. type: a.method || "get",
  7929. url: a.url,
  7930. contentType: a.contentType,
  7931. data: d,
  7932. dataType: "json",
  7933. headers: a.headers || {},
  7934. success: function success(t) {
  7935. "function" == typeof a.parseData && (t = a.parseData(t) || t), t[n.statusName] != n.statusCode ? (i.renderForm(), i.errorView(t[n.msgName] || '返回的数据不符合规范,正确的成功状态码应为:"' + n.statusName + '": ' + n.statusCode)) : (i.renderData(t, e, t[n.countName]), o(), a.time = new Date().getTime() - i.startTime + " ms"), i.setColsWidth(), "function" == typeof a.done && a.done(t, e, t[n.countName]);
  7936. },
  7937. error: function error(e, t) {
  7938. i.errorView("数据接口请求异常:" + t), i.renderForm(), i.setColsWidth();
  7939. }
  7940. });
  7941. } else if (a.data && a.data.constructor === Array) {
  7942. var c = {},
  7943. s = e * a.limit - a.limit;
  7944. c[n.dataName] = a.data.concat().splice(s, a.limit), c[n.countName] = a.data.length, "object" == _typeof(a.totalRow) && (c[n.totalRowName] = t.extend({}, a.totalRow)), i.renderData(c, e, c[n.countName]), o(), i.setColsWidth(), "function" == typeof a.done && a.done(c, e, c[n.countName]);
  7945. }
  7946. }, F.prototype.eachCols = function (e) {
  7947. var t = this;
  7948. return d.eachCols(null, e, t.config.cols), t;
  7949. }, F.prototype.renderData = function (e, n, o, r) {
  7950. var c = this,
  7951. s = c.config,
  7952. y = e[s.response.dataName] || [],
  7953. h = e[s.response.totalRowName],
  7954. v = [],
  7955. m = [],
  7956. g = [],
  7957. b = function b() {
  7958. var e;
  7959. return !r && c.sortKey ? c.sort(c.sortKey.field, c.sortKey.sort, !0) : (layui.each(y, function (a, l) {
  7960. var o = [],
  7961. y = [],
  7962. h = [],
  7963. p = a + s.limit * (n - 1) + 1;
  7964. 0 !== l.length && (r || (l[d.config.indexName] = a), c.eachCols(function (n, r) {
  7965. var c = r.field || n,
  7966. v = s.index + "-" + r.key,
  7967. m = l[c];
  7968. if (void 0 !== m && null !== m || (m = ""), !r.colGroup) {
  7969. var g = ['<td data-field="' + c + '" data-key="' + v + '" ' + function () {
  7970. var e = [];
  7971. return r.edit && e.push('data-edit="' + r.edit + '"'), r.align && e.push('align="' + r.align + '"'), r.templet && e.push('data-content="' + m + '"'), r.toolbar && e.push('data-off="true"'), r.event && e.push('lay-event="' + r.event + '"'), r.style && e.push('style="' + r.style + '"'), r.minWidth && e.push('data-minwidth="' + r.minWidth + '"'), e.join(" ");
  7972. }() + ' class="' + function () {
  7973. var e = [];
  7974. return r.hide && e.push(f), r.field || e.push("layui-table-col-special"), e.join(" ");
  7975. }() + '">', '<div class="layui-table-cell laytable-cell-' + function () {
  7976. return "normal" === r.type ? v : v + " laytable-cell-" + r.type;
  7977. }() + '">' + function () {
  7978. var n = t.extend(!0, {
  7979. LAY_INDEX: p
  7980. }, l),
  7981. o = d.config.checkName;
  7982. switch (r.type) {
  7983. case "checkbox":
  7984. return '<input type="checkbox" name="layTableCheckbox" lay-skin="primary" ' + function () {
  7985. return r[o] ? (l[o] = r[o], r[o] ? "checked" : "") : n[o] ? "checked" : "";
  7986. }() + ">";
  7987. case "radio":
  7988. return n[o] && (e = a), '<input type="radio" name="layTableRadio_' + s.index + '" ' + (n[o] ? "checked" : "") + ' lay-type="layTableRadio">';
  7989. case "numbers":
  7990. return p;
  7991. }
  7992. return r.toolbar ? i(t(r.toolbar).html() || "").render(n) : u(r, m, n);
  7993. }(), "</div></td>"].join("");
  7994. o.push(g), r.fixed && "right" !== r.fixed && y.push(g), "right" === r.fixed && h.push(g);
  7995. }
  7996. }), v.push('<tr data-index="' + a + '">' + o.join("") + "</tr>"), m.push('<tr data-index="' + a + '">' + y.join("") + "</tr>"), g.push('<tr data-index="' + a + '">' + h.join("") + "</tr>"));
  7997. }), c.layBody.scrollTop(0), c.layMain.find("." + p).remove(), c.layMain.find("tbody").html(v.join("")), c.layFixLeft.find("tbody").html(m.join("")), c.layFixRight.find("tbody").html(g.join("")), c.renderForm(), "number" == typeof e && c.setThisRowChecked(e), c.syncCheckAll(), c.haveInit ? c.scrollPatch() : setTimeout(function () {
  7998. c.scrollPatch();
  7999. }, 50), c.haveInit = !0, l.close(c.tipsIndex), s.HAS_SET_COLS_PATCH || c.setColsPatch(), void (s.HAS_SET_COLS_PATCH = !0));
  8000. };
  8001. return d.cache[c.key] = y, c.layPage[0 == o || 0 === y.length && 1 == n ? "addClass" : "removeClass"](f), r ? b() : 0 === y.length ? (c.renderForm(), c.errorView(s.text.none)) : (c.layFixed.removeClass(f), b(), c.renderTotal(y, h), void (s.page && (s.page = t.extend({
  8002. elem: "layui-table-page" + s.index,
  8003. count: o,
  8004. limit: s.limit,
  8005. limits: s.limits || [10, 20, 30, 40, 50, 60, 70, 80, 90],
  8006. groups: 3,
  8007. layout: ["prev", "page", "next", "skip", "count", "limit"],
  8008. prev: '<i class="layui-icon">&#xe603;</i>',
  8009. next: '<i class="layui-icon">&#xe602;</i>',
  8010. jump: function jump(e, t) {
  8011. t || (c.page = e.curr, s.limit = e.limit, c.pullData(e.curr));
  8012. }
  8013. }, s.page), s.page.count = o, a.render(s.page))));
  8014. }, F.prototype.renderTotal = function (e, t) {
  8015. var i = this,
  8016. a = i.config,
  8017. l = {};
  8018. if (a.totalRow) {
  8019. layui.each(e, function (e, t) {
  8020. 0 !== t.length && i.eachCols(function (e, i) {
  8021. var a = i.field || e,
  8022. n = t[a];
  8023. i.totalRow && (l[a] = (l[a] || 0) + (parseFloat(n) || 0));
  8024. });
  8025. }), i.dataTotal = {};
  8026. var n = [];
  8027. i.eachCols(function (e, o) {
  8028. var r = o.field || e,
  8029. d = function () {
  8030. var e = o.totalRowText || "",
  8031. i = parseFloat(l[r]).toFixed(2),
  8032. a = {};
  8033. return a[r] = i, i = u(o, i, a), t ? t[o.field] || e : o.totalRow ? i || e : e;
  8034. }(),
  8035. c = ['<td data-field="' + r + '" data-key="' + a.index + "-" + o.key + '" ' + function () {
  8036. var e = [];
  8037. return o.align && e.push('align="' + o.align + '"'), o.style && e.push('style="' + o.style + '"'), o.minWidth && e.push('data-minwidth="' + o.minWidth + '"'), e.join(" ");
  8038. }() + ' class="' + function () {
  8039. var e = [];
  8040. return o.hide && e.push(f), o.field || e.push("layui-table-col-special"), e.join(" ");
  8041. }() + '">', '<div class="layui-table-cell laytable-cell-' + function () {
  8042. var e = a.index + "-" + o.key;
  8043. return "normal" === o.type ? e : e + " laytable-cell-" + o.type;
  8044. }() + '">' + d, "</div></td>"].join("");
  8045. o.field && (i.dataTotal[r] = d), n.push(c);
  8046. }), i.layTotal.find("tbody").html("<tr>" + n.join("") + "</tr>");
  8047. }
  8048. }, F.prototype.getColElem = function (e, t) {
  8049. var i = this,
  8050. a = i.config;
  8051. return e.eq(0).find(".laytable-cell-" + (a.index + "-" + t) + ":eq(0)");
  8052. }, F.prototype.renderForm = function (e) {
  8053. n.render(e, "LAY-table-" + this.index);
  8054. }, F.prototype.setThisRowChecked = function (e) {
  8055. var t = this,
  8056. i = (t.config, "layui-table-click"),
  8057. a = t.layBody.find('tr[data-index="' + e + '"]');
  8058. a.addClass(i).siblings("tr").removeClass(i);
  8059. }, F.prototype.sort = function (e, i, a, l) {
  8060. var n,
  8061. r,
  8062. c = this,
  8063. s = {},
  8064. u = c.config,
  8065. h = u.elem.attr("lay-filter"),
  8066. f = d.cache[c.key];
  8067. "string" == typeof e && c.layHeader.find("th").each(function (i, a) {
  8068. var l = t(this),
  8069. o = l.data("field");
  8070. if (o === e) return e = l, n = o, !1;
  8071. });
  8072. try {
  8073. var n = n || e.data("field"),
  8074. p = e.data("key");
  8075. if (c.sortKey && !a && n === c.sortKey.field && i === c.sortKey.sort) return;
  8076. var v = c.layHeader.find("th .laytable-cell-" + p).find(S);
  8077. c.layHeader.find("th").find(S).removeAttr("lay-sort"), v.attr("lay-sort", i || null), c.layFixed.find("th");
  8078. } catch (m) {
  8079. return o.error("Table modules: Did not match to field");
  8080. }
  8081. c.sortKey = {
  8082. field: n,
  8083. sort: i
  8084. }, u.autoSort && ("asc" === i ? r = layui.sort(f, n) : "desc" === i ? r = layui.sort(f, n, !0) : (r = layui.sort(f, d.config.indexName), delete c.sortKey)), s[u.response.dataName] = r || f, c.renderData(s, c.page, c.count, !0), l && layui.event.call(e, y, "sort(" + h + ")", {
  8085. field: n,
  8086. type: i
  8087. });
  8088. }, F.prototype.loading = function (e) {
  8089. var i = this,
  8090. a = i.config;
  8091. a.loading && (e ? (i.layInit && i.layInit.remove(), delete i.layInit, i.layBox.find(b).remove()) : (i.layInit = t(['<div class="layui-table-init">', '<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>', "</div>"].join("")), i.layBox.append(i.layInit)));
  8092. }, F.prototype.setCheckData = function (e, t) {
  8093. var i = this,
  8094. a = i.config,
  8095. l = d.cache[i.key];
  8096. l[e] && l[e].constructor !== Array && (l[e][a.checkName] = t);
  8097. }, F.prototype.syncCheckAll = function () {
  8098. var e = this,
  8099. t = e.config,
  8100. i = e.layHeader.find('input[name="layTableCheckbox"]'),
  8101. a = function a(i) {
  8102. return e.eachCols(function (e, a) {
  8103. "checkbox" === a.type && (a[t.checkName] = i);
  8104. }), i;
  8105. };
  8106. i[0] && (d.checkStatus(e.key).isAll ? (i[0].checked || (i.prop("checked", !0), e.renderForm("checkbox")), a(!0)) : (i[0].checked && (i.prop("checked", !1), e.renderForm("checkbox")), a(!1)));
  8107. }, F.prototype.getCssRule = function (e, t) {
  8108. var i = this,
  8109. a = i.elem.find("style")[0],
  8110. l = a.sheet || a.styleSheet || {},
  8111. n = l.cssRules || l.rules;
  8112. layui.each(n, function (i, a) {
  8113. if (a.selectorText === ".laytable-cell-" + e) return t(a), !0;
  8114. });
  8115. }, F.prototype.fullSize = function () {
  8116. var e,
  8117. t = this,
  8118. i = t.config,
  8119. a = i.height;
  8120. t.fullHeightGap && (a = H.height() - t.fullHeightGap, a < 135 && (a = 135), t.elem.css("height", a)), a && (e = parseFloat(a) - (t.layHeader.outerHeight() || 38), i.toolbar && (e -= t.layTool.outerHeight() || 50), i.totalRow && (e -= t.layTotal.outerHeight() || 40), i.page && (e -= t.layPage.outerHeight() || 41), t.layMain.css("height", e - 2));
  8121. }, F.prototype.getScrollWidth = function (e) {
  8122. var t = 0;
  8123. return e ? t = e.offsetWidth - e.clientWidth : (e = document.createElement("div"), e.style.width = "100px", e.style.height = "100px", e.style.overflowY = "scroll", document.body.appendChild(e), t = e.offsetWidth - e.clientWidth, document.body.removeChild(e)), t;
  8124. }, F.prototype.scrollPatch = function () {
  8125. var e = this,
  8126. i = e.layMain.children("table"),
  8127. a = e.layMain.width() - e.layMain.prop("clientWidth"),
  8128. l = e.layMain.height() - e.layMain.prop("clientHeight"),
  8129. n = (e.getScrollWidth(e.layMain[0]), i.outerWidth() - e.layMain.width()),
  8130. o = function o(e) {
  8131. if (a && l) {
  8132. if (e = e.eq(0), !e.find(".layui-table-patch")[0]) {
  8133. var i = t('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');
  8134. i.find("div").css({
  8135. width: a
  8136. }), e.find("tr").append(i);
  8137. }
  8138. } else e.find(".layui-table-patch").remove();
  8139. };
  8140. o(e.layHeader), o(e.layTotal);
  8141. var r = e.layMain.height(),
  8142. d = r - l;
  8143. e.layFixed.find(k).css("height", i.height() >= d ? d : "auto"), e.layFixRight[n > 0 ? "removeClass" : "addClass"](f), e.layFixRight.css("right", a - 1);
  8144. }, F.prototype.events = function () {
  8145. var e,
  8146. i = this,
  8147. a = i.config,
  8148. o = t("body"),
  8149. c = {},
  8150. s = i.layHeader.find("th"),
  8151. h = ".layui-table-cell",
  8152. p = a.elem.attr("lay-filter");
  8153. i.layTool.on("click", "*[lay-event]", function (e) {
  8154. var o = t(this),
  8155. c = o.attr("lay-event"),
  8156. s = function s(e) {
  8157. var l = t(e.list),
  8158. n = t('<ul class="layui-table-tool-panel"></ul>');
  8159. n.html(l), a.height && n.css("max-height", a.height - (i.layTool.outerHeight() || 50)), o.find(".layui-table-tool-panel")[0] || o.append(n), i.renderForm(), n.on("click", function (e) {
  8160. layui.stope(e);
  8161. }), e.done && e.done(n, l);
  8162. };
  8163. switch (layui.stope(e), j.trigger("table.tool.panel.remove"), l.close(i.tipsIndex), c) {
  8164. case "LAYTABLE_COLS":
  8165. s({
  8166. list: function () {
  8167. var e = [];
  8168. return i.eachCols(function (t, i) {
  8169. i.field && "normal" == i.type && e.push('<li><input type="checkbox" name="' + i.field + '" data-key="' + i.key + '" data-parentkey="' + (i.parentKey || "") + '" lay-skin="primary" ' + (i.hide ? "" : "checked") + ' title="' + (i.title || i.field) + '" lay-filter="LAY_TABLE_TOOL_COLS"></li>');
  8170. }), e.join("");
  8171. }(),
  8172. done: function done() {
  8173. n.on("checkbox(LAY_TABLE_TOOL_COLS)", function (e) {
  8174. var l = t(e.elem),
  8175. n = this.checked,
  8176. o = l.data("key"),
  8177. r = l.data("parentkey");
  8178. layui.each(a.cols, function (e, t) {
  8179. layui.each(t, function (t, l) {
  8180. if (e + "-" + t === o) {
  8181. var d = l.hide;
  8182. l.hide = !n, i.elem.find('*[data-key="' + a.index + "-" + o + '"]')[n ? "removeClass" : "addClass"](f), d != l.hide && i.setParentCol(!n, r), i.resize();
  8183. }
  8184. });
  8185. });
  8186. });
  8187. }
  8188. });
  8189. break;
  8190. case "LAYTABLE_EXPORT":
  8191. r.ie ? l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出", this, {
  8192. tips: 3
  8193. }) : s({
  8194. list: function () {
  8195. return ['<li data-type="csv">导出到 Csv 文件</li>', '<li data-type="xls">导出到 Excel 文件</li>'].join("");
  8196. }(),
  8197. done: function done(e, l) {
  8198. l.on("click", function () {
  8199. var e = t(this).data("type");
  8200. d.exportFile.call(i, a.id, null, e);
  8201. });
  8202. }
  8203. });
  8204. break;
  8205. case "LAYTABLE_PRINT":
  8206. var u = window.open("打印窗口", "_blank"),
  8207. h = ["<style>", "body{font-size: 12px; color: #666;}", "table{width: 100%; border-collapse: collapse; border-spacing: 0;}", "th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}", "a{color: #666; text-decoration:none;}", "*.layui-hide{display: none}", "</style>"].join(""),
  8208. v = t(i.layHeader.html());
  8209. v.append(i.layMain.find("table").html()), v.append(i.layTotal.find("table").html()), v.find("th.layui-table-patch").remove(), v.find(".layui-table-col-special").remove(), u.document.write(h + v.prop("outerHTML")), u.document.close(), u.print(), u.close();
  8210. }
  8211. layui.event.call(this, y, "toolbar(" + p + ")", t.extend({
  8212. event: c,
  8213. config: a
  8214. }, {}));
  8215. }), s.on("mousemove", function (e) {
  8216. var i = t(this),
  8217. a = i.offset().left,
  8218. l = e.clientX - a;
  8219. i.data("unresize") || c.resizeStart || (c.allowResize = i.width() - l <= 10, o.css("cursor", c.allowResize ? "col-resize" : ""));
  8220. }).on("mouseleave", function () {
  8221. t(this);
  8222. c.resizeStart || o.css("cursor", "");
  8223. }).on("mousedown", function (e) {
  8224. var l = t(this);
  8225. if (c.allowResize) {
  8226. var n = l.data("key");
  8227. e.preventDefault(), c.resizeStart = !0, c.offset = [e.clientX, e.clientY], i.getCssRule(n, function (e) {
  8228. var t = e.style.width || l.outerWidth();
  8229. c.rule = e, c.ruleWidth = parseFloat(t), c.minWidth = l.data("minwidth") || a.cellMinWidth;
  8230. });
  8231. }
  8232. }), j.on("mousemove", function (t) {
  8233. if (c.resizeStart) {
  8234. if (t.preventDefault(), c.rule) {
  8235. var a = c.ruleWidth + t.clientX - c.offset[0];
  8236. a < c.minWidth && (a = c.minWidth), c.rule.style.width = a + "px", l.close(i.tipsIndex);
  8237. }
  8238. e = 1;
  8239. }
  8240. }).on("mouseup", function (t) {
  8241. c.resizeStart && (c = {}, o.css("cursor", ""), i.scrollPatch()), 2 === e && (e = null);
  8242. }), s.on("click", function (a) {
  8243. var l,
  8244. n = t(this),
  8245. o = n.find(S),
  8246. r = o.attr("lay-sort");
  8247. return o[0] && 1 !== e ? (l = "asc" === r ? "desc" : "desc" === r ? null : "asc", void i.sort(n, l, null, !0)) : e = 2;
  8248. }).find(S + " .layui-edge ").on("click", function (e) {
  8249. var a = t(this),
  8250. l = a.index(),
  8251. n = a.parents("th").eq(0).data("field");
  8252. layui.stope(e), 0 === l ? i.sort(n, "asc", null, !0) : i.sort(n, "desc", null, !0);
  8253. });
  8254. var v = function v(e) {
  8255. var a = t(this),
  8256. l = a.parents("tr").eq(0).data("index"),
  8257. n = i.layBody.find('tr[data-index="' + l + '"]'),
  8258. o = d.cache[i.key] || [];
  8259. return o = o[l] || {}, t.extend({
  8260. tr: n,
  8261. data: d.clearCacheKey(o),
  8262. del: function del() {
  8263. d.cache[i.key][l] = [], n.remove(), i.scrollPatch();
  8264. },
  8265. update: function update(e) {
  8266. e = e || {}, layui.each(e, function (e, t) {
  8267. if (e in o) {
  8268. var a,
  8269. l = n.children('td[data-field="' + e + '"]');
  8270. o[e] = t, i.eachCols(function (t, i) {
  8271. i.field == e && i.templet && (a = i.templet);
  8272. }), l.children(h).html(u({
  8273. templet: a
  8274. }, t, o)), l.data("content", t);
  8275. }
  8276. });
  8277. }
  8278. }, e);
  8279. };
  8280. i.elem.on("click", 'input[name="layTableCheckbox"]+', function () {
  8281. var e = t(this).prev(),
  8282. a = i.layBody.find('input[name="layTableCheckbox"]'),
  8283. l = e.parents("tr").eq(0).data("index"),
  8284. n = e[0].checked,
  8285. o = "layTableAllChoose" === e.attr("lay-filter");
  8286. o ? (a.each(function (e, t) {
  8287. t.checked = n, i.setCheckData(e, n);
  8288. }), i.syncCheckAll(), i.renderForm("checkbox")) : (i.setCheckData(l, n), i.syncCheckAll()), layui.event.call(e[0], y, "checkbox(" + p + ")", v.call(e[0], {
  8289. checked: n,
  8290. type: o ? "all" : "one"
  8291. }));
  8292. }), i.elem.on("click", 'input[lay-type="layTableRadio"]+', function () {
  8293. var e = t(this).prev(),
  8294. a = e[0].checked,
  8295. l = d.cache[i.key],
  8296. n = e.parents("tr").eq(0).data("index");
  8297. layui.each(l, function (e, t) {
  8298. n === e ? t.LAY_CHECKED = !0 : delete t.LAY_CHECKED;
  8299. }), i.setThisRowChecked(n), layui.event.call(this, y, "radio(" + p + ")", v.call(this, {
  8300. checked: a
  8301. }));
  8302. }), i.layBody.on("mouseenter", "tr", function () {
  8303. var e = t(this),
  8304. a = e.index();
  8305. e.data("off") || i.layBody.find("tr:eq(" + a + ")").addClass(W);
  8306. }).on("mouseleave", "tr", function () {
  8307. var e = t(this),
  8308. a = e.index();
  8309. e.data("off") || i.layBody.find("tr:eq(" + a + ")").removeClass(W);
  8310. }).on("click", "tr", function () {
  8311. m.call(this, "row");
  8312. }).on("dblclick", "tr", function () {
  8313. m.call(this, "rowDouble");
  8314. });
  8315. var m = function m(e) {
  8316. var i = t(this);
  8317. i.data("off") || layui.event.call(this, y, e + "(" + p + ")", v.call(i.children("td")[0]));
  8318. };
  8319. i.layBody.on("change", "." + R, function () {
  8320. var e = t(this),
  8321. a = this.value,
  8322. l = e.parent().data("field"),
  8323. n = e.parents("tr").eq(0).data("index"),
  8324. o = d.cache[i.key][n];
  8325. o[l] = a, layui.event.call(this, y, "edit(" + p + ")", v.call(this, {
  8326. value: a,
  8327. field: l
  8328. }));
  8329. }).on("blur", "." + R, function () {
  8330. var e,
  8331. a = t(this),
  8332. l = this,
  8333. n = a.parent().data("field"),
  8334. o = a.parents("tr").eq(0).data("index"),
  8335. r = d.cache[i.key][o];
  8336. i.eachCols(function (t, i) {
  8337. i.field == n && i.templet && (e = i.templet);
  8338. }), a.siblings(h).html(function (t) {
  8339. return u({
  8340. templet: e
  8341. }, t, r);
  8342. }(l.value)), a.parent().data("content", l.value), a.remove();
  8343. }), i.layBody.on("click", "td", function (e) {
  8344. var i = t(this),
  8345. a = (i.data("field"), i.data("edit")),
  8346. l = i.children(h);
  8347. if (!i.data("off") && a) {
  8348. var n = t('<input class="layui-input ' + R + '">');
  8349. return n[0].value = i.data("content") || l.text(), i.find("." + R)[0] || i.append(n), n.focus(), void layui.stope(e);
  8350. }
  8351. }).on("mouseenter", "td", function () {
  8352. b.call(this);
  8353. }).on("mouseleave", "td", function () {
  8354. b.call(this, "hide");
  8355. });
  8356. var g = "layui-table-grid-down",
  8357. b = function b(e) {
  8358. var i = t(this),
  8359. a = i.children(h);
  8360. if (!i.data("off")) if (e) i.find(".layui-table-grid-down").remove();else if (a.prop("scrollWidth") > a.outerWidth()) {
  8361. if (a.find("." + g)[0]) return;
  8362. i.append('<div class="' + g + '"><i class="layui-icon layui-icon-down"></i></div>');
  8363. }
  8364. };
  8365. i.layBody.on("click", "." + g, function (e) {
  8366. var n = t(this),
  8367. o = n.parent(),
  8368. d = o.children(h);
  8369. i.tipsIndex = l.tips(['<div class="layui-table-tips-main" style="margin-top: -' + (d.height() + 16) + "px;" + function () {
  8370. return "sm" === a.size ? "padding: 4px 15px; font-size: 12px;" : "lg" === a.size ? "padding: 14px 15px;" : "";
  8371. }() + '">', d.html(), "</div>", '<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""), d[0], {
  8372. tips: [3, ""],
  8373. time: -1,
  8374. anim: -1,
  8375. maxWidth: r.ios || r.android ? 300 : i.elem.width() / 2,
  8376. isOutAnim: !1,
  8377. skin: "layui-table-tips",
  8378. success: function success(e, t) {
  8379. e.find(".layui-table-tips-c").on("click", function () {
  8380. l.close(t);
  8381. });
  8382. }
  8383. }), layui.stope(e);
  8384. }), i.layBody.on("click", "*[lay-event]", function () {
  8385. var e = t(this),
  8386. a = e.parents("tr").eq(0).data("index");
  8387. layui.event.call(this, y, "tool(" + p + ")", v.call(this, {
  8388. event: e.attr("lay-event")
  8389. })), i.setThisRowChecked(a);
  8390. }), i.layMain.on("scroll", function () {
  8391. var e = t(this),
  8392. a = e.scrollLeft(),
  8393. n = e.scrollTop();
  8394. i.layHeader.scrollLeft(a), i.layTotal.scrollLeft(a), i.layFixed.find(k).scrollTop(n), l.close(i.tipsIndex);
  8395. }), H.on("resize", function () {
  8396. i.resize();
  8397. });
  8398. }, function () {
  8399. j.on("click", function () {
  8400. j.trigger("table.remove.tool.panel");
  8401. }), j.on("table.remove.tool.panel", function () {
  8402. t(".layui-table-tool-panel").remove();
  8403. });
  8404. }(), d.init = function (e, i) {
  8405. i = i || {};
  8406. var a = this,
  8407. l = t(e ? 'table[lay-filter="' + e + '"]' : h + "[lay-data]"),
  8408. n = "Table element property lay-data configuration item has a syntax error: ";
  8409. return l.each(function () {
  8410. var a = t(this),
  8411. l = a.attr("lay-data");
  8412. try {
  8413. l = new Function("return " + l)();
  8414. } catch (r) {
  8415. o.error(n + l);
  8416. }
  8417. var c = [],
  8418. s = t.extend({
  8419. elem: this,
  8420. cols: [],
  8421. data: [],
  8422. skin: a.attr("lay-skin"),
  8423. size: a.attr("lay-size"),
  8424. even: "string" == typeof a.attr("lay-even")
  8425. }, d.config, i, l);
  8426. e && a.hide(), a.find("thead>tr").each(function (e) {
  8427. s.cols[e] = [], t(this).children().each(function (i) {
  8428. var a = t(this),
  8429. l = a.attr("lay-data");
  8430. try {
  8431. l = new Function("return " + l)();
  8432. } catch (r) {
  8433. return o.error(n + l);
  8434. }
  8435. var d = t.extend({
  8436. title: a.text(),
  8437. colspan: a.attr("colspan") || 0,
  8438. rowspan: a.attr("rowspan") || 0
  8439. }, l);
  8440. d.colspan < 2 && c.push(d), s.cols[e].push(d);
  8441. });
  8442. }), a.find("tbody>tr").each(function (e) {
  8443. var i = t(this),
  8444. a = {};
  8445. i.children("td").each(function (e, i) {
  8446. var l = t(this),
  8447. n = l.data("field");
  8448. if (n) return a[n] = l.html();
  8449. }), layui.each(c, function (e, t) {
  8450. var l = i.children("td").eq(e);
  8451. a[t.field] = l.html();
  8452. }), s.data[e] = a;
  8453. }), d.render(s);
  8454. }), a;
  8455. }, c.that = {}, c.config = {}, d.eachCols = function (e, i, a) {
  8456. var l = c.config[e] || {},
  8457. n = [],
  8458. o = 0;
  8459. a = t.extend(!0, [], a || l.cols), layui.each(a, function (e, t) {
  8460. layui.each(t, function (t, i) {
  8461. if (i.colGroup) {
  8462. var l = 0;
  8463. o++, i.CHILD_COLS = [], layui.each(a[e + 1], function (e, t) {
  8464. t.PARENT_COL_INDEX || l > 1 && l == i.colspan || (t.PARENT_COL_INDEX = o, i.CHILD_COLS.push(t), l += parseInt(t.colspan > 1 ? t.colspan : 1));
  8465. });
  8466. }
  8467. i.PARENT_COL_INDEX || n.push(i);
  8468. });
  8469. });
  8470. var r = function r(e) {
  8471. layui.each(e || n, function (e, t) {
  8472. return t.CHILD_COLS ? r(t.CHILD_COLS) : void ("function" == typeof i && i(e, t));
  8473. });
  8474. };
  8475. r();
  8476. }, d.checkStatus = function (e) {
  8477. var t = 0,
  8478. i = 0,
  8479. a = [],
  8480. l = d.cache[e] || [];
  8481. return layui.each(l, function (e, l) {
  8482. return l.constructor === Array ? void i++ : void (l[d.config.checkName] && (t++, a.push(d.clearCacheKey(l))));
  8483. }), {
  8484. data: a,
  8485. isAll: !!l.length && t === l.length - i
  8486. };
  8487. }, d.exportFile = function (e, t, i) {
  8488. var a = this;
  8489. t = t || d.clearCacheKey(d.cache[e]), i = i || "csv";
  8490. var l = c.config[e] || {},
  8491. n = {
  8492. csv: "text/csv",
  8493. xls: "application/vnd.ms-excel"
  8494. }[i],
  8495. s = document.createElement("a");
  8496. return r.ie ? o.error("IE_NOT_SUPPORT_EXPORTS") : (s.href = "data:" + n + ";charset=utf-8,\uFEFF" + encodeURIComponent(function () {
  8497. var i = [],
  8498. l = [],
  8499. n = [];
  8500. return layui.each(t, function (t, a) {
  8501. var n = [];
  8502. "object" == _typeof(e) ? (layui.each(e, function (e, a) {
  8503. 0 == t && i.push(a || "");
  8504. }), layui.each(d.clearCacheKey(a), function (e, t) {
  8505. n.push('"' + (t || "") + '"');
  8506. })) : d.eachCols(e, function (e, l) {
  8507. if (l.field && "normal" == l.type && !l.hide) {
  8508. var o = a[l.field];
  8509. void 0 !== o && null !== o || (o = ""), 0 == t && i.push(l.title || ""), n.push('"' + u(l, o, a, "text") + '"');
  8510. }
  8511. }), l.push(n.join(","));
  8512. }), layui.each(a.dataTotal, function (e, t) {
  8513. n.push(t);
  8514. }), i.join(",") + "\r\n" + l.join("\r\n") + "\r\n" + n.join(",");
  8515. }()), s.download = (l.title || "table_" + (l.index || "")) + "." + i, document.body.appendChild(s), s.click(), void document.body.removeChild(s));
  8516. }, d.resize = function (e) {
  8517. if (e) {
  8518. var t = s(e);
  8519. if (!t) return;
  8520. c.that[e].resize();
  8521. } else layui.each(c.that, function () {
  8522. this.resize();
  8523. });
  8524. }, d.reload = function (e, t) {
  8525. var i = s(e);
  8526. if (i) {
  8527. var a = c.that[e];
  8528. return a.reload(t), c.call(a);
  8529. }
  8530. }, d.render = function (e) {
  8531. var t = new F(e);
  8532. return c.call(t);
  8533. }, d.clearCacheKey = function (e) {
  8534. return e = t.extend({}, e), delete e[d.config.checkName], delete e[d.config.indexName], e;
  8535. }, d.init(), e(y, d);
  8536. });
  8537. layui.define("jquery", function (e) {
  8538. "use strict";
  8539. var i = layui.$,
  8540. n = (layui.hint(), layui.device(), {
  8541. config: {},
  8542. set: function set(e) {
  8543. var n = this;
  8544. return n.config = i.extend({}, n.config, e), n;
  8545. },
  8546. on: function on(e, i) {
  8547. return layui.onevent.call(this, t, e, i);
  8548. }
  8549. }),
  8550. t = "carousel",
  8551. a = "layui-this",
  8552. l = ">*[carousel-item]>*",
  8553. o = "layui-carousel-left",
  8554. r = "layui-carousel-right",
  8555. d = "layui-carousel-prev",
  8556. s = "layui-carousel-next",
  8557. u = "layui-carousel-arrow",
  8558. c = "layui-carousel-ind",
  8559. m = function m(e) {
  8560. var t = this;
  8561. t.config = i.extend({}, t.config, n.config, e), t.render();
  8562. };
  8563. m.prototype.config = {
  8564. width: "600px",
  8565. height: "280px",
  8566. full: !1,
  8567. arrow: "hover",
  8568. indicator: "inside",
  8569. autoplay: !0,
  8570. interval: 3e3,
  8571. anim: "",
  8572. trigger: "click",
  8573. index: 0
  8574. }, m.prototype.render = function () {
  8575. var e = this,
  8576. n = e.config;
  8577. n.elem = i(n.elem), n.elem[0] && (e.elemItem = n.elem.find(l), n.index < 0 && (n.index = 0), n.index >= e.elemItem.length && (n.index = e.elemItem.length - 1), n.interval < 800 && (n.interval = 800), n.full ? n.elem.css({
  8578. position: "fixed",
  8579. width: "100%",
  8580. height: "100%",
  8581. zIndex: 9999
  8582. }) : n.elem.css({
  8583. width: n.width,
  8584. height: n.height
  8585. }), n.elem.attr("lay-anim", n.anim), e.elemItem.eq(n.index).addClass(a), e.elemItem.length <= 1 || (e.indicator(), e.arrow(), e.autoplay(), e.events()));
  8586. }, m.prototype.reload = function (e) {
  8587. var n = this;
  8588. clearInterval(n.timer), n.config = i.extend({}, n.config, e), n.render();
  8589. }, m.prototype.prevIndex = function () {
  8590. var e = this,
  8591. i = e.config,
  8592. n = i.index - 1;
  8593. return n < 0 && (n = e.elemItem.length - 1), n;
  8594. }, m.prototype.nextIndex = function () {
  8595. var e = this,
  8596. i = e.config,
  8597. n = i.index + 1;
  8598. return n >= e.elemItem.length && (n = 0), n;
  8599. }, m.prototype.addIndex = function (e) {
  8600. var i = this,
  8601. n = i.config;
  8602. e = e || 1, n.index = n.index + e, n.index >= i.elemItem.length && (n.index = 0);
  8603. }, m.prototype.subIndex = function (e) {
  8604. var i = this,
  8605. n = i.config;
  8606. e = e || 1, n.index = n.index - e, n.index < 0 && (n.index = i.elemItem.length - 1);
  8607. }, m.prototype.autoplay = function () {
  8608. var e = this,
  8609. i = e.config;
  8610. i.autoplay && (clearInterval(e.timer), e.timer = setInterval(function () {
  8611. e.slide();
  8612. }, i.interval));
  8613. }, m.prototype.arrow = function () {
  8614. var e = this,
  8615. n = e.config,
  8616. t = i(['<button class="layui-icon ' + u + '" lay-type="sub">' + ("updown" === n.anim ? "&#xe619;" : "&#xe603;") + "</button>", '<button class="layui-icon ' + u + '" lay-type="add">' + ("updown" === n.anim ? "&#xe61a;" : "&#xe602;") + "</button>"].join(""));
  8617. n.elem.attr("lay-arrow", n.arrow), n.elem.find("." + u)[0] && n.elem.find("." + u).remove(), n.elem.append(t), t.on("click", function () {
  8618. var n = i(this),
  8619. t = n.attr("lay-type");
  8620. e.slide(t);
  8621. });
  8622. }, m.prototype.indicator = function () {
  8623. var e = this,
  8624. n = e.config,
  8625. t = e.elemInd = i(['<div class="' + c + '"><ul>', function () {
  8626. var i = [];
  8627. return layui.each(e.elemItem, function (e) {
  8628. i.push("<li" + (n.index === e ? ' class="layui-this"' : "") + "></li>");
  8629. }), i.join("");
  8630. }(), "</ul></div>"].join(""));
  8631. n.elem.attr("lay-indicator", n.indicator), n.elem.find("." + c)[0] && n.elem.find("." + c).remove(), n.elem.append(t), "updown" === n.anim && t.css("margin-top", -(t.height() / 2)), t.find("li").on("hover" === n.trigger ? "mouseover" : n.trigger, function () {
  8632. var t = i(this),
  8633. a = t.index();
  8634. a > n.index ? e.slide("add", a - n.index) : a < n.index && e.slide("sub", n.index - a);
  8635. });
  8636. }, m.prototype.slide = function (e, i) {
  8637. var n = this,
  8638. l = n.elemItem,
  8639. u = n.config,
  8640. c = u.index,
  8641. m = u.elem.attr("lay-filter");
  8642. n.haveSlide || ("sub" === e ? (n.subIndex(i), l.eq(u.index).addClass(d), setTimeout(function () {
  8643. l.eq(c).addClass(r), l.eq(u.index).addClass(r);
  8644. }, 50)) : (n.addIndex(i), l.eq(u.index).addClass(s), setTimeout(function () {
  8645. l.eq(c).addClass(o), l.eq(u.index).addClass(o);
  8646. }, 50)), setTimeout(function () {
  8647. l.removeClass(a + " " + d + " " + s + " " + o + " " + r), l.eq(u.index).addClass(a), n.haveSlide = !1;
  8648. }, 300), n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a), n.haveSlide = !0, layui.event.call(this, t, "change(" + m + ")", {
  8649. index: u.index,
  8650. prevIndex: c,
  8651. item: l.eq(u.index)
  8652. }));
  8653. }, m.prototype.events = function () {
  8654. var e = this,
  8655. i = e.config;
  8656. i.elem.data("haveEvents") || (i.elem.on("mouseenter", function () {
  8657. clearInterval(e.timer);
  8658. }).on("mouseleave", function () {
  8659. e.autoplay();
  8660. }), i.elem.data("haveEvents", !0));
  8661. }, n.render = function (e) {
  8662. var i = new m(e);
  8663. return i;
  8664. }, e(t, n);
  8665. });
  8666. layui.define("jquery", function (e) {
  8667. "use strict";
  8668. var a = layui.jquery,
  8669. i = {
  8670. config: {},
  8671. index: layui.rate ? layui.rate.index + 1e4 : 0,
  8672. set: function set(e) {
  8673. var i = this;
  8674. return i.config = a.extend({}, i.config, e), i;
  8675. },
  8676. on: function on(e, a) {
  8677. return layui.onevent.call(this, n, e, a);
  8678. }
  8679. },
  8680. l = function l() {
  8681. var e = this,
  8682. a = e.config;
  8683. return {
  8684. setvalue: function setvalue(a) {
  8685. e.setvalue.call(e, a);
  8686. },
  8687. config: a
  8688. };
  8689. },
  8690. n = "rate",
  8691. t = "layui-rate",
  8692. o = "layui-icon-rate",
  8693. s = "layui-icon-rate-solid",
  8694. u = "layui-icon-rate-half",
  8695. r = "layui-icon-rate-solid layui-icon-rate-half",
  8696. c = "layui-icon-rate-solid layui-icon-rate",
  8697. f = "layui-icon-rate layui-icon-rate-half",
  8698. v = function v(e) {
  8699. var l = this;
  8700. l.index = ++i.index, l.config = a.extend({}, l.config, i.config, e), l.render();
  8701. };
  8702. v.prototype.config = {
  8703. length: 5,
  8704. text: !1,
  8705. readonly: !1,
  8706. half: !1,
  8707. value: 0,
  8708. theme: ""
  8709. }, v.prototype.render = function () {
  8710. var e = this,
  8711. i = e.config,
  8712. l = i.theme ? 'style="color: ' + i.theme + ';"' : "";
  8713. i.elem = a(i.elem), parseInt(i.value) !== i.value && (i.half || (i.value = Math.ceil(i.value) - i.value < .5 ? Math.ceil(i.value) : Math.floor(i.value)));
  8714. for (var n = '<ul class="layui-rate" ' + (i.readonly ? "readonly" : "") + ">", u = 1; u <= i.length; u++) {
  8715. var r = '<li class="layui-inline"><i class="layui-icon ' + (u > Math.floor(i.value) ? o : s) + '" ' + l + "></i></li>";
  8716. i.half && parseInt(i.value) !== i.value && u == Math.ceil(i.value) ? n = n + '<li><i class="layui-icon layui-icon-rate-half" ' + l + "></i></li>" : n += r;
  8717. }
  8718. n += "</ul>" + (i.text ? '<span class="layui-inline">' + i.value + "星" : "") + "</span>";
  8719. var c = i.elem,
  8720. f = c.next("." + t);
  8721. f[0] && f.remove(), e.elemTemp = a(n), i.span = e.elemTemp.next("span"), i.setText && i.setText(i.value), c.html(e.elemTemp), c.addClass("layui-inline"), i.readonly || e.action();
  8722. }, v.prototype.setvalue = function (e) {
  8723. var a = this,
  8724. i = a.config;
  8725. i.value = e, a.render();
  8726. }, v.prototype.action = function () {
  8727. var e = this,
  8728. i = e.config,
  8729. l = e.elemTemp,
  8730. n = l.find("i").width();
  8731. l.children("li").each(function (e) {
  8732. var t = e + 1,
  8733. v = a(this);
  8734. v.on("click", function (e) {
  8735. if (i.value = t, i.half) {
  8736. var o = e.pageX - a(this).offset().left;
  8737. o <= n / 2 && (i.value = i.value - .5);
  8738. }
  8739. i.text && l.next("span").text(i.value + "星"), i.choose && i.choose(i.value), i.setText && i.setText(i.value);
  8740. }), v.on("mousemove", function (e) {
  8741. if (l.find("i").each(function () {
  8742. a(this).addClass(o).removeClass(r);
  8743. }), l.find("i:lt(" + t + ")").each(function () {
  8744. a(this).addClass(s).removeClass(f);
  8745. }), i.half) {
  8746. var c = e.pageX - a(this).offset().left;
  8747. c <= n / 2 && v.children("i").addClass(u).removeClass(s);
  8748. }
  8749. }), v.on("mouseleave", function () {
  8750. l.find("i").each(function () {
  8751. a(this).addClass(o).removeClass(r);
  8752. }), l.find("i:lt(" + Math.floor(i.value) + ")").each(function () {
  8753. a(this).addClass(s).removeClass(f);
  8754. }), i.half && parseInt(i.value) !== i.value && l.children("li:eq(" + Math.floor(i.value) + ")").children("i").addClass(u).removeClass(c);
  8755. });
  8756. });
  8757. }, v.prototype.events = function () {
  8758. var e = this;
  8759. e.config;
  8760. }, i.render = function (e) {
  8761. var a = new v(e);
  8762. return l.call(a);
  8763. }, e(n, i);
  8764. });
  8765. layui.define("jquery", function (e) {
  8766. "use strict";
  8767. var t = layui.$,
  8768. i = {
  8769. fixbar: function fixbar(e) {
  8770. var i,
  8771. n,
  8772. a = "layui-fixbar",
  8773. o = "layui-fixbar-top",
  8774. r = t(document),
  8775. l = t("body");
  8776. e = t.extend({
  8777. showHeight: 200
  8778. }, e), e.bar1 = e.bar1 === !0 ? "&#xe606;" : e.bar1, e.bar2 = e.bar2 === !0 ? "&#xe607;" : e.bar2, e.bgcolor = e.bgcolor ? "background-color:" + e.bgcolor : "";
  8779. var c = [e.bar1, e.bar2, "&#xe604;"],
  8780. u = t(['<ul class="' + a + '">', e.bar1 ? '<li class="layui-icon" lay-type="bar1" style="' + e.bgcolor + '">' + c[0] + "</li>" : "", e.bar2 ? '<li class="layui-icon" lay-type="bar2" style="' + e.bgcolor + '">' + c[1] + "</li>" : "", '<li class="layui-icon ' + o + '" lay-type="top" style="' + e.bgcolor + '">' + c[2] + "</li>", "</ul>"].join("")),
  8781. g = u.find("." + o),
  8782. s = function s() {
  8783. var t = r.scrollTop();
  8784. t >= e.showHeight ? i || (g.show(), i = 1) : i && (g.hide(), i = 0);
  8785. };
  8786. t("." + a)[0] || ("object" == _typeof(e.css) && u.css(e.css), l.append(u), s(), u.find("li").on("click", function () {
  8787. var i = t(this),
  8788. n = i.attr("lay-type");
  8789. "top" === n && t("html,body").animate({
  8790. scrollTop: 0
  8791. }, 200), e.click && e.click.call(this, n);
  8792. }), r.on("scroll", function () {
  8793. clearTimeout(n), n = setTimeout(function () {
  8794. s();
  8795. }, 100);
  8796. }));
  8797. },
  8798. countdown: function countdown(e, t, i) {
  8799. var n = this,
  8800. a = "function" == typeof t,
  8801. o = new Date(e).getTime(),
  8802. r = new Date(!t || a ? new Date().getTime() : t).getTime(),
  8803. l = o - r,
  8804. c = [Math.floor(l / 864e5), Math.floor(l / 36e5) % 24, Math.floor(l / 6e4) % 60, Math.floor(l / 1e3) % 60];
  8805. a && (i = t);
  8806. var u = setTimeout(function () {
  8807. n.countdown(e, r + 1e3, i);
  8808. }, 1e3);
  8809. return i && i(l > 0 ? c : [0, 0, 0, 0], t, u), l <= 0 && clearTimeout(u), u;
  8810. },
  8811. timeAgo: function timeAgo(e, t) {
  8812. var i = this,
  8813. n = [[], []],
  8814. a = new Date().getTime() - new Date(e).getTime();
  8815. return a > 26784e5 ? (a = new Date(e), n[0][0] = i.digit(a.getFullYear(), 4), n[0][1] = i.digit(a.getMonth() + 1), n[0][2] = i.digit(a.getDate()), t || (n[1][0] = i.digit(a.getHours()), n[1][1] = i.digit(a.getMinutes()), n[1][2] = i.digit(a.getSeconds())), n[0].join("-") + " " + n[1].join(":")) : a >= 864e5 ? (a / 1e3 / 60 / 60 / 24 | 0) + "天前" : a >= 36e5 ? (a / 1e3 / 60 / 60 | 0) + "小时前" : a >= 18e4 ? (a / 1e3 / 60 | 0) + "分钟前" : a < 0 ? "未来" : "刚刚";
  8816. },
  8817. digit: function digit(e, t) {
  8818. var i = "";
  8819. e = String(e), t = t || 2;
  8820. for (var n = e.length; n < t; n++) {
  8821. i += "0";
  8822. }
  8823. return e < Math.pow(10, t) ? i + (0 | e) : e;
  8824. },
  8825. toDateString: function toDateString(e, t) {
  8826. var i = this,
  8827. n = new Date(e || new Date()),
  8828. a = [i.digit(n.getFullYear(), 4), i.digit(n.getMonth() + 1), i.digit(n.getDate())],
  8829. o = [i.digit(n.getHours()), i.digit(n.getMinutes()), i.digit(n.getSeconds())];
  8830. return t = t || "yyyy-MM-dd HH:mm:ss", t.replace(/yyyy/g, a[0]).replace(/MM/g, a[1]).replace(/dd/g, a[2]).replace(/HH/g, o[0]).replace(/mm/g, o[1]).replace(/ss/g, o[2]);
  8831. },
  8832. escape: function escape(e) {
  8833. return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#39;").replace(/"/g, "&quot;");
  8834. },
  8835. event: function event(e, n, a) {
  8836. var o = t("body");
  8837. return a = a || "click", n = i.event[e] = t.extend(!0, i.event[e], n) || {}, i.event.UTIL_EVENT_CALLBACK = i.event.UTIL_EVENT_CALLBACK || {}, o.off(a, "*[" + e + "]", i.event.UTIL_EVENT_CALLBACK[e]), i.event.UTIL_EVENT_CALLBACK[e] = function () {
  8838. var i = t(this),
  8839. a = i.attr(e);
  8840. "function" == typeof n[a] && n[a].call(this, i);
  8841. }, o.on(a, "*[" + e + "]", i.event.UTIL_EVENT_CALLBACK[e]), n;
  8842. }
  8843. };
  8844. !function (e, t, i) {
  8845. "$:nomunge";
  8846. function n() {
  8847. a = t[l](function () {
  8848. o.each(function () {
  8849. var t = e(this),
  8850. i = t.width(),
  8851. n = t.height(),
  8852. a = e.data(this, u);
  8853. (i !== a.w || n !== a.h) && t.trigger(c, [a.w = i, a.h = n]);
  8854. }), n();
  8855. }, r[g]);
  8856. }
  8857. var a,
  8858. o = e([]),
  8859. r = e.resize = e.extend(e.resize, {}),
  8860. l = "setTimeout",
  8861. c = "resize",
  8862. u = c + "-special-event",
  8863. g = "delay",
  8864. s = "throttleWindow";
  8865. r[g] = 250, r[s] = !0, e.event.special[c] = {
  8866. setup: function setup() {
  8867. if (!r[s] && this[l]) return !1;
  8868. var t = e(this);
  8869. o = o.add(t), e.data(this, u, {
  8870. w: t.width(),
  8871. h: t.height()
  8872. }), 1 === o.length && n();
  8873. },
  8874. teardown: function teardown() {
  8875. if (!r[s] && this[l]) return !1;
  8876. var t = e(this);
  8877. o = o.not(t), t.removeData(u), o.length || clearTimeout(a);
  8878. },
  8879. add: function add(t) {
  8880. function n(t, n, o) {
  8881. var r = e(this),
  8882. l = e.data(this, u) || {};
  8883. l.w = n !== i ? n : r.width(), l.h = o !== i ? o : r.height(), a.apply(this, arguments);
  8884. }
  8885. if (!r[s] && this[l]) return !1;
  8886. var a;
  8887. return e.isFunction(t) ? (a = t, n) : (a = t.handler, void (t.handler = n));
  8888. }
  8889. };
  8890. }(t, window), e("util", i);
  8891. });
  8892. layui.define("jquery", function (e) {
  8893. "use strict";
  8894. var l = layui.$,
  8895. o = function o(e) {},
  8896. t = '<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';
  8897. o.prototype.load = function (e) {
  8898. var o,
  8899. i,
  8900. n,
  8901. r,
  8902. a = this,
  8903. c = 0;
  8904. e = e || {};
  8905. var f = l(e.elem);
  8906. if (f[0]) {
  8907. var m = l(e.scrollElem || document),
  8908. u = e.mb || 50,
  8909. s = !("isAuto" in e) || e.isAuto,
  8910. v = e.end || "没有更多了",
  8911. y = e.scrollElem && e.scrollElem !== document,
  8912. d = "<cite>加载更多</cite>",
  8913. h = l('<div class="layui-flow-more"><a href="javascript:;">' + d + "</a></div>");
  8914. f.find(".layui-flow-more")[0] || f.append(h);
  8915. var p = function p(e, t) {
  8916. e = l(e), h.before(e), t = 0 == t || null, t ? h.html(v) : h.find("a").html(d), i = t, o = null, n && n();
  8917. },
  8918. g = function g() {
  8919. o = !0, h.find("a").html(t), "function" == typeof e.done && e.done(++c, p);
  8920. };
  8921. if (g(), h.find("a").on("click", function () {
  8922. l(this);
  8923. i || o || g();
  8924. }), e.isLazyimg) var n = a.lazyimg({
  8925. elem: e.elem + " img",
  8926. scrollElem: e.scrollElem
  8927. });
  8928. return s ? (m.on("scroll", function () {
  8929. var e = l(this),
  8930. t = e.scrollTop();
  8931. r && clearTimeout(r), !i && f.width() && (r = setTimeout(function () {
  8932. var i = y ? e.height() : l(window).height(),
  8933. n = y ? e.prop("scrollHeight") : document.documentElement.scrollHeight;
  8934. n - t - i <= u && (o || g());
  8935. }, 100));
  8936. }), a) : a;
  8937. }
  8938. }, o.prototype.lazyimg = function (e) {
  8939. var o,
  8940. t = this,
  8941. i = 0;
  8942. e = e || {};
  8943. var n = l(e.scrollElem || document),
  8944. r = e.elem || "img",
  8945. a = e.scrollElem && e.scrollElem !== document,
  8946. c = function c(e, l) {
  8947. var o = n.scrollTop(),
  8948. r = o + l,
  8949. c = a ? function () {
  8950. return e.offset().top - n.offset().top + o;
  8951. }() : e.offset().top;
  8952. if (c >= o && c <= r && !e.attr("src")) {
  8953. var m = e.attr("lay-src");
  8954. layui.img(m, function () {
  8955. var l = t.lazyimg.elem.eq(i);
  8956. e.attr("src", m).removeAttr("lay-src"), l[0] && f(l), i++;
  8957. });
  8958. }
  8959. },
  8960. f = function f(e, o) {
  8961. var f = a ? (o || n).height() : l(window).height(),
  8962. m = n.scrollTop(),
  8963. u = m + f;
  8964. if (t.lazyimg.elem = l(r), e) c(e, f);else for (var s = 0; s < t.lazyimg.elem.length; s++) {
  8965. var v = t.lazyimg.elem.eq(s),
  8966. y = a ? function () {
  8967. return v.offset().top - n.offset().top + m;
  8968. }() : v.offset().top;
  8969. if (c(v, f), i = s, y > u) break;
  8970. }
  8971. };
  8972. if (f(), !o) {
  8973. var m;
  8974. n.on("scroll", function () {
  8975. var e = l(this);
  8976. m && clearTimeout(m), m = setTimeout(function () {
  8977. f(null, e);
  8978. }, 50);
  8979. }), o = !0;
  8980. }
  8981. return f;
  8982. }, e("flow", new o());
  8983. });
  8984. layui.define(["layer", "form"], function (t) {
  8985. "use strict";
  8986. var e = layui.$,
  8987. i = layui.layer,
  8988. a = layui.form,
  8989. l = (layui.hint(), layui.device()),
  8990. n = "layedit",
  8991. o = "layui-show",
  8992. r = "layui-disabled",
  8993. c = function c() {
  8994. var t = this;
  8995. t.index = 0, t.config = {
  8996. tool: ["strong", "italic", "underline", "del", "|", "left", "center", "right", "|", "link", "unlink", "face", "image"],
  8997. hideTool: [],
  8998. height: 280
  8999. };
  9000. };
  9001. c.prototype.set = function (t) {
  9002. var i = this;
  9003. return e.extend(!0, i.config, t), i;
  9004. }, c.prototype.on = function (t, e) {
  9005. return layui.onevent(n, t, e);
  9006. }, c.prototype.build = function (t, i) {
  9007. i = i || {};
  9008. var a = this,
  9009. n = a.config,
  9010. r = "layui-layedit",
  9011. c = e("string" == typeof t ? "#" + t : t),
  9012. u = "LAY_layedit_" + ++a.index,
  9013. d = c.next("." + r),
  9014. y = e.extend({}, n, i),
  9015. f = function () {
  9016. var t = [],
  9017. e = {};
  9018. return layui.each(y.hideTool, function (t, i) {
  9019. e[i] = !0;
  9020. }), layui.each(y.tool, function (i, a) {
  9021. C[a] && !e[a] && t.push(C[a]);
  9022. }), t.join("");
  9023. }(),
  9024. m = e(['<div class="' + r + '">', '<div class="layui-unselect layui-layedit-tool">' + f + "</div>", '<div class="layui-layedit-iframe">', '<iframe id="' + u + '" name="' + u + '" textarea="' + t + '" frameborder="0"></iframe>', "</div>", "</div>"].join(""));
  9025. return l.ie && l.ie < 8 ? c.removeClass("layui-hide").addClass(o) : (d[0] && d.remove(), s.call(a, m, c[0], y), c.addClass("layui-hide").after(m), a.index);
  9026. }, c.prototype.getContent = function (t) {
  9027. var e = u(t);
  9028. if (e[0]) return d(e[0].document.body.innerHTML);
  9029. }, c.prototype.getText = function (t) {
  9030. var i = u(t);
  9031. if (i[0]) return e(i[0].document.body).text();
  9032. }, c.prototype.setContent = function (t, i, a) {
  9033. var l = u(t);
  9034. l[0] && (a ? e(l[0].document.body).append(i) : e(l[0].document.body).html(i), layedit.sync(t));
  9035. }, c.prototype.sync = function (t) {
  9036. var i = u(t);
  9037. if (i[0]) {
  9038. var a = e("#" + i[1].attr("textarea"));
  9039. a.val(d(i[0].document.body.innerHTML));
  9040. }
  9041. }, c.prototype.getSelection = function (t) {
  9042. var e = u(t);
  9043. if (e[0]) {
  9044. var i = m(e[0].document);
  9045. return document.selection ? i.text : i.toString();
  9046. }
  9047. };
  9048. var s = function s(t, i, a) {
  9049. var l = this,
  9050. n = t.find("iframe");
  9051. n.css({
  9052. height: a.height
  9053. }).on("load", function () {
  9054. var o = n.contents(),
  9055. r = n.prop("contentWindow"),
  9056. c = o.find("head"),
  9057. s = e(["<style>", "*{margin: 0; padding: 0;}", "body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}", "a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}", "p{margin-bottom: 10px;}", "img{display: inline-block; border: none; vertical-align: middle;}", "pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}", "</style>"].join("")),
  9058. u = o.find("body");
  9059. c.append(s), u.attr("contenteditable", "true").css({
  9060. "min-height": a.height
  9061. }).html(i.value || ""), y.apply(l, [r, n, i, a]), g.call(l, r, t, a);
  9062. });
  9063. },
  9064. u = function u(t) {
  9065. var i = e("#LAY_layedit_" + t),
  9066. a = i.prop("contentWindow");
  9067. return [a, i];
  9068. },
  9069. d = function d(t) {
  9070. return 8 == l.ie && (t = t.replace(/<.+>/g, function (t) {
  9071. return t.toLowerCase();
  9072. })), t;
  9073. },
  9074. y = function y(t, a, n, o) {
  9075. var r = t.document,
  9076. c = e(r.body);
  9077. c.on("keydown", function (t) {
  9078. var e = t.keyCode;
  9079. if (13 === e) {
  9080. var a = m(r),
  9081. l = p(a),
  9082. n = l.parentNode;
  9083. if ("pre" === n.tagName.toLowerCase()) {
  9084. if (t.shiftKey) return;
  9085. return i.msg("请暂时用shift+enter"), !1;
  9086. }
  9087. r.execCommand("formatBlock", !1, "<p>");
  9088. }
  9089. }), e(n).parents("form").on("submit", function () {
  9090. var t = c.html();
  9091. 8 == l.ie && (t = t.replace(/<.+>/g, function (t) {
  9092. return t.toLowerCase();
  9093. })), n.value = t;
  9094. }), c.on("paste", function (e) {
  9095. r.execCommand("formatBlock", !1, "<p>"), setTimeout(function () {
  9096. f.call(t, c), n.value = c.html();
  9097. }, 100);
  9098. });
  9099. },
  9100. f = function f(t) {
  9101. var i = this;
  9102. i.document;
  9103. t.find("*[style]").each(function () {
  9104. var t = this.style.textAlign;
  9105. this.removeAttribute("style"), e(this).css({
  9106. "text-align": t || ""
  9107. });
  9108. }), t.find("table").addClass("layui-table"), t.find("script,link").remove();
  9109. },
  9110. m = function m(t) {
  9111. return t.selection ? t.selection.createRange() : t.getSelection().getRangeAt(0);
  9112. },
  9113. p = function p(t) {
  9114. return t.endContainer || t.parentElement().childNodes[0];
  9115. },
  9116. v = function v(t, i, a) {
  9117. var l = this.document,
  9118. n = document.createElement(t);
  9119. for (var o in i) {
  9120. n.setAttribute(o, i[o]);
  9121. }
  9122. if (n.removeAttribute("text"), l.selection) {
  9123. var r = a.text || i.text;
  9124. if ("a" === t && !r) return;
  9125. r && (n.innerHTML = r), a.pasteHTML(e(n).prop("outerHTML")), a.select();
  9126. } else {
  9127. var r = a.toString() || i.text;
  9128. if ("a" === t && !r) return;
  9129. r && (n.innerHTML = r), a.deleteContents(), a.insertNode(n);
  9130. }
  9131. },
  9132. h = function h(t, i) {
  9133. var a = this.document,
  9134. l = "layedit-tool-active",
  9135. n = p(m(a)),
  9136. o = function o(e) {
  9137. return t.find(".layedit-tool-" + e);
  9138. };
  9139. i && i[i.hasClass(l) ? "removeClass" : "addClass"](l), t.find(">i").removeClass(l), o("unlink").addClass(r), e(n).parents().each(function () {
  9140. var t = this.tagName.toLowerCase(),
  9141. e = this.style.textAlign;
  9142. "b" !== t && "strong" !== t || o("b").addClass(l), "i" !== t && "em" !== t || o("i").addClass(l), "u" === t && o("u").addClass(l), "strike" === t && o("d").addClass(l), "p" === t && ("center" === e ? o("center").addClass(l) : "right" === e ? o("right").addClass(l) : o("left").addClass(l)), "a" === t && (o("link").addClass(l), o("unlink").removeClass(r));
  9143. });
  9144. },
  9145. g = function g(t, a, l) {
  9146. var n = t.document,
  9147. o = e(n.body),
  9148. c = {
  9149. link: function link(i) {
  9150. var a = p(i),
  9151. l = e(a).parent();
  9152. b.call(o, {
  9153. href: l.attr("href"),
  9154. target: l.attr("target")
  9155. }, function (e) {
  9156. var a = l[0];
  9157. "A" === a.tagName ? a.href = e.url : v.call(t, "a", {
  9158. target: e.target,
  9159. href: e.url,
  9160. text: e.url
  9161. }, i);
  9162. });
  9163. },
  9164. unlink: function unlink(t) {
  9165. n.execCommand("unlink");
  9166. },
  9167. face: function face(e) {
  9168. x.call(this, function (i) {
  9169. v.call(t, "img", {
  9170. src: i.src,
  9171. alt: i.alt
  9172. }, e);
  9173. });
  9174. },
  9175. image: function image(a) {
  9176. var n = this;
  9177. layui.use("upload", function (o) {
  9178. var r = l.uploadImage || {};
  9179. o.render({
  9180. url: r.url,
  9181. method: r.type,
  9182. elem: e(n).find("input")[0],
  9183. done: function done(e) {
  9184. 0 == e.code ? (e.data = e.data || {}, v.call(t, "img", {
  9185. src: e.data.src,
  9186. alt: e.data.title
  9187. }, a)) : i.msg(e.msg || "上传失败");
  9188. }
  9189. });
  9190. });
  9191. },
  9192. code: function code(e) {
  9193. k.call(o, function (i) {
  9194. v.call(t, "pre", {
  9195. text: i.code,
  9196. "lay-lang": i.lang
  9197. }, e);
  9198. });
  9199. },
  9200. help: function help() {
  9201. i.open({
  9202. type: 2,
  9203. title: "帮助",
  9204. area: ["600px", "380px"],
  9205. shadeClose: !0,
  9206. shade: .1,
  9207. skin: "layui-layer-msg",
  9208. content: ["http://www.layui.com/about/layedit/help.html", "no"]
  9209. });
  9210. }
  9211. },
  9212. s = a.find(".layui-layedit-tool"),
  9213. u = function u() {
  9214. var i = e(this),
  9215. a = i.attr("layedit-event"),
  9216. l = i.attr("lay-command");
  9217. if (!i.hasClass(r)) {
  9218. o.focus();
  9219. var u = m(n);
  9220. u.commonAncestorContainer;
  9221. l ? (n.execCommand(l), /justifyLeft|justifyCenter|justifyRight/.test(l) && n.execCommand("formatBlock", !1, "<p>"), setTimeout(function () {
  9222. o.focus();
  9223. }, 10)) : c[a] && c[a].call(this, u), h.call(t, s, i);
  9224. }
  9225. },
  9226. d = /image/;
  9227. s.find(">i").on("mousedown", function () {
  9228. var t = e(this),
  9229. i = t.attr("layedit-event");
  9230. d.test(i) || u.call(this);
  9231. }).on("click", function () {
  9232. var t = e(this),
  9233. i = t.attr("layedit-event");
  9234. d.test(i) && u.call(this);
  9235. }), o.on("click", function () {
  9236. h.call(t, s), i.close(x.index);
  9237. });
  9238. },
  9239. b = function b(t, e) {
  9240. var l = this,
  9241. n = i.open({
  9242. type: 1,
  9243. id: "LAY_layedit_link",
  9244. area: "350px",
  9245. shade: .05,
  9246. shadeClose: !0,
  9247. moveType: 1,
  9248. title: "超链接",
  9249. skin: "layui-layer-msg",
  9250. content: ['<ul class="layui-form" style="margin: 15px;">', '<li class="layui-form-item">', '<label class="layui-form-label" style="width: 60px;">URL</label>', '<div class="layui-input-block" style="margin-left: 90px">', '<input name="url" lay-verify="url" value="' + (t.href || "") + '" autofocus="true" autocomplete="off" class="layui-input">', "</div>", "</li>", '<li class="layui-form-item">', '<label class="layui-form-label" style="width: 60px;">打开方式</label>', '<div class="layui-input-block" style="margin-left: 90px">', '<input type="radio" name="target" value="_self" class="layui-input" title="当前窗口"' + ("_self" !== t.target && t.target ? "" : "checked") + ">", '<input type="radio" name="target" value="_blank" class="layui-input" title="新窗口" ' + ("_blank" === t.target ? "checked" : "") + ">", "</div>", "</li>", '<li class="layui-form-item" style="text-align: center;">', '<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> 确定 </button>', '<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>', "</li>", "</ul>"].join(""),
  9251. success: function success(t, n) {
  9252. var o = "submit(layedit-link-yes)";
  9253. a.render("radio"), t.find(".layui-btn-primary").on("click", function () {
  9254. i.close(n), l.focus();
  9255. }), a.on(o, function (t) {
  9256. i.close(b.index), e && e(t.field);
  9257. });
  9258. }
  9259. });
  9260. b.index = n;
  9261. },
  9262. x = function x(t) {
  9263. var a = function () {
  9264. var t = ["[微笑]", "[嘻嘻]", "[哈哈]", "[可爱]", "[可怜]", "[挖鼻]", "[吃惊]", "[害羞]", "[挤眼]", "[闭嘴]", "[鄙视]", "[爱你]", "[泪]", "[偷笑]", "[亲亲]", "[生病]", "[太开心]", "[白眼]", "[右哼哼]", "[左哼哼]", "[嘘]", "[衰]", "[委屈]", "[吐]", "[哈欠]", "[抱抱]", "[怒]", "[疑问]", "[馋嘴]", "[拜拜]", "[思考]", "[汗]", "[困]", "[睡]", "[钱]", "[失望]", "[酷]", "[色]", "[哼]", "[鼓掌]", "[晕]", "[悲伤]", "[抓狂]", "[黑线]", "[阴险]", "[怒骂]", "[互粉]", "[心]", "[伤心]", "[猪头]", "[熊猫]", "[兔子]", "[ok]", "[耶]", "[good]", "[NO]", "[赞]", "[来]", "[弱]", "[草泥马]", "[神马]", "[囧]", "[浮云]", "[给力]", "[围观]", "[威武]", "[奥特曼]", "[礼物]", "[钟]", "[话筒]", "[蜡烛]", "[蛋糕]"],
  9265. e = {};
  9266. return layui.each(t, function (t, i) {
  9267. e[i] = layui.cache.dir + "images/face/" + t + ".gif";
  9268. }), e;
  9269. }();
  9270. return x.hide = x.hide || function (t) {
  9271. "face" !== e(t.target).attr("layedit-event") && i.close(x.index);
  9272. }, x.index = i.tips(function () {
  9273. var t = [];
  9274. return layui.each(a, function (e, i) {
  9275. t.push('<li title="' + e + '"><img src="' + i + '" alt="' + e + '"></li>');
  9276. }), '<ul class="layui-clear">' + t.join("") + "</ul>";
  9277. }(), this, {
  9278. tips: 1,
  9279. time: 0,
  9280. skin: "layui-box layui-util-face",
  9281. maxWidth: 500,
  9282. success: function success(l, n) {
  9283. l.css({
  9284. marginTop: -4,
  9285. marginLeft: -10
  9286. }).find(".layui-clear>li").on("click", function () {
  9287. t && t({
  9288. src: a[this.title],
  9289. alt: this.title
  9290. }), i.close(n);
  9291. }), e(document).off("click", x.hide).on("click", x.hide);
  9292. }
  9293. });
  9294. },
  9295. k = function k(t) {
  9296. var e = this,
  9297. l = i.open({
  9298. type: 1,
  9299. id: "LAY_layedit_code",
  9300. area: "550px",
  9301. shade: .05,
  9302. shadeClose: !0,
  9303. moveType: 1,
  9304. title: "插入代码",
  9305. skin: "layui-layer-msg",
  9306. content: ['<ul class="layui-form layui-form-pane" style="margin: 15px;">', '<li class="layui-form-item">', '<label class="layui-form-label">请选择语言</label>', '<div class="layui-input-block">', '<select name="lang">', '<option value="JavaScript">JavaScript</option>', '<option value="HTML">HTML</option>', '<option value="CSS">CSS</option>', '<option value="Java">Java</option>', '<option value="PHP">PHP</option>', '<option value="C#">C#</option>', '<option value="Python">Python</option>', '<option value="Ruby">Ruby</option>', '<option value="Go">Go</option>', "</select>", "</div>", "</li>", '<li class="layui-form-item layui-form-text">', '<label class="layui-form-label">代码</label>', '<div class="layui-input-block">', '<textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"></textarea>', "</div>", "</li>", '<li class="layui-form-item" style="text-align: center;">', '<button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> 确定 </button>', '<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>', "</li>", "</ul>"].join(""),
  9307. success: function success(l, n) {
  9308. var o = "submit(layedit-code-yes)";
  9309. a.render("select"), l.find(".layui-btn-primary").on("click", function () {
  9310. i.close(n), e.focus();
  9311. }), a.on(o, function (e) {
  9312. i.close(k.index), t && t(e.field);
  9313. });
  9314. }
  9315. });
  9316. k.index = l;
  9317. },
  9318. C = {
  9319. html: '<i class="layui-icon layedit-tool-html" title="HTML源代码" lay-command="html" layedit-event="html"">&#xe64b;</i><span class="layedit-tool-mid"></span>',
  9320. strong: '<i class="layui-icon layedit-tool-b" title="加粗" lay-command="Bold" layedit-event="b"">&#xe62b;</i>',
  9321. italic: '<i class="layui-icon layedit-tool-i" title="斜体" lay-command="italic" layedit-event="i"">&#xe644;</i>',
  9322. underline: '<i class="layui-icon layedit-tool-u" title="下划线" lay-command="underline" layedit-event="u"">&#xe646;</i>',
  9323. del: '<i class="layui-icon layedit-tool-d" title="删除线" lay-command="strikeThrough" layedit-event="d"">&#xe64f;</i>',
  9324. "|": '<span class="layedit-tool-mid"></span>',
  9325. left: '<i class="layui-icon layedit-tool-left" title="左对齐" lay-command="justifyLeft" layedit-event="left"">&#xe649;</i>',
  9326. center: '<i class="layui-icon layedit-tool-center" title="居中对齐" lay-command="justifyCenter" layedit-event="center"">&#xe647;</i>',
  9327. right: '<i class="layui-icon layedit-tool-right" title="右对齐" lay-command="justifyRight" layedit-event="right"">&#xe648;</i>',
  9328. link: '<i class="layui-icon layedit-tool-link" title="插入链接" layedit-event="link"">&#xe64c;</i>',
  9329. unlink: '<i class="layui-icon layedit-tool-unlink layui-disabled" title="清除链接" lay-command="unlink" layedit-event="unlink"">&#xe64d;</i>',
  9330. face: '<i class="layui-icon layedit-tool-face" title="表情" layedit-event="face"">&#xe650;</i>',
  9331. image: '<i class="layui-icon layedit-tool-image" title="图片" layedit-event="image">&#xe64a;<input type="file" name="file"></i>',
  9332. code: '<i class="layui-icon layedit-tool-code" title="插入代码" layedit-event="code">&#xe64e;</i>',
  9333. help: '<i class="layui-icon layedit-tool-help" title="帮助" layedit-event="help">&#xe607;</i>'
  9334. },
  9335. w = new c();
  9336. t(n, w);
  9337. });
  9338. layui.define("jquery", function (e) {
  9339. "use strict";
  9340. var a = layui.$,
  9341. l = "http://www.layui.com/doc/modules/code.html";
  9342. e("code", function (e) {
  9343. var t = [];
  9344. e = e || {}, e.elem = a(e.elem || ".layui-code"), e.about = !("about" in e) || e.about, e.elem.each(function () {
  9345. t.push(this);
  9346. }), layui.each(t.reverse(), function (t, i) {
  9347. var c = a(i),
  9348. o = c.html();
  9349. (c.attr("lay-encode") || e.encode) && (o = o.replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#39;").replace(/"/g, "&quot;")), c.html('<ol class="layui-code-ol"><li>' + o.replace(/[\r\t\n]+/g, "</li><li>") + "</li></ol>"), c.find(">.layui-code-h3")[0] || c.prepend('<h3 class="layui-code-h3">' + (c.attr("lay-title") || e.title || "code") + (e.about ? '<a href="' + l + '" target="_blank">layui.code</a>' : "") + "</h3>");
  9350. var d = c.find(">.layui-code-ol");
  9351. c.addClass("layui-box layui-code-view"), (c.attr("lay-skin") || e.skin) && c.addClass("layui-code-" + (c.attr("lay-skin") || e.skin)), (d.find("li").length / 100 | 0) > 0 && d.css("margin-left", (d.find("li").length / 100 | 0) + "px"), (c.attr("lay-height") || e.height) && d.css("max-height", c.attr("lay-height") || e.height);
  9352. });
  9353. });
  9354. }).addcss("modules/code.css", "skincodecss");